|
||||||||||
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(Collection ntDefs)
Same as except
that a collection of NodeTypeDef s is registered instead of
just one. |
void |
removeListener(NodeTypeRegistryListener listener)
Remove a NodeTypeRegistryListener |
EffectiveNodeType |
reregisterNodeType(QNodeTypeDefinition ntd)
|
void |
unregisterNodeType(Name nodeTypeName)
|
void |
unregisterNodeTypes(Collection nodeTypeNames)
Same as except
that a set of node types is unregistered instead of just one. |
Method Detail |
---|
QNodeTypeDefinition getNodeTypeDefinition(Name nodeTypeName) throws NoSuchNodeTypeException
nodeTypeName
- name of node type whose definition should be returned.
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 RepositoryException
RepositoryException
EffectiveNodeType registerNodeType(QNodeTypeDefinition ntDef) throws InvalidNodeTypeDefException, 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
RepositoryException
void registerNodeTypes(Collection ntDefs) throws InvalidNodeTypeDefException, RepositoryException
registerNodeType(QNodeTypeDefinition)
except
that a collection of NodeTypeDef
s 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
RepositoryException
void unregisterNodeType(Name nodeTypeName) throws NoSuchNodeTypeException, RepositoryException
nodeTypeName
-
NoSuchNodeTypeException
RepositoryException
void unregisterNodeTypes(Collection nodeTypeNames) throws NoSuchNodeTypeException, 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
NoSuchNodeTypeException
- if any of the specified names does not
denote a registered node type.
RepositoryException
- if another error occursunregisterNodeType(Name)
EffectiveNodeType reregisterNodeType(QNodeTypeDefinition ntd) throws NoSuchNodeTypeException, InvalidNodeTypeDefException, RepositoryException
ntd
-
NoSuchNodeTypeException
InvalidNodeTypeDefException
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |