net.finmath.smartcontract.product.xml.OptionEvent Maven / Gradle / Ivy
//
// 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.XmlType;
/**
* Java class for OptionEvent complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="OptionEvent">
* <complexContent>
* <extension base="{http://www.fpml.org/FpML-5/confirmation}AbstractEvent">
* <sequence>
* <choice>
* <element name="originalTrade" type="{http://www.fpml.org/FpML-5/confirmation}Trade"/>
* <element name="tradeIdentifier" type="{http://www.fpml.org/FpML-5/confirmation}PartyTradeIdentifier" maxOccurs="unbounded"/>
* </choice>
* <choice>
* <element name="knockIn" type="{http://www.fpml.org/FpML-5/confirmation}TriggerRateObservation"/>
* <element name="knockOut" type="{http://www.fpml.org/FpML-5/confirmation}KnockOutRateObservation"/>
* <element name="touch" type="{http://www.fpml.org/FpML-5/confirmation}TouchRateObservation" maxOccurs="2"/>
* <element name="noTouch" type="{http://www.fpml.org/FpML-5/confirmation}NoTouchRateObservation"/>
* </choice>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OptionEvent", propOrder = {
"originalTrade",
"tradeIdentifier",
"knockIn",
"knockOut",
"touch",
"noTouch"
})
public class OptionEvent
extends AbstractEvent
{
protected Trade originalTrade;
protected List tradeIdentifier;
protected TriggerRateObservation knockIn;
protected KnockOutRateObservation knockOut;
protected List touch;
protected NoTouchRateObservation noTouch;
/**
* Gets the value of the originalTrade property.
*
* @return
* possible object is
* {@link Trade }
*
*/
public Trade getOriginalTrade() {
return originalTrade;
}
/**
* Sets the value of the originalTrade property.
*
* @param value
* allowed object is
* {@link Trade }
*
*/
public void setOriginalTrade(Trade value) {
this.originalTrade = value;
}
/**
* 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 PartyTradeIdentifier }
*
*
*/
public List getTradeIdentifier() {
if (tradeIdentifier == null) {
tradeIdentifier = new ArrayList();
}
return this.tradeIdentifier;
}
/**
* Gets the value of the knockIn property.
*
* @return
* possible object is
* {@link TriggerRateObservation }
*
*/
public TriggerRateObservation getKnockIn() {
return knockIn;
}
/**
* Sets the value of the knockIn property.
*
* @param value
* allowed object is
* {@link TriggerRateObservation }
*
*/
public void setKnockIn(TriggerRateObservation value) {
this.knockIn = value;
}
/**
* Gets the value of the knockOut property.
*
* @return
* possible object is
* {@link KnockOutRateObservation }
*
*/
public KnockOutRateObservation getKnockOut() {
return knockOut;
}
/**
* Sets the value of the knockOut property.
*
* @param value
* allowed object is
* {@link KnockOutRateObservation }
*
*/
public void setKnockOut(KnockOutRateObservation value) {
this.knockOut = value;
}
/**
* Gets the value of the touch 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 touch property.
*
*
* For example, to add a new item, do as follows:
*
* getTouch().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TouchRateObservation }
*
*
*/
public List getTouch() {
if (touch == null) {
touch = new ArrayList();
}
return this.touch;
}
/**
* Gets the value of the noTouch property.
*
* @return
* possible object is
* {@link NoTouchRateObservation }
*
*/
public NoTouchRateObservation getNoTouch() {
return noTouch;
}
/**
* Sets the value of the noTouch property.
*
* @param value
* allowed object is
* {@link NoTouchRateObservation }
*
*/
public void setNoTouch(NoTouchRateObservation value) {
this.noTouch = value;
}
}