Package javax.faces.flow.builder
Class SwitchBuilder
java.lang.Object
javax.faces.flow.builder.SwitchBuilder
- All Implemented Interfaces:
NodeBuilder
Create a switch node in the current Flow.
- Since:
- 2.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SwitchCaseBuilderdefaultOutcome(String outcome) Set the default outcome of the current switch.abstract SwitchCaseBuilderdefaultOutcome(javax.el.ValueExpression outcome) Set the default outcome of the current switch.abstract SwitchBuilderMark this node as the start node in the flow.abstract SwitchCaseBuilderCreate a switch case in the current switch.
-
Constructor Details
-
SwitchBuilder
public SwitchBuilder()
-
-
Method Details
-
switchCase
Create a switch case in the current switch.
- Since:
- 2.2
-
defaultOutcome
Set the default outcome of the current switch.
- Parameters:
outcome- AValueExpressionStringthat will be the default outcome of the switch.- Throws:
NullPointerException- if any of the parameters arenull- Since:
- 2.2
-
defaultOutcome
Set the default outcome of the current switch.
- Parameters:
outcome- AValueExpressionthat will be the default outcome of the switch.- Throws:
NullPointerException- if any of the parameters arenull- Since:
- 2.2
-
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
-