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

org.xmlsoap.schemas.soap.envelope.Fault Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2014.07.08 at 09:17:24 AM CEST 
//


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.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;


/**
 * 
 * 	    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 Equals, HashCode, ToString { @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; } 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) { { QName theFaultcode; theFaultcode = this.getFaultcode(); strategy.appendField(locator, this, "faultcode", buffer, theFaultcode); } { String theFaultstring; theFaultstring = this.getFaultstring(); strategy.appendField(locator, this, "faultstring", buffer, theFaultstring); } { String theFaultactor; theFaultactor = this.getFaultactor(); strategy.appendField(locator, this, "faultactor", buffer, theFaultactor); } { Detail theDetail; theDetail = this.getDetail(); strategy.appendField(locator, this, "detail", buffer, theDetail); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof Fault)) { 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)) { 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)) { 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)) { 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)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { QName theFaultcode; theFaultcode = this.getFaultcode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "faultcode", theFaultcode), currentHashCode, theFaultcode); } { String theFaultstring; theFaultstring = this.getFaultstring(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "faultstring", theFaultstring), currentHashCode, theFaultstring); } { String theFaultactor; theFaultactor = this.getFaultactor(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "faultactor", theFaultactor), currentHashCode, theFaultactor); } { Detail theDetail; theDetail = this.getDetail(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "detail", theDetail), currentHashCode, theDetail); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy