freemarker.testcase.models
Class TransformModel1
java.lang.Object
freemarker.testcase.models.TransformModel1
- TemplateModel, TemplateTransformModel
public class TransformModel1
extends java.lang.Object
A TemplateTransformModel that includes properties. These properties can be
set at model construction time, or, for the purposes of this demonstration,
can be passed in from a wrapper TemplateMethodModel.
$Id: TransformModel1.java,v 1.21 2003/01/12 23:40:25 revusky Exp $
Writer | getWriter(Writer out, Map args)
|
void | setAmpersands(boolean bAmpersands) - Indicates whether we escape ampersands.
|
void | setComment(String aComment) - Sets a comment for this transformation.
|
void | setQuotes(boolean bQuotes) - Indicates whether we escape quotes.
|
void | setTags(boolean bTags) - Indicates whether we escape tags.
|
void | transform(Reader source, Writer output) - Performs a transformation/filter on FreeMarker output.
|
setAmpersands
public void setAmpersands(boolean bAmpersands)
Indicates whether we escape ampersands. This property can be set either
while the model is being constructed, or via a property passed in through
a TemplateMethodModel
.
setComment
public void setComment(String aComment)
Sets a comment for this transformation. This property can be set either
while the model is being constructed, or via a property passed in through
a TemplateMethodModel
.
setQuotes
public void setQuotes(boolean bQuotes)
Indicates whether we escape quotes. This property can be set either
while the model is being constructed, or via a property passed in through
a TemplateMethodModel
.
setTags
public void setTags(boolean bTags)
Indicates whether we escape tags. This property can be set either
while the model is being constructed, or via a property passed in through
a TemplateMethodModel
.
transform
public void transform(Reader source,
Writer output)
throws IOException
Performs a transformation/filter on FreeMarker output.
source
- the input to be transformedoutput
- the destination of the transformation