net.finmath.smartcontract.product.xml.ExchangeRate Maven / Gradle / Ivy
Show all versions of finmath-smart-derivative-contract Show documentation
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.0
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.12.05 at 10:53:57 AM CET
//
package net.finmath.smartcontract.product.xml;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
/**
* A type that is used for describing the exchange rate for a particular
* transaction.
*
*
* Java class for ExchangeRate complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ExchangeRate">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="quotedCurrencyPair" type="{http://www.fpml.org/FpML-5/confirmation}QuotedCurrencyPair"/>
* <element name="rate" type="{http://www.fpml.org/FpML-5/confirmation}PositiveDecimal"/>
* <sequence minOccurs="0">
* <element name="spotRate" type="{http://www.fpml.org/FpML-5/confirmation}PositiveDecimal"/>
* <sequence minOccurs="0">
* <element name="forwardPoints" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* <element name="pointValue" type="{http://www.fpml.org/FpML-5/confirmation}PointValue" minOccurs="0"/>
* </sequence>
* </sequence>
* <element name="crossRate" type="{http://www.fpml.org/FpML-5/confirmation}CrossRate" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ExchangeRate", propOrder = {
"quotedCurrencyPair",
"rate",
"spotRate",
"forwardPoints",
"pointValue",
"crossRate"
})
public class ExchangeRate {
@XmlElement(required = true)
protected QuotedCurrencyPair quotedCurrencyPair;
@XmlElement(required = true)
protected BigDecimal rate;
protected BigDecimal spotRate;
protected BigDecimal forwardPoints;
protected BigDecimal pointValue;
protected List crossRate;
/**
* Gets the value of the quotedCurrencyPair property.
*
* @return
* possible object is
* {@link QuotedCurrencyPair }
*
*/
public QuotedCurrencyPair getQuotedCurrencyPair() {
return quotedCurrencyPair;
}
/**
* Sets the value of the quotedCurrencyPair property.
*
* @param value
* allowed object is
* {@link QuotedCurrencyPair }
*
*/
public void setQuotedCurrencyPair(QuotedCurrencyPair value) {
this.quotedCurrencyPair = value;
}
/**
* Gets the value of the rate property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getRate() {
return rate;
}
/**
* Sets the value of the rate property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setRate(BigDecimal value) {
this.rate = value;
}
/**
* Gets the value of the spotRate property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getSpotRate() {
return spotRate;
}
/**
* Sets the value of the spotRate property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setSpotRate(BigDecimal value) {
this.spotRate = value;
}
/**
* Gets the value of the forwardPoints property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getForwardPoints() {
return forwardPoints;
}
/**
* Sets the value of the forwardPoints property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setForwardPoints(BigDecimal value) {
this.forwardPoints = value;
}
/**
* Gets the value of the pointValue property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getPointValue() {
return pointValue;
}
/**
* Sets the value of the pointValue property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setPointValue(BigDecimal value) {
this.pointValue = value;
}
/**
* Gets the value of the crossRate 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 crossRate property.
*
*
* For example, to add a new item, do as follows:
*
* getCrossRate().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CrossRate }
*
*
*/
public List getCrossRate() {
if (crossRate == null) {
crossRate = new ArrayList();
}
return this.crossRate;
}
}