public interface NodeTypeStorage
NodeTypeStorage
provides means for storing QNodeTypeDefinition
s.Modifier and Type | Method and Description |
---|---|
java.util.Iterator<QNodeTypeDefinition> |
getAllDefinitions()
Returns an Iterator over all node type definitions registered.
|
java.util.Iterator<QNodeTypeDefinition> |
getDefinitions(Name[] nodeTypeNames)
Returns the
QNodeTypeDefinition s for the given node type
names. |
void |
registerNodeTypes(QNodeTypeDefinition[] nodeTypeDefs,
boolean allowUpdate)
Add all
QNodeTypeDefinition s provided to the store. |
void |
unregisterNodeTypes(Name[] nodeTypeNames)
Remove all
QNodeTypeDefinition s provided from the store. |
java.util.Iterator<QNodeTypeDefinition> getAllDefinitions() throws RepositoryException
RepositoryException
java.util.Iterator<QNodeTypeDefinition> getDefinitions(Name[] nodeTypeNames) throws NoSuchNodeTypeException, RepositoryException
QNodeTypeDefinition
s for the given node type
names. The implementation is free to return additional definitions e.g.
dependencies.nodeTypeNames
- NoSuchNodeTypeException
RepositoryException
void registerNodeTypes(QNodeTypeDefinition[] nodeTypeDefs, boolean allowUpdate) throws RepositoryException, NodeTypeExistsException
QNodeTypeDefinition
s provided to the store. If allowUpdate
is true
previously registered node QNodeTypeDefinitions will be overwritten.nodeTypeDefs
- QNodeTypeDefinitions to add to the storeallowUpdate
- Whether to overwrite existing QNodeTypeDefinitionsRepositoryException
NodeTypeExistsException
- If allowUpdate
is true
and a QNodeTypeDefinitions
of that name already exists. In this case, none of the provided QNodeTypeDefinitions is registered.void unregisterNodeTypes(Name[] nodeTypeNames) throws NoSuchNodeTypeException, RepositoryException
QNodeTypeDefinition
s provided from the store.nodeTypeNames
- QNodeTypeDefinitions to remove from the storeRepositoryException
NoSuchNodeTypeException
- If any of the QNodeTypeDefinitions does not exist. In this case
none of the provided is unregistered."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"