org.jboss.dna.jcr
Interface JcrNodeTypeSource


public interface JcrNodeTypeSource

Interface for any potential provider of JcrNodeType definitions, the DNA implementation of NodeType. Possible sources of node type definitions include CND files, repository metadata, and mock types for testing.

See Also:
JcrWorkspace#getNodeTypeManager()

Method Summary
 org.jboss.dna.jcr.JcrNodeType findType(Name typeName)
          Finds the type with the given name and returns its definition.
 Collection<org.jboss.dna.jcr.JcrNodeType> getNodeTypes()
          Returns the list of node types provided by this source
 

Method Detail

getNodeTypes

Collection<org.jboss.dna.jcr.JcrNodeType> getNodeTypes()
Returns the list of node types provided by this source

Returns:
the list of node types provided by this source

findType

org.jboss.dna.jcr.JcrNodeType findType(Name typeName)
Finds the type with the given name and returns its definition.

Parameters:
typeName - the name of the type to return
Returns:
the type named typeName if it exists, otherwise null.


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.