Class PropertyDefinitionImpl

  • All Implemented Interfaces:
    javax.jcr.nodetype.ItemDefinition, javax.jcr.nodetype.PropertyDefinition

    public class PropertyDefinitionImpl
    extends java.lang.Object
    implements javax.jcr.nodetype.PropertyDefinition
    This class implements the PropertyDefinition interface. All method calls are delegated to the wrapped QPropertyDefinition, performing the translation from Names to JCR names (and vice versa) where necessary.
    • Constructor Detail

      • PropertyDefinitionImpl

        public PropertyDefinitionImpl​(QPropertyDefinition propDef,
                                      NamePathResolver resolver,
                                      javax.jcr.ValueFactory valueFactory)
        Package private constructor
        Parameters:
        propDef - property definition
        resolver - the name-path resolver
        valueFactory - a value factory
      • PropertyDefinitionImpl

        public PropertyDefinitionImpl​(QPropertyDefinition propDef,
                                      AbstractNodeTypeManager ntMgr,
                                      NamePathResolver resolver,
                                      javax.jcr.ValueFactory valueFactory)
        Parameters:
        propDef - underlying propdef
        ntMgr - nodetype manager
        resolver - name-path resolver
        valueFactory - value factory (for default values)
    • Method Detail

      • unwrap

        public QPropertyDefinition unwrap()
        Returns the wrapped property definition.
        Returns:
        the wrapped property definition.
      • getDefaultValues

        public javax.jcr.Value[] getDefaultValues()
        Specified by:
        getDefaultValues in interface javax.jcr.nodetype.PropertyDefinition
      • getRequiredType

        public int getRequiredType()
        Specified by:
        getRequiredType in interface javax.jcr.nodetype.PropertyDefinition
      • getValueConstraints

        public java.lang.String[] getValueConstraints()
        Specified by:
        getValueConstraints in interface javax.jcr.nodetype.PropertyDefinition
      • isMultiple

        public boolean isMultiple()
        Specified by:
        isMultiple in interface javax.jcr.nodetype.PropertyDefinition
      • getAvailableQueryOperators

        public java.lang.String[] getAvailableQueryOperators()
        Specified by:
        getAvailableQueryOperators in interface javax.jcr.nodetype.PropertyDefinition
        See Also:
        PropertyDefinition.getAvailableQueryOperators()
      • isFullTextSearchable

        public boolean isFullTextSearchable()
        Specified by:
        isFullTextSearchable in interface javax.jcr.nodetype.PropertyDefinition
        See Also:
        PropertyDefinition.isFullTextSearchable()
      • isQueryOrderable

        public boolean isQueryOrderable()
        Specified by:
        isQueryOrderable in interface javax.jcr.nodetype.PropertyDefinition
        See Also:
        PropertyDefinition.isQueryOrderable()
      • getDeclaringNodeType

        public javax.jcr.nodetype.NodeType getDeclaringNodeType()
        Specified by:
        getDeclaringNodeType in interface javax.jcr.nodetype.ItemDefinition
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface javax.jcr.nodetype.ItemDefinition
      • getOnParentVersion

        public int getOnParentVersion()
        Specified by:
        getOnParentVersion in interface javax.jcr.nodetype.ItemDefinition
      • isAutoCreated

        public boolean isAutoCreated()
        Specified by:
        isAutoCreated in interface javax.jcr.nodetype.ItemDefinition
      • isMandatory

        public boolean isMandatory()
        Specified by:
        isMandatory in interface javax.jcr.nodetype.ItemDefinition
      • isProtected

        public boolean isProtected()
        Specified by:
        isProtected in interface javax.jcr.nodetype.ItemDefinition
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object