javax.faces.flow

## Class SwitchCase

- java.lang.Object
- - javax.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 and Description
    `SwitchCase()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract Boolean` | `getCondition(FacesContext context)` Return `true` if this case should be taken, `false` otherwise.
    `abstract String` | `getFromOutcome()` Return the outcome to be used if `getCondition(javax.faces.context.FacesContext)` return `true`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SwitchCase

          public SwitchCase()

  - ### Method Detail

    - #### getFromOutcome

          public abstract String getFromOutcome()

      Return the outcome to be used if `getCondition(javax.faces.context.FacesContext)` return `true`.

      Since:
        2.2

    - #### getCondition

          public abstract Boolean getCondition(FacesContext context)

      Return `true` if this case should be taken, `false` otherwise.

      Since:
        2.2

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.