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:
ITool,IVariable,Serializable,Cloneable
Additional features for template tool.
- 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.tools.TemplateTool
CONTEXT_NAMEFields inherited from class com.nomagic.magicreport.engine.Tool
context, properties -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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.ReportBeanGets selected report data.List<com.nomagic.magicdraw.magicreport.tools.ReportDataVariable> Get all report data variable as list ofReportDataVariableGets selected report data name.voidsetReportDataVariableMap(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, getTemplateLocationMethods 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
-
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
-