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 SwitchCase
s
returned from getCases()
, call SwitchCase.getCondition(javax.faces.context.FacesContext)
. 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(javax.faces.context.FacesContext)
be used to determine where to go next in the flow graph.
Constructor and Description |
---|
SwitchNode() |
Modifier and Type | Method and Description |
---|---|
abstract List<SwitchCase> |
getCases()
Return the cases in this switch. |
abstract String |
getDefaultOutcome(FacesContext context)
Return the default outcome in this switch. |
public abstract List<SwitchCase> getCases()
Return the cases in this switch.
public abstract String getDefaultOutcome(FacesContext context)
Return the default outcome in this switch.
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.