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

org.hl7.cql_annotations.r1.CqlToElmInfo Maven / Gradle / Ivy

Go to download

The elm 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 JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.4.0-b180830.0438 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2023.03.28 at 04:17:15 PM MDT 
//


package org.hl7.cql_annotations.r1;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.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;


/**
 * 

Java class for CqlToElmInfo complex type. * *

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

 * <complexType name="CqlToElmInfo">
 *   <complexContent>
 *     <extension base="{urn:hl7-org:cql-annotations:r1}CqlToElmBase">
 *       <attribute name="translatorVersion" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="translatorOptions" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CqlToElmInfo", namespace = "urn:hl7-org:cql-annotations:r1") public class CqlToElmInfo extends CqlToElmBase implements Equals2, HashCode2, ToString2 { @XmlAttribute(name = "translatorVersion") protected String translatorVersion; @XmlAttribute(name = "translatorOptions") protected String translatorOptions; /** * Gets the value of the translatorVersion property. * * @return * possible object is * {@link String } * */ public String getTranslatorVersion() { return translatorVersion; } /** * Sets the value of the translatorVersion property. * * @param value * allowed object is * {@link String } * */ public void setTranslatorVersion(String value) { this.translatorVersion = value; } /** * Gets the value of the translatorOptions property. * * @return * possible object is * {@link String } * */ public String getTranslatorOptions() { return translatorOptions; } /** * Sets the value of the translatorOptions property. * * @param value * allowed object is * {@link String } * */ public void setTranslatorOptions(String value) { this.translatorOptions = value; } public CqlToElmInfo withTranslatorVersion(String value) { setTranslatorVersion(value); return this; } public CqlToElmInfo withTranslatorOptions(String value) { setTranslatorOptions(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 CqlToElmInfo that = ((CqlToElmInfo) object); { String lhsTranslatorVersion; lhsTranslatorVersion = this.getTranslatorVersion(); String rhsTranslatorVersion; rhsTranslatorVersion = that.getTranslatorVersion(); if (!strategy.equals(LocatorUtils.property(thisLocator, "translatorVersion", lhsTranslatorVersion), LocatorUtils.property(thatLocator, "translatorVersion", rhsTranslatorVersion), lhsTranslatorVersion, rhsTranslatorVersion, (this.translatorVersion!= null), (that.translatorVersion!= null))) { return false; } } { String lhsTranslatorOptions; lhsTranslatorOptions = this.getTranslatorOptions(); String rhsTranslatorOptions; rhsTranslatorOptions = that.getTranslatorOptions(); if (!strategy.equals(LocatorUtils.property(thisLocator, "translatorOptions", lhsTranslatorOptions), LocatorUtils.property(thatLocator, "translatorOptions", rhsTranslatorOptions), lhsTranslatorOptions, rhsTranslatorOptions, (this.translatorOptions!= null), (that.translatorOptions!= 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); { String theTranslatorVersion; theTranslatorVersion = this.getTranslatorVersion(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "translatorVersion", theTranslatorVersion), currentHashCode, theTranslatorVersion, (this.translatorVersion!= null)); } { String theTranslatorOptions; theTranslatorOptions = this.getTranslatorOptions(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "translatorOptions", theTranslatorOptions), currentHashCode, theTranslatorOptions, (this.translatorOptions!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } @Override public 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); { String theTranslatorVersion; theTranslatorVersion = this.getTranslatorVersion(); strategy.appendField(locator, this, "translatorVersion", buffer, theTranslatorVersion, (this.translatorVersion!= null)); } { String theTranslatorOptions; theTranslatorOptions = this.getTranslatorOptions(); strategy.appendField(locator, this, "translatorOptions", buffer, theTranslatorOptions, (this.translatorOptions!= null)); } return buffer; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy