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

org.somda.sdc.dpws.soap.model.Faultcode Maven / Gradle / Ivy


package org.somda.sdc.dpws.soap.model;

import javax.xml.namespace.QName;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
import org.jvnet.jaxb.lang.CopyStrategy;
import org.jvnet.jaxb.lang.CopyTo;
import org.jvnet.jaxb.lang.JAXBCopyStrategy;
import org.jvnet.jaxb.lang.JAXBToStringStrategy;
import org.jvnet.jaxb.lang.ToString;
import org.jvnet.jaxb.lang.ToStringStrategy;
import org.jvnet.jaxb.locator.ObjectLocator;
import org.jvnet.jaxb.locator.util.LocatorUtils;


/**
 * 

Java class for faultcode complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "faultcode", namespace = "http://www.w3.org/2003/05/soap-envelope", propOrder = { "value", "subcode" }) public class Faultcode implements Cloneable, CopyTo, ToString { @XmlElement(name = "Value", namespace = "http://www.w3.org/2003/05/soap-envelope", required = true) protected QName value; @XmlElement(name = "Subcode", namespace = "http://www.w3.org/2003/05/soap-envelope") protected Subcode subcode; /** * Gets the value of the value property. * * @return * possible object is * {@link QName } * */ public QName getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link QName } * */ public void setValue(QName value) { this.value = value; } /** * Gets the value of the subcode property. * * @return * possible object is * {@link Subcode } * */ public Subcode getSubcode() { return subcode; } /** * Sets the value of the subcode property. * * @param value * allowed object is * {@link Subcode } * */ public void setSubcode(Subcode value) { this.subcode = value; } @Override public boolean equals(Object object) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final Faultcode that = ((Faultcode) object); { QName leftValue; leftValue = this.getValue(); QName rightValue; rightValue = that.getValue(); if (this.value!= null) { if (that.value!= null) { if (!leftValue.equals(rightValue)) { return false; } } else { return false; } } else { if (that.value!= null) { return false; } } } { Subcode leftSubcode; leftSubcode = this.getSubcode(); Subcode rightSubcode; rightSubcode = that.getSubcode(); if (this.subcode!= null) { if (that.subcode!= null) { if (!leftSubcode.equals(rightSubcode)) { return false; } } else { return false; } } else { if (that.subcode!= null) { return false; } } } return true; } @Override public int hashCode() { int currentHashCode = 1; { currentHashCode = (currentHashCode* 31); QName theValue; theValue = this.getValue(); if (this.value!= null) { currentHashCode += theValue.hashCode(); } } { currentHashCode = (currentHashCode* 31); Subcode theSubcode; theSubcode = this.getSubcode(); if (this.subcode!= null) { currentHashCode += theSubcode.hashCode(); } } return currentHashCode; } @Override public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override 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; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { QName theValue; theValue = this.getValue(); strategy.appendField(locator, this, "value", buffer, theValue, (this.value!= null)); } { Subcode theSubcode; theSubcode = this.getSubcode(); strategy.appendField(locator, this, "subcode", buffer, theSubcode, (this.subcode!= null)); } return buffer; } @Override public Object clone() { return copyTo(createNewInstance()); } @Override public Object copyTo(Object target) { final CopyStrategy strategy = JAXBCopyStrategy.getInstance(); return copyTo(null, target, strategy); } @Override public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof Faultcode) { final Faultcode copy = ((Faultcode) draftCopy); { Boolean valueShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.value!= null)); if (valueShouldBeCopiedAndSet == Boolean.TRUE) { QName sourceValue; sourceValue = this.getValue(); QName copyValue = ((QName) strategy.copy(LocatorUtils.property(locator, "value", sourceValue), sourceValue, (this.value!= null))); copy.setValue(copyValue); } else { if (valueShouldBeCopiedAndSet == Boolean.FALSE) { copy.value = null; } } } { Boolean subcodeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.subcode!= null)); if (subcodeShouldBeCopiedAndSet == Boolean.TRUE) { Subcode sourceSubcode; sourceSubcode = this.getSubcode(); Subcode copySubcode = ((Subcode) strategy.copy(LocatorUtils.property(locator, "subcode", sourceSubcode), sourceSubcode, (this.subcode!= null))); copy.setSubcode(copySubcode); } else { if (subcodeShouldBeCopiedAndSet == Boolean.FALSE) { copy.subcode = null; } } } } return draftCopy; } @Override public Object createNewInstance() { return new Faultcode(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy