Class DefinitionBuilderFactory.AbstractItemDefinitionBuilder<T>

    • Constructor Detail

      • AbstractItemDefinitionBuilder

        public AbstractItemDefinitionBuilder()
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
                     throws javax.jcr.RepositoryException
        Parameters:
        name - the name of the child item definition being build
        Throws:
        javax.jcr.RepositoryException
        See Also:
        ItemDefinition.getName()
      • getName

        public java.lang.String getName()
        Name of the child item definition being built
        Returns:
      • setDeclaringNodeType

        public abstract void setDeclaringNodeType​(java.lang.String name)
                                           throws javax.jcr.RepositoryException
        Parameters:
        name - the name of the declaring node type.
        Throws:
        javax.jcr.RepositoryException
        See Also:
        ItemDefinition.getDeclaringNodeType()
      • setAutoCreated

        public void setAutoCreated​(boolean autocreate)
                            throws javax.jcr.RepositoryException
        Parameters:
        autocreate - true if building a 'autocreate' child item definition, false otherwise.
        Throws:
        javax.jcr.RepositoryException
        See Also:
        ItemDefinition.isAutoCreated()
      • setOnParentVersion

        public void setOnParentVersion​(int onParent)
                                throws javax.jcr.RepositoryException
        Parameters:
        onParent - the 'onParentVersion' attribute of the child item definition being built
        Throws:
        javax.jcr.RepositoryException
        See Also:
        ItemDefinition.getOnParentVersion()
      • setProtected

        public void setProtected​(boolean isProtected)
                          throws javax.jcr.RepositoryException
        Parameters:
        isProtected - true if building a 'protected' child item definition, false otherwise.
        Throws:
        javax.jcr.RepositoryException
        See Also:
        ItemDefinition.isProtected()
      • setMandatory

        public void setMandatory​(boolean isMandatory)
                          throws javax.jcr.RepositoryException
        Parameters:
        isMandatory - true if building a 'mandatory' child item definition, false otherwise.
        Throws:
        javax.jcr.RepositoryException
      • build

        public abstract void build()
                            throws javax.jcr.RepositoryException
        Build this item definition an add it to its parent node type definition
        Throws:
        javax.jcr.RepositoryException