Class CommodityOption
Java class for CommodityOption complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CommodityOption">
<complexContent>
<extension base="{http://www.fpml.org/FpML-5/confirmation}Product">
<sequence>
<group ref="{http://www.fpml.org/FpML-5/confirmation}BuyerSeller.model"/>
<element name="optionType" type="{http://www.fpml.org/FpML-5/confirmation}PutCallEnum"/>
<choice>
<group ref="{http://www.fpml.org/FpML-5/confirmation}CommodityFinancialOption.model"/>
<group ref="{http://www.fpml.org/FpML-5/confirmation}CommodityPhysicalOption.model"/>
<group ref="{http://www.fpml.org/FpML-5/confirmation}CommodityWeatherOption.model"/>
</choice>
<element name="premium" type="{http://www.fpml.org/FpML-5/confirmation}CommodityPremium" maxOccurs="unbounded"/>
<group ref="{http://www.fpml.org/FpML-5/confirmation}CommodityContent.model" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
-
Field Summary
FieldsFields inherited from class net.finmath.smartcontract.product.xml.Product
assetClass, id, primaryAssetClass, productId, productType, secondaryAssetClass -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.finmath.smartcontract.product.xml.Product
getAssetClass, getId, getPrimaryAssetClass, getProductId, getProductType, getSecondaryAssetClass, setId, setPrimaryAssetClass
-
Field Details
-
rest
-
-
Constructor Details
-
CommodityOption
public CommodityOption()
-
-
Method Details
-
getRest
Gets the rest of the content model.You are getting this "catch-all" property because of the following reason: The field name "Barrier" is used by two different parts of a schema. See: line 5547 of file:/Users/fries/git-sdc/finmath-smart-derivative-contract/target/checkout/src/main/resources/schemas/fpml-schemas/fpml-com-5-9.xsd line 5540 of file:/Users/fries/git-sdc/finmath-smart-derivative-contract/target/checkout/src/main/resources/schemas/fpml-schemas/fpml-com-5-9.xsd
To get rid of this property, apply a property customization to one of both of the following declarations to change their names: Gets the value of the rest 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 rest property.For example, to add a new item, do as follows:
getRest().add(newItem);Objects of the following type(s) are allowed in the list
JAXBElement<PartyReference>JAXBElement<AccountReference>JAXBElement<PartyReference>JAXBElement<AccountReference>JAXBElement<PutCallEnum>JAXBElement<Commodity>JAXBElement<AdjustableOrRelativeDate>JAXBElement<AdjustableOrRelativeDate>JAXBElement<CommodityCalculationPeriodsSchedule>JAXBElement<AdjustableDates>JAXBElement<CommodityPricingDates>JAXBElement<AveragingMethodEnum>JAXBElement<CommodityBarrier>JAXBElement<CommodityNotionalQuantitySchedule>JAXBElement<CommodityNotionalQuantity>JAXBElement<CommoditySettlementPeriodsNotionalQuantity>JAXBElement<BigDecimal>JAXBElement<QuantityReference>JAXBElement<CommodityExercise>JAXBElement<NonNegativeMoney>JAXBElement<CommodityStrikeSchedule>JAXBElement<FloatingStrikePrice>JAXBElement<CommodityCalculationPeriodsSchedule>JAXBElement<CommoditySwap>JAXBElement<CommodityForward>JAXBElement<CommodityPhysicalExercise>JAXBElement<WeatherCalculationPeriods>JAXBElement<CalculationPeriodsReference>JAXBElement<NonNegativeMoney>JAXBElement<WeatherIndex>JAXBElement<WeatherLegCalculation>JAXBElement<WeatherIndexData>JAXBElement<CommodityPremium>JAXBElement<Boolean>JAXBElement<CommodityMarketDisruption>JAXBElement<CommodityBullionSettlementDisruptionEnum>JAXBElement<Rounding>
-