@OpenApiAll public class TextEngine extends DefaultTemplateEngine
velocityContext
context, isAborted, preProcessFile, processFile, properties
Constructor and Description |
---|
TextEngine()
Create instance of engine.
|
Modifier and Type | Method and Description |
---|---|
void |
evaluate(Template template)
Merge a template with current context and rendered stream into the writer.
|
protected void |
preProcess(Template template)
Perform a pre-processing before evaluate template.
|
abort, checkFileNotFoundException, createComment, createTemplate, createTemplate, createTemplate, destroy, getClassLoader, getFormatter, handleForPage, handleForRow, handleImport, handleIncludeSection, handleSectionBegin, isNoSpaceException, lineCount, postProcess, process, process, processException, processVelocityException, processVelocityException, setClassLoader, setFormatter, setLatestLocation, setLocation, setProperty, translate, trimTrailSpace
addContext, addInvalidReferenceHandler, addObserver, addReferenceInsertionHandler, evaluate, getConcurrentToolException, getContext, getCurrentRuntimeInstance, getInvalidReferenceHandler, getProcessSize, getProperties, getProperty, getReferenceInsertionHandler, isMemoryMode, notifyObservers, observers, setConcurrentToolException, setContext, setCurrentRuntimeInstance
protected void preProcess(Template template) throws TemplateException
preProcess
in class DefaultTemplateEngine
template
- template before evaluated.ParseErrorException
- if a syntax or other error which prevents it from being
parsed.InitializationEngineException
- error while initializing engineTemplateException
- other error while processing the templateAbstractTemplateEngine.preProcess(com.nomagic.magicreport.Template)
public void evaluate(Template template) throws TemplateException
evaluate
in interface ITemplateEngine
evaluate
in class AbstractTemplateEngine
template
- Template being evaluatedParseErrorException
- if a syntax or other error which prevents it from being
parsed.InitializationEngineException
- error while initializing engineTemplateException
- other error while processing the templateITemplateEngine.evaluate(Template)
Copyright © 2010 - No Magic Asia