|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NodeTypeRegistry
NodeTypeRegistry...
| Method Summary | |
|---|---|
void |
addListener(NodeTypeRegistryListener listener)
Add a NodeTypeRegistryListener |
QNodeTypeDefinition |
getNodeTypeDefinition(Name nodeTypeName)
Returns the node type definition of the node type with the given name. |
Name[] |
getRegisteredNodeTypes()
Returns the names of all registered node types. |
boolean |
isRegistered(Name ntName)
|
EffectiveNodeType |
registerNodeType(QNodeTypeDefinition ntDef)
Validates the NodeTypeDef and returns
a registered EffectiveNodeType instance. |
void |
registerNodeTypes(java.util.Collection ntDefs)
Same as except
that a collection of NodeTypeDefs is registered instead of
just one. |
void |
removeListener(NodeTypeRegistryListener listener)
Remove a NodeTypeRegistryListener |
EffectiveNodeType |
reregisterNodeType(QNodeTypeDefinition ntd)
|
void |
unregisterNodeType(Name nodeTypeName)
|
void |
unregisterNodeTypes(java.util.Collection nodeTypeNames)
Same as except
that a set of node types is unregistered instead of just one. |
| Method Detail |
|---|
QNodeTypeDefinition getNodeTypeDefinition(Name nodeTypeName)
throws javax.jcr.nodetype.NoSuchNodeTypeException
nodeTypeName - name of node type whose definition should be returned.
javax.jcr.nodetype.NoSuchNodeTypeException - if a node type with the given name
does not existvoid addListener(NodeTypeRegistryListener listener)
NodeTypeRegistryListener
listener - the new listener to be informed on (un)registration
of node typesvoid removeListener(NodeTypeRegistryListener listener)
NodeTypeRegistryListener
listener - an existing listenerboolean isRegistered(Name ntName)
ntName -
Name[] getRegisteredNodeTypes()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
EffectiveNodeType registerNodeType(QNodeTypeDefinition ntDef)
throws InvalidNodeTypeDefException,
javax.jcr.RepositoryException
NodeTypeDef and returns
a registered EffectiveNodeType instance.
The validation includes the following checks:
ntDef - the definition of the new node type
EffectiveNodeType instance
InvalidNodeTypeDefException
javax.jcr.RepositoryException
void registerNodeTypes(java.util.Collection ntDefs)
throws InvalidNodeTypeDefException,
javax.jcr.RepositoryException
registerNodeType(QNodeTypeDefinition) except
that a collection of NodeTypeDefs is registered instead of
just one.
This method can be used to register a set of node types that have
dependencies on each other.
Note that in the case an exception is thrown, some node types might have
been nevertheless successfully registered.
ntDefs - a collection of NodeTypeDefs
- Throws:
InvalidNodeTypeDefException
javax.jcr.RepositoryException
void unregisterNodeType(Name nodeTypeName)
throws javax.jcr.nodetype.NoSuchNodeTypeException,
javax.jcr.RepositoryException
nodeTypeName -
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.RepositoryException
void unregisterNodeTypes(java.util.Collection nodeTypeNames)
throws javax.jcr.nodetype.NoSuchNodeTypeException,
javax.jcr.RepositoryException
unregisterNodeType(Name) except
that a set of node types is unregistered instead of just one.
This method can be used to unregister a set of node types that depend on
each other.
nodeTypeNames - a collection of Name objects denoting the
node types to be unregistered
javax.jcr.nodetype.NoSuchNodeTypeException - if any of the specified names does not
denote a registered node type.
javax.jcr.RepositoryException - if another error occursunregisterNodeType(Name)
EffectiveNodeType reregisterNodeType(QNodeTypeDefinition ntd)
throws javax.jcr.nodetype.NoSuchNodeTypeException,
InvalidNodeTypeDefException,
javax.jcr.RepositoryException
ntd -
javax.jcr.nodetype.NoSuchNodeTypeException
InvalidNodeTypeDefException
javax.jcr.RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||