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

org.hl7.fhir.SequenceStructureVariation 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.01.18 at 08:26:13 AM MST 
//


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;


/**
 * Variation and Sequence data.
 * 
 * 

Java class for Sequence.StructureVariation complex type. * *

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

 * <complexType name="Sequence.StructureVariation">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="precisionOfBoundaries" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="reportedaCGHRatio" type="{http://hl7.org/fhir}decimal" minOccurs="0"/>
 *         <element name="length" type="{http://hl7.org/fhir}integer" minOccurs="0"/>
 *         <element name="outer" type="{http://hl7.org/fhir}Sequence.Outer" minOccurs="0"/>
 *         <element name="inner" type="{http://hl7.org/fhir}Sequence.Inner" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Sequence.StructureVariation", propOrder = { "precisionOfBoundaries", "reportedaCGHRatio", "length", "outer", "inner" }) public class SequenceStructureVariation extends BackboneElement implements Equals2, HashCode2, ToString2 { protected org.hl7.fhir.String precisionOfBoundaries; protected Decimal reportedaCGHRatio; protected Integer length; protected SequenceOuter outer; protected SequenceInner inner; /** * Gets the value of the precisionOfBoundaries property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getPrecisionOfBoundaries() { return precisionOfBoundaries; } /** * Sets the value of the precisionOfBoundaries property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setPrecisionOfBoundaries(org.hl7.fhir.String value) { this.precisionOfBoundaries = value; } /** * Gets the value of the reportedaCGHRatio property. * * @return * possible object is * {@link Decimal } * */ public Decimal getReportedaCGHRatio() { return reportedaCGHRatio; } /** * Sets the value of the reportedaCGHRatio property. * * @param value * allowed object is * {@link Decimal } * */ public void setReportedaCGHRatio(Decimal value) { this.reportedaCGHRatio = value; } /** * Gets the value of the length property. * * @return * possible object is * {@link Integer } * */ public Integer getLength() { return length; } /** * Sets the value of the length property. * * @param value * allowed object is * {@link Integer } * */ public void setLength(Integer value) { this.length = value; } /** * Gets the value of the outer property. * * @return * possible object is * {@link SequenceOuter } * */ public SequenceOuter getOuter() { return outer; } /** * Sets the value of the outer property. * * @param value * allowed object is * {@link SequenceOuter } * */ public void setOuter(SequenceOuter value) { this.outer = value; } /** * Gets the value of the inner property. * * @return * possible object is * {@link SequenceInner } * */ public SequenceInner getInner() { return inner; } /** * Sets the value of the inner property. * * @param value * allowed object is * {@link SequenceInner } * */ public void setInner(SequenceInner value) { this.inner = value; } public SequenceStructureVariation withPrecisionOfBoundaries(org.hl7.fhir.String value) { setPrecisionOfBoundaries(value); return this; } public SequenceStructureVariation withReportedaCGHRatio(Decimal value) { setReportedaCGHRatio(value); return this; } public SequenceStructureVariation withLength(Integer value) { setLength(value); return this; } public SequenceStructureVariation withOuter(SequenceOuter value) { setOuter(value); return this; } public SequenceStructureVariation withInner(SequenceInner value) { setInner(value); return this; } @Override public SequenceStructureVariation withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public SequenceStructureVariation withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public SequenceStructureVariation withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public SequenceStructureVariation withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public SequenceStructureVariation 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 SequenceStructureVariation that = ((SequenceStructureVariation) object); { org.hl7.fhir.String lhsPrecisionOfBoundaries; lhsPrecisionOfBoundaries = this.getPrecisionOfBoundaries(); org.hl7.fhir.String rhsPrecisionOfBoundaries; rhsPrecisionOfBoundaries = that.getPrecisionOfBoundaries(); if (!strategy.equals(LocatorUtils.property(thisLocator, "precisionOfBoundaries", lhsPrecisionOfBoundaries), LocatorUtils.property(thatLocator, "precisionOfBoundaries", rhsPrecisionOfBoundaries), lhsPrecisionOfBoundaries, rhsPrecisionOfBoundaries, (this.precisionOfBoundaries!= null), (that.precisionOfBoundaries!= null))) { return false; } } { Decimal lhsReportedaCGHRatio; lhsReportedaCGHRatio = this.getReportedaCGHRatio(); Decimal rhsReportedaCGHRatio; rhsReportedaCGHRatio = that.getReportedaCGHRatio(); if (!strategy.equals(LocatorUtils.property(thisLocator, "reportedaCGHRatio", lhsReportedaCGHRatio), LocatorUtils.property(thatLocator, "reportedaCGHRatio", rhsReportedaCGHRatio), lhsReportedaCGHRatio, rhsReportedaCGHRatio, (this.reportedaCGHRatio!= null), (that.reportedaCGHRatio!= null))) { return false; } } { Integer lhsLength; lhsLength = this.getLength(); Integer rhsLength; rhsLength = that.getLength(); if (!strategy.equals(LocatorUtils.property(thisLocator, "length", lhsLength), LocatorUtils.property(thatLocator, "length", rhsLength), lhsLength, rhsLength, (this.length!= null), (that.length!= null))) { return false; } } { SequenceOuter lhsOuter; lhsOuter = this.getOuter(); SequenceOuter rhsOuter; rhsOuter = that.getOuter(); if (!strategy.equals(LocatorUtils.property(thisLocator, "outer", lhsOuter), LocatorUtils.property(thatLocator, "outer", rhsOuter), lhsOuter, rhsOuter, (this.outer!= null), (that.outer!= null))) { return false; } } { SequenceInner lhsInner; lhsInner = this.getInner(); SequenceInner rhsInner; rhsInner = that.getInner(); if (!strategy.equals(LocatorUtils.property(thisLocator, "inner", lhsInner), LocatorUtils.property(thatLocator, "inner", rhsInner), lhsInner, rhsInner, (this.inner!= null), (that.inner!= 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); { org.hl7.fhir.String thePrecisionOfBoundaries; thePrecisionOfBoundaries = this.getPrecisionOfBoundaries(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "precisionOfBoundaries", thePrecisionOfBoundaries), currentHashCode, thePrecisionOfBoundaries, (this.precisionOfBoundaries!= null)); } { Decimal theReportedaCGHRatio; theReportedaCGHRatio = this.getReportedaCGHRatio(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reportedaCGHRatio", theReportedaCGHRatio), currentHashCode, theReportedaCGHRatio, (this.reportedaCGHRatio!= null)); } { Integer theLength; theLength = this.getLength(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "length", theLength), currentHashCode, theLength, (this.length!= null)); } { SequenceOuter theOuter; theOuter = this.getOuter(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "outer", theOuter), currentHashCode, theOuter, (this.outer!= null)); } { SequenceInner theInner; theInner = this.getInner(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "inner", theInner), currentHashCode, theInner, (this.inner!= 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); { org.hl7.fhir.String thePrecisionOfBoundaries; thePrecisionOfBoundaries = this.getPrecisionOfBoundaries(); strategy.appendField(locator, this, "precisionOfBoundaries", buffer, thePrecisionOfBoundaries, (this.precisionOfBoundaries!= null)); } { Decimal theReportedaCGHRatio; theReportedaCGHRatio = this.getReportedaCGHRatio(); strategy.appendField(locator, this, "reportedaCGHRatio", buffer, theReportedaCGHRatio, (this.reportedaCGHRatio!= null)); } { Integer theLength; theLength = this.getLength(); strategy.appendField(locator, this, "length", buffer, theLength, (this.length!= null)); } { SequenceOuter theOuter; theOuter = this.getOuter(); strategy.appendField(locator, this, "outer", buffer, theOuter, (this.outer!= null)); } { SequenceInner theInner; theInner = this.getInner(); strategy.appendField(locator, this, "inner", buffer, theInner, (this.inner!= null)); } return buffer; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy