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

org.somda.sdc.dpws.wsdl.model.TOperation Maven / Gradle / Ivy


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

import java.util.ArrayList;
import java.util.List;
import java.util.ListIterator;
import javax.xml.namespace.QName;
import jakarta.xml.bind.JAXBElement;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElementRef;
import jakarta.xml.bind.annotation.XmlElementRefs;
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 tOperation complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *           
 *           
 *         
 *       
 *       
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "tOperation", namespace = "http://schemas.xmlsoap.org/wsdl/", propOrder = { "rest" }) public class TOperation extends TExtensibleDocumented implements Cloneable, CopyTo, ToString { /** * Gets the rest of the content model. * *

* You are getting this "catch-all" property because of the following reason: * The field name "Output" is used by two different parts of a schema. See: * line 217 of file:/builds/sdc-suite/sdc-ri-model/dpws-model/src/main/resources/wsdl-1.1-schema.xsd * line 209 of file:/builds/sdc-suite/sdc-ri-model/dpws-model/src/main/resources/wsdl-1.1-schema.xsd *

* To get rid of this property, apply a property customization to one * of both of the following declarations to change their names: * */ @XmlElementRefs({ @XmlElementRef(name = "input", namespace = "http://schemas.xmlsoap.org/wsdl/", type = JAXBElement.class, required = false), @XmlElementRef(name = "output", namespace = "http://schemas.xmlsoap.org/wsdl/", type = JAXBElement.class, required = false), @XmlElementRef(name = "fault", namespace = "http://schemas.xmlsoap.org/wsdl/", type = JAXBElement.class, required = false) }) protected List> rest; @XmlAttribute(name = "name", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "NCName") protected String name; @XmlAttribute(name = "parameterOrder") @XmlSchemaType(name = "NMTOKENS") protected List parameterOrder; /** * Gets the rest of the content model. * *

* You are getting this "catch-all" property because of the following reason: * The field name "Output" is used by two different parts of a schema. See: * line 217 of file:/builds/sdc-suite/sdc-ri-model/dpws-model/src/main/resources/wsdl-1.1-schema.xsd * line 209 of file:/builds/sdc-suite/sdc-ri-model/dpws-model/src/main/resources/wsdl-1.1-schema.xsd *

* To get rid of this property, apply a property customization to one * of both of the following declarations to change their names: * * Gets the value of the rest 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 rest property.

* *

* For example, to add a new item, do as follows: *

*
     * getRest().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link TFault }{@code >} * {@link JAXBElement }{@code <}{@link TParam }{@code >} * {@link JAXBElement }{@code <}{@link TParam }{@code >} *

* * * @return * The value of the rest property. */ public List> getRest() { if (rest == null) { rest = new ArrayList<>(); } return this.rest; } /** * 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 parameterOrder 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 parameterOrder property.

* *

* For example, to add a new item, do as follows: *

*
     * getParameterOrder().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } *

* * * @return * The value of the parameterOrder property. */ public List getParameterOrder() { if (parameterOrder == null) { parameterOrder = new ArrayList<>(); } return this.parameterOrder; } public void setRest(List> value) { this.rest = null; if (value!= null) { List> draftl = this.getRest(); draftl.addAll(value); } } public void setParameterOrder(List value) { this.parameterOrder = null; if (value!= null) { List draftl = this.getParameterOrder(); 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 TOperation that = ((TOperation) object); { List> leftRest; leftRest = (((this.rest!= null)&&(!this.rest.isEmpty()))?this.getRest():null); List> rightRest; rightRest = (((that.rest!= null)&&(!that.rest.isEmpty()))?that.getRest():null); if ((this.rest!= null)&&(!this.rest.isEmpty())) { if ((that.rest!= null)&&(!that.rest.isEmpty())) { final ListIterator> leftRestListIterator = leftRest.listIterator(); final ListIterator> rightRestListIterator = rightRest.listIterator(); while (rightRestListIterator.hasNext()&&leftRestListIterator.hasNext()) { final JAXBElement rightRestListIteratorElement = rightRestListIterator.next(); final JAXBElement leftRestListIteratorElement = leftRestListIterator.next(); if (rightRestListIteratorElement!= null) { if (leftRestListIteratorElement!= null) { { final QName rightRestListIteratorElementName = rightRestListIteratorElement.getName(); final QName leftRestListIteratorElementName = leftRestListIteratorElement.getName(); if (rightRestListIteratorElementName!= null) { if (leftRestListIteratorElementName!= null) { if (!rightRestListIteratorElementName.equals(leftRestListIteratorElementName)) { return false; } } else { return false; } } else { if (leftRestListIteratorElementName!= null) { return false; } } } { final TExtensibleAttributesDocumented rightRestListIteratorElementValue = rightRestListIteratorElement.getValue(); final TExtensibleAttributesDocumented leftRestListIteratorElementValue = leftRestListIteratorElement.getValue(); if (rightRestListIteratorElementValue!= null) { if (leftRestListIteratorElementValue!= null) { if (!rightRestListIteratorElementValue.equals(leftRestListIteratorElementValue)) { return false; } } else { return false; } } else { if (leftRestListIteratorElementValue!= null) { return false; } } } { final Class rightRestListIteratorElementDeclaredType = rightRestListIteratorElement.getDeclaredType(); final Class leftRestListIteratorElementDeclaredType = leftRestListIteratorElement.getDeclaredType(); if (rightRestListIteratorElementDeclaredType!= null) { if (leftRestListIteratorElementDeclaredType!= null) { if (!rightRestListIteratorElementDeclaredType.equals(leftRestListIteratorElementDeclaredType)) { return false; } } else { return false; } } else { if (leftRestListIteratorElementDeclaredType!= null) { return false; } } } { final Class rightRestListIteratorElementScope = rightRestListIteratorElement.getScope(); final Class leftRestListIteratorElementScope = leftRestListIteratorElement.getScope(); if (rightRestListIteratorElementScope!= null) { if (leftRestListIteratorElementScope!= null) { if (!rightRestListIteratorElementScope.equals(leftRestListIteratorElementScope)) { return false; } } else { return false; } } else { if (leftRestListIteratorElementScope!= null) { return false; } } } { final boolean rightRestListIteratorElementNil = rightRestListIteratorElement.isNil(); final boolean leftRestListIteratorElementNil = leftRestListIteratorElement.isNil(); if (rightRestListIteratorElementNil!= leftRestListIteratorElementNil) { return false; } } } else { return false; } } else { if (leftRestListIteratorElement!= null) { return false; } } } if (rightRestListIterator.hasNext()||leftRestListIterator.hasNext()) { return false; } } else { return false; } } else { if ((that.rest!= null)&&(!that.rest.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; } } } { List leftParameterOrder; leftParameterOrder = (((this.parameterOrder!= null)&&(!this.parameterOrder.isEmpty()))?this.getParameterOrder():null); List rightParameterOrder; rightParameterOrder = (((that.parameterOrder!= null)&&(!that.parameterOrder.isEmpty()))?that.getParameterOrder():null); if ((this.parameterOrder!= null)&&(!this.parameterOrder.isEmpty())) { if ((that.parameterOrder!= null)&&(!that.parameterOrder.isEmpty())) { if (!leftParameterOrder.equals(rightParameterOrder)) { return false; } } else { return false; } } else { if ((that.parameterOrder!= null)&&(!that.parameterOrder.isEmpty())) { return false; } } } return true; } @Override public int hashCode() { int currentHashCode = 1; currentHashCode = ((currentHashCode* 31)+ super.hashCode()); { currentHashCode = (currentHashCode* 31); List> theRest; theRest = (((this.rest!= null)&&(!this.rest.isEmpty()))?this.getRest():null); if ((this.rest!= null)&&(!this.rest.isEmpty())) { final ListIterator> theRestListIterator = theRest.listIterator(); while (theRestListIterator.hasNext()) { currentHashCode = (currentHashCode* 31); final JAXBElement theRestListIteratorElement = theRestListIterator.next(); if (theRestListIteratorElement!= null) { { currentHashCode = (currentHashCode* 31); final QName theRestListIteratorElementName = theRestListIteratorElement.getName(); if (theRestListIteratorElementName!= null) { currentHashCode += theRestListIteratorElementName.hashCode(); } } { currentHashCode = (currentHashCode* 31); final TExtensibleAttributesDocumented theRestListIteratorElementValue = theRestListIteratorElement.getValue(); if (theRestListIteratorElementValue!= null) { currentHashCode += theRestListIteratorElementValue.hashCode(); } } { currentHashCode = (currentHashCode* 31); final Class theRestListIteratorElementDeclaredType = theRestListIteratorElement.getDeclaredType(); if (theRestListIteratorElementDeclaredType!= null) { currentHashCode += theRestListIteratorElementDeclaredType.hashCode(); } } { currentHashCode = (currentHashCode* 31); final Class theRestListIteratorElementScope = theRestListIteratorElement.getScope(); if (theRestListIteratorElementScope!= null) { currentHashCode += theRestListIteratorElementScope.hashCode(); } } { currentHashCode = (currentHashCode* 31); final boolean theRestListIteratorElementNil = theRestListIteratorElement.isNil(); currentHashCode += (theRestListIteratorElementNil? 1231 : 1237); } } } } } { currentHashCode = (currentHashCode* 31); String theName; theName = this.getName(); if (this.name!= null) { currentHashCode += theName.hashCode(); } } { currentHashCode = (currentHashCode* 31); List theParameterOrder; theParameterOrder = (((this.parameterOrder!= null)&&(!this.parameterOrder.isEmpty()))?this.getParameterOrder():null); if ((this.parameterOrder!= null)&&(!this.parameterOrder.isEmpty())) { currentHashCode += theParameterOrder.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> theRest; theRest = (((this.rest!= null)&&(!this.rest.isEmpty()))?this.getRest():null); strategy.appendField(locator, this, "rest", buffer, theRest, ((this.rest!= null)&&(!this.rest.isEmpty()))); } { String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName, (this.name!= null)); } { List theParameterOrder; theParameterOrder = (((this.parameterOrder!= null)&&(!this.parameterOrder.isEmpty()))?this.getParameterOrder():null); strategy.appendField(locator, this, "parameterOrder", buffer, theParameterOrder, ((this.parameterOrder!= null)&&(!this.parameterOrder.isEmpty()))); } 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 TOperation) { final TOperation copy = ((TOperation) draftCopy); { Boolean restShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.rest!= null)&&(!this.rest.isEmpty()))); if (restShouldBeCopiedAndSet == Boolean.TRUE) { List> sourceRest; sourceRest = (((this.rest!= null)&&(!this.rest.isEmpty()))?this.getRest():null); @SuppressWarnings("unchecked") List> copyRest = ((List> ) strategy.copy(LocatorUtils.property(locator, "rest", sourceRest), sourceRest, ((this.rest!= null)&&(!this.rest.isEmpty())))); copy.setRest(copyRest); } else { if (restShouldBeCopiedAndSet == Boolean.FALSE) { copy.rest = 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 parameterOrderShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.parameterOrder!= null)&&(!this.parameterOrder.isEmpty()))); if (parameterOrderShouldBeCopiedAndSet == Boolean.TRUE) { List sourceParameterOrder; sourceParameterOrder = (((this.parameterOrder!= null)&&(!this.parameterOrder.isEmpty()))?this.getParameterOrder():null); @SuppressWarnings("unchecked") List copyParameterOrder = ((List ) strategy.copy(LocatorUtils.property(locator, "parameterOrder", sourceParameterOrder), sourceParameterOrder, ((this.parameterOrder!= null)&&(!this.parameterOrder.isEmpty())))); copy.setParameterOrder(copyParameterOrder); } else { if (parameterOrderShouldBeCopiedAndSet == Boolean.FALSE) { copy.parameterOrder = null; } } } } return draftCopy; } @Override public Object createNewInstance() { return new TOperation(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy