Class FxOption
java.lang.Object
net.finmath.smartcontract.product.xml.Product
net.finmath.smartcontract.product.xml.Option
net.finmath.smartcontract.product.xml.FxOption
Describes an FX option with optional asian and barrier features.
Java class for FxOption complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="FxOption"> <complexContent> <extension base="{http://www.fpml.org/FpML-5/confirmation}Option"> <sequence> <element name="effectiveDate" type="{http://www.fpml.org/FpML-5/confirmation}AdjustableOrRelativeDate" minOccurs="0"/> <element name="tenorPeriod" type="{http://www.fpml.org/FpML-5/confirmation}Period" minOccurs="0"/> <sequence> <choice> <element name="americanExercise" type="{http://www.fpml.org/FpML-5/confirmation}FxAmericanExercise"/> <element name="europeanExercise" type="{http://www.fpml.org/FpML-5/confirmation}FxEuropeanExercise"/> </choice> <element name="exerciseProcedure" type="{http://www.fpml.org/FpML-5/confirmation}ExerciseProcedure" minOccurs="0"/> </sequence> <sequence> <element name="putCurrencyAmount" type="{http://www.fpml.org/FpML-5/confirmation}NonNegativeMoney"/> <element name="callCurrencyAmount" type="{http://www.fpml.org/FpML-5/confirmation}NonNegativeMoney"/> </sequence> <element name="soldAs" type="{http://www.fpml.org/FpML-5/confirmation}PutCallEnum" minOccurs="0"/> <sequence> <element name="strike" type="{http://www.fpml.org/FpML-5/confirmation}FxStrikePrice"/> <element name="spotRate" type="{http://www.fpml.org/FpML-5/confirmation}PositiveDecimal" minOccurs="0"/> </sequence> <element name="features" type="{http://www.fpml.org/FpML-5/confirmation}FxOptionFeatures" minOccurs="0"/> <element name="premium" type="{http://www.fpml.org/FpML-5/confirmation}FxOptionPremium" minOccurs="0"/> <element name="cashSettlement" type="{http://www.fpml.org/FpML-5/confirmation}FxCashSettlement" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
Field Summary
Modifier and TypeFieldDescriptionprotected FxAmericanExercise
protected NonNegativeMoney
protected FxCashSettlement
protected AdjustableOrRelativeDate
protected FxEuropeanExercise
protected ExerciseProcedure
protected FxOptionFeatures
protected FxOptionPremium
protected NonNegativeMoney
protected PutCallEnum
protected BigDecimal
protected FxStrikePrice
protected Period
Fields inherited from class net.finmath.smartcontract.product.xml.Option
buyerAccountReference, buyerPartyReference, sellerAccountReference, sellerPartyReference
Fields inherited from class net.finmath.smartcontract.product.xml.Product
assetClass, id, primaryAssetClass, productId, productType, secondaryAssetClass
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the value of the americanExercise property.Gets the value of the callCurrencyAmount property.Gets the value of the cashSettlement property.Gets the value of the effectiveDate property.Gets the value of the europeanExercise property.Gets the value of the exerciseProcedure property.Gets the value of the features property.Gets the value of the premium property.Gets the value of the putCurrencyAmount property.Gets the value of the soldAs property.Gets the value of the spotRate property.Gets the value of the strike property.Gets the value of the tenorPeriod property.void
Sets the value of the americanExercise property.void
Sets the value of the callCurrencyAmount property.void
Sets the value of the cashSettlement property.void
Sets the value of the effectiveDate property.void
Sets the value of the europeanExercise property.void
Sets the value of the exerciseProcedure property.void
setFeatures
(FxOptionFeatures value) Sets the value of the features property.void
setPremium
(FxOptionPremium value) Sets the value of the premium property.void
Sets the value of the putCurrencyAmount property.void
setSoldAs
(PutCallEnum value) Sets the value of the soldAs property.void
setSpotRate
(BigDecimal value) Sets the value of the spotRate property.void
setStrike
(FxStrikePrice value) Sets the value of the strike property.void
setTenorPeriod
(Period value) Sets the value of the tenorPeriod property.Methods inherited from class net.finmath.smartcontract.product.xml.Option
getBuyerAccountReference, getBuyerPartyReference, getSellerAccountReference, getSellerPartyReference, setBuyerAccountReference, setBuyerPartyReference, setSellerAccountReference, setSellerPartyReference
Methods inherited from class net.finmath.smartcontract.product.xml.Product
getAssetClass, getId, getPrimaryAssetClass, getProductId, getProductType, getSecondaryAssetClass, setId, setPrimaryAssetClass
-
Field Details
-
effectiveDate
-
tenorPeriod
-
americanExercise
-
europeanExercise
-
exerciseProcedure
-
putCurrencyAmount
-
callCurrencyAmount
-
soldAs
-
strike
-
spotRate
-
features
-
cashSettlement
-
-
Constructor Details
-
FxOption
public FxOption()
-
-
Method Details
-
getEffectiveDate
Gets the value of the effectiveDate property.- Returns:
- possible object is
AdjustableOrRelativeDate
-
setEffectiveDate
Sets the value of the effectiveDate property.- Parameters:
value
- allowed object isAdjustableOrRelativeDate
-
getTenorPeriod
-
setTenorPeriod
-
getAmericanExercise
Gets the value of the americanExercise property.- Returns:
- possible object is
FxAmericanExercise
-
setAmericanExercise
Sets the value of the americanExercise property.- Parameters:
value
- allowed object isFxAmericanExercise
-
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
-
getPutCurrencyAmount
Gets the value of the putCurrencyAmount property.- Returns:
- possible object is
NonNegativeMoney
-
setPutCurrencyAmount
Sets the value of the putCurrencyAmount property.- Parameters:
value
- allowed object isNonNegativeMoney
-
getCallCurrencyAmount
Gets the value of the callCurrencyAmount property.- Returns:
- possible object is
NonNegativeMoney
-
setCallCurrencyAmount
Sets the value of the callCurrencyAmount property.- Parameters:
value
- allowed object isNonNegativeMoney
-
getSoldAs
Gets the value of the soldAs property.- Returns:
- possible object is
PutCallEnum
-
setSoldAs
Sets the value of the soldAs property.- Parameters:
value
- allowed object isPutCallEnum
-
getStrike
Gets the value of the strike property.- Returns:
- possible object is
FxStrikePrice
-
setStrike
Sets the value of the strike property.- Parameters:
value
- allowed object isFxStrikePrice
-
getSpotRate
Gets the value of the spotRate property.- Returns:
- possible object is
BigDecimal
-
setSpotRate
Sets the value of the spotRate property.- Parameters:
value
- allowed object isBigDecimal
-
getFeatures
Gets the value of the features property.- Returns:
- possible object is
FxOptionFeatures
-
setFeatures
Sets the value of the features property.- Parameters:
value
- allowed object isFxOptionFeatures
-
getPremium
Gets the value of the premium property.- Returns:
- possible object is
FxOptionPremium
-
setPremium
Sets the value of the premium property.- Parameters:
value
- allowed object isFxOptionPremium
-
getCashSettlement
Gets the value of the cashSettlement property.- Returns:
- possible object is
FxCashSettlement
-
setCashSettlement
Sets the value of the cashSettlement property.- Parameters:
value
- allowed object isFxCashSettlement
-