Class NodeTypeDefinitionFactory


  • public class NodeTypeDefinitionFactory
    extends java.lang.Object
    NodeTypeDefinitionFactory can be used to convert the internal SPI node type definitions to JCR NodeTypeDefinitions.
    • Constructor Summary

      Constructors 
      Constructor Description
      NodeTypeDefinitionFactory​(javax.jcr.Session session)
      Creates a new node type definition factory that operates on the given session to create the templates.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<javax.jcr.nodetype.NodeTypeDefinition> create​(java.util.Collection<QNodeTypeDefinition> defs)
      Create a list of JCR node type definitions from a collection of QNodeTypeDefinition.
      javax.jcr.nodetype.NodeDefinition create​(QNodeDefinition qNd)
      Create a new JCR node definition from the given QNodeDefinition.
      javax.jcr.nodetype.NodeTypeDefinition create​(QNodeTypeDefinition qNtd)
      Create a new JCR node type definition from the given QNodeTypeDefinition.
      javax.jcr.nodetype.PropertyDefinition create​(QPropertyDefinition qPd)
      Create a new JCR property definition from the given QPropertyDefinition.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NodeTypeDefinitionFactory

        public NodeTypeDefinitionFactory​(javax.jcr.Session session)
                                  throws javax.jcr.RepositoryException
        Creates a new node type definition factory that operates on the given session to create the templates.
        Parameters:
        session - repository session.
        Throws:
        javax.jcr.RepositoryException - if an error occurs.
    • Method Detail

      • create

        public java.util.List<javax.jcr.nodetype.NodeTypeDefinition> create​(java.util.Collection<QNodeTypeDefinition> defs)
                                                                     throws javax.jcr.RepositoryException
        Create a list of JCR node type definitions from a collection of QNodeTypeDefinition.
        Parameters:
        defs - the SPI node type definitions.
        Returns:
        the JCR node type definitions.
        Throws:
        javax.jcr.RepositoryException - if an error occurs.
      • create

        public javax.jcr.nodetype.NodeTypeDefinition create​(QNodeTypeDefinition qNtd)
                                                     throws javax.jcr.RepositoryException
        Create a new JCR node type definition from the given QNodeTypeDefinition.
        Parameters:
        qNtd - A SPI node type definition.
        Returns:
        the corresponding JCR node type definition.
        Throws:
        javax.jcr.RepositoryException - if an error occurs.
      • create

        public javax.jcr.nodetype.NodeDefinition create​(QNodeDefinition qNd)
                                                 throws javax.jcr.RepositoryException
        Create a new JCR node definition from the given QNodeDefinition.
        Parameters:
        qNd - A node definition.
        Returns:
        The corresponding JCR node definition.
        Throws:
        javax.jcr.RepositoryException - if an error occurs.
      • create

        public javax.jcr.nodetype.PropertyDefinition create​(QPropertyDefinition qPd)
                                                     throws javax.jcr.RepositoryException
        Create a new JCR property definition from the given QPropertyDefinition.
        Parameters:
        qPd - A SPI property definition.
        Returns:
        the corresponding JCR property definition.
        Throws:
        javax.jcr.RepositoryException - if an error occurs.