Package cdm.product.asset
Class ForeignExchange.ForeignExchangeBuilderImpl
java.lang.Object
cdm.product.asset.ForeignExchange.ForeignExchangeBuilderImpl
- All Implemented Interfaces:
ForeignExchange,ForeignExchange.ForeignExchangeBuilder,com.rosetta.model.lib.RosettaModelObject,com.rosetta.model.lib.RosettaModelObjectBuilder
- Enclosing interface:
ForeignExchange
public static class ForeignExchange.ForeignExchangeBuilderImpl
extends Object
implements ForeignExchange.ForeignExchangeBuilder
Builder Implementation of ForeignExchange
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.product.asset.ForeignExchange
ForeignExchange.ForeignExchangeBuilder, ForeignExchange.ForeignExchangeBuilderImpl, ForeignExchange.ForeignExchangeImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Cashflow.CashflowBuilderprotected Cashflow.CashflowBuilderprotected ExchangeRate.ExchangeRateBuilderprotected Period.PeriodBuilderFields inherited from interface cdm.product.asset.ForeignExchange
metaData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build MethodsbooleanThis is the first of the two currency flows that define a single leg of a standard foreign exchange transaction.This is the second of the two currency flows that define a single leg of a standard foreign exchange transaction.The rate of exchange between the two currencies.A tenor expressed as a period type and multiplier (e.g. 1D, 1Y, etc.)booleanhasData()inthashCode()merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) prune()setExchangedCurrency1(Cashflow _exchangedCurrency1) setExchangedCurrency2(Cashflow _exchangedCurrency2) setExchangeRate(ExchangeRate _exchangeRate) setTenorPeriod(Period _tenorPeriod) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdm.product.asset.ForeignExchange
getType, metaData, processMethods inherited from interface cdm.product.asset.ForeignExchange.ForeignExchangeBuilder
processMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosettaMethods inherited from interface com.rosetta.model.lib.RosettaModelObjectBuilder
getIndex, processRosetta, processRosetta
-
Field Details
-
exchangedCurrency1
-
exchangedCurrency2
-
tenorPeriod
-
exchangeRate
-
-
Constructor Details
-
ForeignExchangeBuilderImpl
public ForeignExchangeBuilderImpl()
-
-
Method Details
-
getExchangedCurrency1
@RosettaAttribute(value="exchangedCurrency1", isRequired=true) @RuneAttribute(value="exchangedCurrency1", isRequired=true) public Cashflow.CashflowBuilder getExchangedCurrency1()Description copied from interface:ForeignExchangeThis is the first of the two currency flows that define a single leg of a standard foreign exchange transaction.- Specified by:
getExchangedCurrency1in interfaceForeignExchange- Specified by:
getExchangedCurrency1in interfaceForeignExchange.ForeignExchangeBuilder
-
getOrCreateExchangedCurrency1
- Specified by:
getOrCreateExchangedCurrency1in interfaceForeignExchange.ForeignExchangeBuilder
-
getExchangedCurrency2
@RosettaAttribute(value="exchangedCurrency2", isRequired=true) @RuneAttribute(value="exchangedCurrency2", isRequired=true) public Cashflow.CashflowBuilder getExchangedCurrency2()Description copied from interface:ForeignExchangeThis is the second of the two currency flows that define a single leg of a standard foreign exchange transaction.- Specified by:
getExchangedCurrency2in interfaceForeignExchange- Specified by:
getExchangedCurrency2in interfaceForeignExchange.ForeignExchangeBuilder
-
getOrCreateExchangedCurrency2
- Specified by:
getOrCreateExchangedCurrency2in interfaceForeignExchange.ForeignExchangeBuilder
-
getTenorPeriod
@RosettaAttribute("tenorPeriod") @RuneAttribute("tenorPeriod") public Period.PeriodBuilder getTenorPeriod()Description copied from interface:ForeignExchangeA tenor expressed as a period type and multiplier (e.g. 1D, 1Y, etc.)- Specified by:
getTenorPeriodin interfaceForeignExchange- Specified by:
getTenorPeriodin interfaceForeignExchange.ForeignExchangeBuilder
-
getOrCreateTenorPeriod
- Specified by:
getOrCreateTenorPeriodin interfaceForeignExchange.ForeignExchangeBuilder
-
getExchangeRate
@RosettaAttribute("exchangeRate") @RuneAttribute("exchangeRate") public ExchangeRate.ExchangeRateBuilder getExchangeRate()Description copied from interface:ForeignExchangeThe rate of exchange between the two currencies.- Specified by:
getExchangeRatein interfaceForeignExchange- Specified by:
getExchangeRatein interfaceForeignExchange.ForeignExchangeBuilder
-
getOrCreateExchangeRate
- Specified by:
getOrCreateExchangeRatein interfaceForeignExchange.ForeignExchangeBuilder
-
setExchangedCurrency1
@RosettaAttribute(value="exchangedCurrency1", isRequired=true) @RuneAttribute(value="exchangedCurrency1", isRequired=true) public ForeignExchange.ForeignExchangeBuilder setExchangedCurrency1(Cashflow _exchangedCurrency1) - Specified by:
setExchangedCurrency1in interfaceForeignExchange.ForeignExchangeBuilder
-
setExchangedCurrency2
@RosettaAttribute(value="exchangedCurrency2", isRequired=true) @RuneAttribute(value="exchangedCurrency2", isRequired=true) public ForeignExchange.ForeignExchangeBuilder setExchangedCurrency2(Cashflow _exchangedCurrency2) - Specified by:
setExchangedCurrency2in interfaceForeignExchange.ForeignExchangeBuilder
-
setTenorPeriod
@RosettaAttribute("tenorPeriod") @RuneAttribute("tenorPeriod") public ForeignExchange.ForeignExchangeBuilder setTenorPeriod(Period _tenorPeriod) - Specified by:
setTenorPeriodin interfaceForeignExchange.ForeignExchangeBuilder
-
setExchangeRate
@RosettaAttribute("exchangeRate") @RuneAttribute("exchangeRate") public ForeignExchange.ForeignExchangeBuilder setExchangeRate(ExchangeRate _exchangeRate) - Specified by:
setExchangeRatein interfaceForeignExchange.ForeignExchangeBuilder
-
build
Description copied from interface:ForeignExchangeBuild Methods- Specified by:
buildin interfaceForeignExchange- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject
-
toBuilder
- Specified by:
toBuilderin interfaceForeignExchange- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject
-
prune
- Specified by:
prunein interfaceForeignExchange.ForeignExchangeBuilder- Specified by:
prunein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
hasData
public boolean hasData()- Specified by:
hasDatain interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
merge
public ForeignExchange.ForeignExchangeBuilder merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) - Specified by:
mergein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
equals
-
hashCode
public int hashCode() -
toString
-