org.priha.nodetype
Class QNodeTypeManager

java.lang.Object
  extended by org.priha.nodetype.QNodeTypeManager

public class QNodeTypeManager
extends java.lang.Object

This class is essentially a singleton per repository.

Author:
jalkanen

Nested Class Summary
static class QNodeTypeManager.Impl
          Implements the actual NodeTypeManager class, which, again, is Session-specific.
 
Method Summary
 QNodeDefinition findNodeDefinition(QName type)
          Finds a node definition from the complete array of all definitions
static QNodeTypeManager getInstance()
           
static QNodeTypeManager.Impl getManager(WorkspaceImpl ws)
           
 QNodeType getNodeType(QName qn)
          Find a QNodeType by this QName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static QNodeTypeManager getInstance()
                                    throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getManager

public static QNodeTypeManager.Impl getManager(WorkspaceImpl ws)
                                        throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

findNodeDefinition

public QNodeDefinition findNodeDefinition(QName type)
Finds a node definition from the complete array of all definitions

Parameters:
type -
Returns:

getNodeType

public QNodeType getNodeType(QName qn)
                      throws javax.jcr.nodetype.NoSuchNodeTypeException
Find a QNodeType by this QName.

Parameters:
qn - QName to look for
Returns:
A QNodeType corresponding to this QName
Throws:
javax.jcr.nodetype.NoSuchNodeTypeException - If it could not be located.