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
,java.io.Serializable
,java.lang.Cloneable
@OpenApiAll public class TemplateTool extends com.nomagic.magicreport.engine.tools.TemplateTool
Additional features for template tool.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
category
private java.lang.String
description
private com.nomagic.magicdraw.magicreport.ui.bean.ReportBean
reportBean
private java.util.Map<java.lang.String,java.lang.Object>
reportDataVariableMap
private java.lang.String
selectedReportData
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description TemplateTool()
Default constructor.TemplateTool(com.nomagic.magicdraw.magicreport.ui.bean.TemplateBean templateBean)
Create a tool with information from template bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCategory()
Gets category name.java.lang.String
getDescription()
Gets description.com.nomagic.magicdraw.magicreport.ui.bean.ReportBean
getReportData()
Gets selected report data.java.util.List<com.nomagic.magicdraw.magicreport.tools.ReportDataVariable>
getReportDataVariables()
Get all report data variable as list ofReportDataVariable
java.lang.String
getSelectedReportData()
Gets selected report data name.void
setReportDataVariableMap(java.util.Map<java.lang.String,java.lang.Object> reportDataVariableMap)
Set report data variable map-
Methods 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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
description
private java.lang.String description
-
category
private java.lang.String category
-
selectedReportData
private java.lang.String selectedReportData
-
reportBean
private com.nomagic.magicdraw.magicreport.ui.bean.ReportBean reportBean
-
reportDataVariableMap
private java.util.Map<java.lang.String,java.lang.Object> reportDataVariableMap
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Gets description.- Returns:
- the description
-
getCategory
public java.lang.String getCategory()
Gets category name.- Returns:
- the category name
-
getSelectedReportData
public java.lang.String 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
public void setReportDataVariableMap(java.util.Map<java.lang.String,java.lang.Object> reportDataVariableMap)
Set report data variable map- Parameters:
reportDataVariableMap
- map of report data variable
-
getReportDataVariables
public java.util.List<com.nomagic.magicdraw.magicreport.tools.ReportDataVariable> getReportDataVariables()
Get all report data variable as list ofReportDataVariable
- Returns:
- list of
ReportDataVariable
-
-