java.lang.Object
jakarta.faces.flow.builder.SwitchCaseBuilder
com.sun.faces.flow.builder.SwitchCaseBuilderImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncondition
(ValueExpression expression) Set the if in the previously created switch case.Set the if in the previously created switch case.fromOutcome
(String outcome) Set the outcome in the previously created switch case.Create a new case in the current switch.
-
Constructor Details
-
SwitchCaseBuilderImpl
-
-
Method Details
-
switchCase
Description copied from class:SwitchCaseBuilder
Create a new case in the current switch.
- Specified by:
switchCase
in classSwitchCaseBuilder
- Returns:
- the builder instance
-
condition
Description copied from class:SwitchCaseBuilder
Set the if in the previously created switch case.
- Specified by:
condition
in classSwitchCaseBuilder
- Parameters:
expression
- theValueExpression
to be evaluated to see if this case is chosen.- Returns:
- the builder instance
-
condition
Description copied from class:SwitchCaseBuilder
Set the if in the previously created switch case.
- Specified by:
condition
in classSwitchCaseBuilder
- Parameters:
expression
- theValueExpression
String to be evaluated to see if this case is chosen.- Returns:
- the builder instance
-
fromOutcome
Description copied from class:SwitchCaseBuilder
Set the outcome in the previously created switch case.
- Specified by:
fromOutcome
in classSwitchCaseBuilder
- Parameters:
outcome
- the outcome to be returned if the condition evaluates totrue
.- Returns:
- the builder instance