Class DOCXImporterTool
java.lang.Object
java.util.Observable
com.nomagic.magicreport.engine.Tool
com.nomagic.reportwizard.tools.ImportTool
com.nomagic.reportwizard.tools.importer.DefaultImporterTool
com.nomagic.reportwizard.tools.importer.DOCXImporterTool
- All Implemented Interfaces:
IChildEngine,ITool,IVariable,Serializable,Cloneable,Observer
This tool will allow user to import docx template.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.nomagic.magicreport.engine.ITool
ITool.HTMLString, ITool.RetainedString, ITool.Void -
Field Summary
Fields inherited from class com.nomagic.magicreport.engine.Tool
context, properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the String content of the imported file.protected booleanCHeck supported engine typeprotected voidsetupEngine(ITemplateEngine engine) Set up engine.
Add properties and context to engine.Methods inherited from class com.nomagic.reportwizard.tools.importer.DefaultImporterTool
getCanonicalTemplate, getEngineType, getTemplateFile, importer, importer, setEngineType, setTemplateEngineMethods inherited from class com.nomagic.reportwizard.tools.ImportTool
fileImporter, getParentEngine, importer, include, include, include, include, includeSection, includeSection, isParentSupportChild, setParentEngine, setupTool, updateMethods inherited from class com.nomagic.magicreport.engine.Tool
clone, getContext, getProperties, getProperty, getProperty, notifyObservers, setContext, setPropertiesMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged
-
Constructor Details
-
DOCXImporterTool
Constructor.- Parameters:
iTemplateEngine- parent engine
-
-
Method Details
-
importer
Description copied from class:DefaultImporterToolGets the String content of the imported file. This will do all the importTool's work. It is called by both public methods, with the difference that section is null if we want to include the whole file. Else it has a section name and only that subsection will be included.- Overrides:
importerin classDefaultImporterTool- Parameters:
importedFile- the childTemplate file to be evaluatedimportedSectionName- if there is a section else this is null- Returns:
- the evaluated and validated output from childTemplate
-
isSupport
Description copied from class:DefaultImporterToolCHeck supported engine type- Overrides:
isSupportin classDefaultImporterTool- Parameters:
engineType- engine type- Returns:
- true if the specific engine is supported, otherwise; false
-
setupEngine
Description copied from class:DefaultImporterToolSet up engine.
Add properties and context to engine.- Overrides:
setupEnginein classDefaultImporterTool- Parameters:
engine- current engine
-