@OpenApiAll public class DOCXImporterTool extends DefaultImporterTool
Constructor and Description |
---|
DOCXImporterTool(com.nomagic.magicreport.engine.ITemplateEngine iTemplateEngine)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
importer(java.io.File importedFile,
java.lang.String importedSectionName)
Gets the String content of the imported file.
|
protected boolean |
isSupport(java.lang.String engineType)
CHeck supported engine type
|
protected void |
setupEngine(com.nomagic.magicreport.engine.ITemplateEngine engine)
Set up engine.
Add properties and context to engine. |
getCanonicalTemplate, getEngineType, getTemplateFile, importer, importer, setEngineType, setTemplateEngine
fileImporter, getParentEngine, importer, include, include, include, include, includeSection, includeSection, isParentSupportChild, setParentEngine, setupTool, update
clone, getContext, getProperties, getProperty, getProperty, notifyObservers, setContext, setProperties
public DOCXImporterTool(com.nomagic.magicreport.engine.ITemplateEngine iTemplateEngine)
iTemplateEngine
- parent enginepublic java.lang.CharSequence importer(java.io.File importedFile, java.lang.String importedSectionName)
DefaultImporterTool
importer
in class DefaultImporterTool
importedFile
- the childTemplate file to be evaluatedimportedSectionName
- if there is a section else this is nullprotected boolean isSupport(java.lang.String engineType)
DefaultImporterTool
isSupport
in class DefaultImporterTool
engineType
- engine typeprotected void setupEngine(com.nomagic.magicreport.engine.ITemplateEngine engine)
DefaultImporterTool
setupEngine
in class DefaultImporterTool
engine
- current engine