@ProviderType public interface EffectiveNodeTypeProvider
| Modifier and Type | Method and Description |
|---|---|
EffectiveNodeType |
getEffectiveNodeType(Node targetNode)
Calculates and returns the effective node types of the given node.
|
EffectiveNodeType |
getEffectiveNodeType(Tree tree)
Calculates and returns the effective node types of the given tree.
|
boolean |
isNodeType(@NotNull java.lang.String primaryTypeName,
@NotNull java.util.Iterator<java.lang.String> mixinTypes,
@NotNull java.lang.String nodeTypeName)
Returns
true if typeName is of the specified primary node
type or mixin type, or a subtype thereof. |
boolean |
isNodeType(java.lang.String typeName,
java.lang.String superName)
Returns
true if typeName is of the specified primary node
type or mixin type, or a subtype thereof. |
boolean |
isNodeType(Tree tree,
java.lang.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, java.lang.String nodeTypeName)
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.boolean isNodeType(@NotNull
@NotNull java.lang.String primaryTypeName,
@NotNull
@NotNull java.util.Iterator<java.lang.String> mixinTypes,
@NotNull
@NotNull java.lang.String nodeTypeName)
throws NoSuchNodeTypeException,
RepositoryException
true if typeName is of the specified primary node
type or mixin type, or a subtype thereof. Returns false otherwise.primaryTypeName - the internal oak name of the node to testmixinTypes - the internal oak names of the node to test.nodeTypeName - The internal oak name of the node type to be tested.true if the specified node type is of the given node type.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(java.lang.String typeName,
java.lang.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 accessedEffectiveNodeType getEffectiveNodeType(Tree tree) throws RepositoryException
tree - the treeRepositoryException - if the type information can not be accessed,Copyright © 2010 - 2019 Adobe. All Rights Reserved