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

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

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.18.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.10.07 at 09:31:25 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.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 structured set of questions intended to guide the collection of answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.
 * 
 * 

Java class for Questionnaire.Option complex type. * *

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

 * <complexType name="Questionnaire.Option">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <choice>
 *           <element name="valueInteger" type="{http://hl7.org/fhir}integer"/>
 *           <element name="valueDate" type="{http://hl7.org/fhir}date"/>
 *           <element name="valueTime" type="{http://hl7.org/fhir}time"/>
 *           <element name="valueString" type="{http://hl7.org/fhir}string"/>
 *           <element name="valueCoding" type="{http://hl7.org/fhir}Coding"/>
 *         </choice>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Questionnaire.Option", propOrder = { "valueInteger", "valueDate", "valueTime", "valueString", "valueCoding" }) public class QuestionnaireOption extends BackboneElement implements Equals2, HashCode2, ToString2 { protected Integer valueInteger; protected Date valueDate; protected Time valueTime; protected org.hl7.fhir.String valueString; protected Coding valueCoding; /** * 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 valueDate property. * * @return * possible object is * {@link Date } * */ public Date getValueDate() { return valueDate; } /** * Sets the value of the valueDate property. * * @param value * allowed object is * {@link Date } * */ public void setValueDate(Date value) { this.valueDate = value; } /** * Gets the value of the valueTime property. * * @return * possible object is * {@link Time } * */ public Time getValueTime() { return valueTime; } /** * Sets the value of the valueTime property. * * @param value * allowed object is * {@link Time } * */ public void setValueTime(Time value) { this.valueTime = 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 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; } public QuestionnaireOption withValueInteger(Integer value) { setValueInteger(value); return this; } public QuestionnaireOption withValueDate(Date value) { setValueDate(value); return this; } public QuestionnaireOption withValueTime(Time value) { setValueTime(value); return this; } public QuestionnaireOption withValueString(org.hl7.fhir.String value) { setValueString(value); return this; } public QuestionnaireOption withValueCoding(Coding value) { setValueCoding(value); return this; } @Override public QuestionnaireOption withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public QuestionnaireOption withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public QuestionnaireOption withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public QuestionnaireOption withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public QuestionnaireOption 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 QuestionnaireOption that = ((QuestionnaireOption) object); { 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; } } { Date lhsValueDate; lhsValueDate = this.getValueDate(); Date rhsValueDate; rhsValueDate = that.getValueDate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "valueDate", lhsValueDate), LocatorUtils.property(thatLocator, "valueDate", rhsValueDate), lhsValueDate, rhsValueDate, (this.valueDate!= null), (that.valueDate!= null))) { return false; } } { Time lhsValueTime; lhsValueTime = this.getValueTime(); Time rhsValueTime; rhsValueTime = that.getValueTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "valueTime", lhsValueTime), LocatorUtils.property(thatLocator, "valueTime", rhsValueTime), lhsValueTime, rhsValueTime, (this.valueTime!= null), (that.valueTime!= 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; } } { 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; } } 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); { Integer theValueInteger; theValueInteger = this.getValueInteger(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueInteger", theValueInteger), currentHashCode, theValueInteger, (this.valueInteger!= null)); } { Date theValueDate; theValueDate = this.getValueDate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueDate", theValueDate), currentHashCode, theValueDate, (this.valueDate!= null)); } { Time theValueTime; theValueTime = this.getValueTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueTime", theValueTime), currentHashCode, theValueTime, (this.valueTime!= null)); } { org.hl7.fhir.String theValueString; theValueString = this.getValueString(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueString", theValueString), currentHashCode, theValueString, (this.valueString!= null)); } { Coding theValueCoding; theValueCoding = this.getValueCoding(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueCoding", theValueCoding), currentHashCode, theValueCoding, (this.valueCoding!= 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); { Integer theValueInteger; theValueInteger = this.getValueInteger(); strategy.appendField(locator, this, "valueInteger", buffer, theValueInteger, (this.valueInteger!= null)); } { Date theValueDate; theValueDate = this.getValueDate(); strategy.appendField(locator, this, "valueDate", buffer, theValueDate, (this.valueDate!= null)); } { Time theValueTime; theValueTime = this.getValueTime(); strategy.appendField(locator, this, "valueTime", buffer, theValueTime, (this.valueTime!= null)); } { org.hl7.fhir.String theValueString; theValueString = this.getValueString(); strategy.appendField(locator, this, "valueString", buffer, theValueString, (this.valueString!= null)); } { Coding theValueCoding; theValueCoding = this.getValueCoding(); strategy.appendField(locator, this, "valueCoding", buffer, theValueCoding, (this.valueCoding!= null)); } return buffer; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy