Interface ModelBody
- All Known Implementing Classes:
- AbstractModelBody,- FreemarkerModelBody,- JspModelBody,- VelocityModelBody
public interface ModelBody
Abstracts a tag/directive body.
- 
Method SummaryModifier and TypeMethodDescriptionvoidevaluate()Evaluates the body and writes in the default writer.voidEvaluates the body and writes the result in the writer.Evaluates a body and returns it as a string.voidEvaluates a body, but discards result.
- 
Method Details- 
evaluateAsStringEvaluates a body and returns it as a string.- Returns:
- The body, as a string.
- Throws:
- IOException- If something goes wrong.
 
- 
evaluateWithoutWritingEvaluates a body, but discards result.- Throws:
- IOException- If something goes wrong.
 
- 
evaluateEvaluates the body and writes in the default writer.- Throws:
- IOException- If something goes wrong.
 
- 
evaluateEvaluates the body and writes the result in the writer.- Parameters:
- writer- The writer to write the result into.
- Throws:
- IOException- If something goes wrong.
 
 
-