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 Details

    • SwitchCase

      public SwitchCase()
  • Method Details

    • getFromOutcome

      public abstract String getFromOutcome()

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

      Returns:
      the outcome
      Since:
      2.2
    • getCondition

      public abstract Boolean getCondition(FacesContext context)

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

      Parameters:
      context - the FacesContext for the current request.
      Returns:
      a value indicating whether or not this condition should be taken
      Since:
      2.2