public class NodeTypeDefinitionFactory
extends java.lang.Object
NodeTypeDefinitionFactory
can be used to convert the internal
SPI node type definitions to JCR NodeTypeDefinition
s.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 |
---|---|
java.util.List<NodeTypeDefinition> |
create(java.util.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 java.util.List<NodeTypeDefinition> create(java.util.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 © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"