|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.core.nodetype.NodeTypeManagerImpl
A NodeTypeManagerImpl implements a session dependant
NodeTypeManager.
| Field Summary |
| Fields inherited from interface org.apache.jackrabbit.api.JackrabbitNodeTypeManager |
TEXT_X_JCR_CND, TEXT_XML |
| Constructor Summary | |
NodeTypeManagerImpl(NodeTypeRegistry ntReg,
NamespaceResolver nsResolver)
Creates a new NodeTypeManagerImpl instance. |
|
| Method Summary | |
void |
dump(PrintStream ps)
Dumps the state of this instance in a human readable format for diagnostic purposes. |
NodeTypeIterator |
getAllNodeTypes()
|
NodeTypeIterator |
getMixinNodeTypes()
|
NodeDefinitionImpl |
getNodeDefinition(NodeDefId id)
|
NodeTypeImpl |
getNodeType(QName name)
|
NodeType |
getNodeType(String nodeTypeName)
|
NodeTypeRegistry |
getNodeTypeRegistry()
|
NodeTypeIterator |
getPrimaryNodeTypes()
|
PropertyDefinitionImpl |
getPropertyDefinition(PropDefId id)
|
NodeDefinitionImpl |
getRootNodeDefinition()
|
void |
nodeTypeRegistered(QName ntName)
Called when a node type has been registered. |
void |
nodeTypeReRegistered(QName ntName)
Called when a node type has been re-registered. |
void |
nodeTypeUnregistered(QName ntName)
Called when a node type has been deregistered. |
NodeType[] |
registerNodeTypes(InputSource in)
Registers the node types defined in the given XML stream. |
NodeType[] |
registerNodeTypes(InputStream in,
String contentType)
Registers node types from the given input stream of the given type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NodeTypeManagerImpl(NodeTypeRegistry ntReg,
NamespaceResolver nsResolver)
NodeTypeManagerImpl instance.
ntReg - node type registrynsResolver - namespace resolver| Method Detail |
public NodeDefinitionImpl getRootNodeDefinition()
public NodeDefinitionImpl getNodeDefinition(NodeDefId id)
id -
public PropertyDefinitionImpl getPropertyDefinition(PropDefId id)
id -
public NodeTypeImpl getNodeType(QName name)
throws NoSuchNodeTypeException
name -
NoSuchNodeTypeExceptionpublic NodeTypeRegistry getNodeTypeRegistry()
public void nodeTypeRegistered(QName ntName)
nodeTypeRegistered in interface NodeTypeRegistryListenerntName - name of the node type that has been registeredpublic void nodeTypeReRegistered(QName ntName)
nodeTypeReRegistered in interface NodeTypeRegistryListenerntName - name of the node type that has been registeredpublic void nodeTypeUnregistered(QName ntName)
nodeTypeUnregistered in interface NodeTypeRegistryListenerntName - name of the node type that has been unregistered
public NodeTypeIterator getAllNodeTypes()
throws RepositoryException
getAllNodeTypes in interface NodeTypeManagerRepositoryException
public NodeTypeIterator getPrimaryNodeTypes()
throws RepositoryException
getPrimaryNodeTypes in interface NodeTypeManagerRepositoryException
public NodeTypeIterator getMixinNodeTypes()
throws RepositoryException
getMixinNodeTypes in interface NodeTypeManagerRepositoryException
public NodeType getNodeType(String nodeTypeName)
throws NoSuchNodeTypeException
getNodeType in interface NodeTypeManagerNoSuchNodeTypeException
public NodeType[] registerNodeTypes(InputSource in)
throws SAXException,
RepositoryException
NodeTypeReader and NodeTypeRegistry methods and
heuristically creates the returned node type array.
Registers node types from the given node type XML stream.
registerNodeTypes in interface JackrabbitNodeTypeManagerin - node type XML stream
RepositoryException - if the node types are invalid or another
repository error occurs
SAXException - if the XML stream could not be read or parsed
public NodeType[] registerNodeTypes(InputStream in,
String contentType)
throws IOException,
RepositoryException
registerNodeTypes in interface JackrabbitNodeTypeManagerin - node type streamcontentType - type of the input stream
IOException - if the input stream could not be read or parsed
RepositoryException - if the node types are invalid or another
repository error occurspublic void dump(PrintStream ps)
dump in interface Dumpableps - stream to dump state to
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||