public class ODSEngine extends ODFEngine
Modifier and Type | Class and Description |
---|---|
protected class |
ODSEngine.PostProcessHandler
VTLContent is used for separating VTL syntax and content.
|
colorList, fontList, manifestList, styleList
velocityContext
context, isAborted, preProcessFile, processFile, properties
Constructor and Description |
---|
ODSEngine()
A Class constructor.
|
Modifier and Type | Method and Description |
---|---|
protected ParseErrorException |
createParseErrorWrapper(ParseErrorException parseError,
java.io.Reader source)
Create a ParseErrorException from the message.
|
protected void |
handleForColumn(Template template,
java.lang.StringBuffer inProcessBuffer)
Handle the #forcol directive.
|
protected void |
handleForPage(Template template,
java.lang.StringBuffer inProcessBuffer)
Handle the #forpage directive.
|
protected void |
postProcess(Template template)
Perform a post-processing after the template has been evaluated.
|
protected TemplateException |
processException(Template template,
ParseErrorException e)
Call this method to process a
ParseErrorException . |
protected void |
translate(Template template,
java.lang.StringBuffer inProcessBuffer)
Process the template in
inProcessBuffer into valid format. |
addColor, addFont, addList, addObject, addStyle, createComment, createTemplate, createTemplate, createTemplate, evaluate, getEntrySet, getTemplate, handleContent, handleForRow, handleMeta, handleVTLSyntax, lineCount, processVelocityException, splitVTLExpression
abort, checkFileNotFoundException, destroy, getClassLoader, getFormatter, handleImport, handleIncludeSection, handleSectionBegin, isNoSpaceException, preProcess, process, process, processVelocityException, setClassLoader, setFormatter, setLatestLocation, setLocation, setProperty, trimTrailSpace
addContext, addInvalidReferenceHandler, addObserver, addReferenceInsertionHandler, evaluate, getConcurrentToolException, getContext, getCurrentRuntimeInstance, getInvalidReferenceHandler, getProcessSize, getProperties, getProperty, getReferenceInsertionHandler, isMemoryMode, notifyObservers, observers, setConcurrentToolException, setContext, setCurrentRuntimeInstance
protected void handleForPage(Template template, java.lang.StringBuffer inProcessBuffer) throws ParseErrorException
handleForPage
in class ODFEngine
template
- Template source.inProcessBuffer
- in process buffer.ParseErrorException
- when error while translation, or syntax not recognized.protected void translate(Template template, java.lang.StringBuffer inProcessBuffer) throws ParseErrorException, java.io.IOException
inProcessBuffer
into valid format.translate
in class ODFEngine
template
- Template source.inProcessBuffer
- in process buffer.ParseErrorException
- when error while translation, or syntax not recognized.java.io.IOException
- if IO Error occurs while reading template.protected void handleForColumn(Template template, java.lang.StringBuffer inProcessBuffer) throws ParseErrorException
template
- Template source.inProcessBuffer
- in process buffer.ParseErrorException
- when error while translation, or syntax not recognized.protected void postProcess(Template template) throws TemplateException
postProcess
in class ODFEngine
template
- template after 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.postProcess(com.nomagic.magicreport.Template)
protected ParseErrorException createParseErrorWrapper(ParseErrorException parseError, java.io.Reader source)
createParseErrorWrapper
in class ODFEngine
parseError
- root causesource
- source templateprotected TemplateException processException(Template template, ParseErrorException e)
ParseErrorException
. This method call internally by
postProcess(Template)
. If code was performed by Velocity (DefaultTemplateEngine.process(Template)
), uses method
ODFEngine.processVelocityException(Template, org.apache.velocity.exception.ParseErrorException)
. By default
this method try to calculate line number from ParseErrorException.getSource()
.processException
in class DefaultTemplateEngine
template
- Templatee
- MagicReport parse error exceptionCopyright © 2010 - No Magic Asia