Package javax.faces.flow
Class SwitchCase
java.lang.Object
javax.faces.flow.SwitchCase
Represents a case within a switch node in the flow graph.
See SwitchNode
.
- Since:
- 2.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Boolean
getCondition
(FacesContext context) Returntrue
if this case should be taken,false
otherwise.abstract String
Return the outcome to be used ifgetCondition(javax.faces.context.FacesContext)
returntrue
.
-
Constructor Details
-
SwitchCase
public SwitchCase()
-
-
Method Details
-
getFromOutcome
Return the outcome to be used if
getCondition(javax.faces.context.FacesContext)
returntrue
.- Returns:
- the outcome
- Since:
- 2.2
-
getCondition
Return
true
if this case should be taken,false
otherwise.- Parameters:
context
- theFacesContext
for the current request.- Returns:
- a value indicating whether or not this condition should be taken
- Since:
- 2.2
-