org.hl7.cql_annotations.r1.CqlToElmInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elm Show documentation
Show all versions of elm Show documentation
The elm library for the Clinical Quality Language Java reference implementation
//
// 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.10.07 at 09:31:24 AM MDT
//
package org.hl7.cql_annotations.r1;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
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;
/**
* 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" />
* <attribute name="signatureLevel" 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;
@XmlAttribute(name = "signatureLevel")
protected String signatureLevel;
/**
* 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;
}
/**
* Gets the value of the signatureLevel property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSignatureLevel() {
return signatureLevel;
}
/**
* Sets the value of the signatureLevel property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSignatureLevel(String value) {
this.signatureLevel = value;
}
public CqlToElmInfo withTranslatorVersion(String value) {
setTranslatorVersion(value);
return this;
}
public CqlToElmInfo withTranslatorOptions(String value) {
setTranslatorOptions(value);
return this;
}
public CqlToElmInfo withSignatureLevel(String value) {
setSignatureLevel(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;
}
}
{
String lhsSignatureLevel;
lhsSignatureLevel = this.getSignatureLevel();
String rhsSignatureLevel;
rhsSignatureLevel = that.getSignatureLevel();
if (!strategy.equals(LocatorUtils.property(thisLocator, "signatureLevel", lhsSignatureLevel), LocatorUtils.property(thatLocator, "signatureLevel", rhsSignatureLevel), lhsSignatureLevel, rhsSignatureLevel, (this.signatureLevel!= null), (that.signatureLevel!= 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));
}
{
String theSignatureLevel;
theSignatureLevel = this.getSignatureLevel();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "signatureLevel", theSignatureLevel), currentHashCode, theSignatureLevel, (this.signatureLevel!= 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));
}
{
String theSignatureLevel;
theSignatureLevel = this.getSignatureLevel();
strategy.appendField(locator, this, "signatureLevel", buffer, theSignatureLevel, (this.signatureLevel!= null));
}
return buffer;
}
}