Class FxStraddle
java.lang.Object
net.finmath.smartcontract.product.xml.FxStraddle
Straddle details. Straddle is composed of two options: a call and a put
involving the quotedCurrencyPair.
Java class for FxStraddle complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="FxStraddle"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="straddleType" type="{http://www.fpml.org/FpML-5/confirmation}FxStraddleTypeEnum"/> <element name="tenorPeriod" type="{http://www.fpml.org/FpML-5/confirmation}Period" minOccurs="0"/> <sequence> <element name="europeanExercise" type="{http://www.fpml.org/FpML-5/confirmation}FxEuropeanExercise"/> <element name="exerciseProcedure" type="{http://www.fpml.org/FpML-5/confirmation}ExerciseProcedure" minOccurs="0"/> </sequence> <sequence> <element name="notional" type="{http://www.fpml.org/FpML-5/confirmation}NonNegativeMoney"/> <element name="counterCurrency" type="{http://www.fpml.org/FpML-5/confirmation}Currency"/> </sequence> <element name="premium" type="{http://www.fpml.org/FpML-5/confirmation}FxStraddlePremium" maxOccurs="unbounded" minOccurs="0"/> <element name="settlementDate" type="{http://www.fpml.org/FpML-5/confirmation}AdjustableOrAdjustedDate" minOccurs="0"/> <element name="cashSettlement" type="{http://www.fpml.org/FpML-5/confirmation}FxCashSettlementSimple" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>
-
Field Summary
Modifier and TypeFieldDescriptionprotected FxCashSettlementSimple
protected Currency
protected FxEuropeanExercise
protected ExerciseProcedure
protected NonNegativeMoney
protected List
<FxStraddlePremium> protected AdjustableOrAdjustedDate
protected FxStraddleTypeEnum
protected Period
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the value of the cashSettlement property.Gets the value of the counterCurrency property.Gets the value of the europeanExercise property.Gets the value of the exerciseProcedure property.Gets the value of the notional property.Gets the value of the premium property.Gets the value of the settlementDate property.Gets the value of the straddleType property.Gets the value of the tenorPeriod property.void
Sets the value of the cashSettlement property.void
setCounterCurrency
(Currency value) Sets the value of the counterCurrency property.void
Sets the value of the europeanExercise property.void
Sets the value of the exerciseProcedure property.void
setNotional
(NonNegativeMoney value) Sets the value of the notional property.void
Sets the value of the settlementDate property.void
Sets the value of the straddleType property.void
setTenorPeriod
(Period value) Sets the value of the tenorPeriod property.
-
Field Details
-
straddleType
-
tenorPeriod
-
europeanExercise
-
exerciseProcedure
-
notional
-
counterCurrency
-
settlementDate
-
cashSettlement
-
-
Constructor Details
-
FxStraddle
public FxStraddle()
-
-
Method Details
-
getStraddleType
Gets the value of the straddleType property.- Returns:
- possible object is
FxStraddleTypeEnum
-
setStraddleType
Sets the value of the straddleType property.- Parameters:
value
- allowed object isFxStraddleTypeEnum
-
getTenorPeriod
-
setTenorPeriod
-
getEuropeanExercise
Gets the value of the europeanExercise property.- Returns:
- possible object is
FxEuropeanExercise
-
setEuropeanExercise
Sets the value of the europeanExercise property.- Parameters:
value
- allowed object isFxEuropeanExercise
-
getExerciseProcedure
Gets the value of the exerciseProcedure property.- Returns:
- possible object is
ExerciseProcedure
-
setExerciseProcedure
Sets the value of the exerciseProcedure property.- Parameters:
value
- allowed object isExerciseProcedure
-
getNotional
Gets the value of the notional property.- Returns:
- possible object is
NonNegativeMoney
-
setNotional
Sets the value of the notional property.- Parameters:
value
- allowed object isNonNegativeMoney
-
getCounterCurrency
-
setCounterCurrency
-
getPremium
Gets the value of the premium 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
set
method for the premium property.For example, to add a new item, do as follows:
getPremium().add(newItem);
Objects of the following type(s) are allowed in the list
FxStraddlePremium
-
getSettlementDate
Gets the value of the settlementDate property.- Returns:
- possible object is
AdjustableOrAdjustedDate
-
setSettlementDate
Sets the value of the settlementDate property.- Parameters:
value
- allowed object isAdjustableOrAdjustedDate
-
getCashSettlement
Gets the value of the cashSettlement property.- Returns:
- possible object is
FxCashSettlementSimple
-
setCashSettlement
Sets the value of the cashSettlement property.- Parameters:
value
- allowed object isFxCashSettlementSimple
-