|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.jcr2spi.nodetype.NodeTypeManagerImpl
public class NodeTypeManagerImpl
A NodeTypeManagerImpl
implements a session dependant
NodeTypeManager.
Constructor Summary | |
---|---|
NodeTypeManagerImpl(NodeTypeRegistry ntReg,
ManagerProvider mgrProvider,
ValueFactory valueFactory)
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()
|
NodeDefinition |
getNodeDefinition(QNodeDefinition def)
Retrieve the NodeDefinition for the given
QNodeDefinition . |
NodeTypeImpl |
getNodeType(Name name)
|
NodeType |
getNodeType(String nodeTypeName)
|
NodeTypeIterator |
getPrimaryNodeTypes()
|
PropertyDefinition |
getPropertyDefinition(QPropertyDefinition def)
Retrieve the PropertyDefinition for the given
QPropertyDefinition . |
boolean |
hasNodeType(Name nodeTypeName)
|
void |
nodeTypeRegistered(Name ntName)
Called when a node type has been registered. |
void |
nodeTypeReRegistered(Name ntName)
Called when a node type has been re-registered. |
void |
nodeTypeUnregistered(Name ntName)
Called when a node type has been deregistered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeTypeManagerImpl(NodeTypeRegistry ntReg, ManagerProvider mgrProvider, ValueFactory valueFactory)
NodeTypeManagerImpl
instance.
ntReg
- node type registrymgrProvider
- the manager providervalueFactory
- the JCR value factoryMethod Detail |
---|
public NodeTypeImpl getNodeType(Name name) throws NoSuchNodeTypeException
name
-
NoSuchNodeTypeException
public boolean hasNodeType(Name nodeTypeName)
nodeTypeName
-
public NodeDefinition getNodeDefinition(QNodeDefinition def)
NodeDefinition
for the given
QNodeDefinition
.
def
-
public PropertyDefinition getPropertyDefinition(QPropertyDefinition def)
PropertyDefinition
for the given
QPropertyDefinition
.
def
-
public void nodeTypeRegistered(Name ntName)
nodeTypeRegistered
in interface NodeTypeRegistryListener
ntName
- name of the node type that has been registeredpublic void nodeTypeReRegistered(Name ntName)
nodeTypeReRegistered
in interface NodeTypeRegistryListener
ntName
- name of the node type that has been registeredpublic void nodeTypeUnregistered(Name ntName)
nodeTypeUnregistered
in interface NodeTypeRegistryListener
ntName
- name of the node type that has been unregisteredpublic NodeTypeIterator getAllNodeTypes() throws RepositoryException
getAllNodeTypes
in interface NodeTypeManager
RepositoryException
public NodeTypeIterator getPrimaryNodeTypes() throws RepositoryException
getPrimaryNodeTypes
in interface NodeTypeManager
RepositoryException
public NodeTypeIterator getMixinNodeTypes() throws RepositoryException
getMixinNodeTypes
in interface NodeTypeManager
RepositoryException
public NodeType getNodeType(String nodeTypeName) throws NoSuchNodeTypeException
getNodeType
in interface NodeTypeManager
NoSuchNodeTypeException
public void dump(PrintStream ps)
dump
in interface Dumpable
ps
- stream to dump state to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |