Class AbstractPojoModelCompositeElement<V>
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.model.impl.AbstractPojoModelCompositeElement<V>
-
- Type Parameters:
V- The type of the element, i.e. the type of values returned by accessors to this element.
- All Implemented Interfaces:
PojoModelCompositeElement,PojoModelElement
- Direct Known Subclasses:
PojoModelPropertyRootElement,PojoModelTypeRootElement
public abstract class AbstractPojoModelCompositeElement<V> extends Object implements PojoModelCompositeElement
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PojoElementAccessor<?>createAccessor()<T> PojoElementAccessor<T>createAccessor(Class<T> requestedType)booleanhasDependency()booleanhasNonRootDependency()booleanisAssignableTo(Class<?> clazz)Collection<? extends PojoModelProperty>properties()org.hibernate.search.mapper.pojo.model.impl.PojoModelNestedCompositeElement<?,?>property(String relativeFieldName)
-
-
-
Method Detail
-
createAccessor
public final <T> PojoElementAccessor<T> createAccessor(Class<T> requestedType)
- Specified by:
createAccessorin interfacePojoModelCompositeElement- Type Parameters:
T- The expected type of values returned by the accessor.- Parameters:
requestedType- 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.
-
createAccessor
public PojoElementAccessor<?> createAccessor()
- Specified by:
createAccessorin interfacePojoModelCompositeElement- Returns:
- An accessor able to retrieve this element from an object, provided it has the right type.
-
isAssignableTo
public boolean isAssignableTo(Class<?> clazz)
- Specified by:
isAssignableToin interfacePojoModelElement- Parameters:
clazz- AClass.- Returns:
trueif instances of the given class can be assigned to this element,falseotherwise.
-
property
public org.hibernate.search.mapper.pojo.model.impl.PojoModelNestedCompositeElement<?,?> property(String relativeFieldName)
- Specified by:
propertyin interfacePojoModelCompositeElement- Parameters:
relativeFieldName- The name of a property.- Returns:
- A element representing the given property on the current element.
-
properties
public Collection<? extends PojoModelProperty> properties()
- Specified by:
propertiesin interfacePojoModelCompositeElement- Returns:
- A collection of all properties of the current element.
-
hasDependency
public boolean hasDependency()
-
hasNonRootDependency
public boolean hasNonRootDependency()
-
-