
org.w3.soap.Fault Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdp-xsd Show documentation
Show all versions of sdp-xsd Show documentation
XSDer og genererte JAXB-klasser
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.05.30 at 01:15:57 PM CEST
//
package org.w3.soap;
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 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="Code" type="{http://www.w3.org/2003/05/soap-envelope}faultcode"/>
* <element name="Reason" type="{http://www.w3.org/2003/05/soap-envelope}faultreason"/>
* <element name="Node" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
* <element name="Role" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
* <element name="Detail" type="{http://www.w3.org/2003/05/soap-envelope}detail" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Fault", propOrder = {
"code",
"reason",
"node",
"role",
"detail"
})
@XmlRootElement(name = "Fault")
public class Fault implements Equals, HashCode, ToString
{
@XmlElement(name = "Code", required = true)
protected Faultcode code;
@XmlElement(name = "Reason", required = true)
protected Faultreason reason;
@XmlElement(name = "Node")
@XmlSchemaType(name = "anyURI")
protected String node;
@XmlElement(name = "Role")
@XmlSchemaType(name = "anyURI")
protected String role;
@XmlElement(name = "Detail")
protected Detail detail;
/**
* Default no-arg constructor
*
*/
public Fault() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public Fault(final Faultcode code, final Faultreason reason, final String node, final String role, final Detail detail) {
this.code = code;
this.reason = reason;
this.node = node;
this.role = role;
this.detail = detail;
}
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link Faultcode }
*
*/
public Faultcode getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link Faultcode }
*
*/
public void setCode(Faultcode value) {
this.code = value;
}
/**
* Gets the value of the reason property.
*
* @return
* possible object is
* {@link Faultreason }
*
*/
public Faultreason getReason() {
return reason;
}
/**
* Sets the value of the reason property.
*
* @param value
* allowed object is
* {@link Faultreason }
*
*/
public void setReason(Faultreason value) {
this.reason = value;
}
/**
* Gets the value of the node property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNode() {
return node;
}
/**
* Sets the value of the node property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNode(String value) {
this.node = value;
}
/**
* Gets the value of the role property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRole() {
return role;
}
/**
* Sets the value of the role property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRole(String value) {
this.role = 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) {
{
Faultcode theCode;
theCode = this.getCode();
strategy.appendField(locator, this, "code", buffer, theCode);
}
{
Faultreason theReason;
theReason = this.getReason();
strategy.appendField(locator, this, "reason", buffer, theReason);
}
{
String theNode;
theNode = this.getNode();
strategy.appendField(locator, this, "node", buffer, theNode);
}
{
String theRole;
theRole = this.getRole();
strategy.appendField(locator, this, "role", buffer, theRole);
}
{
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);
{
Faultcode lhsCode;
lhsCode = this.getCode();
Faultcode rhsCode;
rhsCode = that.getCode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "code", lhsCode), LocatorUtils.property(thatLocator, "code", rhsCode), lhsCode, rhsCode)) {
return false;
}
}
{
Faultreason lhsReason;
lhsReason = this.getReason();
Faultreason rhsReason;
rhsReason = that.getReason();
if (!strategy.equals(LocatorUtils.property(thisLocator, "reason", lhsReason), LocatorUtils.property(thatLocator, "reason", rhsReason), lhsReason, rhsReason)) {
return false;
}
}
{
String lhsNode;
lhsNode = this.getNode();
String rhsNode;
rhsNode = that.getNode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "node", lhsNode), LocatorUtils.property(thatLocator, "node", rhsNode), lhsNode, rhsNode)) {
return false;
}
}
{
String lhsRole;
lhsRole = this.getRole();
String rhsRole;
rhsRole = that.getRole();
if (!strategy.equals(LocatorUtils.property(thisLocator, "role", lhsRole), LocatorUtils.property(thatLocator, "role", rhsRole), lhsRole, rhsRole)) {
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;
{
Faultcode theCode;
theCode = this.getCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "code", theCode), currentHashCode, theCode);
}
{
Faultreason theReason;
theReason = this.getReason();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reason", theReason), currentHashCode, theReason);
}
{
String theNode;
theNode = this.getNode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "node", theNode), currentHashCode, theNode);
}
{
String theRole;
theRole = this.getRole();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "role", theRole), currentHashCode, theRole);
}
{
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 withCode(Faultcode value) {
setCode(value);
return this;
}
public Fault withReason(Faultreason value) {
setReason(value);
return this;
}
public Fault withNode(String value) {
setNode(value);
return this;
}
public Fault withRole(String value) {
setRole(value);
return this;
}
public Fault withDetail(Detail value) {
setDetail(value);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy