Package javax.faces.flow.builder
Class SwitchCaseBuilder
- java.lang.Object
-
- javax.faces.flow.builder.SwitchCaseBuilder
-
public abstract class SwitchCaseBuilder extends java.lang.ObjectCreate a case in the current switch.
- Since:
- 2.2
-
-
Constructor Summary
Constructors Constructor Description SwitchCaseBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract SwitchCaseBuildercondition(java.lang.String expression)Set 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(java.lang.String outcome)Set the outcome in the previously created switch case.abstract SwitchCaseBuilderswitchCase()Create a new case in the current switch.
-
-
-
Method Detail
-
switchCase
public abstract SwitchCaseBuilder switchCase()
Create a new case in the current switch.
- Since:
- 2.2
-
condition
public abstract SwitchCaseBuilder condition(javax.el.ValueExpression expression)
Set the if in the previously created switch case.
- Parameters:
expression- theValueExpressionto be evaluated to see if this case is chosen.- Throws:
java.lang.NullPointerException- if any of the parameters arenull- Since:
- 2.2
-
condition
public abstract SwitchCaseBuilder condition(java.lang.String expression)
Set the if in the previously created switch case.
- Parameters:
expression- theValueExpressionString to be evaluated to see if this case is chosen.- Throws:
java.lang.NullPointerException- if any of the parameters arenull- Since:
- 2.2
-
fromOutcome
public abstract SwitchCaseBuilder fromOutcome(java.lang.String outcome)
Set the outcome in the previously created switch case.
- Parameters:
outcome- the outcome to be returned if the condition evaluates totrue.- Throws:
java.lang.NullPointerException- if any of the parameters arenull- Since:
- 2.2
-
-