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

org.somda.sdc.biceps.model.message.GetContainmentTreeResponse Maven / Gradle / Ivy


package org.somda.sdc.biceps.model.message;

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;
import org.somda.sdc.biceps.model.participant.ContainmentTree;


/**
 * 

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 = { "containmentTree" }) @XmlRootElement(name = "GetContainmentTreeResponse", namespace = "http://standards.ieee.org/downloads/11073/11073-10207-2017/message") public class GetContainmentTreeResponse extends AbstractGetResponse implements Cloneable, CopyTo, ToString { /** * ContainmentTreeInfo as described in pm:ContainmentTree. * * __R5031: The result SHALL contain CONTAINMENT TREE information of all ELEMENTs that are matched by msg:GetContainmentTree/msg:HandleRef.__ * * __R5032: If no HANDLE reference is provided, all CONTAINMENT TREE ELEMENTs on MDS level SHALL be returned.__ * */ @XmlElement(name = "ContainmentTree", namespace = "http://standards.ieee.org/downloads/11073/11073-10207-2017/message", required = true) protected ContainmentTree containmentTree; /** * ContainmentTreeInfo as described in pm:ContainmentTree. * * __R5031: The result SHALL contain CONTAINMENT TREE information of all ELEMENTs that are matched by msg:GetContainmentTree/msg:HandleRef.__ * * __R5032: If no HANDLE reference is provided, all CONTAINMENT TREE ELEMENTs on MDS level SHALL be returned.__ * * @return * possible object is * {@link ContainmentTree } * */ public ContainmentTree getContainmentTree() { return containmentTree; } /** * Sets the value of the containmentTree property. * * @param value * allowed object is * {@link ContainmentTree } * * @see #getContainmentTree() */ public void setContainmentTree(ContainmentTree value) { this.containmentTree = 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 GetContainmentTreeResponse that = ((GetContainmentTreeResponse) object); { ContainmentTree leftContainmentTree; leftContainmentTree = this.getContainmentTree(); ContainmentTree rightContainmentTree; rightContainmentTree = that.getContainmentTree(); if (this.containmentTree!= null) { if (that.containmentTree!= null) { if (!leftContainmentTree.equals(rightContainmentTree)) { return false; } } else { return false; } } else { if (that.containmentTree!= null) { return false; } } } return true; } @Override public int hashCode() { int currentHashCode = 1; currentHashCode = ((currentHashCode* 31)+ super.hashCode()); { currentHashCode = (currentHashCode* 31); ContainmentTree theContainmentTree; theContainmentTree = this.getContainmentTree(); if (this.containmentTree!= null) { currentHashCode += theContainmentTree.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); { ContainmentTree theContainmentTree; theContainmentTree = this.getContainmentTree(); strategy.appendField(locator, this, "containmentTree", buffer, theContainmentTree, (this.containmentTree!= 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); super.copyTo(locator, draftCopy, strategy); if (draftCopy instanceof GetContainmentTreeResponse) { final GetContainmentTreeResponse copy = ((GetContainmentTreeResponse) draftCopy); { Boolean containmentTreeShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.containmentTree!= null)); if (containmentTreeShouldBeCopiedAndSet == Boolean.TRUE) { ContainmentTree sourceContainmentTree; sourceContainmentTree = this.getContainmentTree(); ContainmentTree copyContainmentTree = ((ContainmentTree) strategy.copy(LocatorUtils.property(locator, "containmentTree", sourceContainmentTree), sourceContainmentTree, (this.containmentTree!= null))); copy.setContainmentTree(copyContainmentTree); } else { if (containmentTreeShouldBeCopiedAndSet == Boolean.FALSE) { copy.containmentTree = null; } } } } return draftCopy; } @Override public Object createNewInstance() { return new GetContainmentTreeResponse(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy