Interface NodeTypeRegistry

  • All Known Implementing Classes:
    NodeTypeRegistryImpl

    public interface NodeTypeRegistry
    NodeTypeRegistry...
    • Method Detail

      • getNodeTypeDefinition

        org.apache.jackrabbit.spi.QNodeTypeDefinition getNodeTypeDefinition​(org.apache.jackrabbit.spi.Name nodeTypeName)
                                                                     throws NoSuchNodeTypeException
        Returns the node type definition of the node type with the given name.
        Parameters:
        nodeTypeName - name of node type whose definition should be returned.
        Returns:
        the node type definition of the node type with the given name.
        Throws:
        NoSuchNodeTypeException - if a node type with the given name does not exist
      • addListener

        void addListener​(NodeTypeRegistryListener listener)
        Add a NodeTypeRegistryListener
        Parameters:
        listener - the new listener to be informed on (un)registration of node types
      • removeListener

        void removeListener​(NodeTypeRegistryListener listener)
        Remove a NodeTypeRegistryListener
        Parameters:
        listener - an existing listener
      • isRegistered

        boolean isRegistered​(org.apache.jackrabbit.spi.Name ntName)
        Parameters:
        ntName -
        Returns:
      • getRegisteredNodeTypes

        org.apache.jackrabbit.spi.Name[] getRegisteredNodeTypes()
                                                         throws RepositoryException
        Returns the names of all registered node types. That includes primary and mixin node types.
        Returns:
        the names of all registered node types.
        Throws:
        RepositoryException