public interface IndexCompositeElementDescriptor
Composite elements are either the root or an object field.
IndexObjectFieldDescriptor| Modifier and Type | Method and Description |
|---|---|
boolean |
isObjectField() |
boolean |
isRoot() |
Collection<? extends IndexFieldDescriptor> |
staticChildren()
Get all statically-defined, direct child fields for this element.
|
IndexObjectFieldDescriptor |
toObjectField() |
boolean isRoot()
true if this element represents the root of the index.boolean isObjectField()
true if this element represents an object field.
In that case, toObjectField() can be called safely (it won't throw an exception).IndexObjectFieldDescriptor toObjectField()
IndexObjectFieldDescriptor, if possible. Never null.SearchException - If this element does not represent an object field.Collection<? extends IndexFieldDescriptor> staticChildren()
Only statically-defined fields are returned;
fields created dynamically through templates
are not included in the collection.
Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.