![JAR search and dependency download from the Maven repository](/logo.png)
no.nav.virksomhet.tjenester.felles.v1.StelvioFault Maven / Gradle / Ivy
package no.nav.virksomhet.tjenester.felles.v1;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import no.nav.gosys.journal.feil.FilUuidFinnesIkke;
import no.nav.gosys.journal.feil.JournalpostIkkeFunnet;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Java class for StelvioFault complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="StelvioFault">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="errorSource" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="errorType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="rootCause" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="dateTimeStamp" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StelvioFault", propOrder = {
"errorMessage",
"errorSource",
"errorType",
"rootCause",
"dateTimeStamp"
})
@XmlSeeAlso({
JournalpostIkkeFunnet.class,
FilUuidFinnesIkke.class
})
public class StelvioFault
implements Equals, HashCode, ToString
{
protected String errorMessage;
protected String errorSource;
protected String errorType;
protected String rootCause;
protected String dateTimeStamp;
/**
* Gets the value of the errorMessage property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getErrorMessage() {
return errorMessage;
}
/**
* Sets the value of the errorMessage property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setErrorMessage(String value) {
this.errorMessage = value;
}
/**
* Gets the value of the errorSource property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getErrorSource() {
return errorSource;
}
/**
* Sets the value of the errorSource property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setErrorSource(String value) {
this.errorSource = value;
}
/**
* Gets the value of the errorType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getErrorType() {
return errorType;
}
/**
* Sets the value of the errorType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setErrorType(String value) {
this.errorType = value;
}
/**
* Gets the value of the rootCause property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRootCause() {
return rootCause;
}
/**
* Sets the value of the rootCause property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRootCause(String value) {
this.rootCause = value;
}
/**
* Gets the value of the dateTimeStamp property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDateTimeStamp() {
return dateTimeStamp;
}
/**
* Sets the value of the dateTimeStamp property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDateTimeStamp(String value) {
this.dateTimeStamp = value;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
String theErrorMessage;
theErrorMessage = this.getErrorMessage();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "errorMessage", theErrorMessage), currentHashCode, theErrorMessage);
}
{
String theErrorSource;
theErrorSource = this.getErrorSource();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "errorSource", theErrorSource), currentHashCode, theErrorSource);
}
{
String theErrorType;
theErrorType = this.getErrorType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "errorType", theErrorType), currentHashCode, theErrorType);
}
{
String theRootCause;
theRootCause = this.getRootCause();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rootCause", theRootCause), currentHashCode, theRootCause);
}
{
String theDateTimeStamp;
theDateTimeStamp = this.getDateTimeStamp();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dateTimeStamp", theDateTimeStamp), currentHashCode, theDateTimeStamp);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof StelvioFault)) {
return false;
}
if (this == object) {
return true;
}
final StelvioFault that = ((StelvioFault) object);
{
String lhsErrorMessage;
lhsErrorMessage = this.getErrorMessage();
String rhsErrorMessage;
rhsErrorMessage = that.getErrorMessage();
if (!strategy.equals(LocatorUtils.property(thisLocator, "errorMessage", lhsErrorMessage), LocatorUtils.property(thatLocator, "errorMessage", rhsErrorMessage), lhsErrorMessage, rhsErrorMessage)) {
return false;
}
}
{
String lhsErrorSource;
lhsErrorSource = this.getErrorSource();
String rhsErrorSource;
rhsErrorSource = that.getErrorSource();
if (!strategy.equals(LocatorUtils.property(thisLocator, "errorSource", lhsErrorSource), LocatorUtils.property(thatLocator, "errorSource", rhsErrorSource), lhsErrorSource, rhsErrorSource)) {
return false;
}
}
{
String lhsErrorType;
lhsErrorType = this.getErrorType();
String rhsErrorType;
rhsErrorType = that.getErrorType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "errorType", lhsErrorType), LocatorUtils.property(thatLocator, "errorType", rhsErrorType), lhsErrorType, rhsErrorType)) {
return false;
}
}
{
String lhsRootCause;
lhsRootCause = this.getRootCause();
String rhsRootCause;
rhsRootCause = that.getRootCause();
if (!strategy.equals(LocatorUtils.property(thisLocator, "rootCause", lhsRootCause), LocatorUtils.property(thatLocator, "rootCause", rhsRootCause), lhsRootCause, rhsRootCause)) {
return false;
}
}
{
String lhsDateTimeStamp;
lhsDateTimeStamp = this.getDateTimeStamp();
String rhsDateTimeStamp;
rhsDateTimeStamp = that.getDateTimeStamp();
if (!strategy.equals(LocatorUtils.property(thisLocator, "dateTimeStamp", lhsDateTimeStamp), LocatorUtils.property(thatLocator, "dateTimeStamp", rhsDateTimeStamp), lhsDateTimeStamp, rhsDateTimeStamp)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
String theErrorMessage;
theErrorMessage = this.getErrorMessage();
strategy.appendField(locator, this, "errorMessage", buffer, theErrorMessage);
}
{
String theErrorSource;
theErrorSource = this.getErrorSource();
strategy.appendField(locator, this, "errorSource", buffer, theErrorSource);
}
{
String theErrorType;
theErrorType = this.getErrorType();
strategy.appendField(locator, this, "errorType", buffer, theErrorType);
}
{
String theRootCause;
theRootCause = this.getRootCause();
strategy.appendField(locator, this, "rootCause", buffer, theRootCause);
}
{
String theDateTimeStamp;
theDateTimeStamp = this.getDateTimeStamp();
strategy.appendField(locator, this, "dateTimeStamp", buffer, theDateTimeStamp);
}
return buffer;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy