|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.geosolutions.tools.freemarker.filter.FreeMarkerFilter
public class FreeMarkerFilter
A file filter processor used to filter a file obtaining a filtered document
| Constructor Summary | |
|---|---|
FreeMarkerFilter(File template)
Constructor |
|
FreeMarkerFilter(File workingDir,
Reader reader)
Constructor |
|
FreeMarkerFilter(String workingDir,
Reader reader)
Constructor |
|
FreeMarkerFilter(String wd,
String ifn)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
isInitted()
Check the status of this configuration |
boolean |
process(freemarker.template.TemplateModel root,
Writer out)
This method is used to process the file using this configuration |
freemarker.template.TemplateModel |
wrapRoot(Object tm)
Try to wrap the passed object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FreeMarkerFilter(String wd,
String ifn)
throws IllegalArgumentException,
IOException
wd - workingDir (Set the explicit directory from which to load
templates)ifn - [input file name] the template file name should be located
into the wd
IOException
IllegalArgumentException - Some arguments are nulldocumentation for detailed accepted data types.
public FreeMarkerFilter(File template)
throws IllegalArgumentException,
IOException
the - input file (the template path)
IOException
IllegalArgumentException - Some arguments are nulldocumentation for detailed accepted data types.
public FreeMarkerFilter(String workingDir,
Reader reader)
throws IllegalArgumentException,
IOException
wd - workingDir (Set the explicit directory from which to load
templates)r - the reader of a FreeMarker template
IOException
IllegalArgumentException - Some arguments are nulldocumentation for detailed accepted data types.
public FreeMarkerFilter(File workingDir,
Reader reader)
throws IllegalArgumentException,
IOException
wd - workingDir (Set the explicit directory from which to load
templates)r - the reader of a FreeMarker template
IOException
IllegalArgumentException - Some arguments are nulldocumentation for detailed accepted data types.| Method Detail |
|---|
public freemarker.template.TemplateModel wrapRoot(Object tm)
throws NullPointerException,
freemarker.template.TemplateModelException
tm - the Object containing the TemplateModel to use as root data
model TemplateHashModel TemplateSequenceModel
TemplateCollectionModel TemplateScalarModel
TemplateNumberModel TemplateTransformModel
NullPointerException - if tm is null
freemarker.template.TemplateModelException - if defined objectWrapper can't wrap the
passed objectpublic boolean isInitted()
public boolean process(freemarker.template.TemplateModel root,
Writer out)
throws freemarker.template.TemplateException,
IOException
out - the Writer
freemarker.template.TemplateException - if an exception occurs during template
processing
IOException - if an I/O exception occurs during writing to the
writer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||