T - The type of the node for which this class is the closing pair.public abstract class JoiningNodeBase<T> extends NodeBase
Join and DecisionJoin.| Modifier and Type | Method and Description |
|---|---|
protected void |
addChild(NodeBase child)
Adds a child to this
NodeBase object. |
void |
addParent(NodeBase parent)
Adds the provided node as a parent of this
NodeBase object. |
void |
addParentDefaultConditional(Decision parent)
Adds the provided node as the default conditional parent of this
NodeBase object. |
void |
addParentWithCondition(Decision parent,
Condition condition)
Adds the provided node as a conditional parent of this
NodeBase object. |
void |
clearParents()
Removes all parents (whether or not conditional) of this
NodeBase object. |
NodeBase |
getChild() |
List<NodeBase> |
getChildren()
Returns all the children (whether conditional or not) of this
NodeBase object. |
List<NodeBase> |
getParents()
Returns an unmodifiable list of the parents of this node.
|
protected void |
removeChild(NodeBase child)
Removes the specified child from this
NodeBase object. |
void |
removeParent(NodeBase parent)
Removes a parent (whether or not conditional).
|
public List<NodeBase> getParents()
public void addParent(NodeBase parent)
NodeBaseNodeBase object.public void addParentWithCondition(Decision parent, Condition condition)
NodeBaseNodeBase object.addParentWithCondition in class NodeBaseparent - The new conditional parent of this NodeBase object.condition - The condition which must be true in addition the parent completing successfully for this node
to be executed.public void addParentDefaultConditional(Decision parent)
NodeBaseNodeBase object.addParentDefaultConditional in class NodeBaseparent - The new conditional parent of this NodeBase object.public void removeParent(NodeBase parent)
NodeBaseremoveParent in class NodeBaseparent - The parent to remove.public void clearParents()
NodeBaseNodeBase object.clearParents in class NodeBasepublic List<NodeBase> getChildren()
NodeBaseNodeBase object.getChildren in class NodeBaseNodeBase object.public NodeBase getChild()
protected void addChild(NodeBase child)
NodeBaseNodeBase object. This method should only be used in the implementation of the
NodeBase.addParent(NodeBase) method of a subclass of NodeBase, so that whenever a node is assigned a new
parent, the parent also knows about the child.protected void removeChild(NodeBase child)
NodeBaseNodeBase object. This method should only be used in the implementation of the
NodeBase.removeParent(NodeBase) method of a subclass of NodeBase, so that whenever a child is removed from a
node, the parent also knows about the child having been removed.removeChild in class NodeBasechild - The node to be removed as the child of this NodeBase.Copyright © 2021 Apache Software Foundation. All rights reserved.