@ProviderType public interface EffectiveNodeTypeProvider
| Modifier and Type | Method and Description |
|---|---|
@NotNull EffectiveNodeType |
getEffectiveNodeType(@NotNull Node targetNode)
Calculates and returns the effective node types of the given node.
|
@NotNull EffectiveNodeType |
getEffectiveNodeType(@NotNull Tree tree)
Calculates and returns the effective node types of the given tree.
|
boolean |
isNodeType(@NotNull String primaryTypeName,
@NotNull Iterable<String> mixinTypes,
@NotNull String nodeTypeName)
Returns
true if typeName is of the specified primary node
type or mixin type, or a subtype thereof. |
default boolean |
isNodeType(@NotNull String primaryTypeName,
@NotNull Iterator<String> mixinTypes,
@NotNull String nodeTypeName)
Deprecated.
use
isNodeType(String, Iterable, String) instead |
boolean |
isNodeType(@NotNull String typeName,
@NotNull String superName)
Returns
true if typeName is of the specified primary node
type or mixin type, or a subtype thereof. |
boolean |
isNodeType(@NotNull Tree tree,
@NotNull 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(@NotNull
@NotNull Tree tree,
@NotNull
@NotNull 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.
Note: caution must be taken while calling this api because it doesn't
offer the same strict guarantees as the Node#isNodeType(String)
method in the case where the session doesn't have access to the
jcr:mixinTypes property.tree - The tree to be tested.nodeTypeName - The internal oak name of the node type to be tested.@Deprecated default boolean isNodeType(@NotNull @NotNull String primaryTypeName, @NotNull @NotNull Iterator<String> mixinTypes, @NotNull @NotNull String nodeTypeName) throws NoSuchNodeTypeException, RepositoryException
isNodeType(String, Iterable, String) insteadtrue 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(@NotNull
@NotNull String primaryTypeName,
@NotNull
@NotNull Iterable<String> mixinTypes,
@NotNull
@NotNull 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(@NotNull
@NotNull String typeName,
@NotNull
@NotNull 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.@NotNull @NotNull EffectiveNodeType getEffectiveNodeType(@NotNull @NotNull Node targetNode) throws RepositoryException
targetNode - the node for which the types should be calculated.RepositoryException - if the type information can not be accessed@NotNull @NotNull EffectiveNodeType getEffectiveNodeType(@NotNull @NotNull Tree tree) throws RepositoryException
tree - the treeRepositoryException - if the type information can not be accessed,Copyright © 2010 - 2020 Adobe. All Rights Reserved