Interface PojoModelCompositeElement
-
- All Superinterfaces:
PojoModelElement
- All Known Subinterfaces:
PojoModelProperty,PojoModelType
@Incubating public interface PojoModelCompositeElement extends PojoModelElement
A potentially composite element in the POJO model.Offers ways to create
accessorsallowing to retrieve data from objects passed to bridges.- See Also:
PojoModelType,PojoModelProperty
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PojoElementAccessor<?>createAccessor()<T> PojoElementAccessor<T>createAccessor(Class<T> type)Collection<? extends PojoModelProperty>properties()PojoModelPropertyproperty(String name)-
Methods inherited from interface org.hibernate.search.mapper.pojo.model.PojoModelElement
isAssignableTo
-
-
-
-
Method Detail
-
createAccessor
<T> PojoElementAccessor<T> createAccessor(Class<T> type)
- Type Parameters:
T- The expected type of values returned by the accessor.- Parameters:
type- The expected type of values returned by the accessor.- Returns:
- An accessor able to retrieve this element from an object, provided it has the right type.
- Throws:
SearchException- If this element is notassignableto the given type.
-
createAccessor
PojoElementAccessor<?> createAccessor()
- Returns:
- An accessor able to retrieve this element from an object, provided it has the right type.
-
property
PojoModelProperty property(String name)
- Parameters:
name- The name of a property.- Returns:
- A element representing the given property on the current element.
-
properties
Collection<? extends PojoModelProperty> properties()
- Returns:
- A collection of all properties of the current element.
-
-