net.finmath.smartcontract.product.xml.Reason 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.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
/**
* A type defining a content model for describing the nature and possible
* location of a error within a previous message.
*
*
* Java class for Reason complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Reason">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="reasonCode" type="{http://www.fpml.org/FpML-5/confirmation}ReasonCode"/>
* <element name="location" type="{http://www.fpml.org/FpML-5/confirmation}ProblemLocation" minOccurs="0"/>
* <element name="description" type="{http://www.fpml.org/FpML-5/confirmation}String" minOccurs="0"/>
* <element name="validationRuleId" type="{http://www.fpml.org/FpML-5/confirmation}Validation" minOccurs="0"/>
* <element name="additionalData" type="{http://www.fpml.org/FpML-5/confirmation}AdditionalData" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Reason", propOrder = {
"reasonCode",
"location",
"description",
"validationRuleId",
"additionalData"
})
public class Reason {
@XmlElement(required = true)
protected ReasonCode reasonCode;
protected ProblemLocation location;
protected String description;
protected Validation validationRuleId;
protected List additionalData;
/**
* Gets the value of the reasonCode property.
*
* @return
* possible object is
* {@link ReasonCode }
*
*/
public ReasonCode getReasonCode() {
return reasonCode;
}
/**
* Sets the value of the reasonCode property.
*
* @param value
* allowed object is
* {@link ReasonCode }
*
*/
public void setReasonCode(ReasonCode value) {
this.reasonCode = value;
}
/**
* Gets the value of the location property.
*
* @return
* possible object is
* {@link ProblemLocation }
*
*/
public ProblemLocation getLocation() {
return location;
}
/**
* Sets the value of the location property.
*
* @param value
* allowed object is
* {@link ProblemLocation }
*
*/
public void setLocation(ProblemLocation value) {
this.location = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the validationRuleId property.
*
* @return
* possible object is
* {@link Validation }
*
*/
public Validation getValidationRuleId() {
return validationRuleId;
}
/**
* Sets the value of the validationRuleId property.
*
* @param value
* allowed object is
* {@link Validation }
*
*/
public void setValidationRuleId(Validation value) {
this.validationRuleId = value;
}
/**
* Gets the value of the additionalData 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 additionalData property.
*
*
* For example, to add a new item, do as follows:
*
* getAdditionalData().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AdditionalData }
*
*
*/
public List getAdditionalData() {
if (additionalData == null) {
additionalData = new ArrayList();
}
return this.additionalData;
}
}