Class QNodeTypeDefinitionImpl

  • All Implemented Interfaces:
    Serializable, org.apache.jackrabbit.spi.QNodeTypeDefinition

    public class QNodeTypeDefinitionImpl
    extends Object
    implements org.apache.jackrabbit.spi.QNodeTypeDefinition, Serializable
    QNodeTypeDefinitionImpl implements a serializable SPI node type definition.
    See Also:
    Serialized Form
    • Constructor Detail

      • QNodeTypeDefinitionImpl

        public QNodeTypeDefinitionImpl()
        Default constructor.
      • QNodeTypeDefinitionImpl

        public QNodeTypeDefinitionImpl​(org.apache.jackrabbit.spi.QNodeTypeDefinition nt)
        Copy constructor.
        Parameters:
        nt - the node type definition.
      • QNodeTypeDefinitionImpl

        public QNodeTypeDefinitionImpl​(org.apache.jackrabbit.spi.Name name,
                                       org.apache.jackrabbit.spi.Name[] supertypes,
                                       org.apache.jackrabbit.spi.Name[] supportedMixins,
                                       boolean isMixin,
                                       boolean isAbstract,
                                       boolean isQueryable,
                                       boolean hasOrderableChildNodes,
                                       org.apache.jackrabbit.spi.Name primaryItemName,
                                       org.apache.jackrabbit.spi.QPropertyDefinition[] declaredPropDefs,
                                       org.apache.jackrabbit.spi.QNodeDefinition[] declaredNodeDefs)
        Creates a new serializable SPI node type definition.
        Parameters:
        name - the name of the node type
        supertypes - the names of the supertypes
        supportedMixins - the names of supported mixins (or null)
        isMixin - if this is a mixin node type
        isAbstract - if this is an abstract node type definition.
        isQueryable - if this is a queryable node type definition.
        hasOrderableChildNodes - if this node type has orderable child nodes.
        primaryItemName - the name of the primary item, or null.
        declaredPropDefs - the declared property definitions.
        declaredNodeDefs - the declared child node definitions.
      • QNodeTypeDefinitionImpl

        public QNodeTypeDefinitionImpl​(NodeTypeDefinition def,
                                       NamePathResolver resolver,
                                       org.apache.jackrabbit.spi.QValueFactory qValueFactory)
                                throws RepositoryException
        Create a a new QNodeTypeDefinitionImpl from a JCR NodeType definition.
        Parameters:
        def - node type definition
        resolver - resolver
        qValueFactory - value factory
        Throws:
        RepositoryException - if an error occurs
    • Method Detail

      • getName

        public org.apache.jackrabbit.spi.Name getName()
        Specified by:
        getName in interface org.apache.jackrabbit.spi.QNodeTypeDefinition
      • getSupertypes

        public org.apache.jackrabbit.spi.Name[] getSupertypes()
        Specified by:
        getSupertypes in interface org.apache.jackrabbit.spi.QNodeTypeDefinition
      • isMixin

        public boolean isMixin()
        Specified by:
        isMixin in interface org.apache.jackrabbit.spi.QNodeTypeDefinition
      • isAbstract

        public boolean isAbstract()
        Specified by:
        isAbstract in interface org.apache.jackrabbit.spi.QNodeTypeDefinition
      • isQueryable

        public boolean isQueryable()
        Specified by:
        isQueryable in interface org.apache.jackrabbit.spi.QNodeTypeDefinition
      • hasOrderableChildNodes

        public boolean hasOrderableChildNodes()
        Specified by:
        hasOrderableChildNodes in interface org.apache.jackrabbit.spi.QNodeTypeDefinition
      • getPrimaryItemName

        public org.apache.jackrabbit.spi.Name getPrimaryItemName()
        Specified by:
        getPrimaryItemName in interface org.apache.jackrabbit.spi.QNodeTypeDefinition
      • getPropertyDefs

        public org.apache.jackrabbit.spi.QPropertyDefinition[] getPropertyDefs()
        Specified by:
        getPropertyDefs in interface org.apache.jackrabbit.spi.QNodeTypeDefinition
      • getChildNodeDefs

        public org.apache.jackrabbit.spi.QNodeDefinition[] getChildNodeDefs()
        Specified by:
        getChildNodeDefs in interface org.apache.jackrabbit.spi.QNodeTypeDefinition
      • getDependencies

        public Collection<org.apache.jackrabbit.spi.Name> getDependencies()
        Specified by:
        getDependencies in interface org.apache.jackrabbit.spi.QNodeTypeDefinition
      • getSupportedMixinTypes

        public org.apache.jackrabbit.spi.Name[] getSupportedMixinTypes()
        Specified by:
        getSupportedMixinTypes in interface org.apache.jackrabbit.spi.QNodeTypeDefinition
      • hashCode

        public int hashCode()
        Returns zero to satisfy the Object equals/hashCode contract. This class is mutable and not meant to be used as a hash key.
        Overrides:
        hashCode in class Object
        Returns:
        always zero
        See Also:
        Object.hashCode()