@Target(value=FIELD) @Retention(value=RUNTIME) @Documented public @interface LookupField
LookupField.Strategy, it allows to collect one or more traveled components,
depending on the type of the annotated field. If the annotated field is an
array or a Collection (supported collections are
Map<String, T>, List<T>, Set<T>, T[]), traveled components are
collected only if they can be assigned to the elementary field type, until
the travel ends. For arrays and collection, components are inserted in
pre-order (parents first, children then). In case of maps, the pre-order is
preserved only if the map implementation preserves insertion order. If the
annotated field is not of a compound type, the first component met during the
tree travel that is assignable to the field type is set to the annotated
field.| Modifier and Type | Required Element and Description |
|---|---|
LookupField.Strategy |
strategy
The travel strategy.
|
| Modifier and Type | Optional Element and Description |
|---|---|
String |
pathFilter
A regular expression to be used to filter on the path of the selected
elements.
|
public abstract LookupField.Strategy strategy
public abstract String pathFilter
Copyright © 2022 LSST. All rights reserved.