|
|||||||||
| 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(String workingDir,
Reader reader)
Constructor |
|
FreeMarkerFilter(String wd,
String ifn)
Constructor |
|
| Method Summary | |
|---|---|
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)
wd - workingDir (Set the explicit directory from which to load templates)ifn - input file name (the template)data - data structure (containing variable to substitute)documentation for detailed accepted data types.
public FreeMarkerFilter(String workingDir,
Reader reader)
wd - workingDir (Set the explicit directory from which to load templates)r - the reader of a FreeMarker templatedocumentation 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 object
public final 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 | ||||||||