Top Description Constructors Methods
jakarta.faces.flow

public abstract Class SwitchNode

extends FlowNode
Class Inheritance
Imports
java.util.List, jakarta.faces.context.FacesContext

Represents a switch node in the flow graph. When control passes to a switch node, for each of the SwitchCases returned from getCases, call SwitchCase#getCondition. If the return is true, let the return from SwitchCase#getFromOutcome be used to determine where to go next in the flow graph and terminate the traversal. If none of the cases returned true let getDefaultOutcome be used to determine where to go next in the flow graph.

Since
2.2

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract List<SwitchCase>

Returns:

the cases in this switch
getCases
()

Return the cases in this switch.

public abstract String

Returns:

the default outcome in this switch
getDefaultOutcome
(FacesContext
the FacesContext for this request
context
)

Return the default outcome in this switch.

Inherited from jakarta.faces.flow.FlowNode:
getId

Constructor Detail

SwitchNodeback to summary
public SwitchNode()

Method Detail

getCasesback to summary
public abstract List<SwitchCase> getCases()

Return the cases in this switch.

Returns:List<SwitchCase>

the cases in this switch

Since
2.2
getDefaultOutcomeback to summary
public abstract String getDefaultOutcome(FacesContext context)

Return the default outcome in this switch.

Parameters
context:FacesContext

the FacesContext for this request

Returns:String

the default outcome in this switch

Since
2.2