org.hl7.fhir.ValueSetParameter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quick Show documentation
Show all versions of quick Show documentation
The quick library for the Clinical Quality Language Java reference implementation
//
// 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.Collection;
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.Parameter complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ValueSet.Parameter">
* <complexContent>
* <extension base="{http://hl7.org/fhir}BackboneElement">
* <sequence>
* <element name="name" type="{http://hl7.org/fhir}string"/>
* <choice minOccurs="0">
* <element name="valueString" type="{http://hl7.org/fhir}string"/>
* <element name="valueBoolean" type="{http://hl7.org/fhir}boolean"/>
* <element name="valueInteger" type="{http://hl7.org/fhir}integer"/>
* <element name="valueDecimal" type="{http://hl7.org/fhir}decimal"/>
* <element name="valueUri" type="{http://hl7.org/fhir}uri"/>
* <element name="valueCode" type="{http://hl7.org/fhir}code"/>
* </choice>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ValueSet.Parameter", propOrder = {
"name",
"valueString",
"valueBoolean",
"valueInteger",
"valueDecimal",
"valueUri",
"valueCode"
})
public class ValueSetParameter
extends BackboneElement
implements Equals2, HashCode2, ToString2
{
@XmlElement(required = true)
protected org.hl7.fhir.String name;
protected org.hl7.fhir.String valueString;
protected Boolean valueBoolean;
protected Integer valueInteger;
protected Decimal valueDecimal;
protected Uri valueUri;
protected Code valueCode;
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setName(org.hl7.fhir.String value) {
this.name = value;
}
/**
* Gets the value of the valueString property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getValueString() {
return valueString;
}
/**
* Sets the value of the valueString property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setValueString(org.hl7.fhir.String value) {
this.valueString = value;
}
/**
* Gets the value of the valueBoolean property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean getValueBoolean() {
return valueBoolean;
}
/**
* Sets the value of the valueBoolean property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setValueBoolean(Boolean value) {
this.valueBoolean = value;
}
/**
* Gets the value of the valueInteger property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getValueInteger() {
return valueInteger;
}
/**
* Sets the value of the valueInteger property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setValueInteger(Integer value) {
this.valueInteger = value;
}
/**
* Gets the value of the valueDecimal property.
*
* @return
* possible object is
* {@link Decimal }
*
*/
public Decimal getValueDecimal() {
return valueDecimal;
}
/**
* Sets the value of the valueDecimal property.
*
* @param value
* allowed object is
* {@link Decimal }
*
*/
public void setValueDecimal(Decimal value) {
this.valueDecimal = value;
}
/**
* Gets the value of the valueUri property.
*
* @return
* possible object is
* {@link Uri }
*
*/
public Uri getValueUri() {
return valueUri;
}
/**
* Sets the value of the valueUri property.
*
* @param value
* allowed object is
* {@link Uri }
*
*/
public void setValueUri(Uri value) {
this.valueUri = value;
}
/**
* Gets the value of the valueCode property.
*
* @return
* possible object is
* {@link Code }
*
*/
public Code getValueCode() {
return valueCode;
}
/**
* Sets the value of the valueCode property.
*
* @param value
* allowed object is
* {@link Code }
*
*/
public void setValueCode(Code value) {
this.valueCode = value;
}
public ValueSetParameter withName(org.hl7.fhir.String value) {
setName(value);
return this;
}
public ValueSetParameter withValueString(org.hl7.fhir.String value) {
setValueString(value);
return this;
}
public ValueSetParameter withValueBoolean(Boolean value) {
setValueBoolean(value);
return this;
}
public ValueSetParameter withValueInteger(Integer value) {
setValueInteger(value);
return this;
}
public ValueSetParameter withValueDecimal(Decimal value) {
setValueDecimal(value);
return this;
}
public ValueSetParameter withValueUri(Uri value) {
setValueUri(value);
return this;
}
public ValueSetParameter withValueCode(Code value) {
setValueCode(value);
return this;
}
@Override
public ValueSetParameter withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public ValueSetParameter withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public ValueSetParameter withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public ValueSetParameter withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public ValueSetParameter 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 ValueSetParameter that = ((ValueSetParameter) object);
{
org.hl7.fhir.String lhsName;
lhsName = this.getName();
org.hl7.fhir.String rhsName;
rhsName = that.getName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName, (this.name!= null), (that.name!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsValueString;
lhsValueString = this.getValueString();
org.hl7.fhir.String rhsValueString;
rhsValueString = that.getValueString();
if (!strategy.equals(LocatorUtils.property(thisLocator, "valueString", lhsValueString), LocatorUtils.property(thatLocator, "valueString", rhsValueString), lhsValueString, rhsValueString, (this.valueString!= null), (that.valueString!= null))) {
return false;
}
}
{
Boolean lhsValueBoolean;
lhsValueBoolean = this.getValueBoolean();
Boolean rhsValueBoolean;
rhsValueBoolean = that.getValueBoolean();
if (!strategy.equals(LocatorUtils.property(thisLocator, "valueBoolean", lhsValueBoolean), LocatorUtils.property(thatLocator, "valueBoolean", rhsValueBoolean), lhsValueBoolean, rhsValueBoolean, (this.valueBoolean!= null), (that.valueBoolean!= null))) {
return false;
}
}
{
Integer lhsValueInteger;
lhsValueInteger = this.getValueInteger();
Integer rhsValueInteger;
rhsValueInteger = that.getValueInteger();
if (!strategy.equals(LocatorUtils.property(thisLocator, "valueInteger", lhsValueInteger), LocatorUtils.property(thatLocator, "valueInteger", rhsValueInteger), lhsValueInteger, rhsValueInteger, (this.valueInteger!= null), (that.valueInteger!= null))) {
return false;
}
}
{
Decimal lhsValueDecimal;
lhsValueDecimal = this.getValueDecimal();
Decimal rhsValueDecimal;
rhsValueDecimal = that.getValueDecimal();
if (!strategy.equals(LocatorUtils.property(thisLocator, "valueDecimal", lhsValueDecimal), LocatorUtils.property(thatLocator, "valueDecimal", rhsValueDecimal), lhsValueDecimal, rhsValueDecimal, (this.valueDecimal!= null), (that.valueDecimal!= null))) {
return false;
}
}
{
Uri lhsValueUri;
lhsValueUri = this.getValueUri();
Uri rhsValueUri;
rhsValueUri = that.getValueUri();
if (!strategy.equals(LocatorUtils.property(thisLocator, "valueUri", lhsValueUri), LocatorUtils.property(thatLocator, "valueUri", rhsValueUri), lhsValueUri, rhsValueUri, (this.valueUri!= null), (that.valueUri!= null))) {
return false;
}
}
{
Code lhsValueCode;
lhsValueCode = this.getValueCode();
Code rhsValueCode;
rhsValueCode = that.getValueCode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "valueCode", lhsValueCode), LocatorUtils.property(thatLocator, "valueCode", rhsValueCode), lhsValueCode, rhsValueCode, (this.valueCode!= null), (that.valueCode!= null))) {
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);
{
org.hl7.fhir.String theName;
theName = this.getName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null));
}
{
org.hl7.fhir.String theValueString;
theValueString = this.getValueString();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueString", theValueString), currentHashCode, theValueString, (this.valueString!= null));
}
{
Boolean theValueBoolean;
theValueBoolean = this.getValueBoolean();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueBoolean", theValueBoolean), currentHashCode, theValueBoolean, (this.valueBoolean!= null));
}
{
Integer theValueInteger;
theValueInteger = this.getValueInteger();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueInteger", theValueInteger), currentHashCode, theValueInteger, (this.valueInteger!= null));
}
{
Decimal theValueDecimal;
theValueDecimal = this.getValueDecimal();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueDecimal", theValueDecimal), currentHashCode, theValueDecimal, (this.valueDecimal!= null));
}
{
Uri theValueUri;
theValueUri = this.getValueUri();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueUri", theValueUri), currentHashCode, theValueUri, (this.valueUri!= null));
}
{
Code theValueCode;
theValueCode = this.getValueCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueCode", theValueCode), currentHashCode, theValueCode, (this.valueCode!= null));
}
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);
{
org.hl7.fhir.String theName;
theName = this.getName();
strategy.appendField(locator, this, "name", buffer, theName, (this.name!= null));
}
{
org.hl7.fhir.String theValueString;
theValueString = this.getValueString();
strategy.appendField(locator, this, "valueString", buffer, theValueString, (this.valueString!= null));
}
{
Boolean theValueBoolean;
theValueBoolean = this.getValueBoolean();
strategy.appendField(locator, this, "valueBoolean", buffer, theValueBoolean, (this.valueBoolean!= null));
}
{
Integer theValueInteger;
theValueInteger = this.getValueInteger();
strategy.appendField(locator, this, "valueInteger", buffer, theValueInteger, (this.valueInteger!= null));
}
{
Decimal theValueDecimal;
theValueDecimal = this.getValueDecimal();
strategy.appendField(locator, this, "valueDecimal", buffer, theValueDecimal, (this.valueDecimal!= null));
}
{
Uri theValueUri;
theValueUri = this.getValueUri();
strategy.appendField(locator, this, "valueUri", buffer, theValueUri, (this.valueUri!= null));
}
{
Code theValueCode;
theValueCode = this.getValueCode();
strategy.appendField(locator, this, "valueCode", buffer, theValueCode, (this.valueCode!= null));
}
return buffer;
}
}