Class FxSingleLeg
java.lang.Object
net.finmath.smartcontract.product.xml.Product
net.finmath.smartcontract.product.xml.FxSingleLeg
A type defining either a spot or forward FX transactions.
Java class for FxSingleLeg complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="FxSingleLeg">
<complexContent>
<extension base="{http://www.fpml.org/FpML-5/confirmation}Product">
<sequence>
<group ref="{http://www.fpml.org/FpML-5/confirmation}FxCoreDetails.model"/>
</sequence>
</extension>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected XMLGregorianCalendarprotected XMLGregorianCalendarprotected DealtCurrencyEnumprotected List<FxDisruption> protected Paymentprotected Paymentprotected ExchangeRateprotected FxCashSettlementprotected FxTenorPeriodEnumprotected Periodprotected XMLGregorianCalendarFields inherited from class net.finmath.smartcontract.product.xml.Product
assetClass, id, primaryAssetClass, productId, productType, secondaryAssetClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the currency1ValueDate property.Gets the value of the currency2ValueDate property.Gets the value of the dealtCurrency property.Gets the value of the disruption property.Gets the value of the exchangedCurrency1 property.Gets the value of the exchangedCurrency2 property.Gets the value of the exchangeRate property.Gets the value of the nonDeliverableSettlement property.Gets the value of the tenorName property.Gets the value of the tenorPeriod property.Gets the value of the valueDate property.voidSets the value of the currency1ValueDate property.voidSets the value of the currency2ValueDate property.voidSets the value of the dealtCurrency property.voidsetExchangedCurrency1(Payment value) Sets the value of the exchangedCurrency1 property.voidsetExchangedCurrency2(Payment value) Sets the value of the exchangedCurrency2 property.voidsetExchangeRate(ExchangeRate value) Sets the value of the exchangeRate property.voidSets the value of the nonDeliverableSettlement property.voidsetTenorName(FxTenorPeriodEnum value) Sets the value of the tenorName property.voidsetTenorPeriod(Period value) Sets the value of the tenorPeriod property.voidsetValueDate(XMLGregorianCalendar value) Sets the value of the valueDate property.Methods inherited from class net.finmath.smartcontract.product.xml.Product
getAssetClass, getId, getPrimaryAssetClass, getProductId, getProductType, getSecondaryAssetClass, setId, setPrimaryAssetClass
-
Field Details
-
exchangedCurrency1
-
exchangedCurrency2
-
dealtCurrency
-
tenorName
-
tenorPeriod
-
valueDate
-
currency1ValueDate
-
currency2ValueDate
-
exchangeRate
-
nonDeliverableSettlement
-
disruption
-
-
Constructor Details
-
FxSingleLeg
public FxSingleLeg()
-
-
Method Details
-
getExchangedCurrency1
-
setExchangedCurrency1
-
getExchangedCurrency2
-
setExchangedCurrency2
-
getDealtCurrency
Gets the value of the dealtCurrency property.- Returns:
- possible object is
DealtCurrencyEnum
-
setDealtCurrency
Sets the value of the dealtCurrency property.- Parameters:
value- allowed object isDealtCurrencyEnum
-
getTenorName
Gets the value of the tenorName property.- Returns:
- possible object is
FxTenorPeriodEnum
-
setTenorName
Sets the value of the tenorName property.- Parameters:
value- allowed object isFxTenorPeriodEnum
-
getTenorPeriod
-
setTenorPeriod
-
getValueDate
Gets the value of the valueDate property.- Returns:
- possible object is
XMLGregorianCalendar
-
setValueDate
Sets the value of the valueDate property.- Parameters:
value- allowed object isXMLGregorianCalendar
-
getCurrency1ValueDate
Gets the value of the currency1ValueDate property.- Returns:
- possible object is
XMLGregorianCalendar
-
setCurrency1ValueDate
Sets the value of the currency1ValueDate property.- Parameters:
value- allowed object isXMLGregorianCalendar
-
getCurrency2ValueDate
Gets the value of the currency2ValueDate property.- Returns:
- possible object is
XMLGregorianCalendar
-
setCurrency2ValueDate
Sets the value of the currency2ValueDate property.- Parameters:
value- allowed object isXMLGregorianCalendar
-
getExchangeRate
Gets the value of the exchangeRate property.- Returns:
- possible object is
ExchangeRate
-
setExchangeRate
Sets the value of the exchangeRate property.- Parameters:
value- allowed object isExchangeRate
-
getNonDeliverableSettlement
Gets the value of the nonDeliverableSettlement property.- Returns:
- possible object is
FxCashSettlement
-
setNonDeliverableSettlement
Sets the value of the nonDeliverableSettlement property.- Parameters:
value- allowed object isFxCashSettlement
-
getDisruption
Gets the value of the disruption property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the disruption property.For example, to add a new item, do as follows:
getDisruption().add(newItem);Objects of the following type(s) are allowed in the list
FxDisruption
-