Class TradeReportTemplate
- java.lang.Object
-
- com.opengamma.strata.report.trade.TradeReportTemplate
-
- All Implemented Interfaces:
ReportTemplate
,org.joda.beans.Bean
,org.joda.beans.ImmutableBean
public final class TradeReportTemplate extends Object implements ReportTemplate, org.joda.beans.ImmutableBean
Describes the contents and layout of a trade report.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TradeReportTemplate.Builder
The bean-builder forTradeReportTemplate
.static class
TradeReportTemplate.Meta
The meta-bean forTradeReportTemplate
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TradeReportTemplate.Builder
builder()
Returns a builder used to create an instance of the bean.boolean
equals(Object obj)
List<TradeReportColumn>
getColumns()
Gets the columns in the report.int
hashCode()
static TradeReportTemplate
load(IniFile ini)
Creates a trade report template by reading a template definition in an ini file.static TradeReportTemplate.Meta
meta()
The meta-bean forTradeReportTemplate
.TradeReportTemplate.Meta
metaBean()
TradeReportTemplate.Builder
toBuilder()
Returns a builder that allows this bean to be mutated.String
toString()
-
-
-
Method Detail
-
load
public static TradeReportTemplate load(IniFile ini)
Creates a trade report template by reading a template definition in an ini file.- Parameters:
ini
- the ini file containing the definition of the template- Returns:
- a trade report template built from the definition in the ini file
-
meta
public static TradeReportTemplate.Meta meta()
The meta-bean forTradeReportTemplate
.- Returns:
- the meta-bean, not null
-
builder
public static TradeReportTemplate.Builder builder()
Returns a builder used to create an instance of the bean.- Returns:
- the builder, not null
-
metaBean
public TradeReportTemplate.Meta metaBean()
- Specified by:
metaBean
in interfaceorg.joda.beans.Bean
-
getColumns
public List<TradeReportColumn> getColumns()
Gets the columns in the report.- Returns:
- the value of the property, not null
-
toBuilder
public TradeReportTemplate.Builder toBuilder()
Returns a builder that allows this bean to be mutated.- Returns:
- the mutable builder, not null
-
-