Interface IndexCompositeElementDescriptor
- All Known Subinterfaces:
IndexCompositeNode<SC,
,NT, F> IndexObjectField<SC,
,NT, C, F> IndexObjectFieldDescriptor
- All Known Implementing Classes:
AbstractIndexObjectField
,AbstractIndexRoot
public interface IndexCompositeElementDescriptor
A composite element in the index.
Composite elements are either the root or an object field
.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isRoot()
Collection<? extends IndexFieldDescriptor>
Get all statically-defined, direct child fields for this element.Map<String,
? extends IndexFieldDescriptor> Get all statically-defined, direct child fields for this element, mapped by theirrelative name
.
-
Method Details
-
isRoot
boolean isRoot()- Returns:
true
if this element represents the root of the index.
-
isObjectField
boolean isObjectField()- Returns:
true
if this element represents an object field. In that case,toObjectField()
can be called safely (it won't throw an exception).
-
toObjectField
IndexObjectFieldDescriptor toObjectField()- Returns:
- This element as an
IndexObjectFieldDescriptor
, if possible. Nevernull
. - Throws:
SearchException
- If this element does not represent an object field.
-
staticChildren
Collection<? extends IndexFieldDescriptor> staticChildren()Get all statically-defined, direct child fields for this element.Only statically-defined fields are returned; fields created dynamically through
templates
are not included in the collection.- Returns:
- A collection containing all static child fields.
-
staticChildrenByName
Map<String,? extends IndexFieldDescriptor> staticChildrenByName()Get all statically-defined, direct child fields for this element, mapped by theirrelative name
.Only statically-defined fields are returned; fields created dynamically through
templates
are not included in the map.- Returns:
- A map containing all static child fields.
-