Class AbstractPojoModelCompositeElement<V>

    • Method Detail

      • 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.
      • 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.
      • 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.
      • hasDependency

        public boolean hasDependency()
      • hasNonRootDependency

        public boolean hasNonRootDependency()