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

# Class OutputAction

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

All Implemented Interfaces:
  `MergepointAction`

public class OutputAction extends Object implements MergepointAction
Inserts a fixed String into a mergepoint.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OutputAction(String value)`
  Constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `OutletResult`
  `execute(ControllerState controllerState)`
  Returns the value. ${...}
  `String`
  `toString()`

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

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

- ## Constructor Details

  - ### OutputAction

    public OutputAction(String value)
    Constructor.
    Parameters:
      `value` - fixed value to insert, not null.

- ## Method Details

  - ### execute

    public OutletResult execute(ControllerState controllerState) throws GeneratorException
    Returns the value. ${...} Tokens are replaced within the value.
    Specified by:
      `execute` in interface `MergepointAction`
    Parameters:
      `controllerState` - the current state of the controller.
    Returns:
      The value of the option, or the empty String if acceptNotSet is true and the option is not set.
    Throws:
      `GeneratorException` - if acceptNotSet is false and the option is not set.

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`