Class TradeReportTemplateIniLoader
- java.lang.Object
-
- com.opengamma.strata.report.trade.TradeReportTemplateIniLoader
-
- All Implemented Interfaces:
ReportTemplateIniLoader<TradeReportTemplate>
public class TradeReportTemplateIniLoader extends Object implements ReportTemplateIniLoader<TradeReportTemplate>
Loads a trade report template from the standard INI file format.In a trade report template, the sections in the INI file (other than the special settings section) correspond to the columns in the report, in the order they are declared.
Each section can specify the following properties:
- value - identifies the value to display in the column's cells
- ignoreFailures - optional boolean flag to disable failure messages in this column
-
-
Field Summary
-
Fields inherited from interface com.opengamma.strata.report.ReportTemplateIniLoader
SETTINGS_REPORT_TYPE, SETTINGS_SECTION
-
-
Constructor Summary
Constructors Constructor Description TradeReportTemplateIniLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getReportType()
Gets the type of report handled by this loader.TradeReportTemplate
load(IniFile iniFile)
Loads the report template.
-
-
-
Method Detail
-
getReportType
public String getReportType()
Description copied from interface:ReportTemplateIniLoader
Gets the type of report handled by this loader.- Specified by:
getReportType
in interfaceReportTemplateIniLoader<TradeReportTemplate>
- Returns:
- the type of report handled by this loader
-
load
public TradeReportTemplate load(IniFile iniFile)
Description copied from interface:ReportTemplateIniLoader
Loads the report template.- Specified by:
load
in interfaceReportTemplateIniLoader<TradeReportTemplate>
- Parameters:
iniFile
- the ini file to load- Returns:
- the loaded report template object
-
-