public class NodeTypeDefinitionFactory extends Object
NodeTypeDefinitionFactory can be used to convert the internal
SPI node type definitions to JCR NodeTypeDefinitions.| Constructor and Description |
|---|
NodeTypeDefinitionFactory(Session session)
Creates a new node type definition factory that operates on the given
session to create the templates.
|
| Modifier and Type | Method and Description |
|---|---|
List<NodeTypeDefinition> |
create(Collection<QNodeTypeDefinition> defs)
Create a list of
JCR node type definitions
from a collection of QNodeTypeDefinition. |
NodeDefinition |
create(QNodeDefinition qNd)
Create a new JCR node definition from the given
QNodeDefinition. |
NodeTypeDefinition |
create(QNodeTypeDefinition qNtd)
Create a new JCR node type definition from the given
QNodeTypeDefinition. |
PropertyDefinition |
create(QPropertyDefinition qPd)
Create a new JCR property definition from the given
QPropertyDefinition. |
public NodeTypeDefinitionFactory(Session session) throws RepositoryException
session - repository session.RepositoryException - if an error occurs.public List<NodeTypeDefinition> create(Collection<QNodeTypeDefinition> defs) throws RepositoryException
JCR node type definitions
from a collection of QNodeTypeDefinition.defs - the SPI node type definitions.RepositoryException - if an error occurs.public NodeTypeDefinition create(QNodeTypeDefinition qNtd) throws RepositoryException
QNodeTypeDefinition.qNtd - A SPI node type definition.RepositoryException - if an error occurs.public NodeDefinition create(QNodeDefinition qNd) throws RepositoryException
QNodeDefinition.qNd - A node definition.RepositoryException - if an error occurs.public PropertyDefinition create(QPropertyDefinition qPd) throws RepositoryException
QPropertyDefinition.qPd - A SPI property definition.RepositoryException - if an error occurs.Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.