
org.hl7.fhir.SequenceReferenceSeq 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 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;
/**
* 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 Equals, HashCode, ToString
{
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;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof SequenceReferenceSeq)) {
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)) {
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)) {
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)) {
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)) {
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)) {
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)) {
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)) {
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);
{
CodeableConcept theChromosome;
theChromosome = this.getChromosome();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "chromosome", theChromosome), currentHashCode, theChromosome);
}
{
org.hl7.fhir.String theGenomeBuild;
theGenomeBuild = this.getGenomeBuild();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "genomeBuild", theGenomeBuild), currentHashCode, theGenomeBuild);
}
{
CodeableConcept theReferenceSeqId;
theReferenceSeqId = this.getReferenceSeqId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "referenceSeqId", theReferenceSeqId), currentHashCode, theReferenceSeqId);
}
{
Reference theReferenceSeqPointer;
theReferenceSeqPointer = this.getReferenceSeqPointer();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "referenceSeqPointer", theReferenceSeqPointer), currentHashCode, theReferenceSeqPointer);
}
{
org.hl7.fhir.String theReferenceSeqString;
theReferenceSeqString = this.getReferenceSeqString();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "referenceSeqString", theReferenceSeqString), currentHashCode, theReferenceSeqString);
}
{
Integer theWindowStart;
theWindowStart = this.getWindowStart();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "windowStart", theWindowStart), currentHashCode, theWindowStart);
}
{
Integer theWindowEnd;
theWindowEnd = this.getWindowEnd();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "windowEnd", theWindowEnd), currentHashCode, theWindowEnd);
}
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);
{
CodeableConcept theChromosome;
theChromosome = this.getChromosome();
strategy.appendField(locator, this, "chromosome", buffer, theChromosome);
}
{
org.hl7.fhir.String theGenomeBuild;
theGenomeBuild = this.getGenomeBuild();
strategy.appendField(locator, this, "genomeBuild", buffer, theGenomeBuild);
}
{
CodeableConcept theReferenceSeqId;
theReferenceSeqId = this.getReferenceSeqId();
strategy.appendField(locator, this, "referenceSeqId", buffer, theReferenceSeqId);
}
{
Reference theReferenceSeqPointer;
theReferenceSeqPointer = this.getReferenceSeqPointer();
strategy.appendField(locator, this, "referenceSeqPointer", buffer, theReferenceSeqPointer);
}
{
org.hl7.fhir.String theReferenceSeqString;
theReferenceSeqString = this.getReferenceSeqString();
strategy.appendField(locator, this, "referenceSeqString", buffer, theReferenceSeqString);
}
{
Integer theWindowStart;
theWindowStart = this.getWindowStart();
strategy.appendField(locator, this, "windowStart", buffer, theWindowStart);
}
{
Integer theWindowEnd;
theWindowEnd = this.getWindowEnd();
strategy.appendField(locator, this, "windowEnd", buffer, theWindowEnd);
}
return buffer;
}
}