public abstract class SwitchBuilder extends Object implements NodeBuilder
Create a switch node in the current Flow
.
Constructor and Description |
---|
SwitchBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract SwitchCaseBuilder |
defaultOutcome(String outcome)
Set the default outcome of the current switch. |
abstract SwitchCaseBuilder |
defaultOutcome(javax.el.ValueExpression outcome)
Set the default outcome of the current switch. |
abstract SwitchBuilder |
markAsStartNode()
Mark this node as the start node in the flow. |
abstract SwitchCaseBuilder |
switchCase()
Create a switch case in the current switch. |
public abstract SwitchCaseBuilder switchCase()
Create a switch case in the current switch.
public abstract SwitchCaseBuilder defaultOutcome(String outcome)
Set the default outcome of the current switch.
outcome
- A ValueExpression
String
that will be the
default outcome of the switch.NullPointerException
- if any of the parameters are null
public abstract SwitchCaseBuilder defaultOutcome(javax.el.ValueExpression outcome)
Set the default outcome of the current switch.
outcome
- A ValueExpression
that will be the default outcome of the switch.NullPointerException
- if any of the parameters are null
public abstract SwitchBuilder markAsStartNode()
NodeBuilder
Mark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node.
markAsStartNode
in interface NodeBuilder
Copyright © 1997–2019 Eclipse Foundation. All rights reserved.