Package javax.faces.flow.builder
Class SwitchCaseBuilder
java.lang.Object
javax.faces.flow.builder.SwitchCaseBuilder
Create a case in the current switch.
- Since:
- 2.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SwitchCaseBuilderSet the if in the previously created switch case.abstract SwitchCaseBuildercondition(javax.el.ValueExpression expression) Set the if in the previously created switch case.abstract SwitchCaseBuilderfromOutcome(String outcome) Set the outcome in the previously created switch case.abstract SwitchCaseBuilderCreate a new case in the current switch.
-
Constructor Details
-
SwitchCaseBuilder
public SwitchCaseBuilder()
-
-
Method Details
-
switchCase
Create a new case in the current switch.
- Since:
- 2.2
-
condition
Set the if in the previously created switch case.
- Parameters:
expression- theValueExpressionto be evaluated to see if this case is chosen.- Throws:
NullPointerException- if any of the parameters arenull- Since:
- 2.2
-
condition
Set the if in the previously created switch case.
- Parameters:
expression- theValueExpressionString to be evaluated to see if this case is chosen.- Throws:
NullPointerException- if any of the parameters arenull- Since:
- 2.2
-
fromOutcome
Set the outcome in the previously created switch case.
- Parameters:
outcome- the outcome to be returned if the condition evaluates totrue.- Throws:
NullPointerException- if any of the parameters arenull- Since:
- 2.2
-