org.xmlsoap.schemas.soap.envelope.Fault Maven / Gradle / Ivy
//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.7
// 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.11.06 at 01:54:33 PM UTC
//
package org.xmlsoap.schemas.soap.envelope;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;
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;
/**
*
* Fault reporting structure
*
*
* Java class for Fault complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Fault">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="faultcode" type="{http://www.w3.org/2001/XMLSchema}QName"/>
* <element name="faultstring" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="faultactor" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
* <element name="detail" type="{http://schemas.xmlsoap.org/soap/envelope/}detail" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Fault", propOrder = {
"faultcode",
"faultstring",
"faultactor",
"detail"
})
@XmlRootElement(name = "Fault")
public class Fault implements Equals2, HashCode2, ToString2
{
@XmlElement(required = true)
protected QName faultcode;
@XmlElement(required = true)
protected String faultstring;
@XmlSchemaType(name = "anyURI")
protected String faultactor;
protected Detail detail;
/**
* Default no-arg constructor
*
*/
public Fault() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public Fault(final QName faultcode, final String faultstring, final String faultactor, final Detail detail) {
this.faultcode = faultcode;
this.faultstring = faultstring;
this.faultactor = faultactor;
this.detail = detail;
}
/**
* Gets the value of the faultcode property.
*
* @return
* possible object is
* {@link QName }
*
*/
public QName getFaultcode() {
return faultcode;
}
/**
* Sets the value of the faultcode property.
*
* @param value
* allowed object is
* {@link QName }
*
*/
public void setFaultcode(QName value) {
this.faultcode = value;
}
/**
* Gets the value of the faultstring property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaultstring() {
return faultstring;
}
/**
* Sets the value of the faultstring property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaultstring(String value) {
this.faultstring = value;
}
/**
* Gets the value of the faultactor property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaultactor() {
return faultactor;
}
/**
* Sets the value of the faultactor property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaultactor(String value) {
this.faultactor = value;
}
/**
* Gets the value of the detail property.
*
* @return
* possible object is
* {@link Detail }
*
*/
public Detail getDetail() {
return detail;
}
/**
* Sets the value of the detail property.
*
* @param value
* allowed object is
* {@link Detail }
*
*/
public void setDetail(Detail value) {
this.detail = value;
}
@Override
public String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance();
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
@Override
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;
}
@Override
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
{
QName theFaultcode;
theFaultcode = this.getFaultcode();
strategy.appendField(locator, this, "faultcode", buffer, theFaultcode, (this.faultcode!= null));
}
{
String theFaultstring;
theFaultstring = this.getFaultstring();
strategy.appendField(locator, this, "faultstring", buffer, theFaultstring, (this.faultstring!= null));
}
{
String theFaultactor;
theFaultactor = this.getFaultactor();
strategy.appendField(locator, this, "faultactor", buffer, theFaultactor, (this.faultactor!= null));
}
{
Detail theDetail;
theDetail = this.getDetail();
strategy.appendField(locator, this, "detail", buffer, theDetail, (this.detail!= null));
}
return buffer;
}
@Override
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 Fault that = ((Fault) object);
{
QName lhsFaultcode;
lhsFaultcode = this.getFaultcode();
QName rhsFaultcode;
rhsFaultcode = that.getFaultcode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "faultcode", lhsFaultcode), LocatorUtils.property(thatLocator, "faultcode", rhsFaultcode), lhsFaultcode, rhsFaultcode, (this.faultcode!= null), (that.faultcode!= null))) {
return false;
}
}
{
String lhsFaultstring;
lhsFaultstring = this.getFaultstring();
String rhsFaultstring;
rhsFaultstring = that.getFaultstring();
if (!strategy.equals(LocatorUtils.property(thisLocator, "faultstring", lhsFaultstring), LocatorUtils.property(thatLocator, "faultstring", rhsFaultstring), lhsFaultstring, rhsFaultstring, (this.faultstring!= null), (that.faultstring!= null))) {
return false;
}
}
{
String lhsFaultactor;
lhsFaultactor = this.getFaultactor();
String rhsFaultactor;
rhsFaultactor = that.getFaultactor();
if (!strategy.equals(LocatorUtils.property(thisLocator, "faultactor", lhsFaultactor), LocatorUtils.property(thatLocator, "faultactor", rhsFaultactor), lhsFaultactor, rhsFaultactor, (this.faultactor!= null), (that.faultactor!= null))) {
return false;
}
}
{
Detail lhsDetail;
lhsDetail = this.getDetail();
Detail rhsDetail;
rhsDetail = that.getDetail();
if (!strategy.equals(LocatorUtils.property(thisLocator, "detail", lhsDetail), LocatorUtils.property(thatLocator, "detail", rhsDetail), lhsDetail, rhsDetail, (this.detail!= null), (that.detail!= null))) {
return false;
}
}
return true;
}
@Override
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance();
return equals(null, null, object, strategy);
}
@Override
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = 1;
{
QName theFaultcode;
theFaultcode = this.getFaultcode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "faultcode", theFaultcode), currentHashCode, theFaultcode, (this.faultcode!= null));
}
{
String theFaultstring;
theFaultstring = this.getFaultstring();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "faultstring", theFaultstring), currentHashCode, theFaultstring, (this.faultstring!= null));
}
{
String theFaultactor;
theFaultactor = this.getFaultactor();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "faultactor", theFaultactor), currentHashCode, theFaultactor, (this.faultactor!= null));
}
{
Detail theDetail;
theDetail = this.getDetail();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "detail", theDetail), currentHashCode, theDetail, (this.detail!= null));
}
return currentHashCode;
}
@Override
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance();
return this.hashCode(null, strategy);
}
public Fault withFaultcode(QName value) {
setFaultcode(value);
return this;
}
public Fault withFaultstring(String value) {
setFaultstring(value);
return this;
}
public Fault withFaultactor(String value) {
setFaultactor(value);
return this;
}
public Fault withDetail(Detail value) {
setDetail(value);
return this;
}
}