net.finmath.smartcontract.product.xml.TradePackage 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.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 bundle of trades collected together into a single unit for reporting.
*
*
* Java class for TradePackage complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="TradePackage">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="packageHeader" type="{http://www.fpml.org/FpML-5/confirmation}PackageHeader" minOccurs="0"/>
* <choice>
* <element name="trade" type="{http://www.fpml.org/FpML-5/confirmation}Trade" maxOccurs="unbounded"/>
* <group ref="{http://www.fpml.org/FpML-5/confirmation}TradeReferenceInformation.model" maxOccurs="unbounded"/>
* <element name="tradeIdentifier" type="{http://www.fpml.org/FpML-5/confirmation}TradeIdentifier" maxOccurs="unbounded"/>
* </choice>
* <element name="approvals" type="{http://www.fpml.org/FpML-5/confirmation}Approvals" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TradePackage", propOrder = {
"packageHeader",
"trade",
"tradeReferenceInformationModel",
"tradeIdentifier",
"approvals"
})
public class TradePackage {
protected PackageHeader packageHeader;
protected List trade;
@XmlElement(name = "tradeReferenceInformation")
protected List tradeReferenceInformationModel;
protected List tradeIdentifier;
protected Approvals approvals;
/**
* Gets the value of the packageHeader property.
*
* @return
* possible object is
* {@link PackageHeader }
*
*/
public PackageHeader getPackageHeader() {
return packageHeader;
}
/**
* Sets the value of the packageHeader property.
*
* @param value
* allowed object is
* {@link PackageHeader }
*
*/
public void setPackageHeader(PackageHeader value) {
this.packageHeader = value;
}
/**
* Gets the value of the trade 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 trade property.
*
*
* For example, to add a new item, do as follows:
*
* getTrade().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Trade }
*
*
*/
public List getTrade() {
if (trade == null) {
trade = new ArrayList();
}
return this.trade;
}
/**
* Gets the value of the tradeReferenceInformationModel 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 tradeReferenceInformationModel property.
*
*
* For example, to add a new item, do as follows:
*
* getTradeReferenceInformationModel().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TradeReferenceInformation }
*
*
*/
public List getTradeReferenceInformationModel() {
if (tradeReferenceInformationModel == null) {
tradeReferenceInformationModel = new ArrayList();
}
return this.tradeReferenceInformationModel;
}
/**
* Gets the value of the tradeIdentifier 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 tradeIdentifier property.
*
*
* For example, to add a new item, do as follows:
*
* getTradeIdentifier().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TradeIdentifier }
*
*
*/
public List getTradeIdentifier() {
if (tradeIdentifier == null) {
tradeIdentifier = new ArrayList();
}
return this.tradeIdentifier;
}
/**
* Gets the value of the approvals property.
*
* @return
* possible object is
* {@link Approvals }
*
*/
public Approvals getApprovals() {
return approvals;
}
/**
* Sets the value of the approvals property.
*
* @param value
* allowed object is
* {@link Approvals }
*
*/
public void setApprovals(Approvals value) {
this.approvals = value;
}
}