Class XCcyIborIborSwapCurveNode.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<XCcyIborIborSwapCurveNode>
-
- com.opengamma.strata.market.curve.node.XCcyIborIborSwapCurveNode.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<XCcyIborIborSwapCurveNode>
- Enclosing class:
- XCcyIborIborSwapCurveNode
public static final class XCcyIborIborSwapCurveNode.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<XCcyIborIborSwapCurveNode>
The bean-builder forXCcyIborIborSwapCurveNode
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XCcyIborIborSwapCurveNode.Builder
additionalSpread(double additionalSpread)
Sets the additional spread added to the market quote.XCcyIborIborSwapCurveNode
build()
XCcyIborIborSwapCurveNode.Builder
date(CurveNodeDate date)
Sets the method by which the date of the node is calculated, defaulted to 'End'.XCcyIborIborSwapCurveNode.Builder
dateOrder(CurveNodeDateOrder dateOrder)
Sets the date order rules, used to ensure that the dates in the curve are in order.XCcyIborIborSwapCurveNode.Builder
fxRateId(FxRateId fxRateId)
Sets the identifier used to obtain the FX rate market value, defaulted from the template.Object
get(String propertyName)
XCcyIborIborSwapCurveNode.Builder
label(String label)
Sets the label to use for the node, defaulted.XCcyIborIborSwapCurveNode.Builder
set(String propertyName, Object newValue)
XCcyIborIborSwapCurveNode.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
XCcyIborIborSwapCurveNode.Builder
spreadId(ObservableId spreadId)
Sets the identifier of the market data value which provides the spread.XCcyIborIborSwapCurveNode.Builder
template(XCcyIborIborSwapTemplate template)
Sets the template for the swap associated with this node.String
toString()
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<XCcyIborIborSwapCurveNode>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<XCcyIborIborSwapCurveNode>
-
set
public XCcyIborIborSwapCurveNode.Builder set(String propertyName, Object newValue)
-
set
public XCcyIborIborSwapCurveNode.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<XCcyIborIborSwapCurveNode>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<XCcyIborIborSwapCurveNode>
-
build
public XCcyIborIborSwapCurveNode build()
-
template
public XCcyIborIborSwapCurveNode.Builder template(XCcyIborIborSwapTemplate template)
Sets the template for the swap associated with this node.- Parameters:
template
- the new value, not null- Returns:
- this, for chaining, not null
-
fxRateId
public XCcyIborIborSwapCurveNode.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
-
spreadId
public XCcyIborIborSwapCurveNode.Builder spreadId(ObservableId spreadId)
Sets the identifier of the market data value which provides the spread.- Parameters:
spreadId
- the new value, not null- Returns:
- this, for chaining, not null
-
additionalSpread
public XCcyIborIborSwapCurveNode.Builder additionalSpread(double additionalSpread)
Sets the additional spread added to the market quote.- Parameters:
additionalSpread
- the new value- Returns:
- this, for chaining, not null
-
label
public XCcyIborIborSwapCurveNode.Builder label(String label)
Sets the label to use for the node, defaulted.When building, this will default based on the tenor if not specified.
- Parameters:
label
- the new value, not empty- Returns:
- this, for chaining, not null
-
date
public XCcyIborIborSwapCurveNode.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 XCcyIborIborSwapCurveNode.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:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<XCcyIborIborSwapCurveNode>
-
-