public class DefaultTemplateVisitor extends Object implements TemplatesAware, ParserAware
| Constructor and Description |
|---|
DefaultTemplateVisitor() |
DefaultTemplateVisitor(TemplateEngine engine) |
| Modifier and Type | Method and Description |
|---|---|
void |
doPlainOutput(String templateResult,
VisitorContext context) |
String |
getOutput() |
Parser<?> |
getParser() |
String |
getRootLabel() |
TemplateEngine |
getTemplateEngine() |
List<String> |
getTemplates() |
void |
setOutput(String output) |
void |
setParser(Parser<?> parser) |
void |
setProperties(String propertiesFile) |
void |
setRootLabel(String rootLabel) |
void |
setSuffix(String suffix) |
void |
setTemplateEngine(TemplateEngine templateEngine) |
void |
setTemplates(List<String> templates) |
void |
visit(Object node,
VisitorContext context) |
public DefaultTemplateVisitor()
public DefaultTemplateVisitor(TemplateEngine engine)
public void visit(Object node, VisitorContext context) throws Exception
Exceptionpublic void setSuffix(String suffix)
public void doPlainOutput(String templateResult, VisitorContext context) throws Exception
Exceptionpublic List<String> getTemplates()
getTemplates in interface TemplatesAwarepublic void setTemplates(List<String> templates)
setTemplates in interface TemplatesAwarepublic void setTemplateEngine(TemplateEngine templateEngine)
setTemplateEngine in interface TemplatesAwarepublic TemplateEngine getTemplateEngine()
getTemplateEngine in interface TemplatesAwarepublic String getRootLabel()
getRootLabel in interface TemplatesAwarepublic void setRootLabel(String rootLabel)
setRootLabel in interface TemplatesAwarepublic void setProperties(String propertiesFile)
public void setOutput(String output)
public String getOutput()
public void setParser(Parser<?> parser)
setParser in interface ParserAwarepublic Parser<?> getParser()
getParser in interface ParserAwareCopyright © 2015. All rights reserved.