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
Modifier and TypeMethodDescriptionfinal <T> PojoElementAccessor<T>createAccessor(Class<T> requestedType) booleanbooleanbooleanisAssignableTo(Class<?> clazz) Collection<? extends PojoModelProperty>org.hibernate.search.mapper.pojo.model.impl.PojoModelNestedCompositeElement<?,?> Class<?>rawType()
-
Method Details
-
createAccessor
- 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
- Specified by:
createAccessorin interfacePojoModelCompositeElement- Returns:
- An accessor able to retrieve this element from an object, provided it has the right type.
-
isAssignableTo
- Specified by:
isAssignableToin interfacePojoModelElement- Parameters:
clazz- AClass.- Returns:
trueif instances of the given class can be assigned to this element,falseotherwise.
-
rawType
- Specified by:
rawTypein interfacePojoModelElement- Returns:
- The
Classrepresenting the raw type of this element.
-
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
- Specified by:
propertiesin interfacePojoModelCompositeElement- Returns:
- A collection of all properties of the current element.
-
hasDependency
public boolean hasDependency() -
hasNonRootDependency
public boolean hasNonRootDependency()
-