|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.spi.commons.nodetype.NodeTypeDefinitionFactory
public class NodeTypeDefinitionFactory
NodeTypeDefinitionFactory
can be used to convert the internal
SPI node type definitions to JCR NodeTypeDefinition
s.
Constructor Summary | |
---|---|
NodeTypeDefinitionFactory(Session session)
Creates a new node type definition factory that operates on the given sesion to create the templates. |
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeTypeDefinitionFactory(Session session) throws RepositoryException
session
- repository session.
RepositoryException
- if an error occurs.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |