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

    Constructors
    Constructor
    Description
    Default constructor.
    TemplateTool(com.nomagic.magicdraw.magicreport.ui.bean.TemplateBean templateBean)
    Create a tool with information from template bean.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets 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 of ReportDataVariable
    Gets selected report data name.
    void
    setReportDataVariableMap(Map<String,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

    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

      public String getDescription()
      Gets description.
      Returns:
      the description
    • getCategory

      public String getCategory()
      Gets category name.
      Returns:
      the category name
    • getSelectedReportData

      public 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(Map<String,Object> reportDataVariableMap)
      Set report data variable map
      Parameters:
      reportDataVariableMap - map of report data variable
    • getReportDataVariables

      public List<com.nomagic.magicdraw.magicreport.tools.ReportDataVariable> getReportDataVariables()
      Get all report data variable as list of ReportDataVariable
      Returns:
      list of ReportDataVariable