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

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

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.22.0
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2018.01.12 at 11:04:27 AM MST 
//


package org.hl7.fhir;

import java.util.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
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 Equals, HashCode, ToString { @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; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof CodeSystemProperty1)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { Code theCode; theCode = this.getCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "code", theCode), currentHashCode, theCode); } { Code theValueCode; theValueCode = this.getValueCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueCode", theValueCode), currentHashCode, theValueCode); } { Coding theValueCoding; theValueCoding = this.getValueCoding(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueCoding", theValueCoding), currentHashCode, theValueCoding); } { org.hl7.fhir.String theValueString; theValueString = this.getValueString(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueString", theValueString), currentHashCode, theValueString); } { Integer theValueInteger; theValueInteger = this.getValueInteger(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueInteger", theValueInteger), currentHashCode, theValueInteger); } { Boolean theValueBoolean; theValueBoolean = this.getValueBoolean(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueBoolean", theValueBoolean), currentHashCode, theValueBoolean); } { DateTime theValueDateTime; theValueDateTime = this.getValueDateTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueDateTime", theValueDateTime), currentHashCode, theValueDateTime); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public java.lang.String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { Code theCode; theCode = this.getCode(); strategy.appendField(locator, this, "code", buffer, theCode); } { Code theValueCode; theValueCode = this.getValueCode(); strategy.appendField(locator, this, "valueCode", buffer, theValueCode); } { Coding theValueCoding; theValueCoding = this.getValueCoding(); strategy.appendField(locator, this, "valueCoding", buffer, theValueCoding); } { org.hl7.fhir.String theValueString; theValueString = this.getValueString(); strategy.appendField(locator, this, "valueString", buffer, theValueString); } { Integer theValueInteger; theValueInteger = this.getValueInteger(); strategy.appendField(locator, this, "valueInteger", buffer, theValueInteger); } { Boolean theValueBoolean; theValueBoolean = this.getValueBoolean(); strategy.appendField(locator, this, "valueBoolean", buffer, theValueBoolean); } { DateTime theValueDateTime; theValueDateTime = this.getValueDateTime(); strategy.appendField(locator, this, "valueDateTime", buffer, theValueDateTime); } return buffer; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy