Class AbstractModelBody
java.lang.Object
org.apache.tiles.autotag.core.runtime.AbstractModelBody
- All Implemented Interfaces:
ModelBody
- Direct Known Subclasses:
FreemarkerModelBody,JspModelBody,VelocityModelBody
Base class for the abstraction of the body.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluate()Evaluates the body and writes in the default writer.Evaluates a body and returns it as a string.voidEvaluates a body, but discards result.
-
Constructor Details
-
AbstractModelBody
Constructor.- Parameters:
defaultWriter- The default writer to use.
-
-
Method Details
-
evaluate
Description copied from interface:ModelBodyEvaluates the body and writes in the default writer.- Specified by:
evaluatein interfaceModelBody- Throws:
IOException- If something goes wrong.
-
evaluateAsString
Description copied from interface:ModelBodyEvaluates a body and returns it as a string.- Specified by:
evaluateAsStringin interfaceModelBody- Returns:
- The body, as a string.
- Throws:
IOException- If something goes wrong.
-
evaluateWithoutWriting
Description copied from interface:ModelBodyEvaluates a body, but discards result.- Specified by:
evaluateWithoutWritingin interfaceModelBody- Throws:
IOException- If something goes wrong.
-