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.22.0
Show newest version
//
// 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.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.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 Equals, HashCode, ToString { 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; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof SequenceStructureVariation)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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); { org.hl7.fhir.String thePrecisionOfBoundaries; thePrecisionOfBoundaries = this.getPrecisionOfBoundaries(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "precisionOfBoundaries", thePrecisionOfBoundaries), currentHashCode, thePrecisionOfBoundaries); } { Decimal theReportedaCGHRatio; theReportedaCGHRatio = this.getReportedaCGHRatio(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reportedaCGHRatio", theReportedaCGHRatio), currentHashCode, theReportedaCGHRatio); } { Integer theLength; theLength = this.getLength(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "length", theLength), currentHashCode, theLength); } { SequenceOuter theOuter; theOuter = this.getOuter(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "outer", theOuter), currentHashCode, theOuter); } { SequenceInner theInner; theInner = this.getInner(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "inner", theInner), currentHashCode, theInner); } 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); { org.hl7.fhir.String thePrecisionOfBoundaries; thePrecisionOfBoundaries = this.getPrecisionOfBoundaries(); strategy.appendField(locator, this, "precisionOfBoundaries", buffer, thePrecisionOfBoundaries); } { Decimal theReportedaCGHRatio; theReportedaCGHRatio = this.getReportedaCGHRatio(); strategy.appendField(locator, this, "reportedaCGHRatio", buffer, theReportedaCGHRatio); } { Integer theLength; theLength = this.getLength(); strategy.appendField(locator, this, "length", buffer, theLength); } { SequenceOuter theOuter; theOuter = this.getOuter(); strategy.appendField(locator, this, "outer", buffer, theOuter); } { SequenceInner theInner; theInner = this.getInner(); strategy.appendField(locator, this, "inner", buffer, theInner); } return buffer; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy