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

org.somda.sdc.biceps.model.message.GetMdStateResponse 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.MdState;


/**
 * 

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 = { "mdState" }) @XmlRootElement(name = "GetMdStateResponse", namespace = "http://standards.ieee.org/downloads/11073/11073-10207-2017/message") public class GetMdStateResponse extends AbstractGetResponse implements Cloneable, CopyTo, ToString { /** * MdState comprises the requested set of MDS states. Which MDS states SHALL be included depends on the msg:GetMdState/msg:HandleRef list: * * - If the HANDLE reference list is empty, all states in the MDIB are included in the result list. * - If a HANDLE reference does match a multi state HANDLE, the corresponding multi state is included in the result list. * - If a HANDLE reference does match a descriptor HANDLE, all states that belong to the corresponding descriptor are included in the result list. * * Since context states might include privacy-related information, a SERVICE PROVIDER can decide to skip any contexts states. Context states have to be requested by sending a msg:GetContextStates request. * */ @XmlElement(name = "MdState", namespace = "http://standards.ieee.org/downloads/11073/11073-10207-2017/message", required = true) protected MdState mdState; /** * MdState comprises the requested set of MDS states. Which MDS states SHALL be included depends on the msg:GetMdState/msg:HandleRef list: * * - If the HANDLE reference list is empty, all states in the MDIB are included in the result list. * - If a HANDLE reference does match a multi state HANDLE, the corresponding multi state is included in the result list. * - If a HANDLE reference does match a descriptor HANDLE, all states that belong to the corresponding descriptor are included in the result list. * * Since context states might include privacy-related information, a SERVICE PROVIDER can decide to skip any contexts states. Context states have to be requested by sending a msg:GetContextStates request. * * @return * possible object is * {@link MdState } * */ public MdState getMdState() { return mdState; } /** * Sets the value of the mdState property. * * @param value * allowed object is * {@link MdState } * * @see #getMdState() */ public void setMdState(MdState value) { this.mdState = 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 GetMdStateResponse that = ((GetMdStateResponse) object); { MdState leftMdState; leftMdState = this.getMdState(); MdState rightMdState; rightMdState = that.getMdState(); if (this.mdState!= null) { if (that.mdState!= null) { if (!leftMdState.equals(rightMdState)) { return false; } } else { return false; } } else { if (that.mdState!= null) { return false; } } } return true; } @Override public int hashCode() { int currentHashCode = 1; currentHashCode = ((currentHashCode* 31)+ super.hashCode()); { currentHashCode = (currentHashCode* 31); MdState theMdState; theMdState = this.getMdState(); if (this.mdState!= null) { currentHashCode += theMdState.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); { MdState theMdState; theMdState = this.getMdState(); strategy.appendField(locator, this, "mdState", buffer, theMdState, (this.mdState!= 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 GetMdStateResponse) { final GetMdStateResponse copy = ((GetMdStateResponse) draftCopy); { Boolean mdStateShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.mdState!= null)); if (mdStateShouldBeCopiedAndSet == Boolean.TRUE) { MdState sourceMdState; sourceMdState = this.getMdState(); MdState copyMdState = ((MdState) strategy.copy(LocatorUtils.property(locator, "mdState", sourceMdState), sourceMdState, (this.mdState!= null))); copy.setMdState(copyMdState); } else { if (mdStateShouldBeCopiedAndSet == Boolean.FALSE) { copy.mdState = null; } } } } return draftCopy; } @Override public Object createNewInstance() { return new GetMdStateResponse(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy