Class EntityLinkTree.EntityLinkNode
java.lang.Object
com.flowable.platform.common.entitylink.EntityLinkTree.EntityLinkNode
- Enclosing class:
- EntityLinkTree
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<EntityLinkTree.Scope,
EntityLinkTree.EntityLinkNode> protected EntityLinkTree.EntityLinkNode
protected final EntityLinkTree.Scope
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
doForEveryChild
(int currentLevel, EntityLinkTree.EntityLinkNode node, BiConsumer<Integer, EntityLinkTree.EntityLinkNode> childLevelConsumer) void
doForEveryChild
(BiConsumer<Integer, EntityLinkTree.EntityLinkNode> childLevelConsumer) Iterate over all the children in all levels and apply the consumer.boolean
The direct children of this node.The parent node of this node, ornull
if this node is a root node.getRoot()
Get the root node for this node.The scope id that this node represents.The scope type that this node represents.int
hashCode()
boolean
isRoot()
Whether this node is a root node, i.e.
-
Field Details
-
scope
-
parent
-
children
-
-
Constructor Details
-
EntityLinkNode
-
EntityLinkNode
-
-
Method Details
-
getScopeId
The scope id that this node represents. -
getScopeType
The scope type that this node represents. -
getRoot
Get the root node for this node. If this node is root then it would return itself.- Returns:
- the root node
-
isRoot
public boolean isRoot()Whether this node is a root node, i.e. it has no parent- Returns:
true
if this node is a root node
-
getParent
The parent node of this node, ornull
if this node is a root node.- Returns:
- the parent node
-
getChildren
The direct children of this node.- Returns:
- collection containing the direct children of this node
-
doForEveryChild
Iterate over all the children in all levels and apply the consumer.- Parameters:
childLevelConsumer
- the consumer to be applied for every child on all levels
-
doForEveryChild
protected static void doForEveryChild(int currentLevel, EntityLinkTree.EntityLinkNode node, BiConsumer<Integer, EntityLinkTree.EntityLinkNode> childLevelConsumer) -
equals
-
hashCode
public int hashCode()
-