| java.lang.Object freemarker.testcase.models.TransformModel1
TransformModel1 | public class TransformModel1 implements TemplateTransformModel(Code) | | 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.
version: $Id: TransformModel1.java,v 1.21 2003/01/12 23:40:25 revusky Exp $ |
Method Summary | |
public Writer | getWriter(Writer out, Map args) | public void | setAmpersands(boolean bAmpersands) Indicates whether we escape ampersands. | public void | setComment(String aComment) Sets a comment for this transformation. | public void | setQuotes(boolean bQuotes) Indicates whether we escape quotes. | public void | setTags(boolean bTags) Indicates whether we escape tags. | public void | transform(Reader source, Writer output) Performs a transformation/filter on FreeMarker output. |
setAmpersands | public void setAmpersands(boolean bAmpersands)(Code) | | 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)(Code) | | 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)(Code) | | 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)(Code) | | 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(Code) | | Performs a transformation/filter on FreeMarker output.
Parameters: source - the input to be transformed Parameters: output - the destination of the transformation |
|
|