org.somda.sdc.dpws.wsdl.model.TDocumented Maven / Gradle / Ivy
package org.somda.sdc.dpws.wsdl.model;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
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;
/**
* This type is extended by component types to allow them to be documented
*
* Java class for tDocumented complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "tDocumented", namespace = "http://schemas.xmlsoap.org/wsdl/", propOrder = {
"documentation"
})
@XmlSeeAlso({
TExtensibleAttributesDocumented.class,
TExtensibleDocumented.class
})
public class TDocumented implements Cloneable, CopyTo, ToString
{
@XmlElement(namespace = "http://schemas.xmlsoap.org/wsdl/")
protected TDocumentation documentation;
/**
* Gets the value of the documentation property.
*
* @return
* possible object is
* {@link TDocumentation }
*
*/
public TDocumentation getDocumentation() {
return documentation;
}
/**
* Sets the value of the documentation property.
*
* @param value
* allowed object is
* {@link TDocumentation }
*
*/
public void setDocumentation(TDocumentation value) {
this.documentation = value;
}
@Override
public boolean equals(Object object) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
final TDocumented that = ((TDocumented) object);
{
TDocumentation leftDocumentation;
leftDocumentation = this.getDocumentation();
TDocumentation rightDocumentation;
rightDocumentation = that.getDocumentation();
if (this.documentation!= null) {
if (that.documentation!= null) {
if (!leftDocumentation.equals(rightDocumentation)) {
return false;
}
} else {
return false;
}
} else {
if (that.documentation!= null) {
return false;
}
}
}
return true;
}
@Override
public int hashCode() {
int currentHashCode = 1;
{
currentHashCode = (currentHashCode* 31);
TDocumentation theDocumentation;
theDocumentation = this.getDocumentation();
if (this.documentation!= null) {
currentHashCode += theDocumentation.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) {
{
TDocumentation theDocumentation;
theDocumentation = this.getDocumentation();
strategy.appendField(locator, this, "documentation", buffer, theDocumentation, (this.documentation!= 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 TDocumented) {
final TDocumented copy = ((TDocumented) draftCopy);
{
Boolean documentationShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.documentation!= null));
if (documentationShouldBeCopiedAndSet == Boolean.TRUE) {
TDocumentation sourceDocumentation;
sourceDocumentation = this.getDocumentation();
TDocumentation copyDocumentation = ((TDocumentation) strategy.copy(LocatorUtils.property(locator, "documentation", sourceDocumentation), sourceDocumentation, (this.documentation!= null)));
copy.setDocumentation(copyDocumentation);
} else {
if (documentationShouldBeCopiedAndSet == Boolean.FALSE) {
copy.documentation = null;
}
}
}
}
return draftCopy;
}
@Override
public Object createNewInstance() {
return new TDocumented();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy