All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.digipost.org.oasis_open.docs.ebxml_msg.ebms.v3_0.ns.core._200704.Error Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2021.12.01 at 12:54:39 PM UTC 
//


package no.digipost.org.oasis_open.docs.ebxml_msg.ebms.v3_0.ns.core._200704;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * 

Java class for Error complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="Error">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Description" type="{http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/}Description" minOccurs="0"/>
 *         <element name="ErrorDetail" type="{http://www.w3.org/2001/XMLSchema}token" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="category" type="{http://www.w3.org/2001/XMLSchema}token" />
 *       <attribute name="refToMessageInError" type="{http://www.w3.org/2001/XMLSchema}token" />
 *       <attribute name="errorCode" use="required" type="{http://www.w3.org/2001/XMLSchema}token" />
 *       <attribute name="origin" type="{http://www.w3.org/2001/XMLSchema}token" />
 *       <attribute name="severity" use="required" type="{http://www.w3.org/2001/XMLSchema}token" />
 *       <attribute name="shortDescription" type="{http://www.w3.org/2001/XMLSchema}token" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Error", propOrder = { "description", "errorDetail" }) public class Error implements Equals2, HashCode2, ToString2 { @XmlElement(name = "Description") protected Description description; @XmlElement(name = "ErrorDetail") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String errorDetail; @XmlAttribute(name = "category") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String category; @XmlAttribute(name = "refToMessageInError") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String refToMessageInError; @XmlAttribute(name = "errorCode", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String errorCode; @XmlAttribute(name = "origin") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String origin; @XmlAttribute(name = "severity", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String severity; @XmlAttribute(name = "shortDescription") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String shortDescription; /** * Default no-arg constructor * */ public Error() { super(); } /** * Fully-initialising value constructor * */ public Error(final Description description, final String errorDetail, final String category, final String refToMessageInError, final String errorCode, final String origin, final String severity, final String shortDescription) { this.description = description; this.errorDetail = errorDetail; this.category = category; this.refToMessageInError = refToMessageInError; this.errorCode = errorCode; this.origin = origin; this.severity = severity; this.shortDescription = shortDescription; } /** * Gets the value of the description property. * * @return * possible object is * {@link Description } * */ public Description getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link Description } * */ public void setDescription(Description value) { this.description = value; } /** * Gets the value of the errorDetail property. * * @return * possible object is * {@link String } * */ public String getErrorDetail() { return errorDetail; } /** * Sets the value of the errorDetail property. * * @param value * allowed object is * {@link String } * */ public void setErrorDetail(String value) { this.errorDetail = value; } /** * Gets the value of the category property. * * @return * possible object is * {@link String } * */ public String getCategory() { return category; } /** * Sets the value of the category property. * * @param value * allowed object is * {@link String } * */ public void setCategory(String value) { this.category = value; } /** * Gets the value of the refToMessageInError property. * * @return * possible object is * {@link String } * */ public String getRefToMessageInError() { return refToMessageInError; } /** * Sets the value of the refToMessageInError property. * * @param value * allowed object is * {@link String } * */ public void setRefToMessageInError(String value) { this.refToMessageInError = value; } /** * Gets the value of the errorCode property. * * @return * possible object is * {@link String } * */ public String getErrorCode() { return errorCode; } /** * Sets the value of the errorCode property. * * @param value * allowed object is * {@link String } * */ public void setErrorCode(String value) { this.errorCode = value; } /** * Gets the value of the origin property. * * @return * possible object is * {@link String } * */ public String getOrigin() { return origin; } /** * Sets the value of the origin property. * * @param value * allowed object is * {@link String } * */ public void setOrigin(String value) { this.origin = value; } /** * Gets the value of the severity property. * * @return * possible object is * {@link String } * */ public String getSeverity() { return severity; } /** * Sets the value of the severity property. * * @param value * allowed object is * {@link String } * */ public void setSeverity(String value) { this.severity = value; } /** * Gets the value of the shortDescription property. * * @return * possible object is * {@link String } * */ public String getShortDescription() { return shortDescription; } /** * Sets the value of the shortDescription property. * * @param value * allowed object is * {@link String } * */ public void setShortDescription(String value) { this.shortDescription = value; } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE2; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { Description theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null)); } { String theErrorDetail; theErrorDetail = this.getErrorDetail(); strategy.appendField(locator, this, "errorDetail", buffer, theErrorDetail, (this.errorDetail!= null)); } { String theCategory; theCategory = this.getCategory(); strategy.appendField(locator, this, "category", buffer, theCategory, (this.category!= null)); } { String theRefToMessageInError; theRefToMessageInError = this.getRefToMessageInError(); strategy.appendField(locator, this, "refToMessageInError", buffer, theRefToMessageInError, (this.refToMessageInError!= null)); } { String theErrorCode; theErrorCode = this.getErrorCode(); strategy.appendField(locator, this, "errorCode", buffer, theErrorCode, (this.errorCode!= null)); } { String theOrigin; theOrigin = this.getOrigin(); strategy.appendField(locator, this, "origin", buffer, theOrigin, (this.origin!= null)); } { String theSeverity; theSeverity = this.getSeverity(); strategy.appendField(locator, this, "severity", buffer, theSeverity, (this.severity!= null)); } { String theShortDescription; theShortDescription = this.getShortDescription(); strategy.appendField(locator, this, "shortDescription", buffer, theShortDescription, (this.shortDescription!= null)); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final Error that = ((Error) object); { Description lhsDescription; lhsDescription = this.getDescription(); Description rhsDescription; rhsDescription = that.getDescription(); if (!strategy.equals(LocatorUtils.property(thisLocator, "description", lhsDescription), LocatorUtils.property(thatLocator, "description", rhsDescription), lhsDescription, rhsDescription, (this.description!= null), (that.description!= null))) { return false; } } { String lhsErrorDetail; lhsErrorDetail = this.getErrorDetail(); String rhsErrorDetail; rhsErrorDetail = that.getErrorDetail(); if (!strategy.equals(LocatorUtils.property(thisLocator, "errorDetail", lhsErrorDetail), LocatorUtils.property(thatLocator, "errorDetail", rhsErrorDetail), lhsErrorDetail, rhsErrorDetail, (this.errorDetail!= null), (that.errorDetail!= null))) { return false; } } { String lhsCategory; lhsCategory = this.getCategory(); String rhsCategory; rhsCategory = that.getCategory(); if (!strategy.equals(LocatorUtils.property(thisLocator, "category", lhsCategory), LocatorUtils.property(thatLocator, "category", rhsCategory), lhsCategory, rhsCategory, (this.category!= null), (that.category!= null))) { return false; } } { String lhsRefToMessageInError; lhsRefToMessageInError = this.getRefToMessageInError(); String rhsRefToMessageInError; rhsRefToMessageInError = that.getRefToMessageInError(); if (!strategy.equals(LocatorUtils.property(thisLocator, "refToMessageInError", lhsRefToMessageInError), LocatorUtils.property(thatLocator, "refToMessageInError", rhsRefToMessageInError), lhsRefToMessageInError, rhsRefToMessageInError, (this.refToMessageInError!= null), (that.refToMessageInError!= null))) { return false; } } { String lhsErrorCode; lhsErrorCode = this.getErrorCode(); String rhsErrorCode; rhsErrorCode = that.getErrorCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "errorCode", lhsErrorCode), LocatorUtils.property(thatLocator, "errorCode", rhsErrorCode), lhsErrorCode, rhsErrorCode, (this.errorCode!= null), (that.errorCode!= null))) { return false; } } { String lhsOrigin; lhsOrigin = this.getOrigin(); String rhsOrigin; rhsOrigin = that.getOrigin(); if (!strategy.equals(LocatorUtils.property(thisLocator, "origin", lhsOrigin), LocatorUtils.property(thatLocator, "origin", rhsOrigin), lhsOrigin, rhsOrigin, (this.origin!= null), (that.origin!= null))) { return false; } } { String lhsSeverity; lhsSeverity = this.getSeverity(); String rhsSeverity; rhsSeverity = that.getSeverity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "severity", lhsSeverity), LocatorUtils.property(thatLocator, "severity", rhsSeverity), lhsSeverity, rhsSeverity, (this.severity!= null), (that.severity!= null))) { return false; } } { String lhsShortDescription; lhsShortDescription = this.getShortDescription(); String rhsShortDescription; rhsShortDescription = that.getShortDescription(); if (!strategy.equals(LocatorUtils.property(thisLocator, "shortDescription", lhsShortDescription), LocatorUtils.property(thatLocator, "shortDescription", rhsShortDescription), lhsShortDescription, rhsShortDescription, (this.shortDescription!= null), (that.shortDescription!= null))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE2; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { Description theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null)); } { String theErrorDetail; theErrorDetail = this.getErrorDetail(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "errorDetail", theErrorDetail), currentHashCode, theErrorDetail, (this.errorDetail!= null)); } { String theCategory; theCategory = this.getCategory(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "category", theCategory), currentHashCode, theCategory, (this.category!= null)); } { String theRefToMessageInError; theRefToMessageInError = this.getRefToMessageInError(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "refToMessageInError", theRefToMessageInError), currentHashCode, theRefToMessageInError, (this.refToMessageInError!= null)); } { String theErrorCode; theErrorCode = this.getErrorCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "errorCode", theErrorCode), currentHashCode, theErrorCode, (this.errorCode!= null)); } { String theOrigin; theOrigin = this.getOrigin(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "origin", theOrigin), currentHashCode, theOrigin, (this.origin!= null)); } { String theSeverity; theSeverity = this.getSeverity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "severity", theSeverity), currentHashCode, theSeverity, (this.severity!= null)); } { String theShortDescription; theShortDescription = this.getShortDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "shortDescription", theShortDescription), currentHashCode, theShortDescription, (this.shortDescription!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE2; return this.hashCode(null, strategy); } public Error withDescription(Description value) { setDescription(value); return this; } public Error withErrorDetail(String value) { setErrorDetail(value); return this; } public Error withCategory(String value) { setCategory(value); return this; } public Error withRefToMessageInError(String value) { setRefToMessageInError(value); return this; } public Error withErrorCode(String value) { setErrorCode(value); return this; } public Error withOrigin(String value) { setOrigin(value); return this; } public Error withSeverity(String value) { setSeverity(value); return this; } public Error withShortDescription(String value) { setShortDescription(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy