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 Details

    • createAccessor

      public final <T> PojoElementAccessor<T> createAccessor(Class<T> requestedType)
      Specified by:
      createAccessor in interface PojoModelCompositeElement
      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:
      createAccessor in interface PojoModelCompositeElement
      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:
      isAssignableTo in interface PojoModelElement
      Parameters:
      clazz - A Class.
      Returns:
      true if instances of the given class can be assigned to this element, false otherwise.
    • rawType

      public Class<?> rawType()
      Specified by:
      rawType in interface PojoModelElement
      Returns:
      The Class representing the raw type of this element.
    • property

      public org.hibernate.search.mapper.pojo.model.impl.PojoModelNestedCompositeElement<?,?> property(String relativeFieldName)
      Specified by:
      property in interface PojoModelCompositeElement
      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:
      properties in interface PojoModelCompositeElement
      Returns:
      A collection of all properties of the current element.
    • hasDependency

      public boolean hasDependency()
    • hasNonRootDependency

      public boolean hasNonRootDependency()