net.finmath.smartcontract.product.xml.CreditDefaultSwap 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.XmlElements;
import jakarta.xml.bind.annotation.XmlType;
/**
* Java class for CreditDefaultSwap complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="CreditDefaultSwap">
* <complexContent>
* <extension base="{http://www.fpml.org/FpML-5/confirmation}Product">
* <sequence>
* <element name="generalTerms" type="{http://www.fpml.org/FpML-5/confirmation}GeneralTerms"/>
* <element name="feeLeg" type="{http://www.fpml.org/FpML-5/confirmation}FeeLeg"/>
* <element name="protectionTerms" type="{http://www.fpml.org/FpML-5/confirmation}ProtectionTerms" maxOccurs="unbounded"/>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element name="cashSettlementTerms" type="{http://www.fpml.org/FpML-5/confirmation}CashSettlementTerms"/>
* <element name="physicalSettlementTerms" type="{http://www.fpml.org/FpML-5/confirmation}PhysicalSettlementTerms"/>
* </choice>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CreditDefaultSwap", propOrder = {
"generalTerms",
"feeLeg",
"protectionTerms",
"cashSettlementTermsOrPhysicalSettlementTerms"
})
public class CreditDefaultSwap
extends Product
{
@XmlElement(required = true)
protected GeneralTerms generalTerms;
@XmlElement(required = true)
protected FeeLeg feeLeg;
@XmlElement(required = true)
protected List protectionTerms;
@XmlElements({
@XmlElement(name = "cashSettlementTerms", type = CashSettlementTerms.class),
@XmlElement(name = "physicalSettlementTerms", type = PhysicalSettlementTerms.class)
})
protected List cashSettlementTermsOrPhysicalSettlementTerms;
/**
* Gets the value of the generalTerms property.
*
* @return
* possible object is
* {@link GeneralTerms }
*
*/
public GeneralTerms getGeneralTerms() {
return generalTerms;
}
/**
* Sets the value of the generalTerms property.
*
* @param value
* allowed object is
* {@link GeneralTerms }
*
*/
public void setGeneralTerms(GeneralTerms value) {
this.generalTerms = value;
}
/**
* Gets the value of the feeLeg property.
*
* @return
* possible object is
* {@link FeeLeg }
*
*/
public FeeLeg getFeeLeg() {
return feeLeg;
}
/**
* Sets the value of the feeLeg property.
*
* @param value
* allowed object is
* {@link FeeLeg }
*
*/
public void setFeeLeg(FeeLeg value) {
this.feeLeg = value;
}
/**
* Gets the value of the protectionTerms 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 protectionTerms property.
*
*
* For example, to add a new item, do as follows:
*
* getProtectionTerms().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ProtectionTerms }
*
*
*/
public List getProtectionTerms() {
if (protectionTerms == null) {
protectionTerms = new ArrayList();
}
return this.protectionTerms;
}
/**
* Gets the value of the cashSettlementTermsOrPhysicalSettlementTerms 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 cashSettlementTermsOrPhysicalSettlementTerms property.
*
*
* For example, to add a new item, do as follows:
*
* getCashSettlementTermsOrPhysicalSettlementTerms().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CashSettlementTerms }
* {@link PhysicalSettlementTerms }
*
*
*/
public List getCashSettlementTermsOrPhysicalSettlementTerms() {
if (cashSettlementTermsOrPhysicalSettlementTerms == null) {
cashSettlementTermsOrPhysicalSettlementTerms = new ArrayList();
}
return this.cashSettlementTermsOrPhysicalSettlementTerms;
}
}