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 TypeMethodDescriptionvoid
evaluate()
Evaluates the body and writes in the default writer.Evaluates a body and returns it as a string.void
Evaluates a body, but discards result.
-
Constructor Details
-
AbstractModelBody
Constructor.- Parameters:
defaultWriter
- The default writer to use.
-
-
Method Details
-
evaluate
Description copied from interface:ModelBody
Evaluates the body and writes in the default writer.- Specified by:
evaluate
in interfaceModelBody
- Throws:
IOException
- If something goes wrong.
-
evaluateAsString
Description copied from interface:ModelBody
Evaluates a body and returns it as a string.- Specified by:
evaluateAsString
in interfaceModelBody
- Returns:
- The body, as a string.
- Throws:
IOException
- If something goes wrong.
-
evaluateWithoutWriting
Description copied from interface:ModelBody
Evaluates a body, but discards result.- Specified by:
evaluateWithoutWriting
in interfaceModelBody
- Throws:
IOException
- If something goes wrong.
-