public class NodeTypeDefinitionFactory
extends java.lang.Object
NodeTypeDefinitionFactory can be used to convert the internal
SPI node type definitions to JCR NodeTypeDefinitions.| Constructor and Description |
|---|
NodeTypeDefinitionFactory(javax.jcr.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<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. |
public NodeTypeDefinitionFactory(javax.jcr.Session session)
throws javax.jcr.RepositoryException
session - repository session.javax.jcr.RepositoryException - if an error occurs.public java.util.List<javax.jcr.nodetype.NodeTypeDefinition> create(java.util.Collection<QNodeTypeDefinition> defs) throws javax.jcr.RepositoryException
JCR node type definitions
from a collection of QNodeTypeDefinition.defs - the SPI node type definitions.javax.jcr.RepositoryException - if an error occurs.public javax.jcr.nodetype.NodeTypeDefinition create(QNodeTypeDefinition qNtd) throws javax.jcr.RepositoryException
QNodeTypeDefinition.qNtd - A SPI node type definition.javax.jcr.RepositoryException - if an error occurs.public javax.jcr.nodetype.NodeDefinition create(QNodeDefinition qNd) throws javax.jcr.RepositoryException
QNodeDefinition.qNd - A node definition.javax.jcr.RepositoryException - if an error occurs.public javax.jcr.nodetype.PropertyDefinition create(QPropertyDefinition qPd) throws javax.jcr.RepositoryException
QPropertyDefinition.qPd - A SPI property definition.javax.jcr.RepositoryException - if an error occurs.Copyright © 2010 - 2025 Adobe. All Rights Reserved