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

org.hl7.fhir.SequenceReferenceSeq 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.06.14 at 01:52:11 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;


/**
 * Variation and Sequence data.
 * 
 * 

Java class for Sequence.ReferenceSeq complex type. * *

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

 * <complexType name="Sequence.ReferenceSeq">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="chromosome" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
 *         <element name="genomeBuild" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="referenceSeqId" type="{http://hl7.org/fhir}CodeableConcept"/>
 *         <element name="referenceSeqPointer" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
 *         <element name="referenceSeqString" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="windowStart" type="{http://hl7.org/fhir}integer"/>
 *         <element name="windowEnd" type="{http://hl7.org/fhir}integer"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Sequence.ReferenceSeq", propOrder = { "chromosome", "genomeBuild", "referenceSeqId", "referenceSeqPointer", "referenceSeqString", "windowStart", "windowEnd" }) public class SequenceReferenceSeq extends BackboneElement implements Equals2, HashCode2, ToString2 { protected CodeableConcept chromosome; protected org.hl7.fhir.String genomeBuild; @XmlElement(required = true) protected CodeableConcept referenceSeqId; protected Reference referenceSeqPointer; protected org.hl7.fhir.String referenceSeqString; @XmlElement(required = true) protected Integer windowStart; @XmlElement(required = true) protected Integer windowEnd; /** * Gets the value of the chromosome property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getChromosome() { return chromosome; } /** * Sets the value of the chromosome property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setChromosome(CodeableConcept value) { this.chromosome = value; } /** * Gets the value of the genomeBuild property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getGenomeBuild() { return genomeBuild; } /** * Sets the value of the genomeBuild property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setGenomeBuild(org.hl7.fhir.String value) { this.genomeBuild = value; } /** * Gets the value of the referenceSeqId property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getReferenceSeqId() { return referenceSeqId; } /** * Sets the value of the referenceSeqId property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setReferenceSeqId(CodeableConcept value) { this.referenceSeqId = value; } /** * Gets the value of the referenceSeqPointer property. * * @return * possible object is * {@link Reference } * */ public Reference getReferenceSeqPointer() { return referenceSeqPointer; } /** * Sets the value of the referenceSeqPointer property. * * @param value * allowed object is * {@link Reference } * */ public void setReferenceSeqPointer(Reference value) { this.referenceSeqPointer = value; } /** * Gets the value of the referenceSeqString property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getReferenceSeqString() { return referenceSeqString; } /** * Sets the value of the referenceSeqString property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setReferenceSeqString(org.hl7.fhir.String value) { this.referenceSeqString = value; } /** * Gets the value of the windowStart property. * * @return * possible object is * {@link Integer } * */ public Integer getWindowStart() { return windowStart; } /** * Sets the value of the windowStart property. * * @param value * allowed object is * {@link Integer } * */ public void setWindowStart(Integer value) { this.windowStart = value; } /** * Gets the value of the windowEnd property. * * @return * possible object is * {@link Integer } * */ public Integer getWindowEnd() { return windowEnd; } /** * Sets the value of the windowEnd property. * * @param value * allowed object is * {@link Integer } * */ public void setWindowEnd(Integer value) { this.windowEnd = value; } public SequenceReferenceSeq withChromosome(CodeableConcept value) { setChromosome(value); return this; } public SequenceReferenceSeq withGenomeBuild(org.hl7.fhir.String value) { setGenomeBuild(value); return this; } public SequenceReferenceSeq withReferenceSeqId(CodeableConcept value) { setReferenceSeqId(value); return this; } public SequenceReferenceSeq withReferenceSeqPointer(Reference value) { setReferenceSeqPointer(value); return this; } public SequenceReferenceSeq withReferenceSeqString(org.hl7.fhir.String value) { setReferenceSeqString(value); return this; } public SequenceReferenceSeq withWindowStart(Integer value) { setWindowStart(value); return this; } public SequenceReferenceSeq withWindowEnd(Integer value) { setWindowEnd(value); return this; } @Override public SequenceReferenceSeq withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public SequenceReferenceSeq withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public SequenceReferenceSeq withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public SequenceReferenceSeq withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public SequenceReferenceSeq 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 SequenceReferenceSeq that = ((SequenceReferenceSeq) object); { CodeableConcept lhsChromosome; lhsChromosome = this.getChromosome(); CodeableConcept rhsChromosome; rhsChromosome = that.getChromosome(); if (!strategy.equals(LocatorUtils.property(thisLocator, "chromosome", lhsChromosome), LocatorUtils.property(thatLocator, "chromosome", rhsChromosome), lhsChromosome, rhsChromosome, (this.chromosome!= null), (that.chromosome!= null))) { return false; } } { org.hl7.fhir.String lhsGenomeBuild; lhsGenomeBuild = this.getGenomeBuild(); org.hl7.fhir.String rhsGenomeBuild; rhsGenomeBuild = that.getGenomeBuild(); if (!strategy.equals(LocatorUtils.property(thisLocator, "genomeBuild", lhsGenomeBuild), LocatorUtils.property(thatLocator, "genomeBuild", rhsGenomeBuild), lhsGenomeBuild, rhsGenomeBuild, (this.genomeBuild!= null), (that.genomeBuild!= null))) { return false; } } { CodeableConcept lhsReferenceSeqId; lhsReferenceSeqId = this.getReferenceSeqId(); CodeableConcept rhsReferenceSeqId; rhsReferenceSeqId = that.getReferenceSeqId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "referenceSeqId", lhsReferenceSeqId), LocatorUtils.property(thatLocator, "referenceSeqId", rhsReferenceSeqId), lhsReferenceSeqId, rhsReferenceSeqId, (this.referenceSeqId!= null), (that.referenceSeqId!= null))) { return false; } } { Reference lhsReferenceSeqPointer; lhsReferenceSeqPointer = this.getReferenceSeqPointer(); Reference rhsReferenceSeqPointer; rhsReferenceSeqPointer = that.getReferenceSeqPointer(); if (!strategy.equals(LocatorUtils.property(thisLocator, "referenceSeqPointer", lhsReferenceSeqPointer), LocatorUtils.property(thatLocator, "referenceSeqPointer", rhsReferenceSeqPointer), lhsReferenceSeqPointer, rhsReferenceSeqPointer, (this.referenceSeqPointer!= null), (that.referenceSeqPointer!= null))) { return false; } } { org.hl7.fhir.String lhsReferenceSeqString; lhsReferenceSeqString = this.getReferenceSeqString(); org.hl7.fhir.String rhsReferenceSeqString; rhsReferenceSeqString = that.getReferenceSeqString(); if (!strategy.equals(LocatorUtils.property(thisLocator, "referenceSeqString", lhsReferenceSeqString), LocatorUtils.property(thatLocator, "referenceSeqString", rhsReferenceSeqString), lhsReferenceSeqString, rhsReferenceSeqString, (this.referenceSeqString!= null), (that.referenceSeqString!= null))) { return false; } } { Integer lhsWindowStart; lhsWindowStart = this.getWindowStart(); Integer rhsWindowStart; rhsWindowStart = that.getWindowStart(); if (!strategy.equals(LocatorUtils.property(thisLocator, "windowStart", lhsWindowStart), LocatorUtils.property(thatLocator, "windowStart", rhsWindowStart), lhsWindowStart, rhsWindowStart, (this.windowStart!= null), (that.windowStart!= null))) { return false; } } { Integer lhsWindowEnd; lhsWindowEnd = this.getWindowEnd(); Integer rhsWindowEnd; rhsWindowEnd = that.getWindowEnd(); if (!strategy.equals(LocatorUtils.property(thisLocator, "windowEnd", lhsWindowEnd), LocatorUtils.property(thatLocator, "windowEnd", rhsWindowEnd), lhsWindowEnd, rhsWindowEnd, (this.windowEnd!= null), (that.windowEnd!= 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); { CodeableConcept theChromosome; theChromosome = this.getChromosome(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "chromosome", theChromosome), currentHashCode, theChromosome, (this.chromosome!= null)); } { org.hl7.fhir.String theGenomeBuild; theGenomeBuild = this.getGenomeBuild(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "genomeBuild", theGenomeBuild), currentHashCode, theGenomeBuild, (this.genomeBuild!= null)); } { CodeableConcept theReferenceSeqId; theReferenceSeqId = this.getReferenceSeqId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "referenceSeqId", theReferenceSeqId), currentHashCode, theReferenceSeqId, (this.referenceSeqId!= null)); } { Reference theReferenceSeqPointer; theReferenceSeqPointer = this.getReferenceSeqPointer(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "referenceSeqPointer", theReferenceSeqPointer), currentHashCode, theReferenceSeqPointer, (this.referenceSeqPointer!= null)); } { org.hl7.fhir.String theReferenceSeqString; theReferenceSeqString = this.getReferenceSeqString(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "referenceSeqString", theReferenceSeqString), currentHashCode, theReferenceSeqString, (this.referenceSeqString!= null)); } { Integer theWindowStart; theWindowStart = this.getWindowStart(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "windowStart", theWindowStart), currentHashCode, theWindowStart, (this.windowStart!= null)); } { Integer theWindowEnd; theWindowEnd = this.getWindowEnd(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "windowEnd", theWindowEnd), currentHashCode, theWindowEnd, (this.windowEnd!= 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); { CodeableConcept theChromosome; theChromosome = this.getChromosome(); strategy.appendField(locator, this, "chromosome", buffer, theChromosome, (this.chromosome!= null)); } { org.hl7.fhir.String theGenomeBuild; theGenomeBuild = this.getGenomeBuild(); strategy.appendField(locator, this, "genomeBuild", buffer, theGenomeBuild, (this.genomeBuild!= null)); } { CodeableConcept theReferenceSeqId; theReferenceSeqId = this.getReferenceSeqId(); strategy.appendField(locator, this, "referenceSeqId", buffer, theReferenceSeqId, (this.referenceSeqId!= null)); } { Reference theReferenceSeqPointer; theReferenceSeqPointer = this.getReferenceSeqPointer(); strategy.appendField(locator, this, "referenceSeqPointer", buffer, theReferenceSeqPointer, (this.referenceSeqPointer!= null)); } { org.hl7.fhir.String theReferenceSeqString; theReferenceSeqString = this.getReferenceSeqString(); strategy.appendField(locator, this, "referenceSeqString", buffer, theReferenceSeqString, (this.referenceSeqString!= null)); } { Integer theWindowStart; theWindowStart = this.getWindowStart(); strategy.appendField(locator, this, "windowStart", buffer, theWindowStart, (this.windowStart!= null)); } { Integer theWindowEnd; theWindowEnd = this.getWindowEnd(); strategy.appendField(locator, this, "windowEnd", buffer, theWindowEnd, (this.windowEnd!= null)); } return buffer; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy