Package com.sun.faces.flow.builder
Class SwitchCaseBuilderImpl
- java.lang.Object
-
- jakarta.faces.flow.builder.SwitchCaseBuilder
-
- com.sun.faces.flow.builder.SwitchCaseBuilderImpl
-
public class SwitchCaseBuilderImpl extends SwitchCaseBuilder
-
-
Constructor Summary
Constructors Constructor Description SwitchCaseBuilderImpl(SwitchBuilderImpl root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SwitchCaseBuildercondition(jakarta.el.ValueExpression expression)Set the if in the previously created switch case.SwitchCaseBuildercondition(String expression)Set the if in the previously created switch case.SwitchCaseBuilderfromOutcome(String outcome)Set the outcome in the previously created switch case.SwitchCaseImplgetNavigationCase()SwitchCaseBuilderswitchCase()Create a new case in the current switch.
-
-
-
Constructor Detail
-
SwitchCaseBuilderImpl
public SwitchCaseBuilderImpl(SwitchBuilderImpl root)
-
-
Method Detail
-
getNavigationCase
public SwitchCaseImpl getNavigationCase()
-
switchCase
public SwitchCaseBuilder switchCase()
Description copied from class:SwitchCaseBuilderCreate a new case in the current switch.
- Specified by:
switchCasein classSwitchCaseBuilder- Returns:
- the builder instance
-
condition
public SwitchCaseBuilder condition(jakarta.el.ValueExpression expression)
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
public SwitchCaseBuilder condition(String expression)
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
public SwitchCaseBuilder fromOutcome(String outcome)
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
-
-