Class DefinitionBuilderFactory.AbstractNodeTypeDefinitionBuilder<T>

    • Constructor Detail

      • AbstractNodeTypeDefinitionBuilder

        public AbstractNodeTypeDefinitionBuilder()
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
                     throws javax.jcr.RepositoryException
        Set the name of the node type definition being built
        Parameters:
        name -
        Throws:
        javax.jcr.RepositoryException - if the name is not valid
        See Also:
        NodeTypeDefinition.getName()
      • getName

        public java.lang.String getName()
        Returns the name of the node type definition being built
        Returns:
      • addSupertype

        public abstract void addSupertype​(java.lang.String name)
                                   throws javax.jcr.RepositoryException
        Add the given name to the set of supertypes of the node type definition being built
        Parameters:
        name - name of the the supertype
        Throws:
        javax.jcr.RepositoryException - if the name is not valid
        See Also:
        NodeTypeDefinition.getDeclaredSupertypeNames()
      • setMixin

        public void setMixin​(boolean isMixin)
                      throws javax.jcr.RepositoryException
        Parameters:
        isMixin - true if building a mixin node type definition; false otherwise.
        Throws:
        javax.jcr.RepositoryException
        See Also:
        NodeTypeDefinition.isMixin()
      • setOrderableChildNodes

        public void setOrderableChildNodes​(boolean isOrderable)
                                    throws javax.jcr.RepositoryException
        Parameters:
        isOrderable - true if building a node type having orderable child nodes; false otherwise.
        Throws:
        javax.jcr.RepositoryException
        See Also:
        NodeTypeDefinition.hasOrderableChildNodes()
      • setPrimaryItemName

        public abstract void setPrimaryItemName​(java.lang.String name)
                                         throws javax.jcr.RepositoryException
        Parameters:
        name - the name of the primary item.
        Throws:
        javax.jcr.RepositoryException
        See Also:
        NodeTypeDefinition.getPrimaryItemName()
      • setAbstract

        public void setAbstract​(boolean isAbstract)
                         throws javax.jcr.RepositoryException
        Parameters:
        isAbstract - true if building a node type that is abstract.
        Throws:
        javax.jcr.RepositoryException
        See Also:
        NodeTypeDefinition.isAbstract()
      • setQueryable

        public void setQueryable​(boolean queryable)
                          throws javax.jcr.RepositoryException
        Parameters:
        queryable - true if building a node type that is queryable
        Throws:
        javax.jcr.RepositoryException
        See Also:
        NodeTypeDefinition.isQueryable()
      • build

        public abstract T build()
                         throws javax.jcr.RepositoryException
        Build this node type definition
        Returns:
        Throws:
        javax.jcr.RepositoryException