org.somda.sdc.dpws.wsdl.model.TBindingOperation Maven / Gradle / Ivy
package org.somda.sdc.dpws.wsdl.model;
import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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 tBindingOperation complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "tBindingOperation", namespace = "http://schemas.xmlsoap.org/wsdl/", propOrder = {
"input",
"output",
"fault"
})
public class TBindingOperation
extends TExtensibleDocumented
implements Cloneable, CopyTo, ToString
{
@XmlElement(namespace = "http://schemas.xmlsoap.org/wsdl/")
protected TBindingOperationMessage input;
@XmlElement(namespace = "http://schemas.xmlsoap.org/wsdl/")
protected TBindingOperationMessage output;
@XmlElement(namespace = "http://schemas.xmlsoap.org/wsdl/")
protected List fault;
@XmlAttribute(name = "name", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NCName")
protected String name;
/**
* Gets the value of the input property.
*
* @return
* possible object is
* {@link TBindingOperationMessage }
*
*/
public TBindingOperationMessage getInput() {
return input;
}
/**
* Sets the value of the input property.
*
* @param value
* allowed object is
* {@link TBindingOperationMessage }
*
*/
public void setInput(TBindingOperationMessage value) {
this.input = value;
}
/**
* Gets the value of the output property.
*
* @return
* possible object is
* {@link TBindingOperationMessage }
*
*/
public TBindingOperationMessage getOutput() {
return output;
}
/**
* Sets the value of the output property.
*
* @param value
* allowed object is
* {@link TBindingOperationMessage }
*
*/
public void setOutput(TBindingOperationMessage value) {
this.output = value;
}
/**
* Gets the value of the fault property.
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the fault property.
*
*
* For example, to add a new item, do as follows:
*
*
* getFault().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TBindingOperationFault }
*
*
*
* @return
* The value of the fault property.
*/
public List getFault() {
if (fault == null) {
fault = new ArrayList<>();
}
return this.fault;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
public void setFault(List value) {
this.fault = null;
if (value!= null) {
List draftl = this.getFault();
draftl.addAll(value);
}
}
@Override
public boolean equals(Object object) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
if (!super.equals(object)) {
return false;
}
final TBindingOperation that = ((TBindingOperation) object);
{
TBindingOperationMessage leftInput;
leftInput = this.getInput();
TBindingOperationMessage rightInput;
rightInput = that.getInput();
if (this.input!= null) {
if (that.input!= null) {
if (!leftInput.equals(rightInput)) {
return false;
}
} else {
return false;
}
} else {
if (that.input!= null) {
return false;
}
}
}
{
TBindingOperationMessage leftOutput;
leftOutput = this.getOutput();
TBindingOperationMessage rightOutput;
rightOutput = that.getOutput();
if (this.output!= null) {
if (that.output!= null) {
if (!leftOutput.equals(rightOutput)) {
return false;
}
} else {
return false;
}
} else {
if (that.output!= null) {
return false;
}
}
}
{
List leftFault;
leftFault = (((this.fault!= null)&&(!this.fault.isEmpty()))?this.getFault():null);
List rightFault;
rightFault = (((that.fault!= null)&&(!that.fault.isEmpty()))?that.getFault():null);
if ((this.fault!= null)&&(!this.fault.isEmpty())) {
if ((that.fault!= null)&&(!that.fault.isEmpty())) {
if (!leftFault.equals(rightFault)) {
return false;
}
} else {
return false;
}
} else {
if ((that.fault!= null)&&(!that.fault.isEmpty())) {
return false;
}
}
}
{
String leftName;
leftName = this.getName();
String rightName;
rightName = that.getName();
if (this.name!= null) {
if (that.name!= null) {
if (!leftName.equals(rightName)) {
return false;
}
} else {
return false;
}
} else {
if (that.name!= null) {
return false;
}
}
}
return true;
}
@Override
public int hashCode() {
int currentHashCode = 1;
currentHashCode = ((currentHashCode* 31)+ super.hashCode());
{
currentHashCode = (currentHashCode* 31);
TBindingOperationMessage theInput;
theInput = this.getInput();
if (this.input!= null) {
currentHashCode += theInput.hashCode();
}
}
{
currentHashCode = (currentHashCode* 31);
TBindingOperationMessage theOutput;
theOutput = this.getOutput();
if (this.output!= null) {
currentHashCode += theOutput.hashCode();
}
}
{
currentHashCode = (currentHashCode* 31);
List theFault;
theFault = (((this.fault!= null)&&(!this.fault.isEmpty()))?this.getFault():null);
if ((this.fault!= null)&&(!this.fault.isEmpty())) {
currentHashCode += theFault.hashCode();
}
}
{
currentHashCode = (currentHashCode* 31);
String theName;
theName = this.getName();
if (this.name!= null) {
currentHashCode += theName.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) {
super.appendFields(locator, buffer, strategy);
{
TBindingOperationMessage theInput;
theInput = this.getInput();
strategy.appendField(locator, this, "input", buffer, theInput, (this.input!= null));
}
{
TBindingOperationMessage theOutput;
theOutput = this.getOutput();
strategy.appendField(locator, this, "output", buffer, theOutput, (this.output!= null));
}
{
List theFault;
theFault = (((this.fault!= null)&&(!this.fault.isEmpty()))?this.getFault():null);
strategy.appendField(locator, this, "fault", buffer, theFault, ((this.fault!= null)&&(!this.fault.isEmpty())));
}
{
String theName;
theName = this.getName();
strategy.appendField(locator, this, "name", buffer, theName, (this.name!= 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);
super.copyTo(locator, draftCopy, strategy);
if (draftCopy instanceof TBindingOperation) {
final TBindingOperation copy = ((TBindingOperation) draftCopy);
{
Boolean inputShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.input!= null));
if (inputShouldBeCopiedAndSet == Boolean.TRUE) {
TBindingOperationMessage sourceInput;
sourceInput = this.getInput();
TBindingOperationMessage copyInput = ((TBindingOperationMessage) strategy.copy(LocatorUtils.property(locator, "input", sourceInput), sourceInput, (this.input!= null)));
copy.setInput(copyInput);
} else {
if (inputShouldBeCopiedAndSet == Boolean.FALSE) {
copy.input = null;
}
}
}
{
Boolean outputShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.output!= null));
if (outputShouldBeCopiedAndSet == Boolean.TRUE) {
TBindingOperationMessage sourceOutput;
sourceOutput = this.getOutput();
TBindingOperationMessage copyOutput = ((TBindingOperationMessage) strategy.copy(LocatorUtils.property(locator, "output", sourceOutput), sourceOutput, (this.output!= null)));
copy.setOutput(copyOutput);
} else {
if (outputShouldBeCopiedAndSet == Boolean.FALSE) {
copy.output = null;
}
}
}
{
Boolean faultShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.fault!= null)&&(!this.fault.isEmpty())));
if (faultShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceFault;
sourceFault = (((this.fault!= null)&&(!this.fault.isEmpty()))?this.getFault():null);
@SuppressWarnings("unchecked")
List copyFault = ((List ) strategy.copy(LocatorUtils.property(locator, "fault", sourceFault), sourceFault, ((this.fault!= null)&&(!this.fault.isEmpty()))));
copy.setFault(copyFault);
} else {
if (faultShouldBeCopiedAndSet == Boolean.FALSE) {
copy.fault = null;
}
}
}
{
Boolean nameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.name!= null));
if (nameShouldBeCopiedAndSet == Boolean.TRUE) {
String sourceName;
sourceName = this.getName();
String copyName = ((String) strategy.copy(LocatorUtils.property(locator, "name", sourceName), sourceName, (this.name!= null)));
copy.setName(copyName);
} else {
if (nameShouldBeCopiedAndSet == Boolean.FALSE) {
copy.name = null;
}
}
}
}
return draftCopy;
}
@Override
public Object createNewInstance() {
return new TBindingOperation();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy