* @package phpcr * @subpackage nodetype */ interface NodeTypeManager { /** * Returns the named node type. *

* Throws a NoSuchNodeTypeException if a node type by that name does not exist. *

* Throws a RepositoryException if another error occurs. * * @param nodeTypeName the name of an existing node type. * @return A NodeType object. * @throws NoSuchNodeTypeException if no node type by the given name exists. * @throws RepositoryException if another error occurs. */ public function getNodeType( $nodeTypeName ); /** * Returns an iterator over all available node types (primary and mixin). * * @return An NodeTypeIterator. * @throws RepositoryException if an error occurs. */ public function getAllNodeTypes(); /** * Returns an iterator over all available primary node types. * * @return An NodeTypeIterator. * @throws RepositoryException if an error occurs. */ public function getPrimaryNodeTypes(); /** * Returns an iterator over all available mixin node types. * If none are available, an empty iterator is returned. * * @return An NodeTypeIterator. * @throws RepositoryException if an error occurs. */ public function getMixinNodeTypes(); } ?>