
org.fpml.fpml_5.confirmation.FloatingLegCalculation Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.04.04 at 04:56:21 PM UTC
//
package org.fpml.fpml_5.confirmation;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* A type to capture details relevant to the calculation of the floating price.
*
* Java class for FloatingLegCalculation complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="FloatingLegCalculation">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="pricingDates" type="{http://www.fpml.org/FpML-5/confirmation}CommodityPricingDates"/>
* <element name="averagingMethod" type="{http://www.fpml.org/FpML-5/confirmation}AveragingMethodEnum" minOccurs="0"/>
* <element name="conversionFactor" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
* <element name="rounding" type="{http://www.fpml.org/FpML-5/confirmation}Rounding" minOccurs="0"/>
* <choice minOccurs="0">
* <element name="spread" type="{http://www.fpml.org/FpML-5/confirmation}CommoditySpread"/>
* <element name="spreadSchedule" type="{http://www.fpml.org/FpML-5/confirmation}CommoditySpreadSchedule" maxOccurs="unbounded"/>
* <element name="spreadPercentage" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* </choice>
* <element name="fx" type="{http://www.fpml.org/FpML-5/confirmation}CommodityFx" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FloatingLegCalculation", propOrder = {
"pricingDates",
"averagingMethod",
"conversionFactor",
"rounding",
"spread",
"spreadSchedule",
"spreadPercentage",
"fx"
})
@XmlSeeAlso({
FloatingStrikePrice.class
})
public class FloatingLegCalculation {
@XmlElement(required = true)
protected CommodityPricingDates pricingDates;
@XmlSchemaType(name = "token")
protected AveragingMethodEnum averagingMethod;
protected BigDecimal conversionFactor;
protected Rounding rounding;
protected CommoditySpread spread;
protected List spreadSchedule;
protected BigDecimal spreadPercentage;
protected CommodityFx fx;
/**
* Gets the value of the pricingDates property.
*
* @return
* possible object is
* {@link CommodityPricingDates }
*
*/
public CommodityPricingDates getPricingDates() {
return pricingDates;
}
/**
* Sets the value of the pricingDates property.
*
* @param value
* allowed object is
* {@link CommodityPricingDates }
*
*/
public void setPricingDates(CommodityPricingDates value) {
this.pricingDates = value;
}
/**
* Gets the value of the averagingMethod property.
*
* @return
* possible object is
* {@link AveragingMethodEnum }
*
*/
public AveragingMethodEnum getAveragingMethod() {
return averagingMethod;
}
/**
* Sets the value of the averagingMethod property.
*
* @param value
* allowed object is
* {@link AveragingMethodEnum }
*
*/
public void setAveragingMethod(AveragingMethodEnum value) {
this.averagingMethod = value;
}
/**
* Gets the value of the conversionFactor property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getConversionFactor() {
return conversionFactor;
}
/**
* Sets the value of the conversionFactor property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setConversionFactor(BigDecimal value) {
this.conversionFactor = value;
}
/**
* Gets the value of the rounding property.
*
* @return
* possible object is
* {@link Rounding }
*
*/
public Rounding getRounding() {
return rounding;
}
/**
* Sets the value of the rounding property.
*
* @param value
* allowed object is
* {@link Rounding }
*
*/
public void setRounding(Rounding value) {
this.rounding = value;
}
/**
* Gets the value of the spread property.
*
* @return
* possible object is
* {@link CommoditySpread }
*
*/
public CommoditySpread getSpread() {
return spread;
}
/**
* Sets the value of the spread property.
*
* @param value
* allowed object is
* {@link CommoditySpread }
*
*/
public void setSpread(CommoditySpread value) {
this.spread = value;
}
/**
* Gets the value of the spreadSchedule 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 JAXB object.
* This is why there is not a set
method for the spreadSchedule property.
*
*
* For example, to add a new item, do as follows:
*
* getSpreadSchedule().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CommoditySpreadSchedule }
*
*
*/
public List getSpreadSchedule() {
if (spreadSchedule == null) {
spreadSchedule = new ArrayList();
}
return this.spreadSchedule;
}
/**
* Gets the value of the spreadPercentage property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getSpreadPercentage() {
return spreadPercentage;
}
/**
* Sets the value of the spreadPercentage property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setSpreadPercentage(BigDecimal value) {
this.spreadPercentage = value;
}
/**
* Gets the value of the fx property.
*
* @return
* possible object is
* {@link CommodityFx }
*
*/
public CommodityFx getFx() {
return fx;
}
/**
* Sets the value of the fx property.
*
* @param value
* allowed object is
* {@link CommodityFx }
*
*/
public void setFx(CommodityFx value) {
this.fx = value;
}
}