org.somda.sdc.dpws.wsdl.model.TExtensibilityElement 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.XmlAttribute;
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;
/**
* Java class for tExtensibilityElement complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "tExtensibilityElement", namespace = "http://schemas.xmlsoap.org/wsdl/")
public abstract class TExtensibilityElement implements Cloneable, CopyTo, ToString
{
@XmlAttribute(name = "required", namespace = "http://schemas.xmlsoap.org/wsdl/")
protected Boolean required;
/**
* Gets the value of the required property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isRequired() {
return required;
}
/**
* Sets the value of the required property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setRequired(Boolean value) {
this.required = value;
}
@Override
public boolean equals(Object object) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
final TExtensibilityElement that = ((TExtensibilityElement) object);
{
Boolean leftRequired;
leftRequired = this.isRequired();
Boolean rightRequired;
rightRequired = that.isRequired();
if (this.required!= null) {
if (that.required!= null) {
if (!leftRequired.equals(rightRequired)) {
return false;
}
} else {
return false;
}
} else {
if (that.required!= null) {
return false;
}
}
}
return true;
}
@Override
public int hashCode() {
int currentHashCode = 1;
{
currentHashCode = (currentHashCode* 31);
Boolean theRequired;
theRequired = this.isRequired();
if (this.required!= null) {
currentHashCode += theRequired.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) {
{
Boolean theRequired;
theRequired = this.isRequired();
strategy.appendField(locator, this, "required", buffer, theRequired, (this.required!= 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) {
if (null == target) {
throw new IllegalArgumentException("Target argument must not be null for abstract copyable classes.");
}
if (target instanceof TExtensibilityElement) {
final TExtensibilityElement copy = ((TExtensibilityElement) target);
{
Boolean requiredShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.required!= null));
if (requiredShouldBeCopiedAndSet == Boolean.TRUE) {
Boolean sourceRequired;
sourceRequired = this.isRequired();
Boolean copyRequired = ((Boolean) strategy.copy(LocatorUtils.property(locator, "required", sourceRequired), sourceRequired, (this.required!= null)));
copy.setRequired(copyRequired);
} else {
if (requiredShouldBeCopiedAndSet == Boolean.FALSE) {
copy.required = null;
}
}
}
}
return target;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy