public class End extends NodeBase
| Constructor and Description |
|---|
End(String name)
Create a new end node with the given name.
|
| 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 node.
|
void |
addParentDefaultConditional(Decision parent)
Adds the provided node as the default conditional parent of this node.
|
void |
addParentWithCondition(Decision parent,
Condition condition)
Adds the provided node as a conditional parent of this node.
|
void |
clearParents()
Removes all parents (whether or not conditional) of this
NodeBase object. |
List<NodeBase> |
getChildren()
Returns all the children (whether conditional or not) of this
NodeBase object. |
NodeBase |
getParent()
Returns the parent 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 End(String name)
name - The name of the new end node.public NodeBase getParent()
public void addParent(NodeBase parent)
addParent in class NodeBaseparent - The new parent of this node.IllegalStateException - if this node already has a parent.public void addParentWithCondition(Decision parent, Condition condition)
addParentWithCondition in class NodeBaseparent - The new conditional parent of this node.condition - The condition which must be true in addition the parent completing successfully for this node
to be executed.IllegalStateException - if this node already has a parent.public void addParentDefaultConditional(Decision parent)
addParentDefaultConditional in class NodeBaseparent - The new conditional parent of this node.IllegalStateException - if this node already has a parent.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.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.