Class FxSwapCurveNode.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSwapCurveNode>
-
- com.opengamma.strata.market.curve.node.FxSwapCurveNode.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<FxSwapCurveNode>
- Enclosing class:
- FxSwapCurveNode
public static final class FxSwapCurveNode.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSwapCurveNode>
The bean-builder forFxSwapCurveNode.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FxSwapCurveNodebuild()FxSwapCurveNode.Builderdate(CurveNodeDate date)Sets the method by which the date of the node is calculated, defaulted to 'End'.FxSwapCurveNode.BuilderdateOrder(CurveNodeDateOrder dateOrder)Sets the date order rules, used to ensure that the dates in the curve are in order.FxSwapCurveNode.BuilderfarForwardPointsId(ObservableId farForwardPointsId)Sets the identifier of the market data value which provides the FX forward points.FxSwapCurveNode.BuilderfxRateId(FxRateId fxRateId)Sets the identifier used to obtain the FX rate market value, defaulted from the template.Objectget(String propertyName)FxSwapCurveNode.Builderlabel(String label)Sets the label to use for the node, defaulted.FxSwapCurveNode.Builderset(String propertyName, Object newValue)FxSwapCurveNode.Builderset(org.joda.beans.MetaProperty<?> property, Object value)FxSwapCurveNode.Buildertemplate(FxSwapTemplate template)Sets the template for the FX Swap associated with this node.StringtoString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<FxSwapCurveNode>- Overrides:
getin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSwapCurveNode>
-
set
public FxSwapCurveNode.Builder set(String propertyName, Object newValue)
-
set
public FxSwapCurveNode.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
setin interfaceorg.joda.beans.BeanBuilder<FxSwapCurveNode>- Overrides:
setin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSwapCurveNode>
-
build
public FxSwapCurveNode build()
-
template
public FxSwapCurveNode.Builder template(FxSwapTemplate template)
Sets the template for the FX Swap associated with this node.- Parameters:
template- the new value, not null- Returns:
- this, for chaining, not null
-
fxRateId
public FxSwapCurveNode.Builder fxRateId(FxRateId fxRateId)
Sets the identifier used to obtain the FX rate market value, defaulted from the template. This only needs to be specified if using multiple market data sources.- Parameters:
fxRateId- the new value, not null- Returns:
- this, for chaining, not null
-
farForwardPointsId
public FxSwapCurveNode.Builder farForwardPointsId(ObservableId farForwardPointsId)
Sets the identifier of the market data value which provides the FX forward points.- Parameters:
farForwardPointsId- the new value, not null- Returns:
- this, for chaining, not null
-
label
public FxSwapCurveNode.Builder label(String label)
Sets the label to use for the node, defaulted.When building, this will default based on the far period if not specified.
- Parameters:
label- the new value, not empty- Returns:
- this, for chaining, not null
-
date
public FxSwapCurveNode.Builder date(CurveNodeDate date)
Sets the method by which the date of the node is calculated, defaulted to 'End'.- Parameters:
date- the new value- Returns:
- this, for chaining, not null
-
dateOrder
public FxSwapCurveNode.Builder dateOrder(CurveNodeDateOrder dateOrder)
Sets the date order rules, used to ensure that the dates in the curve are in order. If not specified, this will default toCurveNodeDateOrder.DEFAULT.- Parameters:
dateOrder- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSwapCurveNode>
-
-