Package org.apache.torque.generator.control.action

# Klasse OptionAction

java.lang.Object
org.apache.torque.generator.control.action.OptionAction

Alle implementierten Schnittstellen:
  `MergepointAction`

public class OptionAction extends Object implements MergepointAction
Inserts the value of an option into a mergepoint.

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `OptionAction(String option, Boolean acceptNotSet)`
  Constructor.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `OutletResult`
  `execute(ControllerState controllerState)`
  Returns the value of the configured option.
  `String`
  `toString()`

  ### Von Klasse geerbte Methoden java.lang.Object

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

- ## Konstruktordetails

  - ### OptionAction

    public OptionAction(String option, Boolean acceptNotSet)
    Constructor.
    Parameter:
      `option` - the name of the option. May or may not be prefixed with a namespace (if no namespace is used, the namespace of the current outlet is used).
      `acceptNotSet` - true if it is acceptable that the option is not set, false if it is an error that the option is not set. null means true.

- ## Methodendetails

  - ### execute

    public OutletResult execute(ControllerState controllerState) throws GeneratorException
    Returns the value of the configured option.
    Angegeben von:
      `execute` in Schnittstelle `MergepointAction`
    Parameter:
      `controllerState` - the current state of the controller.
    Gibt zurück:
      The value of the option, or the empty String if acceptNotSet is true and the option is not set.
    Löst aus:
      `GeneratorException` - if acceptNotSet is false and the option is not set.

  - ### toString

    public String toString()
    Setzt außer Kraft:
      `toString` in Klasse `Object`