@OpenApiAll
public class ImportTool
extends com.nomagic.magicreport.engine.Tool
implements java.util.Observer, com.nomagic.magicreport.engine.IChildEngine
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
ImportTool()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.CharSequence |
fileImporter(java.lang.Object template,
java.lang.String section)
Gets the String content of the import.
|
com.nomagic.magicreport.engine.ITemplateEngine |
getParentEngine() |
java.lang.CharSequence |
importer(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element elment,
java.lang.String section)
Gets the String content of a specific attached file element.
|
java.lang.CharSequence |
importer(java.lang.String templateFileName,
java.lang.String section)
Gets the String content of a specific import file path.
|
java.lang.CharSequence |
include(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
This method will include all the content of a specific attached file element.
|
java.lang.CharSequence |
include(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element,
java.lang.String section)
This method will include the subSection of a specific attached file element.
The ChildTemplate has to be formatted according to the already existing #sectionBegin and #sectionEnd directives. |
java.lang.CharSequence |
include(java.lang.String templateFileName)
This method will include all the content of a child template.
|
java.lang.CharSequence |
include(java.lang.String templateFileName,
java.lang.String section)
This method will include the subSection of the ChildTemplate.
The ChildTemplate has to be formatted according to the already existing #sectionBegin and #sectionEnd directives. |
java.lang.CharSequence |
includeSection(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element,
java.lang.String section)
This method will include the subSection of a specific attached file element.
The ChildTemplate has to be formatted according to the already existing #sectionBegin and #sectionEnd directives. |
java.lang.CharSequence |
includeSection(java.lang.String templateFileName,
java.lang.String section)
This method will include the subSection of the ChildTemplate.
The ChildTemplate has to be formatted according to the already existing #sectionBegin and #sectionEnd directives as introduced in MagicReport 14.0. |
boolean |
isParentSupportChild(java.lang.String engineType) |
void |
setParentEngine(com.nomagic.magicreport.engine.ITemplateEngine parentEngine) |
void |
setupTool(com.nomagic.reportwizard.tools.importer.DefaultImporterTool importerTool)
Set required properties and observer to importer tool.
|
void |
update(java.util.Observable o,
java.lang.Object arg)
This method is called whenever the template engine is changed.
|
clone, getContext, getProperties, getProperty, getProperty, notifyObservers, setContext, setProperties
public java.lang.CharSequence include(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
element
- the attached elementpublic java.lang.CharSequence include(java.lang.String templateFileName)
templateFileName
- the path of childTemplatepublic java.lang.CharSequence include(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, java.lang.String section)
element
- the attached elementsection
- the section to be includedpublic java.lang.CharSequence include(java.lang.String templateFileName, java.lang.String section)
templateFileName
- the path of childTemplatesection
- the section to be includedpublic java.lang.CharSequence includeSection(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, java.lang.String section)
element
- the attached elementsection
- the section to be includedpublic java.lang.CharSequence includeSection(java.lang.String templateFileName, java.lang.String section)
templateFileName
- the path of childTemplatesection
- the section to be includedpublic java.lang.CharSequence importer(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element elment, java.lang.String section)
element
- the attached elementsection
- if there is a section else this is nullpublic java.lang.CharSequence importer(java.lang.String templateFileName, java.lang.String section)
templateFileName
- the path of childTemplate to be evaluatedsection
- if there is a section else this is nullprotected java.lang.CharSequence fileImporter(java.lang.Object template, java.lang.String section)
template
- the template path or attached filesection
- if there is a section else this is nullpublic void setupTool(com.nomagic.reportwizard.tools.importer.DefaultImporterTool importerTool)
importerTool
- current importer toolpublic void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
o
- the observable objectarg
- an argument passed to the notifyObservers method.public com.nomagic.magicreport.engine.ITemplateEngine getParentEngine()
getParentEngine
in interface com.nomagic.magicreport.engine.IChildEngine
public void setParentEngine(com.nomagic.magicreport.engine.ITemplateEngine parentEngine)
setParentEngine
in interface com.nomagic.magicreport.engine.IChildEngine
public boolean isParentSupportChild(java.lang.String engineType)
Copyright © 2015 - No Magic Asia