org.hl7.fhir.CodeSystemProperty1 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.03.21 at 12:42:34 PM 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 code system resource specifies a set of codes drawn from one or more code systems.
*
* Java class for CodeSystem.Property1 complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="CodeSystem.Property1">
* <complexContent>
* <extension base="{http://hl7.org/fhir}BackboneElement">
* <sequence>
* <element name="code" type="{http://hl7.org/fhir}code"/>
* <choice>
* <element name="valueCode" type="{http://hl7.org/fhir}code"/>
* <element name="valueCoding" type="{http://hl7.org/fhir}Coding"/>
* <element name="valueString" type="{http://hl7.org/fhir}string"/>
* <element name="valueInteger" type="{http://hl7.org/fhir}integer"/>
* <element name="valueBoolean" type="{http://hl7.org/fhir}boolean"/>
* <element name="valueDateTime" type="{http://hl7.org/fhir}dateTime"/>
* </choice>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CodeSystem.Property1", propOrder = {
"code",
"valueCode",
"valueCoding",
"valueString",
"valueInteger",
"valueBoolean",
"valueDateTime"
})
public class CodeSystemProperty1
extends BackboneElement
implements Equals2, HashCode2, ToString2
{
@XmlElement(required = true)
protected Code code;
protected Code valueCode;
protected Coding valueCoding;
protected org.hl7.fhir.String valueString;
protected Integer valueInteger;
protected Boolean valueBoolean;
protected DateTime valueDateTime;
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link Code }
*
*/
public Code getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link Code }
*
*/
public void setCode(Code value) {
this.code = 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;
}
/**
* Gets the value of the valueCoding property.
*
* @return
* possible object is
* {@link Coding }
*
*/
public Coding getValueCoding() {
return valueCoding;
}
/**
* Sets the value of the valueCoding property.
*
* @param value
* allowed object is
* {@link Coding }
*
*/
public void setValueCoding(Coding value) {
this.valueCoding = 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 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 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 valueDateTime property.
*
* @return
* possible object is
* {@link DateTime }
*
*/
public DateTime getValueDateTime() {
return valueDateTime;
}
/**
* Sets the value of the valueDateTime property.
*
* @param value
* allowed object is
* {@link DateTime }
*
*/
public void setValueDateTime(DateTime value) {
this.valueDateTime = value;
}
public CodeSystemProperty1 withCode(Code value) {
setCode(value);
return this;
}
public CodeSystemProperty1 withValueCode(Code value) {
setValueCode(value);
return this;
}
public CodeSystemProperty1 withValueCoding(Coding value) {
setValueCoding(value);
return this;
}
public CodeSystemProperty1 withValueString(org.hl7.fhir.String value) {
setValueString(value);
return this;
}
public CodeSystemProperty1 withValueInteger(Integer value) {
setValueInteger(value);
return this;
}
public CodeSystemProperty1 withValueBoolean(Boolean value) {
setValueBoolean(value);
return this;
}
public CodeSystemProperty1 withValueDateTime(DateTime value) {
setValueDateTime(value);
return this;
}
@Override
public CodeSystemProperty1 withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public CodeSystemProperty1 withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public CodeSystemProperty1 withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public CodeSystemProperty1 withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public CodeSystemProperty1 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 CodeSystemProperty1 that = ((CodeSystemProperty1) object);
{
Code lhsCode;
lhsCode = this.getCode();
Code rhsCode;
rhsCode = that.getCode();
if (!strategy.equals(LocatorUtils.property(thisLocator, "code", lhsCode), LocatorUtils.property(thatLocator, "code", rhsCode), lhsCode, rhsCode, (this.code!= null), (that.code!= 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;
}
}
{
Coding lhsValueCoding;
lhsValueCoding = this.getValueCoding();
Coding rhsValueCoding;
rhsValueCoding = that.getValueCoding();
if (!strategy.equals(LocatorUtils.property(thisLocator, "valueCoding", lhsValueCoding), LocatorUtils.property(thatLocator, "valueCoding", rhsValueCoding), lhsValueCoding, rhsValueCoding, (this.valueCoding!= null), (that.valueCoding!= 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;
}
}
{
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;
}
}
{
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;
}
}
{
DateTime lhsValueDateTime;
lhsValueDateTime = this.getValueDateTime();
DateTime rhsValueDateTime;
rhsValueDateTime = that.getValueDateTime();
if (!strategy.equals(LocatorUtils.property(thisLocator, "valueDateTime", lhsValueDateTime), LocatorUtils.property(thatLocator, "valueDateTime", rhsValueDateTime), lhsValueDateTime, rhsValueDateTime, (this.valueDateTime!= null), (that.valueDateTime!= 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);
{
Code theCode;
theCode = this.getCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "code", theCode), currentHashCode, theCode, (this.code!= null));
}
{
Code theValueCode;
theValueCode = this.getValueCode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueCode", theValueCode), currentHashCode, theValueCode, (this.valueCode!= null));
}
{
Coding theValueCoding;
theValueCoding = this.getValueCoding();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueCoding", theValueCoding), currentHashCode, theValueCoding, (this.valueCoding!= null));
}
{
org.hl7.fhir.String theValueString;
theValueString = this.getValueString();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueString", theValueString), currentHashCode, theValueString, (this.valueString!= null));
}
{
Integer theValueInteger;
theValueInteger = this.getValueInteger();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueInteger", theValueInteger), currentHashCode, theValueInteger, (this.valueInteger!= null));
}
{
Boolean theValueBoolean;
theValueBoolean = this.getValueBoolean();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueBoolean", theValueBoolean), currentHashCode, theValueBoolean, (this.valueBoolean!= null));
}
{
DateTime theValueDateTime;
theValueDateTime = this.getValueDateTime();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueDateTime", theValueDateTime), currentHashCode, theValueDateTime, (this.valueDateTime!= 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);
{
Code theCode;
theCode = this.getCode();
strategy.appendField(locator, this, "code", buffer, theCode, (this.code!= null));
}
{
Code theValueCode;
theValueCode = this.getValueCode();
strategy.appendField(locator, this, "valueCode", buffer, theValueCode, (this.valueCode!= null));
}
{
Coding theValueCoding;
theValueCoding = this.getValueCoding();
strategy.appendField(locator, this, "valueCoding", buffer, theValueCoding, (this.valueCoding!= null));
}
{
org.hl7.fhir.String theValueString;
theValueString = this.getValueString();
strategy.appendField(locator, this, "valueString", buffer, theValueString, (this.valueString!= null));
}
{
Integer theValueInteger;
theValueInteger = this.getValueInteger();
strategy.appendField(locator, this, "valueInteger", buffer, theValueInteger, (this.valueInteger!= null));
}
{
Boolean theValueBoolean;
theValueBoolean = this.getValueBoolean();
strategy.appendField(locator, this, "valueBoolean", buffer, theValueBoolean, (this.valueBoolean!= null));
}
{
DateTime theValueDateTime;
theValueDateTime = this.getValueDateTime();
strategy.appendField(locator, this, "valueDateTime", buffer, theValueDateTime, (this.valueDateTime!= null));
}
return buffer;
}
}