Class NodeDefinitionImpl

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

    public class NodeDefinitionImpl
    extends java.lang.Object
    implements javax.jcr.nodetype.NodeDefinition
    This class implements the NodeDefinition interface. All method calls are delegated to the wrapped QNodeDefinition, performing the translation from Names to JCR names where necessary.
    • Constructor Detail

      • NodeDefinitionImpl

        public NodeDefinitionImpl​(QItemDefinition itemDef,
                                  NamePathResolver resolver)
        Constructor to create a definition that is based on a template.
        Parameters:
        itemDef - item definition
        resolver -
    • Method Detail

      • unwrap

        public QNodeDefinition unwrap()
        Returns the wrapped node definition.
        Returns:
        the wrapped node definition.
      • allowsSameNameSiblings

        public boolean allowsSameNameSiblings()
        Specified by:
        allowsSameNameSiblings in interface javax.jcr.nodetype.NodeDefinition
      • getDefaultPrimaryTypeName

        public java.lang.String getDefaultPrimaryTypeName()
        Specified by:
        getDefaultPrimaryTypeName in interface javax.jcr.nodetype.NodeDefinition
        Since:
        JCR 2.0
        See Also:
        NodeDefinition.getDefaultPrimaryTypeName()
      • getDefaultPrimaryType

        public javax.jcr.nodetype.NodeType getDefaultPrimaryType()
        Specified by:
        getDefaultPrimaryType in interface javax.jcr.nodetype.NodeDefinition
      • getRequiredPrimaryTypes

        public javax.jcr.nodetype.NodeType[] getRequiredPrimaryTypes()
        Specified by:
        getRequiredPrimaryTypes in interface javax.jcr.nodetype.NodeDefinition
      • getRequiredPrimaryTypeNames

        public java.lang.String[] getRequiredPrimaryTypeNames()
        Specified by:
        getRequiredPrimaryTypeNames in interface javax.jcr.nodetype.NodeDefinition
        Since:
        JCR 2.0
        See Also:
        NodeDefinition.getRequiredPrimaryTypeNames()
      • 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