Class SwitchBuilderImpl

java.lang.Object
jakarta.faces.flow.builder.SwitchBuilder
com.sun.faces.flow.builder.SwitchBuilderImpl
All Implemented Interfaces:
NodeBuilder

public class SwitchBuilderImpl extends SwitchBuilder
  • Method Details

    • defaultOutcome

      public SwitchCaseBuilder defaultOutcome(String outcome)
      Description copied from class: SwitchBuilder

      Set the default outcome of the current switch.

      Specified by:
      defaultOutcome in class SwitchBuilder
      Parameters:
      outcome - A ValueExpression String that will be the default outcome of the switch.
      Returns:
      the builder instance
    • defaultOutcome

      public SwitchCaseBuilder defaultOutcome(jakarta.el.ValueExpression outcome)
      Description copied from class: SwitchBuilder

      Set the default outcome of the current switch.

      Specified by:
      defaultOutcome in class SwitchBuilder
      Parameters:
      outcome - A ValueExpression that will be the default outcome of the switch.
      Returns:
      the builder instance
    • markAsStartNode

      public SwitchBuilderImpl markAsStartNode()
      Description copied from interface: NodeBuilder

      Mark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node.

      Specified by:
      markAsStartNode in interface NodeBuilder
      Specified by:
      markAsStartNode in class SwitchBuilder
      Returns:
      the builder instance
    • switchCase

      public SwitchCaseBuilder switchCase()
      Description copied from class: SwitchBuilder

      Create a switch case in the current switch.

      Specified by:
      switchCase in class SwitchBuilder
      Returns:
      the builder instance