java.lang.Object
jakarta.faces.flow.builder.SwitchCaseBuilder
com.sun.faces.flow.builder.SwitchCaseBuilderImpl
-
Constructor Summary
Constructors -
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:SwitchCaseBuilderCreate a new case in the current switch.
- Specified by:
switchCasein classSwitchCaseBuilder- Returns:
- the builder instance
-
condition
Description copied from class:SwitchCaseBuilderSet the if in the previously created switch case.
- Specified by:
conditionin classSwitchCaseBuilder- Parameters:
expression- theValueExpressionto be evaluated to see if this case is chosen.- Returns:
- the builder instance
-
condition
Description copied from class:SwitchCaseBuilderSet the if in the previously created switch case.
- Specified by:
conditionin classSwitchCaseBuilder- Parameters:
expression- theValueExpressionString to be evaluated to see if this case is chosen.- Returns:
- the builder instance
-
fromOutcome
Description copied from class:SwitchCaseBuilderSet the outcome in the previously created switch case.
- Specified by:
fromOutcomein classSwitchCaseBuilder- Parameters:
outcome- the outcome to be returned if the condition evaluates totrue.- Returns:
- the builder instance