Class TemplateTool
java.lang.Object
java.util.Observable
com.nomagic.magicreport.engine.Tool
com.nomagic.magicreport.engine.tools.TemplateTool
com.nomagic.magicdraw.magicreport.tools.TemplateTool
- All Implemented Interfaces:
com.nomagic.magicreport.engine.ITool
,com.nomagic.magicreport.IVariable
,Serializable
,Cloneable
@OpenApiAll
public class TemplateTool
extends com.nomagic.magicreport.engine.tools.TemplateTool
Additional features for template tool.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.nomagic.magicreport.engine.ITool
com.nomagic.magicreport.engine.ITool.HTMLString, com.nomagic.magicreport.engine.ITool.RetainedString, com.nomagic.magicreport.engine.ITool.Void
-
Field Summary
Fields inherited from class com.nomagic.magicreport.engine.tools.TemplateTool
CONTEXT_NAME
Fields inherited from class com.nomagic.magicreport.engine.Tool
context, properties
Fields inherited from interface com.nomagic.magicreport.engine.ITool
VOID
-
Constructor Summary
ConstructorDescriptionDefault constructor.TemplateTool
(com.nomagic.magicdraw.magicreport.ui.bean.TemplateBean templateBean) Create a tool with information from template bean. -
Method Summary
Modifier and TypeMethodDescriptionGets category name.Gets description.com.nomagic.magicdraw.magicreport.ui.bean.ReportBean
Gets selected report data.List<com.nomagic.magicdraw.magicreport.tools.ReportDataVariable>
Get all report data variable as list ofReportDataVariable
Gets selected report data name.void
setReportDataVariableMap
(Map<String, Object> reportDataVariableMap) Set report data variable mapMethods inherited from class com.nomagic.magicreport.engine.tools.TemplateTool
getFile, getLatestInputFile, getLatestInputLocation, getLatestOutputFile, getLatestOutputLocation, getLocation, getMainOutputLocation, getMainTemplateLocation, getName, getOutputFile, getOutputFileName, getOutputFileNameNoExt, getOutputFileNoExt, getOutputLocation, getResourcesLocation, getTemplateFile, getTemplateLocation
Methods inherited from class com.nomagic.magicreport.engine.Tool
clone, getContext, getProperties, getProperty, getProperty, notifyObservers, setContext, setProperties
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.nomagic.magicreport.engine.ITool
clearTool
-
Constructor Details
-
TemplateTool
public TemplateTool()Default constructor. -
TemplateTool
public TemplateTool(com.nomagic.magicdraw.magicreport.ui.bean.TemplateBean templateBean) Create a tool with information from template bean.- Parameters:
templateBean
- template bean
-
-
Method Details
-
getDescription
Gets description.- Returns:
- the description
-
getCategory
Gets category name.- Returns:
- the category name
-
getSelectedReportData
Gets selected report data name.- Returns:
- the selected report data name
-
getReportData
public com.nomagic.magicdraw.magicreport.ui.bean.ReportBean getReportData()Gets selected report data.- Returns:
- the selected report data
-
setReportDataVariableMap
Set report data variable map- Parameters:
reportDataVariableMap
- map of report data variable
-
getReportDataVariables
Get all report data variable as list ofReportDataVariable
- Returns:
- list of
ReportDataVariable
-