Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.somda.sdc.dpws.wsdl.model.TExtensibleDocumented 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.XmlAnyElement;
import jakarta.xml.bind.annotation.XmlSeeAlso;
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;
import org.w3c.dom.Element;
/**
* Java class for tExtensibleDocumented complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "tExtensibleDocumented", namespace = "http://schemas.xmlsoap.org/wsdl/", propOrder = {
"any"
})
@XmlSeeAlso({
TDefinitions.class,
TTypes.class,
TMessage.class,
TOperation.class,
TBinding.class,
TBindingOperationMessage.class,
TBindingOperationFault.class,
TBindingOperation.class,
TService.class,
TPort.class
})
public abstract class TExtensibleDocumented
extends TDocumented
implements Cloneable, CopyTo, ToString
{
@XmlAnyElement(lax = true)
protected List any;
/**
* Gets the value of the any 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 any property.
*
*
* For example, to add a new item, do as follows:
*
*
* getAny().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Object }
* {@link Element }
*
*
*
* @return
* The value of the any property.
*/
public List getAny() {
if (any == null) {
any = new ArrayList<>();
}
return this.any;
}
public void setAny(List value) {
this.any = null;
if (value!= null) {
List draftl = this.getAny();
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 TExtensibleDocumented that = ((TExtensibleDocumented) object);
{
List leftAny;
leftAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null);
List rightAny;
rightAny = (((that.any!= null)&&(!that.any.isEmpty()))?that.getAny():null);
if ((this.any!= null)&&(!this.any.isEmpty())) {
if ((that.any!= null)&&(!that.any.isEmpty())) {
if (!leftAny.equals(rightAny)) {
return false;
}
} else {
return false;
}
} else {
if ((that.any!= null)&&(!that.any.isEmpty())) {
return false;
}
}
}
return true;
}
@Override
public int hashCode() {
int currentHashCode = 1;
currentHashCode = ((currentHashCode* 31)+ super.hashCode());
{
currentHashCode = (currentHashCode* 31);
List theAny;
theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null);
if ((this.any!= null)&&(!this.any.isEmpty())) {
currentHashCode += theAny.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 theAny;
theAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null);
strategy.appendField(locator, this, "any", buffer, theAny, ((this.any!= null)&&(!this.any.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) {
if (null == target) {
throw new IllegalArgumentException("Target argument must not be null for abstract copyable classes.");
}
super.copyTo(locator, target, strategy);
if (target instanceof TExtensibleDocumented) {
final TExtensibleDocumented copy = ((TExtensibleDocumented) target);
{
Boolean anyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.any!= null)&&(!this.any.isEmpty())));
if (anyShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceAny;
sourceAny = (((this.any!= null)&&(!this.any.isEmpty()))?this.getAny():null);
@SuppressWarnings("unchecked")
List copyAny = ((List ) strategy.copy(LocatorUtils.property(locator, "any", sourceAny), sourceAny, ((this.any!= null)&&(!this.any.isEmpty()))));
copy.setAny(copyAny);
} else {
if (anyShouldBeCopiedAndSet == Boolean.FALSE) {
copy.any = null;
}
}
}
}
return target;
}
}