Top Description Constructors Methods
jakarta.faces.flow.builder

public abstract Class SwitchCaseBuilder

extends Object
Class Inheritance
Imports
jakarta.el.ValueExpression

Create a case in the current switch.

Since
2.2

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract SwitchCaseBuilder

Returns:

the builder instance
condition
(ValueExpression
the ValueExpression to be evaluated to see if this case is chosen.
expression
)

Set the if in the previously created switch case.

public abstract SwitchCaseBuilder

Returns:

the builder instance
condition
(String
the ValueExpression String to be evaluated to see if this case is chosen.
expression
)

Set the if in the previously created switch case.

public abstract SwitchCaseBuilder

Returns:

the builder instance
fromOutcome
(String
the outcome to be returned if the condition evaluates to true.
outcome
)

Set the outcome in the previously created switch case.

public abstract SwitchCaseBuilder

Returns:

the builder instance
switchCase
()

Create a new case in the current switch.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SwitchCaseBuilderback to summary
public SwitchCaseBuilder()

Method Detail

conditionback to summary
public abstract SwitchCaseBuilder condition(ValueExpression expression)

Set the if in the previously created switch case.

Parameters
expression:ValueExpression

the ValueExpression to be evaluated to see if this case is chosen.

Returns:SwitchCaseBuilder

the builder instance

Exceptions
NullPointerException:
if any of the parameters are null
Since
2.2
conditionback to summary
public abstract SwitchCaseBuilder condition(String expression)

Set the if in the previously created switch case.

Parameters
expression:String

the ValueExpression String to be evaluated to see if this case is chosen.

Returns:SwitchCaseBuilder

the builder instance

Exceptions
NullPointerException:
if any of the parameters are null
Since
2.2
fromOutcomeback to summary
public abstract SwitchCaseBuilder fromOutcome(String outcome)

Set the outcome in the previously created switch case.

Parameters
outcome:String

the outcome to be returned if the condition evaluates to true.

Returns:SwitchCaseBuilder

the builder instance

Exceptions
NullPointerException:
if any of the parameters are null
Since
2.2
switchCaseback to summary
public abstract SwitchCaseBuilder switchCase()

Create a new case in the current switch.

Returns:SwitchCaseBuilder

the builder instance

Since
2.2