Package jakarta.faces.flow
Class SwitchCase
- java.lang.Object
-
- jakarta.faces.flow.SwitchCase
-
public abstract class SwitchCase extends Object
Represents a case within a switch node in the flow graph. See
SwitchNode.- Since:
- 2.2
-
-
Constructor Summary
Constructors Constructor Description SwitchCase()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract BooleangetCondition(FacesContext context)Returntrueif this case should be taken,falseotherwise.abstract StringgetFromOutcome()Return the outcome to be used ifgetCondition(jakarta.faces.context.FacesContext)returntrue.
-
-
-
Method Detail
-
getFromOutcome
public abstract String getFromOutcome()
Return the outcome to be used if
getCondition(jakarta.faces.context.FacesContext)returntrue.- Returns:
- the outcome
- Since:
- 2.2
-
getCondition
public abstract Boolean getCondition(FacesContext context)
Return
trueif this case should be taken,falseotherwise.- Parameters:
context- theFacesContextfor the current request.- Returns:
- a value indicating whether or not this condition should be taken
- Since:
- 2.2
-
-