Class VelocityModelBody
java.lang.Object
org.apache.tiles.autotag.core.runtime.AbstractModelBody
org.apache.tiles.request.velocity.autotag.VelocityModelBody
- All Implemented Interfaces:
ModelBody
Body abstraction for a Velocity directive body.
-
Constructor Summary
ConstructorsConstructorDescriptionVelocityModelBody
(org.apache.velocity.context.InternalContextAdapter context, org.apache.velocity.runtime.parser.node.ASTBlock body, Writer defaultWriter) Constructor. -
Method Summary
Methods inherited from class org.apache.tiles.autotag.core.runtime.AbstractModelBody
evaluate, evaluateAsString, evaluateWithoutWriting
-
Constructor Details
-
VelocityModelBody
public VelocityModelBody(org.apache.velocity.context.InternalContextAdapter context, org.apache.velocity.runtime.parser.node.ASTBlock body, Writer defaultWriter) Constructor.- Parameters:
context
- The Velocity context.body
- The real body.defaultWriter
- The default writer.
-
-
Method Details
-
evaluate
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.
-