public abstract class AbstractNodeTypeManager
extends java.lang.Object
AbstractNodeTypeManager
covers creation of node type templates
and definition templates.Constructor and Description |
---|
AbstractNodeTypeManager() |
Modifier and Type | Method and Description |
---|---|
NodeDefinitionTemplate |
createNodeDefinitionTemplate() |
NodeTypeTemplate |
createNodeTypeTemplate() |
NodeTypeTemplate |
createNodeTypeTemplate(NodeTypeDefinition ntd) |
PropertyDefinitionTemplate |
createPropertyDefinitionTemplate() |
abstract NamePathResolver |
getNamePathResolver()
Returns the NamePathResolver used to validate JCR names.
|
abstract NodeDefinition |
getNodeDefinition(QNodeDefinition nd)
Retrieve the
NodeDefinition for the given
QNodeDefinition . |
abstract NodeType |
getNodeType(Name ntName)
Return the node type with the specified
ntName . |
abstract PropertyDefinition |
getPropertyDefinition(QPropertyDefinition pd)
Retrieve the
PropertyDefinition for the given
QPropertyDefinition . |
NodeType |
registerNodeType(NodeTypeDefinition ntd,
boolean allowUpdate) |
void |
unregisterNodeType(java.lang.String name) |
public abstract NodeType getNodeType(Name ntName) throws NoSuchNodeTypeException
ntName
.ntName
- Name of the node type to be returned.ntName
.NoSuchNodeTypeException
- If no such node type exists.public abstract NodeDefinition getNodeDefinition(QNodeDefinition nd)
NodeDefinition
for the given
QNodeDefinition
.nd
- the QNodeDefinition.public abstract PropertyDefinition getPropertyDefinition(QPropertyDefinition pd)
PropertyDefinition
for the given
QPropertyDefinition
.pd
- the QPropertyDefinition.public abstract NamePathResolver getNamePathResolver()
public NodeTypeTemplate createNodeTypeTemplate() throws UnsupportedRepositoryOperationException, RepositoryException
UnsupportedRepositoryOperationException
RepositoryException
javax.jcr.nodetype.NodeTypeManager#createNodeTypeTemplate()
public NodeTypeTemplate createNodeTypeTemplate(NodeTypeDefinition ntd) throws UnsupportedRepositoryOperationException, RepositoryException
UnsupportedRepositoryOperationException
RepositoryException
javax.jcr.nodetype.NodeTypeManager#createNodeTypeTemplate(NodeTypeDefinition)
public NodeDefinitionTemplate createNodeDefinitionTemplate() throws UnsupportedRepositoryOperationException, RepositoryException
UnsupportedRepositoryOperationException
RepositoryException
javax.jcr.nodetype.NodeTypeManager#createNodeDefinitionTemplate()
public PropertyDefinitionTemplate createPropertyDefinitionTemplate() throws UnsupportedRepositoryOperationException, RepositoryException
UnsupportedRepositoryOperationException
RepositoryException
javax.jcr.nodetype.NodeTypeManager#createPropertyDefinitionTemplate()
public NodeType registerNodeType(NodeTypeDefinition ntd, boolean allowUpdate) throws RepositoryException
RepositoryException
javax.jcr.nodetype.NodeTypeManager#registerNodeType(NodeTypeDefinition, boolean)
public void unregisterNodeType(java.lang.String name) throws UnsupportedRepositoryOperationException, NoSuchNodeTypeException, RepositoryException
UnsupportedRepositoryOperationException
NoSuchNodeTypeException
RepositoryException
javax.jcr.nodetype.NodeTypeManager#unregisterNodeType(String)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"