public class VelocityTemplateEngine extends Object implements TemplateEngine
Modifier and Type | Field and Description |
---|---|
protected FileAppender |
appender
Log4J appender
|
protected static Logger |
logger
Log4J logger
|
Constructor and Description |
---|
VelocityTemplateEngine() |
Modifier and Type | Method and Description |
---|---|
void |
addMacroLibrary(String libraryName) |
String |
getEvaluatedExpression(String expression,
Map<String,Object> templateObjects) |
List<String> |
getMacroLibraries() |
void |
initialize(String namespace)
Initialized the engine
|
void |
processTemplate(String templateFile,
Map<String,Object> templateObjects,
Writer output) |
void |
setMergeLocation(String mergeLocation) |
void |
shutdown() |
protected FileAppender appender
public VelocityTemplateEngine()
public void initialize(String namespace) throws Exception
initialize
in interface TemplateEngine
namespace
- Exception
TemplateEngine.initialize(String)
public void processTemplate(String templateFile, Map<String,Object> templateObjects, Writer output) throws Exception
processTemplate
in interface TemplateEngine
Exception
TemplateEngine.processTemplate(String, java.util.Map,
java.io.Writer)
public String getEvaluatedExpression(String expression, Map<String,Object> templateObjects)
getEvaluatedExpression
in interface TemplateEngine
TemplateEngine.getEvaluatedExpression(String, java.util.Map)
public List<String> getMacroLibraries()
getMacroLibraries
in interface TemplateEngine
TemplateEngine.getMacroLibraries()
public void addMacroLibrary(String libraryName)
addMacroLibrary
in interface TemplateEngine
TemplateEngine.addMacroLibrary(String)
public void setMergeLocation(String mergeLocation)
setMergeLocation
in interface TemplateEngine
TemplateEngine.setMergeLocation(String)
public void shutdown()
shutdown
in interface TemplateEngine
TemplateEngine.shutdown()
Copyright © 2003–2014 AndroMDA.org. All rights reserved.