public interface EffectiveNodeTypeProvider
Modifier and Type | Method and Description |
---|---|
EffectiveNodeType |
getEffectiveNodeType(Node targetNode)
Calculates and returns the effective node types of the given node.
|
boolean |
isNodeType(String typeName,
String superName)
Returns
true if typeName is of the specified primary node
type or mixin type, or a subtype thereof. |
boolean |
isNodeType(Tree tree,
String nodeTypeName)
Returns
true if this tree is of the specified primary node
type or mixin type, or a subtype thereof respecting the effective node
type of the tree . |
boolean isNodeType(Tree tree, String nodeTypeName) throws NoSuchNodeTypeException, RepositoryException
true
if this tree is of the specified primary node
type or mixin type, or a subtype thereof respecting the effective node
type of the tree
. Returns false
otherwise.tree
- The tree to be tested.nodeTypeName
- The internal oak name of the node type to be tested.NoSuchNodeTypeException
- If the specified node type name doesn't
refer to an existing node type.RepositoryException
- If the given node type name is invalid or if
some other error occurs.boolean isNodeType(String typeName, String superName)
true
if typeName
is of the specified primary node
type or mixin type, or a subtype thereof. Returns false
otherwise.typeName
- the internal oak name of the node type to testsuperName
- The internal oak name of the super type to be tested for.true
if the specified node type is of the given node type.EffectiveNodeType getEffectiveNodeType(Node targetNode) throws RepositoryException
targetNode
- the node for which the types should be calculated.RepositoryException
- if the type information can not be accessed"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"