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

org.hl7.fhir.ValueSetExpansion Maven / Gradle / Ivy

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.18.0
Show newest version
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2024.08.16 at 09:36:55 AM MDT 
//


package org.hl7.fhir;

import java.util.ArrayList;
import java.util.Collection;
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.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * A value set specifies a set of codes drawn from one or more code systems.
 * 
 * 

Java class for ValueSet.Expansion complex type. * *

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

 * <complexType name="ValueSet.Expansion">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="identifier" type="{http://hl7.org/fhir}uri"/>
 *         <element name="timestamp" type="{http://hl7.org/fhir}dateTime"/>
 *         <element name="total" type="{http://hl7.org/fhir}integer" minOccurs="0"/>
 *         <element name="offset" type="{http://hl7.org/fhir}integer" minOccurs="0"/>
 *         <element name="parameter" type="{http://hl7.org/fhir}ValueSet.Parameter" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="contains" type="{http://hl7.org/fhir}ValueSet.Contains" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ValueSet.Expansion", propOrder = { "identifier", "timestamp", "total", "offset", "parameter", "contains" }) public class ValueSetExpansion extends BackboneElement implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected Uri identifier; @XmlElement(required = true) protected DateTime timestamp; protected Integer total; protected Integer offset; protected List parameter; protected List contains; /** * Gets the value of the identifier property. * * @return * possible object is * {@link Uri } * */ public Uri getIdentifier() { return identifier; } /** * Sets the value of the identifier property. * * @param value * allowed object is * {@link Uri } * */ public void setIdentifier(Uri value) { this.identifier = value; } /** * Gets the value of the timestamp property. * * @return * possible object is * {@link DateTime } * */ public DateTime getTimestamp() { return timestamp; } /** * Sets the value of the timestamp property. * * @param value * allowed object is * {@link DateTime } * */ public void setTimestamp(DateTime value) { this.timestamp = value; } /** * Gets the value of the total property. * * @return * possible object is * {@link Integer } * */ public Integer getTotal() { return total; } /** * Sets the value of the total property. * * @param value * allowed object is * {@link Integer } * */ public void setTotal(Integer value) { this.total = value; } /** * Gets the value of the offset property. * * @return * possible object is * {@link Integer } * */ public Integer getOffset() { return offset; } /** * Sets the value of the offset property. * * @param value * allowed object is * {@link Integer } * */ public void setOffset(Integer value) { this.offset = value; } /** * Gets the value of the parameter 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 Jakarta XML Binding object. * This is why there is not a set method for the parameter property. * *

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

     *    getParameter().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ValueSetParameter } * * */ public List getParameter() { if (parameter == null) { parameter = new ArrayList(); } return this.parameter; } /** * Gets the value of the contains 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 Jakarta XML Binding object. * This is why there is not a set method for the contains property. * *

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

     *    getContains().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ValueSetContains } * * */ public List getContains() { if (contains == null) { contains = new ArrayList(); } return this.contains; } public ValueSetExpansion withIdentifier(Uri value) { setIdentifier(value); return this; } public ValueSetExpansion withTimestamp(DateTime value) { setTimestamp(value); return this; } public ValueSetExpansion withTotal(Integer value) { setTotal(value); return this; } public ValueSetExpansion withOffset(Integer value) { setOffset(value); return this; } public ValueSetExpansion withParameter(ValueSetParameter... values) { if (values!= null) { for (ValueSetParameter value: values) { getParameter().add(value); } } return this; } public ValueSetExpansion withParameter(Collection values) { if (values!= null) { getParameter().addAll(values); } return this; } public ValueSetExpansion withContains(ValueSetContains... values) { if (values!= null) { for (ValueSetContains value: values) { getContains().add(value); } } return this; } public ValueSetExpansion withContains(Collection values) { if (values!= null) { getContains().addAll(values); } return this; } @Override public ValueSetExpansion withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public ValueSetExpansion withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public ValueSetExpansion withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public ValueSetExpansion withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public ValueSetExpansion withId(java.lang.String value) { setId(value); return this; } @Override public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final ValueSetExpansion that = ((ValueSetExpansion) object); { Uri lhsIdentifier; lhsIdentifier = this.getIdentifier(); Uri rhsIdentifier; rhsIdentifier = that.getIdentifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "identifier", lhsIdentifier), LocatorUtils.property(thatLocator, "identifier", rhsIdentifier), lhsIdentifier, rhsIdentifier, (this.identifier!= null), (that.identifier!= null))) { return false; } } { DateTime lhsTimestamp; lhsTimestamp = this.getTimestamp(); DateTime rhsTimestamp; rhsTimestamp = that.getTimestamp(); if (!strategy.equals(LocatorUtils.property(thisLocator, "timestamp", lhsTimestamp), LocatorUtils.property(thatLocator, "timestamp", rhsTimestamp), lhsTimestamp, rhsTimestamp, (this.timestamp!= null), (that.timestamp!= null))) { return false; } } { Integer lhsTotal; lhsTotal = this.getTotal(); Integer rhsTotal; rhsTotal = that.getTotal(); if (!strategy.equals(LocatorUtils.property(thisLocator, "total", lhsTotal), LocatorUtils.property(thatLocator, "total", rhsTotal), lhsTotal, rhsTotal, (this.total!= null), (that.total!= null))) { return false; } } { Integer lhsOffset; lhsOffset = this.getOffset(); Integer rhsOffset; rhsOffset = that.getOffset(); if (!strategy.equals(LocatorUtils.property(thisLocator, "offset", lhsOffset), LocatorUtils.property(thatLocator, "offset", rhsOffset), lhsOffset, rhsOffset, (this.offset!= null), (that.offset!= null))) { return false; } } { List lhsParameter; lhsParameter = (((this.parameter!= null)&&(!this.parameter.isEmpty()))?this.getParameter():null); List rhsParameter; rhsParameter = (((that.parameter!= null)&&(!that.parameter.isEmpty()))?that.getParameter():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "parameter", lhsParameter), LocatorUtils.property(thatLocator, "parameter", rhsParameter), lhsParameter, rhsParameter, ((this.parameter!= null)&&(!this.parameter.isEmpty())), ((that.parameter!= null)&&(!that.parameter.isEmpty())))) { return false; } } { List lhsContains; lhsContains = (((this.contains!= null)&&(!this.contains.isEmpty()))?this.getContains():null); List rhsContains; rhsContains = (((that.contains!= null)&&(!that.contains.isEmpty()))?that.getContains():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "contains", lhsContains), LocatorUtils.property(thatLocator, "contains", rhsContains), lhsContains, rhsContains, ((this.contains!= null)&&(!this.contains.isEmpty())), ((that.contains!= null)&&(!that.contains.isEmpty())))) { return false; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = super.hashCode(locator, strategy); { Uri theIdentifier; theIdentifier = this.getIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier, (this.identifier!= null)); } { DateTime theTimestamp; theTimestamp = this.getTimestamp(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "timestamp", theTimestamp), currentHashCode, theTimestamp, (this.timestamp!= null)); } { Integer theTotal; theTotal = this.getTotal(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "total", theTotal), currentHashCode, theTotal, (this.total!= null)); } { Integer theOffset; theOffset = this.getOffset(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "offset", theOffset), currentHashCode, theOffset, (this.offset!= null)); } { List theParameter; theParameter = (((this.parameter!= null)&&(!this.parameter.isEmpty()))?this.getParameter():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "parameter", theParameter), currentHashCode, theParameter, ((this.parameter!= null)&&(!this.parameter.isEmpty()))); } { List theContains; theContains = (((this.contains!= null)&&(!this.contains.isEmpty()))?this.getContains():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contains", theContains), currentHashCode, theContains, ((this.contains!= null)&&(!this.contains.isEmpty()))); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } @Override public java.lang.String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 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, ToStringStrategy2 strategy) { super.appendFields(locator, buffer, strategy); { Uri theIdentifier; theIdentifier = this.getIdentifier(); strategy.appendField(locator, this, "identifier", buffer, theIdentifier, (this.identifier!= null)); } { DateTime theTimestamp; theTimestamp = this.getTimestamp(); strategy.appendField(locator, this, "timestamp", buffer, theTimestamp, (this.timestamp!= null)); } { Integer theTotal; theTotal = this.getTotal(); strategy.appendField(locator, this, "total", buffer, theTotal, (this.total!= null)); } { Integer theOffset; theOffset = this.getOffset(); strategy.appendField(locator, this, "offset", buffer, theOffset, (this.offset!= null)); } { List theParameter; theParameter = (((this.parameter!= null)&&(!this.parameter.isEmpty()))?this.getParameter():null); strategy.appendField(locator, this, "parameter", buffer, theParameter, ((this.parameter!= null)&&(!this.parameter.isEmpty()))); } { List theContains; theContains = (((this.contains!= null)&&(!this.contains.isEmpty()))?this.getContains():null); strategy.appendField(locator, this, "contains", buffer, theContains, ((this.contains!= null)&&(!this.contains.isEmpty()))); } return buffer; } public void setParameter(List value) { this.parameter = value; } public void setContains(List value) { this.contains = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy