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

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

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.15.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.Compose complex type. * *

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

 * <complexType name="ValueSet.Compose">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="import" type="{http://hl7.org/fhir}uri" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="include" type="{http://hl7.org/fhir}ValueSet.Include" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="exclude" type="{http://hl7.org/fhir}ValueSet.Include" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ValueSet.Compose", propOrder = { "_import", "include", "exclude" }) public class ValueSetCompose extends BackboneElement implements Equals2, HashCode2, ToString2 { @XmlElement(name = "import") protected List _import; protected List include; protected List exclude; /** * Gets the value of the import 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 import property. * *

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

     *    getImport().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Uri } * * */ public List getImport() { if (_import == null) { _import = new ArrayList(); } return this._import; } /** * Gets the value of the include 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 include property. * *

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

     *    getInclude().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ValueSetInclude } * * */ public List getInclude() { if (include == null) { include = new ArrayList(); } return this.include; } /** * Gets the value of the exclude 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 exclude property. * *

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

     *    getExclude().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ValueSetInclude } * * */ public List getExclude() { if (exclude == null) { exclude = new ArrayList(); } return this.exclude; } public ValueSetCompose withImport(Uri... values) { if (values!= null) { for (Uri value: values) { getImport().add(value); } } return this; } public ValueSetCompose withImport(Collection values) { if (values!= null) { getImport().addAll(values); } return this; } public ValueSetCompose withInclude(ValueSetInclude... values) { if (values!= null) { for (ValueSetInclude value: values) { getInclude().add(value); } } return this; } public ValueSetCompose withInclude(Collection values) { if (values!= null) { getInclude().addAll(values); } return this; } public ValueSetCompose withExclude(ValueSetInclude... values) { if (values!= null) { for (ValueSetInclude value: values) { getExclude().add(value); } } return this; } public ValueSetCompose withExclude(Collection values) { if (values!= null) { getExclude().addAll(values); } return this; } @Override public ValueSetCompose withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public ValueSetCompose withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public ValueSetCompose withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public ValueSetCompose withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public ValueSetCompose 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 ValueSetCompose that = ((ValueSetCompose) object); { List lhsImport; lhsImport = (((this._import!= null)&&(!this._import.isEmpty()))?this.getImport():null); List rhsImport; rhsImport = (((that._import!= null)&&(!that._import.isEmpty()))?that.getImport():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "_import", lhsImport), LocatorUtils.property(thatLocator, "_import", rhsImport), lhsImport, rhsImport, ((this._import!= null)&&(!this._import.isEmpty())), ((that._import!= null)&&(!that._import.isEmpty())))) { return false; } } { List lhsInclude; lhsInclude = (((this.include!= null)&&(!this.include.isEmpty()))?this.getInclude():null); List rhsInclude; rhsInclude = (((that.include!= null)&&(!that.include.isEmpty()))?that.getInclude():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "include", lhsInclude), LocatorUtils.property(thatLocator, "include", rhsInclude), lhsInclude, rhsInclude, ((this.include!= null)&&(!this.include.isEmpty())), ((that.include!= null)&&(!that.include.isEmpty())))) { return false; } } { List lhsExclude; lhsExclude = (((this.exclude!= null)&&(!this.exclude.isEmpty()))?this.getExclude():null); List rhsExclude; rhsExclude = (((that.exclude!= null)&&(!that.exclude.isEmpty()))?that.getExclude():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "exclude", lhsExclude), LocatorUtils.property(thatLocator, "exclude", rhsExclude), lhsExclude, rhsExclude, ((this.exclude!= null)&&(!this.exclude.isEmpty())), ((that.exclude!= null)&&(!that.exclude.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); { List theImport; theImport = (((this._import!= null)&&(!this._import.isEmpty()))?this.getImport():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "_import", theImport), currentHashCode, theImport, ((this._import!= null)&&(!this._import.isEmpty()))); } { List theInclude; theInclude = (((this.include!= null)&&(!this.include.isEmpty()))?this.getInclude():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "include", theInclude), currentHashCode, theInclude, ((this.include!= null)&&(!this.include.isEmpty()))); } { List theExclude; theExclude = (((this.exclude!= null)&&(!this.exclude.isEmpty()))?this.getExclude():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "exclude", theExclude), currentHashCode, theExclude, ((this.exclude!= null)&&(!this.exclude.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); { List theImport; theImport = (((this._import!= null)&&(!this._import.isEmpty()))?this.getImport():null); strategy.appendField(locator, this, "_import", buffer, theImport, ((this._import!= null)&&(!this._import.isEmpty()))); } { List theInclude; theInclude = (((this.include!= null)&&(!this.include.isEmpty()))?this.getInclude():null); strategy.appendField(locator, this, "include", buffer, theInclude, ((this.include!= null)&&(!this.include.isEmpty()))); } { List theExclude; theExclude = (((this.exclude!= null)&&(!this.exclude.isEmpty()))?this.getExclude():null); strategy.appendField(locator, this, "exclude", buffer, theExclude, ((this.exclude!= null)&&(!this.exclude.isEmpty()))); } return buffer; } public void setImport(List value) { this._import = value; } public void setInclude(List value) { this.include = value; } public void setExclude(List value) { this.exclude = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy