Package jakarta.faces.flow.builder
Class SwitchBuilder
- java.lang.Object
-
- jakarta.faces.flow.builder.SwitchBuilder
-
- All Implemented Interfaces:
NodeBuilder
- Direct Known Subclasses:
SwitchBuilderImpl
public abstract class SwitchBuilder extends Object implements NodeBuilder
Create a switch node in the current
Flow.- Since:
- 2.2
-
-
Constructor Summary
Constructors Constructor Description SwitchBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract SwitchCaseBuilderdefaultOutcome(jakarta.el.ValueExpression outcome)Set the default outcome of the current switch.abstract SwitchCaseBuilderdefaultOutcome(String outcome)Set the default outcome of the current switch.abstract SwitchBuildermarkAsStartNode()Mark this node as the start node in the flow.abstract SwitchCaseBuilderswitchCase()Create a switch case in the current switch.
-
-
-
Method Detail
-
switchCase
public abstract SwitchCaseBuilder switchCase()
Create a switch case in the current switch.
- Returns:
- the builder instance
- Since:
- 2.2
-
defaultOutcome
public abstract SwitchCaseBuilder defaultOutcome(String outcome)
Set the default outcome of the current switch.
- Parameters:
outcome- AValueExpressionStringthat will be the default outcome of the switch.- Returns:
- the builder instance
- Throws:
NullPointerException- if any of the parameters arenull- Since:
- 2.2
-
defaultOutcome
public abstract SwitchCaseBuilder defaultOutcome(jakarta.el.ValueExpression outcome)
Set the default outcome of the current switch.
- Parameters:
outcome- AValueExpressionthat will be the default outcome of the switch.- Returns:
- the builder instance
- Throws:
NullPointerException- if any of the parameters arenull- Since:
- 2.2
-
markAsStartNode
public abstract SwitchBuilder markAsStartNode()
Description copied from interface:NodeBuilderMark 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.
- Specified by:
markAsStartNodein interfaceNodeBuilder- Returns:
- the builder instance
-
-