org.apache.jackrabbit.jcr2spi.nodetype
Interface EffectiveNodeTypeProvider

All Known Implementing Classes:
NodeTypeRegistryImpl

public interface EffectiveNodeTypeProvider

EffectiveNodeTypeProvider...


Method Summary
 EffectiveNodeType getEffectiveNodeType(Name ntName)
          Build the EffectiveNodeType from the given NodeType name.
 EffectiveNodeType getEffectiveNodeType(Name[] ntNames)
          Build the EffectiveNodeType from the given array of NodeType names.
 EffectiveNodeType getEffectiveNodeType(Name[] ntNames, Map<Name,QNodeTypeDefinition> ntdMap)
           
 EffectiveNodeType getEffectiveNodeType(QNodeTypeDefinition ntd, Map<Name,QNodeTypeDefinition> ntdMap)
          Builds an effective node type representation from the given node type definition.
 

Method Detail

getEffectiveNodeType

EffectiveNodeType getEffectiveNodeType(Name ntName)
                                       throws NoSuchNodeTypeException
Build the EffectiveNodeType from the given NodeType name.

Parameters:
ntName -
Returns:
Throws:
NoSuchNodeTypeException

getEffectiveNodeType

EffectiveNodeType getEffectiveNodeType(Name[] ntNames)
                                       throws ConstraintViolationException,
                                              NoSuchNodeTypeException
Build the EffectiveNodeType from the given array of NodeType names.

Parameters:
ntNames -
Returns:
Throws:
ConstraintViolationException
NoSuchNodeTypeException

getEffectiveNodeType

EffectiveNodeType getEffectiveNodeType(Name[] ntNames,
                                       Map<Name,QNodeTypeDefinition> ntdMap)
                                       throws ConstraintViolationException,
                                              NoSuchNodeTypeException
Parameters:
ntNames -
ntdMap -
Returns:
Throws:
ConstraintViolationException
NoSuchNodeTypeException

getEffectiveNodeType

EffectiveNodeType getEffectiveNodeType(QNodeTypeDefinition ntd,
                                       Map<Name,QNodeTypeDefinition> ntdMap)
                                       throws ConstraintViolationException,
                                              NoSuchNodeTypeException
Builds an effective node type representation from the given node type definition. Whereas all referenced node types must exist (i.e. must be present in the specified map), the definition itself is not required to be registered.

Parameters:
ntd -
ntdMap -
Returns:
Throws:
ConstraintViolationException
NoSuchNodeTypeException


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.