Class EntityLinkTree.EntityLinkNode
java.lang.Object
com.flowable.platform.common.entitylink.EntityLinkTree.EntityLinkNode
- Enclosing class:
- EntityLinkTree
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<EntityLinkTree.Scope,EntityLinkTree.EntityLinkNode> protected EntityLinkTree.EntityLinkNodeprotected final EntityLinkTree.Scope -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voiddoForEveryChild(int currentLevel, EntityLinkTree.EntityLinkNode node, BiConsumer<Integer, EntityLinkTree.EntityLinkNode> childLevelConsumer) voiddoForEveryChild(BiConsumer<Integer, EntityLinkTree.EntityLinkNode> childLevelConsumer) Iterate over all the children in all levels and apply the consumer.booleanThe direct children of this node.The parent node of this node, ornullif 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.inthashCode()booleanisRoot()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:
trueif this node is a root node
-
getParent
The parent node of this node, ornullif 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()
-