Package com.sun.faces.flow.builder
Class SwitchBuilderImpl
- java.lang.Object
-
- jakarta.faces.flow.builder.SwitchBuilder
-
- com.sun.faces.flow.builder.SwitchBuilderImpl
-
- All Implemented Interfaces:
NodeBuilder
public class SwitchBuilderImpl extends SwitchBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SwitchCaseBuilderdefaultOutcome(jakarta.el.ValueExpression outcome)Set the default outcome of the current switch.SwitchCaseBuilderdefaultOutcome(String outcome)Set the default outcome of the current switch.SwitchBuilderImplmarkAsStartNode()Mark this node as the start node in the flow.SwitchCaseBuilderswitchCase()Create a switch case in the current switch.
-
-
-
Method Detail
-
defaultOutcome
public SwitchCaseBuilder defaultOutcome(String outcome)
Description copied from class:SwitchBuilderSet the default outcome of the current switch.
- Specified by:
defaultOutcomein classSwitchBuilder- Parameters:
outcome- AValueExpressionStringthat will be the default outcome of the switch.- Returns:
- the builder instance
-
defaultOutcome
public SwitchCaseBuilder defaultOutcome(jakarta.el.ValueExpression outcome)
Description copied from class:SwitchBuilderSet the default outcome of the current switch.
- Specified by:
defaultOutcomein classSwitchBuilder- Parameters:
outcome- AValueExpressionthat will be the default outcome of the switch.- Returns:
- the builder instance
-
markAsStartNode
public SwitchBuilderImpl 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- Specified by:
markAsStartNodein classSwitchBuilder- Returns:
- the builder instance
-
switchCase
public SwitchCaseBuilder switchCase()
Description copied from class:SwitchBuilderCreate a switch case in the current switch.
- Specified by:
switchCasein classSwitchBuilder- Returns:
- the builder instance
-
-