public static final class FxResetCalculation.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxResetCalculation>
FxResetCalculation.| Modifier and Type | Method and Description |
|---|---|
FxResetCalculation |
build() |
FxResetCalculation.Builder |
fixingDateOffset(DaysAdjustment fixingDateOffset)
Sets the offset of the FX reset fixing date from each adjusted accrual date.
|
FxResetCalculation.Builder |
fixingRelativeTo(FxResetFixingRelativeTo fixingRelativeTo)
Sets the base date that each FX reset fixing is made relative to, defaulted to 'PeriodStart'.
|
Object |
get(String propertyName) |
FxResetCalculation.Builder |
index(FxIndex index)
Sets the FX index used to obtain the FX reset rate.
|
FxResetCalculation.Builder |
initialNotionalValue(Double initialNotionalValue)
Sets the initial notional value, specified in the payment currency.
|
FxResetCalculation.Builder |
referenceCurrency(Currency referenceCurrency)
Sets the currency of the notional amount defined in the contract.
|
FxResetCalculation.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
FxResetCalculation.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<FxResetCalculation>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxResetCalculation>public FxResetCalculation.Builder set(String propertyName, Object newValue)
public FxResetCalculation.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<FxResetCalculation>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxResetCalculation>public FxResetCalculation build()
public FxResetCalculation.Builder index(FxIndex index)
This is the index of FX used to obtain the FX reset rate. An FX index is a daily rate of exchange between two currencies. Note that the order of the currencies in the index does not matter, as the conversion direction is fully defined by the reference and swap leg currencies.
index - the new value, not nullpublic FxResetCalculation.Builder referenceCurrency(Currency referenceCurrency)
This is the currency of notional amount as defined in the contract. The amount will be converted from this reference currency to the swap leg currency when calculating the value of the leg.
The reference currency must be one of the two currencies of the index.
The reference currency is also known as the constant currency.
referenceCurrency - the new value, not nullpublic FxResetCalculation.Builder fixingRelativeTo(FxResetFixingRelativeTo fixingRelativeTo)
The FX reset fixing date is relative to either the start or end of each accrual period.
fixingRelativeTo - the new value, not nullpublic FxResetCalculation.Builder fixingDateOffset(DaysAdjustment fixingDateOffset)
The offset is applied to the base date specified by fixingRelativeTo.
The offset is typically a negative number of business days.
When building, this will default to the fixing offset of the index if not specified.
fixingDateOffset - the new value, not nullpublic FxResetCalculation.Builder initialNotionalValue(Double initialNotionalValue)
If present, this fixed amount represents the notional of the initial period of the swap leg, with no FX reset being applied.
If not present, the initial notional amount is calculated by applying an fx conversion to the reference currency in the same manner as all other period notional calculations.
initialNotionalValue - the new valuepublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxResetCalculation>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.