Top Description Constructors Methods
jakarta.faces.flow.builder

public abstract Class SwitchBuilder

extends Object
implements NodeBuilder
Class Inheritance
All Implemented Interfaces
jakarta.faces.flow.builder.NodeBuilder
Known Direct Subclasses
com.sun.faces.flow.builder.SwitchBuilderImpl
Imports
jakarta.el.ValueExpression

Create a switch node in the current jakarta.faces.flow.Flow.

Since
2.2

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract SwitchCaseBuilder

Returns:

the builder instance
defaultOutcome
(String
A ValueExpression String that will be the default outcome of the switch.
outcome
)

Set the default outcome of the current switch.

public abstract SwitchCaseBuilder

Returns:

the builder instance
defaultOutcome
(ValueExpression
A ValueExpression that will be the default outcome of the switch.
outcome
)

Set the default outcome of the current switch.

public abstract SwitchBuilder
markAsStartNode()

Redeclares jakarta.faces.flow.builder.NodeBuilder.markAsStartNode.

Mark this node as the start node in the flow.

public abstract SwitchCaseBuilder

Returns:

the builder instance
switchCase
()

Create a switch case in the current switch.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SwitchBuilderback to summary
public SwitchBuilder()

Method Detail

defaultOutcomeback to summary
public abstract SwitchCaseBuilder defaultOutcome(String outcome)

Set the default outcome of the current switch.

Parameters
outcome:String

A ValueExpression String that will be the default outcome of the switch.

Returns:SwitchCaseBuilder

the builder instance

Exceptions
NullPointerException:
if any of the parameters are null
Since
2.2
defaultOutcomeback to summary
public abstract SwitchCaseBuilder defaultOutcome(ValueExpression outcome)

Set the default outcome of the current switch.

Parameters
outcome:ValueExpression

A ValueExpression that will be the default outcome of the switch.

Returns:SwitchCaseBuilder

the builder instance

Exceptions
NullPointerException:
if any of the parameters are null
Since
2.2
markAsStartNodeback to summary
public abstract SwitchBuilder markAsStartNode()

Redeclares jakarta.faces.flow.builder.NodeBuilder.markAsStartNode.

Doc from jakarta.faces.flow.builder.NodeBuilder.markAsStartNode.

Mark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node.

Returns:SwitchBuilder

the builder instance

Annotations
@Override
switchCaseback to summary
public abstract SwitchCaseBuilder switchCase()

Create a switch case in the current switch.

Returns:SwitchCaseBuilder

the builder instance

Since
2.2