Class NodeTypeDefinitionFactory


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

      • NodeTypeDefinitionFactory

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

      • create

        public NodeTypeDefinition create​(org.apache.jackrabbit.spi.QNodeTypeDefinition qNtd)
                                  throws 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:
        RepositoryException - if an error occurs.
      • create

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

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