Interface PojoModelCompositeElement
- All Superinterfaces:
PojoModelElement
- All Known Subinterfaces:
PojoModelProperty
,PojoModelType
A potentially composite element in the POJO model.
Offers ways to create accessors
allowing
to retrieve data from objects passed to bridges.
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<T> PojoElementAccessor<T>
createAccessor
(Class<T> type) Collection<? extends PojoModelProperty>
Methods inherited from interface org.hibernate.search.mapper.pojo.model.PojoModelElement
isAssignableTo, rawType
-
Method Details
-
createAccessor
- 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 notassignable
to the given type.
-
createAccessor
PojoElementAccessor<?> createAccessor()- Returns:
- An accessor able to retrieve this element from an object, provided it has the right type.
-
property
- 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.
-