Modifier and Type | Method and Description |
---|---|
ITemplateEngine |
TemplateEngineFactory.createTemplateEngine(java.lang.Class<? extends ITemplateEngine> clazz)
Create a new instance of template engine associated with given class.
|
ITemplateEngine |
TemplateEngineFactory.createTemplateEngine(java.lang.String type)
Create a new instance of template engine associated with given type.
|
ITemplateEngine |
TemplateEngineFactory.getTemplateEngine(java.lang.Class<? extends ITemplateEngine> clazz)
Return template engine associated with given class or create a new instance if it doesn't created.
|
ITemplateEngine |
TemplateEngineFactory.getTemplateEngine(java.lang.String type)
Return template engine associated with given type or create a new instance if it doesn't created.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends ITemplateEngine> |
TemplateEngineFactory.getRegisterTemplateEngine(java.lang.String extension)
Return a registered template engine class.
|
java.lang.Class<? extends ITemplateEngine> |
TemplateEngineFactory.getTemplateEngineClass(java.lang.String type)
Return class of template engine associated with given type.
|
Modifier and Type | Method and Description |
---|---|
static void |
ToolsContext.attachContext(ITemplateEngine engine)
Attach all available tools to given engine.
|
void |
TemplateEngineFactory.copy(ITemplateEngine dest,
ITemplateEngine source)
Copies all properties and context from source engine to destination engine.
|
void |
TemplateEngineFactory.copy(ITemplateEngine dest,
ITemplateEngine source,
boolean copyRuntimeInstance,
boolean copyFormatterRuntimeInstance)
Copies all properties and context from source engine to destination engine.
|
Modifier and Type | Method and Description |
---|---|
ITemplateEngine |
TemplateEngineFactory.createTemplateEngine(java.lang.Class<? extends ITemplateEngine> clazz)
Create a new instance of template engine associated with given class.
|
ITemplateEngine |
TemplateEngineFactory.getTemplateEngine(java.lang.Class<? extends ITemplateEngine> clazz)
Return template engine associated with given class or create a new instance if it doesn't created.
|
void |
TemplateEngineFactory.registerTemplateEngine(java.lang.String extension,
java.lang.Class<? extends ITemplateEngine> templateEngineClass)
Registers the given class name with the
TemplateEngineFactory . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractTemplateEngine
This class provides default implementations for the
ITemplateEngine Action interface. |
Modifier and Type | Method and Description |
---|---|
ITemplateEngine |
IChildEngine.getParentEngine()
Get parent engine.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractTemplateEngine.evaluate(Template template,
ITemplateEngine parentEngine)
Merge a template with current context and rendered stream into the writer.
|
protected abstract void |
AbstractTemplateEngine.process(Template template,
ITemplateEngine parentEngine)
Process a template evaluation.
|
void |
IChildEngine.setParentEngine(ITemplateEngine iTemplateEngine)
Set parent engine.
|
Modifier and Type | Method and Description |
---|---|
static void |
DOCXChildEngineHelper.cloneInternalVariables(ITemplateEngine dest,
ITemplateEngine source)
Clone some internal variables from parent to child.
|
static DocumentInfo |
DOCXChildEngineHelper.createDocumentInfo(ITemplateEngine parentEngine,
java.io.File importedFile)
Create Document Info.
|
static void |
DOCXChildEngineHelper.manageArtifactFiles(ITemplateEngine engine,
ITemplateEngine parentEngine,
Template template,
DocumentInfo childDocInfo)
Manage artifact files : content_type.xml, word/_rels/document.xml.rels, numbering.xml for child engine.
|
static void |
DOCXChildEngineHelper.setupChildEngine(ITemplateEngine engine,
ITemplateEngine parentEngine,
java.io.File importedFile)
Setup specific engine to be child engine of parentEngine.
|
Constructor and Description |
---|
DocumentRelationshipTool(ITemplateEngine engine) |
Constructor and Description |
---|
DOCXFormatterWrapper(ITemplateEngine engine)
Create a DOCX formatter with with specific engine.
|
FileTool(ITemplateEngine engine)
Create a file tool with default global engine.
|
ImageTool(ITemplateEngine engine)
Create an image tool with engine.
|
ODFFormatterWrapper(ITemplateEngine engine)
Create a ODF formatter with with specific engine.
|
PPTXFormatterWrapper(ITemplateEngine engine)
Create a PPTX formatter with with specific engine.
|
XLSXFormatterWrapper(ITemplateEngine engine)
Create a XLSX formatter with with specific engine.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultTemplateEngine
Provide standard template engine for MagicReport.
|
class |
DocBookEngine
This class provides an instance of the Velocity template engine.
|
class |
DOCXEngine
The Velocity engine for OpenXML Word Document (DOCX).
|
class |
HTMLEngine
This class provides an instance of the Velocity template engine.
|
class |
LaTeXEngine
This class provides an instance of the Velocity template engine.
|
class |
ODFEngine
The Velocity engine support for Open Document File (ODF).
|
class |
ODPEngine
The Velocity engine support for Open Document Presentation (ODP) file.
|
class |
ODSEngine
The Velocity engine support for Open Document Presentation (ODP) file.
|
class |
PPTXEngine
The Velocity engine for OpenXML PowerPoint Presentation (PPTX).
|
class |
RTFEngine
This class provides an instance of the Velocity template engine.
|
class |
TextEngine
This class provides an instance of the Velocity template engine.
|
class |
XLSXEngine
The Velocity engine for OpenXML Excel Workbook (XLSX).
|
class |
XMLEngine
This class provides an instance of the Velocity template engine.
|
Modifier and Type | Field and Description |
---|---|
protected ITemplateEngine |
InsertionHandler.engine
Reference to template engine.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultTemplateEngine.process(Template template,
ITemplateEngine parentEngine)
Process a template.
|
Modifier and Type | Method and Description |
---|---|
protected IFormatter |
InsertionHandler.createFormatter(java.lang.Class<ITemplateEngine> engineClass)
Deprecated.
the formatter is no longer determined by Class
ITemplateEngine . It will be created directly
from getFormatter() . |
Constructor and Description |
---|
InsertionHandler(ITemplateEngine engine)
Create an handler with
DefaultFormatter . |
VelocityReferenceHandler(ITemplateEngine templateEngine)
Create the references handler.
|
Constructor and Description |
---|
DOCXFormatter(ITemplateEngine templateEngine)
Create a Docx formatter with specific properties.
|
ODFFormatter(ITemplateEngine templateEngine)
Create a ODF formatter with specific properties.
|
PPTXFormatter(ITemplateEngine templateEngine)
Create a PPTX formatter with specific properties.
|
XLSXFormatter(ITemplateEngine templateEngine)
Create a XLSX formatter with specific properties.
|
Copyright © 2010 - No Magic Asia