Class CommodityForward
java.lang.Object
net.finmath.smartcontract.product.xml.Product
net.finmath.smartcontract.product.xml.CommodityForward
Commodity Forward
Java class for CommodityForward complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CommodityForward">
<complexContent>
<extension base="{http://www.fpml.org/FpML-5/confirmation}Product">
<sequence>
<element name="valueDate" type="{http://www.fpml.org/FpML-5/confirmation}AdjustableOrRelativeDate" minOccurs="0"/>
<choice>
<element name="fixedLeg" type="{http://www.fpml.org/FpML-5/confirmation}NonPeriodicFixedPriceLeg"/>
<element name="averagePriceLeg" type="{http://www.fpml.org/FpML-5/confirmation}AveragePriceLeg"/>
</choice>
<element ref="{http://www.fpml.org/FpML-5/confirmation}commodityForwardLeg"/>
<group ref="{http://www.fpml.org/FpML-5/confirmation}CommodityContent.model" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AveragePriceLegprotected jakarta.xml.bind.JAXBElement<? extends CommodityForwardLeg>protected Booleanprotected NonPeriodicFixedPriceLegprotected CommodityMarketDisruptionprotected Roundingprotected CommodityBullionSettlementDisruptionEnumprotected AdjustableOrRelativeDateFields 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 averagePriceLeg property.jakarta.xml.bind.JAXBElement<? extends CommodityForwardLeg>Gets the value of the commodityForwardLeg property.Gets the value of the fixedLeg property.Gets the value of the marketDisruption property.Gets the value of the rounding property.Gets the value of the settlementDisruption property.Gets the value of the valueDate property.Gets the value of the commonPricing property.voidsetAveragePriceLeg(AveragePriceLeg value)Sets the value of the averagePriceLeg property.voidsetCommodityForwardLeg(jakarta.xml.bind.JAXBElement<? extends CommodityForwardLeg> value)Sets the value of the commodityForwardLeg property.voidsetCommonPricing(Boolean value)Sets the value of the commonPricing property.voidsetFixedLeg(NonPeriodicFixedPriceLeg value)Sets the value of the fixedLeg property.voidSets the value of the marketDisruption property.voidsetRounding(Rounding value)Sets the value of the rounding property.voidSets the value of the settlementDisruption property.voidsetValueDate(AdjustableOrRelativeDate 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
-
valueDate
-
fixedLeg
-
averagePriceLeg
-
commodityForwardLeg
-
commonPricing
-
marketDisruption
-
settlementDisruption
-
rounding
-
-
Constructor Details
-
CommodityForward
public CommodityForward()
-
-
Method Details
-
getValueDate
Gets the value of the valueDate property.- Returns:
- possible object is
AdjustableOrRelativeDate
-
setValueDate
Sets the value of the valueDate property.- Parameters:
value- allowed object isAdjustableOrRelativeDate
-
getFixedLeg
Gets the value of the fixedLeg property.- Returns:
- possible object is
NonPeriodicFixedPriceLeg
-
setFixedLeg
Sets the value of the fixedLeg property.- Parameters:
value- allowed object isNonPeriodicFixedPriceLeg
-
getAveragePriceLeg
Gets the value of the averagePriceLeg property.- Returns:
- possible object is
AveragePriceLeg
-
setAveragePriceLeg
Sets the value of the averagePriceLeg property.- Parameters:
value- allowed object isAveragePriceLeg
-
getCommodityForwardLeg
Gets the value of the commodityForwardLeg property.- Returns:
- possible object is
JAXBElement<MetalPhysicalLeg>JAXBElement<BullionPhysicalLeg>JAXBElement<CommodityForwardLeg>
-
setCommodityForwardLeg
public void setCommodityForwardLeg(jakarta.xml.bind.JAXBElement<? extends CommodityForwardLeg> value)Sets the value of the commodityForwardLeg property.- Parameters:
value- allowed object isJAXBElement<MetalPhysicalLeg>JAXBElement<BullionPhysicalLeg>JAXBElement<CommodityForwardLeg>
-
isCommonPricing
Gets the value of the commonPricing property.- Returns:
- possible object is
Boolean
-
setCommonPricing
Sets the value of the commonPricing property.- Parameters:
value- allowed object isBoolean
-
getMarketDisruption
Gets the value of the marketDisruption property.- Returns:
- possible object is
CommodityMarketDisruption
-
setMarketDisruption
Sets the value of the marketDisruption property.- Parameters:
value- allowed object isCommodityMarketDisruption
-
getSettlementDisruption
Gets the value of the settlementDisruption property.- Returns:
- possible object is
CommodityBullionSettlementDisruptionEnum
-
setSettlementDisruption
Sets the value of the settlementDisruption property.- Parameters:
value- allowed object isCommodityBullionSettlementDisruptionEnum
-
getRounding
Gets the value of the rounding property.- Returns:
- possible object is
Rounding
-
setRounding
Sets the value of the rounding property.- Parameters:
value- allowed object isRounding
-