|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfreemarker.testcase.models.TransformModel1
public final class TransformModel1
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
.
Constructor Summary | |
---|---|
TransformModel1()
Creates new TransformModel1 |
Method Summary | |
---|---|
boolean |
isEmpty()
Is the model empty? |
void |
setAmpersands(boolean bAmpersands)
Indicates whether we escape ampersands. |
void |
setComment(java.lang.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(java.io.Reader source,
java.io.PrintWriter output)
Performs a transformation/filter on FM-Classic output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransformModel1()
Method Detail |
---|
public void setAmpersands(boolean bAmpersands)
TemplateMethodModel
.
bAmpersands
- should ampersand characters be escaped?public void setQuotes(boolean bQuotes)
TemplateMethodModel
.
bQuotes
- should quote characters be escaped?public void setTags(boolean bTags)
TemplateMethodModel
.
bTags
- should tags be escaped?public void setComment(java.lang.String aComment)
TemplateMethodModel
.
aComment
- the text to be used in place of '*' characterspublic void transform(java.io.Reader source, java.io.PrintWriter output) throws java.io.IOException, TemplateModelException
transform
in interface TemplateTransformModel
source
- the input to be transformedoutput
- the destination of the transformation
java.io.IOException
TemplateModelException
public boolean isEmpty() throws TemplateModelException
isEmpty
in interface TemplateModel
false
to indicate the model is not empty
TemplateModelException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |