Class NodeTypeDefinitionFactory
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.nodetype.NodeTypeDefinitionFactory
-
public class NodeTypeDefinitionFactory extends java.lang.ObjectNodeTypeDefinitionFactorycan be used to convert the internal SPI node type definitions to JCRNodeTypeDefinitions.
-
-
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 ofJCR node type definitionsfrom a collection ofQNodeTypeDefinition.javax.jcr.nodetype.NodeDefinitioncreate(QNodeDefinition qNd)Create a new JCR node definition from the givenQNodeDefinition.javax.jcr.nodetype.NodeTypeDefinitioncreate(QNodeTypeDefinition qNtd)Create a new JCR node type definition from the givenQNodeTypeDefinition.javax.jcr.nodetype.PropertyDefinitioncreate(QPropertyDefinition qPd)Create a new JCR property definition from the givenQPropertyDefinition.
-
-
-
Constructor Detail
-
NodeTypeDefinitionFactory
public NodeTypeDefinitionFactory(javax.jcr.Session session) throws javax.jcr.RepositoryExceptionCreates 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 ofJCR node type definitionsfrom a collection ofQNodeTypeDefinition.- 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 givenQNodeTypeDefinition.- 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 givenQNodeDefinition.- 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 givenQPropertyDefinition.- Parameters:
qPd- A SPI property definition.- Returns:
- the corresponding JCR property definition.
- Throws:
javax.jcr.RepositoryException- if an error occurs.
-
-