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

org.hl7.fhir.Sequence 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.08.16 at 09:36:55 AM MDT 
//


package org.hl7.fhir;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
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;


/**
 * If the element is present, it must have either a @value, an @id, or extensions
 * 
 * 

Java class for Sequence complex type. * *

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

 * <complexType name="Sequence">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}DomainResource">
 *       <sequence>
 *         <element name="type" type="{http://hl7.org/fhir}sequenceType"/>
 *         <element name="patient" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="specimen" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="device" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="quantity" type="{http://hl7.org/fhir}Quantity" minOccurs="0"/>
 *         <element name="species" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="referenceSeq" type="{http://hl7.org/fhir}Sequence.ReferenceSeq" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="variation" type="{http://hl7.org/fhir}Sequence.Variation" minOccurs="0"/>
 *         <element name="quality" type="{http://hl7.org/fhir}Sequence.Quality" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="allelicState" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="allelicFrequency" type="{http://hl7.org/fhir}decimal" minOccurs="0"/>
 *         <element name="copyNumberEvent" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="readCoverage" type="{http://hl7.org/fhir}integer" minOccurs="0"/>
 *         <element name="repository" type="{http://hl7.org/fhir}Sequence.Repository" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="pointer" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="observedSeq" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="observation" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="structureVariation" type="{http://hl7.org/fhir}Sequence.StructureVariation" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Sequence", propOrder = { "type", "patient", "specimen", "device", "quantity", "species", "referenceSeq", "variation", "quality", "allelicState", "allelicFrequency", "copyNumberEvent", "readCoverage", "repository", "pointer", "observedSeq", "observation", "structureVariation" }) public class Sequence extends DomainResource implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected SequenceType type; protected Reference patient; protected Reference specimen; protected Reference device; protected Quantity quantity; protected CodeableConcept species; protected List referenceSeq; protected SequenceVariation variation; protected List quality; protected CodeableConcept allelicState; protected Decimal allelicFrequency; protected CodeableConcept copyNumberEvent; protected Integer readCoverage; protected List repository; protected List pointer; protected org.hl7.fhir.String observedSeq; protected Reference observation; protected SequenceStructureVariation structureVariation; /** * Gets the value of the type property. * * @return * possible object is * {@link SequenceType } * */ public SequenceType getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link SequenceType } * */ public void setType(SequenceType value) { this.type = value; } /** * Gets the value of the patient property. * * @return * possible object is * {@link Reference } * */ public Reference getPatient() { return patient; } /** * Sets the value of the patient property. * * @param value * allowed object is * {@link Reference } * */ public void setPatient(Reference value) { this.patient = value; } /** * Gets the value of the specimen property. * * @return * possible object is * {@link Reference } * */ public Reference getSpecimen() { return specimen; } /** * Sets the value of the specimen property. * * @param value * allowed object is * {@link Reference } * */ public void setSpecimen(Reference value) { this.specimen = value; } /** * Gets the value of the device property. * * @return * possible object is * {@link Reference } * */ public Reference getDevice() { return device; } /** * Sets the value of the device property. * * @param value * allowed object is * {@link Reference } * */ public void setDevice(Reference value) { this.device = value; } /** * Gets the value of the quantity property. * * @return * possible object is * {@link Quantity } * */ public Quantity getQuantity() { return quantity; } /** * Sets the value of the quantity property. * * @param value * allowed object is * {@link Quantity } * */ public void setQuantity(Quantity value) { this.quantity = value; } /** * Gets the value of the species property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getSpecies() { return species; } /** * Sets the value of the species property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setSpecies(CodeableConcept value) { this.species = value; } /** * Gets the value of the referenceSeq property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a set method for the referenceSeq property. * *

* For example, to add a new item, do as follows: *

     *    getReferenceSeq().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link SequenceReferenceSeq } * * */ public List getReferenceSeq() { if (referenceSeq == null) { referenceSeq = new ArrayList(); } return this.referenceSeq; } /** * Gets the value of the variation property. * * @return * possible object is * {@link SequenceVariation } * */ public SequenceVariation getVariation() { return variation; } /** * Sets the value of the variation property. * * @param value * allowed object is * {@link SequenceVariation } * */ public void setVariation(SequenceVariation value) { this.variation = value; } /** * Gets the value of the quality property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a set method for the quality property. * *

* For example, to add a new item, do as follows: *

     *    getQuality().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link SequenceQuality } * * */ public List getQuality() { if (quality == null) { quality = new ArrayList(); } return this.quality; } /** * Gets the value of the allelicState property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getAllelicState() { return allelicState; } /** * Sets the value of the allelicState property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setAllelicState(CodeableConcept value) { this.allelicState = value; } /** * Gets the value of the allelicFrequency property. * * @return * possible object is * {@link Decimal } * */ public Decimal getAllelicFrequency() { return allelicFrequency; } /** * Sets the value of the allelicFrequency property. * * @param value * allowed object is * {@link Decimal } * */ public void setAllelicFrequency(Decimal value) { this.allelicFrequency = value; } /** * Gets the value of the copyNumberEvent property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getCopyNumberEvent() { return copyNumberEvent; } /** * Sets the value of the copyNumberEvent property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setCopyNumberEvent(CodeableConcept value) { this.copyNumberEvent = value; } /** * Gets the value of the readCoverage property. * * @return * possible object is * {@link Integer } * */ public Integer getReadCoverage() { return readCoverage; } /** * Sets the value of the readCoverage property. * * @param value * allowed object is * {@link Integer } * */ public void setReadCoverage(Integer value) { this.readCoverage = value; } /** * Gets the value of the repository property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a set method for the repository property. * *

* For example, to add a new item, do as follows: *

     *    getRepository().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link SequenceRepository } * * */ public List getRepository() { if (repository == null) { repository = new ArrayList(); } return this.repository; } /** * Gets the value of the pointer property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a set method for the pointer property. * *

* For example, to add a new item, do as follows: *

     *    getPointer().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getPointer() { if (pointer == null) { pointer = new ArrayList(); } return this.pointer; } /** * Gets the value of the observedSeq property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getObservedSeq() { return observedSeq; } /** * Sets the value of the observedSeq property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setObservedSeq(org.hl7.fhir.String value) { this.observedSeq = value; } /** * Gets the value of the observation property. * * @return * possible object is * {@link Reference } * */ public Reference getObservation() { return observation; } /** * Sets the value of the observation property. * * @param value * allowed object is * {@link Reference } * */ public void setObservation(Reference value) { this.observation = value; } /** * Gets the value of the structureVariation property. * * @return * possible object is * {@link SequenceStructureVariation } * */ public SequenceStructureVariation getStructureVariation() { return structureVariation; } /** * Sets the value of the structureVariation property. * * @param value * allowed object is * {@link SequenceStructureVariation } * */ public void setStructureVariation(SequenceStructureVariation value) { this.structureVariation = value; } public Sequence withType(SequenceType value) { setType(value); return this; } public Sequence withPatient(Reference value) { setPatient(value); return this; } public Sequence withSpecimen(Reference value) { setSpecimen(value); return this; } public Sequence withDevice(Reference value) { setDevice(value); return this; } public Sequence withQuantity(Quantity value) { setQuantity(value); return this; } public Sequence withSpecies(CodeableConcept value) { setSpecies(value); return this; } public Sequence withReferenceSeq(SequenceReferenceSeq... values) { if (values!= null) { for (SequenceReferenceSeq value: values) { getReferenceSeq().add(value); } } return this; } public Sequence withReferenceSeq(Collection values) { if (values!= null) { getReferenceSeq().addAll(values); } return this; } public Sequence withVariation(SequenceVariation value) { setVariation(value); return this; } public Sequence withQuality(SequenceQuality... values) { if (values!= null) { for (SequenceQuality value: values) { getQuality().add(value); } } return this; } public Sequence withQuality(Collection values) { if (values!= null) { getQuality().addAll(values); } return this; } public Sequence withAllelicState(CodeableConcept value) { setAllelicState(value); return this; } public Sequence withAllelicFrequency(Decimal value) { setAllelicFrequency(value); return this; } public Sequence withCopyNumberEvent(CodeableConcept value) { setCopyNumberEvent(value); return this; } public Sequence withReadCoverage(Integer value) { setReadCoverage(value); return this; } public Sequence withRepository(SequenceRepository... values) { if (values!= null) { for (SequenceRepository value: values) { getRepository().add(value); } } return this; } public Sequence withRepository(Collection values) { if (values!= null) { getRepository().addAll(values); } return this; } public Sequence withPointer(Reference... values) { if (values!= null) { for (Reference value: values) { getPointer().add(value); } } return this; } public Sequence withPointer(Collection values) { if (values!= null) { getPointer().addAll(values); } return this; } public Sequence withObservedSeq(org.hl7.fhir.String value) { setObservedSeq(value); return this; } public Sequence withObservation(Reference value) { setObservation(value); return this; } public Sequence withStructureVariation(SequenceStructureVariation value) { setStructureVariation(value); return this; } @Override public Sequence withText(Narrative value) { setText(value); return this; } @Override public Sequence withContained(ResourceContainer... values) { if (values!= null) { for (ResourceContainer value: values) { getContained().add(value); } } return this; } @Override public Sequence withContained(Collection values) { if (values!= null) { getContained().addAll(values); } return this; } @Override public Sequence withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public Sequence withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public Sequence withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public Sequence withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public Sequence withId(Id value) { setId(value); return this; } @Override public Sequence withMeta(Meta value) { setMeta(value); return this; } @Override public Sequence withImplicitRules(Uri value) { setImplicitRules(value); return this; } @Override public Sequence withLanguage(Code value) { setLanguage(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 Sequence that = ((Sequence) object); { SequenceType lhsType; lhsType = this.getType(); SequenceType rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType, (this.type!= null), (that.type!= null))) { return false; } } { Reference lhsPatient; lhsPatient = this.getPatient(); Reference rhsPatient; rhsPatient = that.getPatient(); if (!strategy.equals(LocatorUtils.property(thisLocator, "patient", lhsPatient), LocatorUtils.property(thatLocator, "patient", rhsPatient), lhsPatient, rhsPatient, (this.patient!= null), (that.patient!= null))) { return false; } } { Reference lhsSpecimen; lhsSpecimen = this.getSpecimen(); Reference rhsSpecimen; rhsSpecimen = that.getSpecimen(); if (!strategy.equals(LocatorUtils.property(thisLocator, "specimen", lhsSpecimen), LocatorUtils.property(thatLocator, "specimen", rhsSpecimen), lhsSpecimen, rhsSpecimen, (this.specimen!= null), (that.specimen!= null))) { return false; } } { Reference lhsDevice; lhsDevice = this.getDevice(); Reference rhsDevice; rhsDevice = that.getDevice(); if (!strategy.equals(LocatorUtils.property(thisLocator, "device", lhsDevice), LocatorUtils.property(thatLocator, "device", rhsDevice), lhsDevice, rhsDevice, (this.device!= null), (that.device!= null))) { return false; } } { Quantity lhsQuantity; lhsQuantity = this.getQuantity(); Quantity rhsQuantity; rhsQuantity = that.getQuantity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "quantity", lhsQuantity), LocatorUtils.property(thatLocator, "quantity", rhsQuantity), lhsQuantity, rhsQuantity, (this.quantity!= null), (that.quantity!= null))) { return false; } } { CodeableConcept lhsSpecies; lhsSpecies = this.getSpecies(); CodeableConcept rhsSpecies; rhsSpecies = that.getSpecies(); if (!strategy.equals(LocatorUtils.property(thisLocator, "species", lhsSpecies), LocatorUtils.property(thatLocator, "species", rhsSpecies), lhsSpecies, rhsSpecies, (this.species!= null), (that.species!= null))) { return false; } } { List lhsReferenceSeq; lhsReferenceSeq = (((this.referenceSeq!= null)&&(!this.referenceSeq.isEmpty()))?this.getReferenceSeq():null); List rhsReferenceSeq; rhsReferenceSeq = (((that.referenceSeq!= null)&&(!that.referenceSeq.isEmpty()))?that.getReferenceSeq():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "referenceSeq", lhsReferenceSeq), LocatorUtils.property(thatLocator, "referenceSeq", rhsReferenceSeq), lhsReferenceSeq, rhsReferenceSeq, ((this.referenceSeq!= null)&&(!this.referenceSeq.isEmpty())), ((that.referenceSeq!= null)&&(!that.referenceSeq.isEmpty())))) { return false; } } { SequenceVariation lhsVariation; lhsVariation = this.getVariation(); SequenceVariation rhsVariation; rhsVariation = that.getVariation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "variation", lhsVariation), LocatorUtils.property(thatLocator, "variation", rhsVariation), lhsVariation, rhsVariation, (this.variation!= null), (that.variation!= null))) { return false; } } { List lhsQuality; lhsQuality = (((this.quality!= null)&&(!this.quality.isEmpty()))?this.getQuality():null); List rhsQuality; rhsQuality = (((that.quality!= null)&&(!that.quality.isEmpty()))?that.getQuality():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "quality", lhsQuality), LocatorUtils.property(thatLocator, "quality", rhsQuality), lhsQuality, rhsQuality, ((this.quality!= null)&&(!this.quality.isEmpty())), ((that.quality!= null)&&(!that.quality.isEmpty())))) { return false; } } { CodeableConcept lhsAllelicState; lhsAllelicState = this.getAllelicState(); CodeableConcept rhsAllelicState; rhsAllelicState = that.getAllelicState(); if (!strategy.equals(LocatorUtils.property(thisLocator, "allelicState", lhsAllelicState), LocatorUtils.property(thatLocator, "allelicState", rhsAllelicState), lhsAllelicState, rhsAllelicState, (this.allelicState!= null), (that.allelicState!= null))) { return false; } } { Decimal lhsAllelicFrequency; lhsAllelicFrequency = this.getAllelicFrequency(); Decimal rhsAllelicFrequency; rhsAllelicFrequency = that.getAllelicFrequency(); if (!strategy.equals(LocatorUtils.property(thisLocator, "allelicFrequency", lhsAllelicFrequency), LocatorUtils.property(thatLocator, "allelicFrequency", rhsAllelicFrequency), lhsAllelicFrequency, rhsAllelicFrequency, (this.allelicFrequency!= null), (that.allelicFrequency!= null))) { return false; } } { CodeableConcept lhsCopyNumberEvent; lhsCopyNumberEvent = this.getCopyNumberEvent(); CodeableConcept rhsCopyNumberEvent; rhsCopyNumberEvent = that.getCopyNumberEvent(); if (!strategy.equals(LocatorUtils.property(thisLocator, "copyNumberEvent", lhsCopyNumberEvent), LocatorUtils.property(thatLocator, "copyNumberEvent", rhsCopyNumberEvent), lhsCopyNumberEvent, rhsCopyNumberEvent, (this.copyNumberEvent!= null), (that.copyNumberEvent!= null))) { return false; } } { Integer lhsReadCoverage; lhsReadCoverage = this.getReadCoverage(); Integer rhsReadCoverage; rhsReadCoverage = that.getReadCoverage(); if (!strategy.equals(LocatorUtils.property(thisLocator, "readCoverage", lhsReadCoverage), LocatorUtils.property(thatLocator, "readCoverage", rhsReadCoverage), lhsReadCoverage, rhsReadCoverage, (this.readCoverage!= null), (that.readCoverage!= null))) { return false; } } { List lhsRepository; lhsRepository = (((this.repository!= null)&&(!this.repository.isEmpty()))?this.getRepository():null); List rhsRepository; rhsRepository = (((that.repository!= null)&&(!that.repository.isEmpty()))?that.getRepository():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "repository", lhsRepository), LocatorUtils.property(thatLocator, "repository", rhsRepository), lhsRepository, rhsRepository, ((this.repository!= null)&&(!this.repository.isEmpty())), ((that.repository!= null)&&(!that.repository.isEmpty())))) { return false; } } { List lhsPointer; lhsPointer = (((this.pointer!= null)&&(!this.pointer.isEmpty()))?this.getPointer():null); List rhsPointer; rhsPointer = (((that.pointer!= null)&&(!that.pointer.isEmpty()))?that.getPointer():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "pointer", lhsPointer), LocatorUtils.property(thatLocator, "pointer", rhsPointer), lhsPointer, rhsPointer, ((this.pointer!= null)&&(!this.pointer.isEmpty())), ((that.pointer!= null)&&(!that.pointer.isEmpty())))) { return false; } } { org.hl7.fhir.String lhsObservedSeq; lhsObservedSeq = this.getObservedSeq(); org.hl7.fhir.String rhsObservedSeq; rhsObservedSeq = that.getObservedSeq(); if (!strategy.equals(LocatorUtils.property(thisLocator, "observedSeq", lhsObservedSeq), LocatorUtils.property(thatLocator, "observedSeq", rhsObservedSeq), lhsObservedSeq, rhsObservedSeq, (this.observedSeq!= null), (that.observedSeq!= null))) { return false; } } { Reference lhsObservation; lhsObservation = this.getObservation(); Reference rhsObservation; rhsObservation = that.getObservation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "observation", lhsObservation), LocatorUtils.property(thatLocator, "observation", rhsObservation), lhsObservation, rhsObservation, (this.observation!= null), (that.observation!= null))) { return false; } } { SequenceStructureVariation lhsStructureVariation; lhsStructureVariation = this.getStructureVariation(); SequenceStructureVariation rhsStructureVariation; rhsStructureVariation = that.getStructureVariation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "structureVariation", lhsStructureVariation), LocatorUtils.property(thatLocator, "structureVariation", rhsStructureVariation), lhsStructureVariation, rhsStructureVariation, (this.structureVariation!= null), (that.structureVariation!= 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); { SequenceType theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { Reference thePatient; thePatient = this.getPatient(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "patient", thePatient), currentHashCode, thePatient, (this.patient!= null)); } { Reference theSpecimen; theSpecimen = this.getSpecimen(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "specimen", theSpecimen), currentHashCode, theSpecimen, (this.specimen!= null)); } { Reference theDevice; theDevice = this.getDevice(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "device", theDevice), currentHashCode, theDevice, (this.device!= null)); } { Quantity theQuantity; theQuantity = this.getQuantity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "quantity", theQuantity), currentHashCode, theQuantity, (this.quantity!= null)); } { CodeableConcept theSpecies; theSpecies = this.getSpecies(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "species", theSpecies), currentHashCode, theSpecies, (this.species!= null)); } { List theReferenceSeq; theReferenceSeq = (((this.referenceSeq!= null)&&(!this.referenceSeq.isEmpty()))?this.getReferenceSeq():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "referenceSeq", theReferenceSeq), currentHashCode, theReferenceSeq, ((this.referenceSeq!= null)&&(!this.referenceSeq.isEmpty()))); } { SequenceVariation theVariation; theVariation = this.getVariation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "variation", theVariation), currentHashCode, theVariation, (this.variation!= null)); } { List theQuality; theQuality = (((this.quality!= null)&&(!this.quality.isEmpty()))?this.getQuality():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "quality", theQuality), currentHashCode, theQuality, ((this.quality!= null)&&(!this.quality.isEmpty()))); } { CodeableConcept theAllelicState; theAllelicState = this.getAllelicState(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "allelicState", theAllelicState), currentHashCode, theAllelicState, (this.allelicState!= null)); } { Decimal theAllelicFrequency; theAllelicFrequency = this.getAllelicFrequency(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "allelicFrequency", theAllelicFrequency), currentHashCode, theAllelicFrequency, (this.allelicFrequency!= null)); } { CodeableConcept theCopyNumberEvent; theCopyNumberEvent = this.getCopyNumberEvent(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "copyNumberEvent", theCopyNumberEvent), currentHashCode, theCopyNumberEvent, (this.copyNumberEvent!= null)); } { Integer theReadCoverage; theReadCoverage = this.getReadCoverage(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "readCoverage", theReadCoverage), currentHashCode, theReadCoverage, (this.readCoverage!= null)); } { List theRepository; theRepository = (((this.repository!= null)&&(!this.repository.isEmpty()))?this.getRepository():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "repository", theRepository), currentHashCode, theRepository, ((this.repository!= null)&&(!this.repository.isEmpty()))); } { List thePointer; thePointer = (((this.pointer!= null)&&(!this.pointer.isEmpty()))?this.getPointer():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "pointer", thePointer), currentHashCode, thePointer, ((this.pointer!= null)&&(!this.pointer.isEmpty()))); } { org.hl7.fhir.String theObservedSeq; theObservedSeq = this.getObservedSeq(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "observedSeq", theObservedSeq), currentHashCode, theObservedSeq, (this.observedSeq!= null)); } { Reference theObservation; theObservation = this.getObservation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "observation", theObservation), currentHashCode, theObservation, (this.observation!= null)); } { SequenceStructureVariation theStructureVariation; theStructureVariation = this.getStructureVariation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "structureVariation", theStructureVariation), currentHashCode, theStructureVariation, (this.structureVariation!= 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); { SequenceType theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null)); } { Reference thePatient; thePatient = this.getPatient(); strategy.appendField(locator, this, "patient", buffer, thePatient, (this.patient!= null)); } { Reference theSpecimen; theSpecimen = this.getSpecimen(); strategy.appendField(locator, this, "specimen", buffer, theSpecimen, (this.specimen!= null)); } { Reference theDevice; theDevice = this.getDevice(); strategy.appendField(locator, this, "device", buffer, theDevice, (this.device!= null)); } { Quantity theQuantity; theQuantity = this.getQuantity(); strategy.appendField(locator, this, "quantity", buffer, theQuantity, (this.quantity!= null)); } { CodeableConcept theSpecies; theSpecies = this.getSpecies(); strategy.appendField(locator, this, "species", buffer, theSpecies, (this.species!= null)); } { List theReferenceSeq; theReferenceSeq = (((this.referenceSeq!= null)&&(!this.referenceSeq.isEmpty()))?this.getReferenceSeq():null); strategy.appendField(locator, this, "referenceSeq", buffer, theReferenceSeq, ((this.referenceSeq!= null)&&(!this.referenceSeq.isEmpty()))); } { SequenceVariation theVariation; theVariation = this.getVariation(); strategy.appendField(locator, this, "variation", buffer, theVariation, (this.variation!= null)); } { List theQuality; theQuality = (((this.quality!= null)&&(!this.quality.isEmpty()))?this.getQuality():null); strategy.appendField(locator, this, "quality", buffer, theQuality, ((this.quality!= null)&&(!this.quality.isEmpty()))); } { CodeableConcept theAllelicState; theAllelicState = this.getAllelicState(); strategy.appendField(locator, this, "allelicState", buffer, theAllelicState, (this.allelicState!= null)); } { Decimal theAllelicFrequency; theAllelicFrequency = this.getAllelicFrequency(); strategy.appendField(locator, this, "allelicFrequency", buffer, theAllelicFrequency, (this.allelicFrequency!= null)); } { CodeableConcept theCopyNumberEvent; theCopyNumberEvent = this.getCopyNumberEvent(); strategy.appendField(locator, this, "copyNumberEvent", buffer, theCopyNumberEvent, (this.copyNumberEvent!= null)); } { Integer theReadCoverage; theReadCoverage = this.getReadCoverage(); strategy.appendField(locator, this, "readCoverage", buffer, theReadCoverage, (this.readCoverage!= null)); } { List theRepository; theRepository = (((this.repository!= null)&&(!this.repository.isEmpty()))?this.getRepository():null); strategy.appendField(locator, this, "repository", buffer, theRepository, ((this.repository!= null)&&(!this.repository.isEmpty()))); } { List thePointer; thePointer = (((this.pointer!= null)&&(!this.pointer.isEmpty()))?this.getPointer():null); strategy.appendField(locator, this, "pointer", buffer, thePointer, ((this.pointer!= null)&&(!this.pointer.isEmpty()))); } { org.hl7.fhir.String theObservedSeq; theObservedSeq = this.getObservedSeq(); strategy.appendField(locator, this, "observedSeq", buffer, theObservedSeq, (this.observedSeq!= null)); } { Reference theObservation; theObservation = this.getObservation(); strategy.appendField(locator, this, "observation", buffer, theObservation, (this.observation!= null)); } { SequenceStructureVariation theStructureVariation; theStructureVariation = this.getStructureVariation(); strategy.appendField(locator, this, "structureVariation", buffer, theStructureVariation, (this.structureVariation!= null)); } return buffer; } public void setReferenceSeq(List value) { this.referenceSeq = value; } public void setQuality(List value) { this.quality = value; } public void setRepository(List value) { this.repository = value; } public void setPointer(List value) { this.pointer = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy