org.somda.sdc.dpws.wsdl.model.TBinding Maven / Gradle / Ivy
package org.somda.sdc.dpws.wsdl.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.namespace.QName;
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 tBinding complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "tBinding", namespace = "http://schemas.xmlsoap.org/wsdl/", propOrder = {
"operation"
})
public class TBinding
extends TExtensibleDocumented
implements Cloneable, CopyTo, ToString
{
@XmlElement(namespace = "http://schemas.xmlsoap.org/wsdl/")
protected List operation;
@XmlAttribute(name = "name", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "NCName")
protected String name;
@XmlAttribute(name = "type", required = true)
protected QName type;
/**
* Gets the value of the operation 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 operation property.
*
*
* For example, to add a new item, do as follows:
*
*
* getOperation().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TBindingOperation }
*
*
*
* @return
* The value of the operation property.
*/
public List getOperation() {
if (operation == null) {
operation = new ArrayList<>();
}
return this.operation;
}
/**
* 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;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link QName }
*
*/
public QName getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link QName }
*
*/
public void setType(QName value) {
this.type = value;
}
public void setOperation(List value) {
this.operation = null;
if (value!= null) {
List draftl = this.getOperation();
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 TBinding that = ((TBinding) object);
{
List leftOperation;
leftOperation = (((this.operation!= null)&&(!this.operation.isEmpty()))?this.getOperation():null);
List rightOperation;
rightOperation = (((that.operation!= null)&&(!that.operation.isEmpty()))?that.getOperation():null);
if ((this.operation!= null)&&(!this.operation.isEmpty())) {
if ((that.operation!= null)&&(!that.operation.isEmpty())) {
if (!leftOperation.equals(rightOperation)) {
return false;
}
} else {
return false;
}
} else {
if ((that.operation!= null)&&(!that.operation.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;
}
}
}
{
QName leftType;
leftType = this.getType();
QName rightType;
rightType = that.getType();
if (this.type!= null) {
if (that.type!= null) {
if (!leftType.equals(rightType)) {
return false;
}
} else {
return false;
}
} else {
if (that.type!= null) {
return false;
}
}
}
return true;
}
@Override
public int hashCode() {
int currentHashCode = 1;
currentHashCode = ((currentHashCode* 31)+ super.hashCode());
{
currentHashCode = (currentHashCode* 31);
List theOperation;
theOperation = (((this.operation!= null)&&(!this.operation.isEmpty()))?this.getOperation():null);
if ((this.operation!= null)&&(!this.operation.isEmpty())) {
currentHashCode += theOperation.hashCode();
}
}
{
currentHashCode = (currentHashCode* 31);
String theName;
theName = this.getName();
if (this.name!= null) {
currentHashCode += theName.hashCode();
}
}
{
currentHashCode = (currentHashCode* 31);
QName theType;
theType = this.getType();
if (this.type!= null) {
currentHashCode += theType.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);
{
List theOperation;
theOperation = (((this.operation!= null)&&(!this.operation.isEmpty()))?this.getOperation():null);
strategy.appendField(locator, this, "operation", buffer, theOperation, ((this.operation!= null)&&(!this.operation.isEmpty())));
}
{
String theName;
theName = this.getName();
strategy.appendField(locator, this, "name", buffer, theName, (this.name!= null));
}
{
QName theType;
theType = this.getType();
strategy.appendField(locator, this, "type", buffer, theType, (this.type!= 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 TBinding) {
final TBinding copy = ((TBinding) draftCopy);
{
Boolean operationShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.operation!= null)&&(!this.operation.isEmpty())));
if (operationShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceOperation;
sourceOperation = (((this.operation!= null)&&(!this.operation.isEmpty()))?this.getOperation():null);
@SuppressWarnings("unchecked")
List copyOperation = ((List ) strategy.copy(LocatorUtils.property(locator, "operation", sourceOperation), sourceOperation, ((this.operation!= null)&&(!this.operation.isEmpty()))));
copy.setOperation(copyOperation);
} else {
if (operationShouldBeCopiedAndSet == Boolean.FALSE) {
copy.operation = 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;
}
}
}
{
Boolean typeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.type!= null));
if (typeShouldBeCopiedAndSet == Boolean.TRUE) {
QName sourceType;
sourceType = this.getType();
QName copyType = ((QName) strategy.copy(LocatorUtils.property(locator, "type", sourceType), sourceType, (this.type!= null)));
copy.setType(copyType);
} else {
if (typeShouldBeCopiedAndSet == Boolean.FALSE) {
copy.type = null;
}
}
}
}
return draftCopy;
}
@Override
public Object createNewInstance() {
return new TBinding();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy