Interface ScenarioNode
- All Known Subinterfaces:
AlternativeCondition
,ExceptionType
,FlowStep
,Scenario
,ScenarioNodeEnd
,ScenarioNodeStart
@OpenApiAll
public interface ScenarioNode
General node in the scenario. All specific nodes in scenario derive from it.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates if node belongs to included/extending use case.Gets element which represents this node.getEnd()
Gets scenario node end.Gets human-readable representation of scenario node.getName()
Gets name of the node.Gets parent of the scenario node.List<? extends ScenarioNode>
Gets container in the parent to which this node belongs.getStart()
Gets scenario node start.boolean
Indicates if node is editable.void
Sets name for the scenario node.
-
Method Details
-
getElement
Element getElement()Gets element which represents this node.- Returns:
- element which represents this node.
-
belongsToIncludedExtending
boolean belongsToIncludedExtending()Indicates if node belongs to included/extending use case.- Returns:
- true if node belongs to included/extending use case, false otherwise.
-
setName
Sets name for the scenario node.- Parameters:
name
- name to set.
-
getName
String getName()Gets name of the node.- Returns:
- node name.
-
getParent
ScenarioNode getParent()Gets parent of the scenario node.- Returns:
- parent of the scenario node.
-
isEditable
boolean isEditable()Indicates if node is editable.- Returns:
- true if node is editable, false otherwise.
-
getStart
ScenarioNodeStart getStart()Gets scenario node start.- Returns:
- scenario node start.
-
getEnd
ScenarioNodeEnd getEnd()Gets scenario node end.- Returns:
- scenario node end.
-
getHumanType
String getHumanType()Gets human-readable representation of scenario node.- Returns:
- human-readable representation of scenario node.
-
getParentContainer
List<? extends ScenarioNode> getParentContainer()Gets container in the parent to which this node belongs. Parent container can be used for changing position of the node or figuring out the number of node.- Returns:
- parent container to which this node belongs.
-