public static final class Column.Builder extends DirectFieldsBeanBuilder<Column>
Column
.Modifier and Type | Method and Description |
---|---|
Column |
build() |
Object |
get(String propertyName) |
Column.Builder |
measure(Measure measure)
Sets the measure to be calculated.
|
Column.Builder |
name(ColumnName name)
Sets the column name.
|
Column.Builder |
parameters(CalculationParameters parameters)
Sets the calculation parameters that apply to this column, used to control the how the calculation is performed.
|
Column.Builder |
reportingCurrency(ReportingCurrency reportingCurrency)
Sets the reporting currency, used to control currency conversion, optional.
|
Column.Builder |
set(MetaProperty<?> property,
Object value) |
Column.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
get
public Object get(String propertyName)
get
in interface BeanBuilder<Column>
get
in class DirectFieldsBeanBuilder<Column>
public Column.Builder set(String propertyName, Object newValue)
public Column.Builder set(MetaProperty<?> property, Object value)
set
in interface BeanBuilder<Column>
set
in class DirectFieldsBeanBuilder<Column>
public Column build()
public Column.Builder name(ColumnName name)
This is the name of the column, and should be unique in a list of columns.
name
- the new value, not nullpublic Column.Builder measure(Measure measure)
This defines the calculation being performed, such as 'PresentValue' or 'ParRate'.
measure
- the new value, not nullpublic Column.Builder reportingCurrency(ReportingCurrency reportingCurrency)
This is used to specify the currency that the result should be reporting in. If the result is not associated with a currency, such as for "par rate", then the reporting currency will effectively be ignored.
If empty, the reporting currency from CalculationRules
will be used.
reportingCurrency
- the new valuepublic Column.Builder parameters(CalculationParameters parameters)
The parameters from CalculationRules
and Column
are combined.
If a parameter is defined here and in the rules with the same
query type, then the column parameter takes precedence.
When building, these will default to be empty.
parameters
- the new valuepublic String toString()
toString
in class DirectFieldsBeanBuilder<Column>
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.