org.apache.tiles.autotag.core.runtime
Interface ModelBody

Package class diagram package ModelBody
All Known Implementing Classes:
AbstractModelBody

public interface ModelBody

Abstracts a tag/directive body.

Version:
$Rev: 1044817 $ $Date: 2010-12-12 08:22:01 -0500 (Sun, 12 Dec 2010) $

Method Summary
 void evaluate()
          Evaluates the body and writes in the default writer.
 void evaluate(Writer writer)
          Evaluates the body and writes the result in the writer.
 String evaluateAsString()
          Evaluates a body and returns it as a string.
 void evaluateWithoutWriting()
          Evaluates a body, but discards result.
 

Method Detail

evaluateAsString

String evaluateAsString()
                        throws IOException
Evaluates a body and returns it as a string.

Returns:
The body, as a string.
Throws:
IOException - If something goes wrong.

evaluateWithoutWriting

void evaluateWithoutWriting()
                            throws IOException
Evaluates a body, but discards result.

Throws:
IOException - If something goes wrong.

evaluate

void evaluate()
              throws IOException
Evaluates the body and writes in the default writer.

Throws:
IOException - If something goes wrong.

evaluate

void evaluate(Writer writer)
              throws IOException
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.


Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.