org.hl7.fhir.StructureMapParameter 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.01.18 at 08:26:13 AM MST
//
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.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 Map of relationships between 2 structures that can be used to transform data.
*
* Java class for StructureMap.Parameter complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="StructureMap.Parameter">
* <complexContent>
* <extension base="{http://hl7.org/fhir}BackboneElement">
* <sequence>
* <choice>
* <element name="valueId" type="{http://hl7.org/fhir}id"/>
* <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"/>
* </choice>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StructureMap.Parameter", propOrder = {
"valueId",
"valueString",
"valueBoolean",
"valueInteger",
"valueDecimal"
})
public class StructureMapParameter
extends BackboneElement
implements Equals2, HashCode2, ToString2
{
protected Id valueId;
protected org.hl7.fhir.String valueString;
protected Boolean valueBoolean;
protected Integer valueInteger;
protected Decimal valueDecimal;
/**
* Gets the value of the valueId property.
*
* @return
* possible object is
* {@link Id }
*
*/
public Id getValueId() {
return valueId;
}
/**
* Sets the value of the valueId property.
*
* @param value
* allowed object is
* {@link Id }
*
*/
public void setValueId(Id value) {
this.valueId = 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;
}
public StructureMapParameter withValueId(Id value) {
setValueId(value);
return this;
}
public StructureMapParameter withValueString(org.hl7.fhir.String value) {
setValueString(value);
return this;
}
public StructureMapParameter withValueBoolean(Boolean value) {
setValueBoolean(value);
return this;
}
public StructureMapParameter withValueInteger(Integer value) {
setValueInteger(value);
return this;
}
public StructureMapParameter withValueDecimal(Decimal value) {
setValueDecimal(value);
return this;
}
@Override
public StructureMapParameter withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public StructureMapParameter withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public StructureMapParameter withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public StructureMapParameter withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public StructureMapParameter 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 StructureMapParameter that = ((StructureMapParameter) object);
{
Id lhsValueId;
lhsValueId = this.getValueId();
Id rhsValueId;
rhsValueId = that.getValueId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "valueId", lhsValueId), LocatorUtils.property(thatLocator, "valueId", rhsValueId), lhsValueId, rhsValueId, (this.valueId!= null), (that.valueId!= 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;
}
}
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);
{
Id theValueId;
theValueId = this.getValueId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueId", theValueId), currentHashCode, theValueId, (this.valueId!= 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));
}
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);
{
Id theValueId;
theValueId = this.getValueId();
strategy.appendField(locator, this, "valueId", buffer, theValueId, (this.valueId!= 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));
}
return buffer;
}
}