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

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

Go to download

SDCri is a set of Java libraries that implements a network communication framework conforming with the IEEE 11073 SDC specifications. This project implements the model for IEEE 11073-10207.

The newest version!

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


/**
 * 

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 = { "argument" }) @XmlRootElement(name = "Activate", namespace = "http://standards.ieee.org/downloads/11073/11073-10207-2017/message") public class Activate extends AbstractSet implements Cloneable, CopyTo, ToString { /** * List of arguments that can be used for invocation. The type list of the arguments can be obtained by the operation description in the MDIB. Furthermore, the ordering of Argument SHALL match the ordering in pm:ActivateOperationDescriptor/pm:Argument. * */ @XmlElement(name = "Argument", namespace = "http://standards.ieee.org/downloads/11073/11073-10207-2017/message") protected List argument; /** * List of arguments that can be used for invocation. The type list of the arguments can be obtained by the operation description in the MDIB. Furthermore, the ordering of Argument SHALL match the ordering in pm:ActivateOperationDescriptor/pm:Argument. * * Gets the value of the argument 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 argument property.

* *

* For example, to add a new item, do as follows: *

*
     * getArgument().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Activate.Argument } *

* * * @return * The value of the argument property. */ public List getArgument() { if (argument == null) { argument = new ArrayList<>(); } return this.argument; } public void setArgument(List value) { this.argument = null; if (value!= null) { List draftl = this.getArgument(); 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 Activate that = ((Activate) object); { List leftArgument; leftArgument = (((this.argument!= null)&&(!this.argument.isEmpty()))?this.getArgument():null); List rightArgument; rightArgument = (((that.argument!= null)&&(!that.argument.isEmpty()))?that.getArgument():null); if ((this.argument!= null)&&(!this.argument.isEmpty())) { if ((that.argument!= null)&&(!that.argument.isEmpty())) { if (!leftArgument.equals(rightArgument)) { return false; } } else { return false; } } else { if ((that.argument!= null)&&(!that.argument.isEmpty())) { return false; } } } return true; } @Override public int hashCode() { int currentHashCode = 1; currentHashCode = ((currentHashCode* 31)+ super.hashCode()); { currentHashCode = (currentHashCode* 31); List theArgument; theArgument = (((this.argument!= null)&&(!this.argument.isEmpty()))?this.getArgument():null); if ((this.argument!= null)&&(!this.argument.isEmpty())) { currentHashCode += theArgument.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 theArgument; theArgument = (((this.argument!= null)&&(!this.argument.isEmpty()))?this.getArgument():null); strategy.appendField(locator, this, "argument", buffer, theArgument, ((this.argument!= null)&&(!this.argument.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 Activate) { final Activate copy = ((Activate) draftCopy); { Boolean argumentShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.argument!= null)&&(!this.argument.isEmpty()))); if (argumentShouldBeCopiedAndSet == Boolean.TRUE) { List sourceArgument; sourceArgument = (((this.argument!= null)&&(!this.argument.isEmpty()))?this.getArgument():null); @SuppressWarnings("unchecked") List copyArgument = ((List ) strategy.copy(LocatorUtils.property(locator, "argument", sourceArgument), sourceArgument, ((this.argument!= null)&&(!this.argument.isEmpty())))); copy.setArgument(copyArgument); } else { if (argumentShouldBeCopiedAndSet == Boolean.FALSE) { copy.argument = null; } } } } return draftCopy; } @Override public Object createNewInstance() { return new Activate(); } /** *

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 = { "extension", "argValue" }) public static class Argument implements Cloneable, CopyTo, ToString { @XmlElement(name = "Extension", namespace = "http://standards.ieee.org/downloads/11073/11073-10207-2017/extension") protected ExtensionType extension; /** * Argument value. * */ @XmlElement(name = "ArgValue", namespace = "http://standards.ieee.org/downloads/11073/11073-10207-2017/message", required = true) protected Object argValue; /** * Gets the value of the extension property. * * @return * possible object is * {@link ExtensionType } * */ public ExtensionType getExtension() { return extension; } /** * Sets the value of the extension property. * * @param value * allowed object is * {@link ExtensionType } * */ public void setExtension(ExtensionType value) { this.extension = value; } /** * Argument value. * * @return * possible object is * {@link Object } * */ public Object getArgValue() { return argValue; } /** * Sets the value of the argValue property. * * @param value * allowed object is * {@link Object } * * @see #getArgValue() */ public void setArgValue(Object value) { this.argValue = value; } @Override public boolean equals(Object object) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final Activate.Argument that = ((Activate.Argument) object); { ExtensionType leftExtension; leftExtension = this.getExtension(); ExtensionType rightExtension; rightExtension = that.getExtension(); if (this.extension!= null) { if (that.extension!= null) { if (!leftExtension.equals(rightExtension)) { return false; } } else { return false; } } else { if (that.extension!= null) { return false; } } } { Object leftArgValue; leftArgValue = this.getArgValue(); Object rightArgValue; rightArgValue = that.getArgValue(); if (this.argValue!= null) { if (that.argValue!= null) { if (!leftArgValue.equals(rightArgValue)) { return false; } } else { return false; } } else { if (that.argValue!= null) { return false; } } } return true; } @Override public int hashCode() { int currentHashCode = 1; { currentHashCode = (currentHashCode* 31); ExtensionType theExtension; theExtension = this.getExtension(); if (this.extension!= null) { currentHashCode += theExtension.hashCode(); } } { currentHashCode = (currentHashCode* 31); Object theArgValue; theArgValue = this.getArgValue(); if (this.argValue!= null) { currentHashCode += theArgValue.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) { { ExtensionType theExtension; theExtension = this.getExtension(); strategy.appendField(locator, this, "extension", buffer, theExtension, (this.extension!= null)); } { Object theArgValue; theArgValue = this.getArgValue(); strategy.appendField(locator, this, "argValue", buffer, theArgValue, (this.argValue!= 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 Activate.Argument) { final Activate.Argument copy = ((Activate.Argument) draftCopy); { Boolean extensionShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.extension!= null)); if (extensionShouldBeCopiedAndSet == Boolean.TRUE) { ExtensionType sourceExtension; sourceExtension = this.getExtension(); ExtensionType copyExtension = ((ExtensionType) strategy.copy(LocatorUtils.property(locator, "extension", sourceExtension), sourceExtension, (this.extension!= null))); copy.setExtension(copyExtension); } else { if (extensionShouldBeCopiedAndSet == Boolean.FALSE) { copy.extension = null; } } } { Boolean argValueShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.argValue!= null)); if (argValueShouldBeCopiedAndSet == Boolean.TRUE) { Object sourceArgValue; sourceArgValue = this.getArgValue(); Object copyArgValue = ((Object) strategy.copy(LocatorUtils.property(locator, "argValue", sourceArgValue), sourceArgValue, (this.argValue!= null))); copy.setArgValue(copyArgValue); } else { if (argValueShouldBeCopiedAndSet == Boolean.FALSE) { copy.argValue = null; } } } } return draftCopy; } @Override public Object createNewInstance() { return new Activate.Argument(); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy