Package org.apache.tiles.request.freemarker.autotag

# Class FreemarkerModelBody

java.lang.Object
org.apache.tiles.autotag.core.runtime.AbstractModelBody
org.apache.tiles.request.freemarker.autotag.FreemarkerModelBody

All Implemented Interfaces:
  `ModelBody`

public class FreemarkerModelBody extends AbstractModelBody
Body implementation of a Freemarker model body.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `FreemarkerModelBody(Writer defaultWriter, freemarker.template.TemplateDirectiveBody templateDirectiveBody)`
  Constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `evaluate(Writer writer)`
  Evaluates the body and writes the result in the writer.

  ### Methods inherited from class org.apache.tiles.autotag.core.runtime.AbstractModelBody

  `evaluate, evaluateAsString, evaluateWithoutWriting`

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

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

- ## Constructor Details

  - ### FreemarkerModelBody

    public FreemarkerModelBody(Writer defaultWriter, freemarker.template.TemplateDirectiveBody templateDirectiveBody)
    Constructor.
    Parameters:
      `defaultWriter` - The default writer.
      `templateDirectiveBody` - The real body.

- ## Method Details

  - ### evaluate

    public void evaluate(Writer writer) throws IOException
    Description copied from interface: `ModelBody`
    Evaluates the body and writes the result in the writer.
    Parameters:
      `writer` - The writer to write the result into.
    Throws:
      `IOException` - If something goes wrong.