
org.somda.sdc.biceps.model.message.GetContainmentTree Maven / Gradle / Ivy
package org.somda.sdc.biceps.model.message;
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.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
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 anonymous complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"handleRef"
})
@XmlRootElement(name = "GetContainmentTree", namespace = "http://standards.ieee.org/downloads/11073/11073-10207-2017/message")
public class GetContainmentTree
extends AbstractGet
implements Cloneable, CopyTo, ToString
{
/**
* List of HANDLE references that specify which CONTAINMENT TREE ENTRYs are requested.
*
* __R5030: All HANDLE references SHALL share the same parent. Otherwise, the result of GetContainmentTree is undefined.__
*
*/
@XmlElement(name = "HandleRef", namespace = "http://standards.ieee.org/downloads/11073/11073-10207-2017/message")
protected List handleRef;
/**
* List of HANDLE references that specify which CONTAINMENT TREE ENTRYs are requested.
*
* __R5030: All HANDLE references SHALL share the same parent. Otherwise, the result of GetContainmentTree is undefined.__
*
* Gets the value of the handleRef 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 handleRef property.
*
*
* For example, to add a new item, do as follows:
*
*
* getHandleRef().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*
* @return
* The value of the handleRef property.
*/
public List getHandleRef() {
if (handleRef == null) {
handleRef = new ArrayList<>();
}
return this.handleRef;
}
public void setHandleRef(List value) {
this.handleRef = null;
if (value!= null) {
List draftl = this.getHandleRef();
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 GetContainmentTree that = ((GetContainmentTree) object);
{
List leftHandleRef;
leftHandleRef = (((this.handleRef!= null)&&(!this.handleRef.isEmpty()))?this.getHandleRef():null);
List rightHandleRef;
rightHandleRef = (((that.handleRef!= null)&&(!that.handleRef.isEmpty()))?that.getHandleRef():null);
if ((this.handleRef!= null)&&(!this.handleRef.isEmpty())) {
if ((that.handleRef!= null)&&(!that.handleRef.isEmpty())) {
if (!leftHandleRef.equals(rightHandleRef)) {
return false;
}
} else {
return false;
}
} else {
if ((that.handleRef!= null)&&(!that.handleRef.isEmpty())) {
return false;
}
}
}
return true;
}
@Override
public int hashCode() {
int currentHashCode = 1;
currentHashCode = ((currentHashCode* 31)+ super.hashCode());
{
currentHashCode = (currentHashCode* 31);
List theHandleRef;
theHandleRef = (((this.handleRef!= null)&&(!this.handleRef.isEmpty()))?this.getHandleRef():null);
if ((this.handleRef!= null)&&(!this.handleRef.isEmpty())) {
currentHashCode += theHandleRef.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 theHandleRef;
theHandleRef = (((this.handleRef!= null)&&(!this.handleRef.isEmpty()))?this.getHandleRef():null);
strategy.appendField(locator, this, "handleRef", buffer, theHandleRef, ((this.handleRef!= null)&&(!this.handleRef.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 GetContainmentTree) {
final GetContainmentTree copy = ((GetContainmentTree) draftCopy);
{
Boolean handleRefShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.handleRef!= null)&&(!this.handleRef.isEmpty())));
if (handleRefShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceHandleRef;
sourceHandleRef = (((this.handleRef!= null)&&(!this.handleRef.isEmpty()))?this.getHandleRef():null);
@SuppressWarnings("unchecked")
List copyHandleRef = ((List ) strategy.copy(LocatorUtils.property(locator, "handleRef", sourceHandleRef), sourceHandleRef, ((this.handleRef!= null)&&(!this.handleRef.isEmpty()))));
copy.setHandleRef(copyHandleRef);
} else {
if (handleRefShouldBeCopiedAndSet == Boolean.FALSE) {
copy.handleRef = null;
}
}
}
}
return draftCopy;
}
@Override
public Object createNewInstance() {
return new GetContainmentTree();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy