Package jakarta.faces.flow
Class SwitchNode
- java.lang.Object
- 
- jakarta.faces.flow.FlowNode
- 
- jakarta.faces.flow.SwitchNode
 
 
- 
 public abstract class SwitchNode extends FlowNode Represents a switch node in the flow graph. When control passes to a switch node, for each of the SwitchCases returned fromgetCases(), callSwitchCase.getCondition(jakarta.faces.context.FacesContext). If the return istrue, let the return fromSwitchCase.getFromOutcome()be used to determine where to go next in the flow graph and terminate the traversal. If none of the cases returnedtrueletgetDefaultOutcome(jakarta.faces.context.FacesContext)be used to determine where to go next in the flow graph.- Since:
- 2.2
 
- 
- 
Constructor SummaryConstructors Constructor Description SwitchNode()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract List<SwitchCase>getCases()Return the cases in this switch.abstract StringgetDefaultOutcome(FacesContext context)Return the default outcome in this switch.
 
- 
- 
- 
Method Detail- 
getCasespublic abstract List<SwitchCase> getCases() Return the cases in this switch. - Returns:
- the cases in this switch
- Since:
- 2.2
 
 - 
getDefaultOutcomepublic abstract String getDefaultOutcome(FacesContext context) Return the default outcome in this switch. - Parameters:
- context- the- FacesContextfor this request
- Returns:
- the default outcome in this switch
- Since:
- 2.2
 
 
- 
 
-