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

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

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.XmlType;
import org.jetbrains.annotations.Nullable;
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;


/**
 * List of regions in which a DEVICE COMPONENT is approved to be operated. If the list does not contain any entries, then the DEVICE COMPONENT is not approved for any region.
 * 
 * 

Java class for ApprovedJurisdictions complex type

. * *

The following schema fragment specifies the expected content contained within this class.

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ApprovedJurisdictions", namespace = "http://standards.ieee.org/downloads/11073/11073-10207-2017/participant", propOrder = { "approvedJurisdiction" }) public class ApprovedJurisdictions implements Cloneable, CopyTo, ToString { /** * Region in which the DEVICE COMPONENT is approved to be operated. * * NOTE—See also: https://unstats.un.org/unsd/methodology/m49/ * */ @XmlElement(name = "ApprovedJurisdiction", namespace = "http://standards.ieee.org/downloads/11073/11073-10207-2017/participant") protected List approvedJurisdiction; /** * Region in which the DEVICE COMPONENT is approved to be operated. * * NOTE—See also: https://unstats.un.org/unsd/methodology/m49/ * * Gets the value of the approvedJurisdiction 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 approvedJurisdiction property.

* *

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

*
     * getApprovedJurisdiction().add(newItem);
     * 
* * *

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

* * * @return * The value of the approvedJurisdiction property. */ public List getApprovedJurisdiction() { if (approvedJurisdiction == null) { approvedJurisdiction = new ArrayList<>(); } return this.approvedJurisdiction; } public void setApprovedJurisdiction( @Nullable List value) { this.approvedJurisdiction = null; if (value!= null) { List draftl = this.getApprovedJurisdiction(); draftl.addAll(value); } } @Override public boolean equals(Object object) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final ApprovedJurisdictions that = ((ApprovedJurisdictions) object); { List leftApprovedJurisdiction; leftApprovedJurisdiction = (((this.approvedJurisdiction!= null)&&(!this.approvedJurisdiction.isEmpty()))?this.getApprovedJurisdiction():null); List rightApprovedJurisdiction; rightApprovedJurisdiction = (((that.approvedJurisdiction!= null)&&(!that.approvedJurisdiction.isEmpty()))?that.getApprovedJurisdiction():null); if ((this.approvedJurisdiction!= null)&&(!this.approvedJurisdiction.isEmpty())) { if ((that.approvedJurisdiction!= null)&&(!that.approvedJurisdiction.isEmpty())) { if (!leftApprovedJurisdiction.equals(rightApprovedJurisdiction)) { return false; } } else { return false; } } else { if ((that.approvedJurisdiction!= null)&&(!that.approvedJurisdiction.isEmpty())) { return false; } } } return true; } @Override public int hashCode() { int currentHashCode = 1; { currentHashCode = (currentHashCode* 31); List theApprovedJurisdiction; theApprovedJurisdiction = (((this.approvedJurisdiction!= null)&&(!this.approvedJurisdiction.isEmpty()))?this.getApprovedJurisdiction():null); if ((this.approvedJurisdiction!= null)&&(!this.approvedJurisdiction.isEmpty())) { currentHashCode += theApprovedJurisdiction.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) { { List theApprovedJurisdiction; theApprovedJurisdiction = (((this.approvedJurisdiction!= null)&&(!this.approvedJurisdiction.isEmpty()))?this.getApprovedJurisdiction():null); strategy.appendField(locator, this, "approvedJurisdiction", buffer, theApprovedJurisdiction, ((this.approvedJurisdiction!= null)&&(!this.approvedJurisdiction.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); if (draftCopy instanceof ApprovedJurisdictions) { final ApprovedJurisdictions copy = ((ApprovedJurisdictions) draftCopy); { Boolean approvedJurisdictionShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.approvedJurisdiction!= null)&&(!this.approvedJurisdiction.isEmpty()))); if (approvedJurisdictionShouldBeCopiedAndSet == Boolean.TRUE) { List sourceApprovedJurisdiction; sourceApprovedJurisdiction = (((this.approvedJurisdiction!= null)&&(!this.approvedJurisdiction.isEmpty()))?this.getApprovedJurisdiction():null); @SuppressWarnings("unchecked") List copyApprovedJurisdiction = ((List ) strategy.copy(LocatorUtils.property(locator, "approvedJurisdiction", sourceApprovedJurisdiction), sourceApprovedJurisdiction, ((this.approvedJurisdiction!= null)&&(!this.approvedJurisdiction.isEmpty())))); copy.setApprovedJurisdiction(copyApprovedJurisdiction); } else { if (approvedJurisdictionShouldBeCopiedAndSet == Boolean.FALSE) { copy.approvedJurisdiction = null; } } } } return draftCopy; } @Override public Object createNewInstance() { return new ApprovedJurisdictions(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy