org.apache.ode.bpel.compiler

## Class SwitchGenerator

- java.lang.Object
- - org.apache.ode.bpel.compiler.SwitchGenerator

- All Implemented Interfaces:
    ActivityGenerator

      public class SwitchGenerator
      extends java.lang.Object

  Generator for legacy BPEL 1.1 `<switch>` actiivty.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected CompilerContext` | `_context`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SwitchGenerator()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `compile(OActivity output, Activity src)` Generate compiled representation for the given activity definition.
    `OActivity` | `newInstance(Activity src)`
    `void` | `setContext(CompilerContext context)`

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

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

- - ### Field Detail

    - #### _context

          protected CompilerContext _context

  - ### Constructor Detail

    - #### SwitchGenerator

          public SwitchGenerator()

  - ### Method Detail

    - #### newInstance

          public OActivity newInstance(Activity src)

    - #### compile

          public void compile(OActivity output,
                     Activity src)

      Description copied from interface: `ActivityGenerator`
      Generate compiled representation for the given activity definition.
        `src` - activity definition

    - #### setContext

          public void setContext(CompilerContext context)

      Specified by:
        `setContext` in interface `ActivityGenerator`