org.apache.torque.generator.template

## Interface TemplateOutlet

- All Superinterfaces:
    Outlet
  All Known Implementing Classes:
    GroovyOutlet, GroovyScriptOutlet, GroovyTemplateOutlet, TemplateOutletImpl, VelocityOutlet

      public interface TemplateOutlet
      extends Outlet

  A Outlet which interprets a template.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getContent(ControllerState controllerState)` Returns the contents as a Template as a String.

    - ### Methods inherited from interface org.apache.torque.generator.outlet.Outlet

      `addMergepointMapping, afterExecute, beforeExecute, execute, getInputClass, getInputElementName, getMergepointMapping, getMergepointMappings, getName, setInputClass, setInputElementName, setMergepointMapping`

- - ### Method Detail

    - #### getContent

          String getContent(ControllerState controllerState)
                     throws ConfigurationException

      Returns the contents as a Template as a String.
      Parameters:
        `controllerState` - the state of the controller, not null.
      Returns:
        the template as a String.
      Throws:
        `ConfigurationException` - if the template cannot be read.

Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.