org.hl7.cql_annotations.r1.CqlToElmError 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
The 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.08.16 at 09:36:51 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;
/**
* Represents CQL to ELM conversion errors
*
* Java class for CqlToElmError complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="CqlToElmError">
* <complexContent>
* <extension base="{urn:hl7-org:cql-annotations:r1}Locator">
* <attribute name="message" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="errorType" use="required" type="{urn:hl7-org:cql-annotations:r1}ErrorType" />
* <attribute name="errorSeverity" type="{urn:hl7-org:cql-annotations:r1}ErrorSeverity" />
* <attribute name="targetIncludeLibrarySystem" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="targetIncludeLibraryId" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="targetIncludeLibraryVersionId" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CqlToElmError", namespace = "urn:hl7-org:cql-annotations:r1")
public class CqlToElmError
extends Locator
implements Equals2, HashCode2, ToString2
{
@XmlAttribute(name = "message", required = true)
protected String message;
@XmlAttribute(name = "errorType", required = true)
protected ErrorType errorType;
@XmlAttribute(name = "errorSeverity")
protected ErrorSeverity errorSeverity;
@XmlAttribute(name = "targetIncludeLibrarySystem")
protected String targetIncludeLibrarySystem;
@XmlAttribute(name = "targetIncludeLibraryId")
protected String targetIncludeLibraryId;
@XmlAttribute(name = "targetIncludeLibraryVersionId")
protected String targetIncludeLibraryVersionId;
/**
* Gets the value of the message property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMessage() {
return message;
}
/**
* Sets the value of the message property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMessage(String value) {
this.message = value;
}
/**
* Gets the value of the errorType property.
*
* @return
* possible object is
* {@link ErrorType }
*
*/
public ErrorType getErrorType() {
return errorType;
}
/**
* Sets the value of the errorType property.
*
* @param value
* allowed object is
* {@link ErrorType }
*
*/
public void setErrorType(ErrorType value) {
this.errorType = value;
}
/**
* Gets the value of the errorSeverity property.
*
* @return
* possible object is
* {@link ErrorSeverity }
*
*/
public ErrorSeverity getErrorSeverity() {
return errorSeverity;
}
/**
* Sets the value of the errorSeverity property.
*
* @param value
* allowed object is
* {@link ErrorSeverity }
*
*/
public void setErrorSeverity(ErrorSeverity value) {
this.errorSeverity = value;
}
/**
* Gets the value of the targetIncludeLibrarySystem property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTargetIncludeLibrarySystem() {
return targetIncludeLibrarySystem;
}
/**
* Sets the value of the targetIncludeLibrarySystem property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTargetIncludeLibrarySystem(String value) {
this.targetIncludeLibrarySystem = value;
}
/**
* Gets the value of the targetIncludeLibraryId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTargetIncludeLibraryId() {
return targetIncludeLibraryId;
}
/**
* Sets the value of the targetIncludeLibraryId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTargetIncludeLibraryId(String value) {
this.targetIncludeLibraryId = value;
}
/**
* Gets the value of the targetIncludeLibraryVersionId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTargetIncludeLibraryVersionId() {
return targetIncludeLibraryVersionId;
}
/**
* Sets the value of the targetIncludeLibraryVersionId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTargetIncludeLibraryVersionId(String value) {
this.targetIncludeLibraryVersionId = value;
}
public CqlToElmError withMessage(String value) {
setMessage(value);
return this;
}
public CqlToElmError withErrorType(ErrorType value) {
setErrorType(value);
return this;
}
public CqlToElmError withErrorSeverity(ErrorSeverity value) {
setErrorSeverity(value);
return this;
}
public CqlToElmError withTargetIncludeLibrarySystem(String value) {
setTargetIncludeLibrarySystem(value);
return this;
}
public CqlToElmError withTargetIncludeLibraryId(String value) {
setTargetIncludeLibraryId(value);
return this;
}
public CqlToElmError withTargetIncludeLibraryVersionId(String value) {
setTargetIncludeLibraryVersionId(value);
return this;
}
@Override
public CqlToElmError withLibrarySystem(String value) {
setLibrarySystem(value);
return this;
}
@Override
public CqlToElmError withLibraryId(String value) {
setLibraryId(value);
return this;
}
@Override
public CqlToElmError withLibraryVersion(String value) {
setLibraryVersion(value);
return this;
}
@Override
public CqlToElmError withStartLine(Integer value) {
setStartLine(value);
return this;
}
@Override
public CqlToElmError withStartChar(Integer value) {
setStartChar(value);
return this;
}
@Override
public CqlToElmError withEndLine(Integer value) {
setEndLine(value);
return this;
}
@Override
public CqlToElmError withEndChar(Integer value) {
setEndChar(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 CqlToElmError that = ((CqlToElmError) object);
{
String lhsMessage;
lhsMessage = this.getMessage();
String rhsMessage;
rhsMessage = that.getMessage();
if (!strategy.equals(LocatorUtils.property(thisLocator, "message", lhsMessage), LocatorUtils.property(thatLocator, "message", rhsMessage), lhsMessage, rhsMessage, (this.message!= null), (that.message!= null))) {
return false;
}
}
{
ErrorType lhsErrorType;
lhsErrorType = this.getErrorType();
ErrorType rhsErrorType;
rhsErrorType = that.getErrorType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "errorType", lhsErrorType), LocatorUtils.property(thatLocator, "errorType", rhsErrorType), lhsErrorType, rhsErrorType, (this.errorType!= null), (that.errorType!= null))) {
return false;
}
}
{
ErrorSeverity lhsErrorSeverity;
lhsErrorSeverity = this.getErrorSeverity();
ErrorSeverity rhsErrorSeverity;
rhsErrorSeverity = that.getErrorSeverity();
if (!strategy.equals(LocatorUtils.property(thisLocator, "errorSeverity", lhsErrorSeverity), LocatorUtils.property(thatLocator, "errorSeverity", rhsErrorSeverity), lhsErrorSeverity, rhsErrorSeverity, (this.errorSeverity!= null), (that.errorSeverity!= null))) {
return false;
}
}
{
String lhsTargetIncludeLibrarySystem;
lhsTargetIncludeLibrarySystem = this.getTargetIncludeLibrarySystem();
String rhsTargetIncludeLibrarySystem;
rhsTargetIncludeLibrarySystem = that.getTargetIncludeLibrarySystem();
if (!strategy.equals(LocatorUtils.property(thisLocator, "targetIncludeLibrarySystem", lhsTargetIncludeLibrarySystem), LocatorUtils.property(thatLocator, "targetIncludeLibrarySystem", rhsTargetIncludeLibrarySystem), lhsTargetIncludeLibrarySystem, rhsTargetIncludeLibrarySystem, (this.targetIncludeLibrarySystem!= null), (that.targetIncludeLibrarySystem!= null))) {
return false;
}
}
{
String lhsTargetIncludeLibraryId;
lhsTargetIncludeLibraryId = this.getTargetIncludeLibraryId();
String rhsTargetIncludeLibraryId;
rhsTargetIncludeLibraryId = that.getTargetIncludeLibraryId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "targetIncludeLibraryId", lhsTargetIncludeLibraryId), LocatorUtils.property(thatLocator, "targetIncludeLibraryId", rhsTargetIncludeLibraryId), lhsTargetIncludeLibraryId, rhsTargetIncludeLibraryId, (this.targetIncludeLibraryId!= null), (that.targetIncludeLibraryId!= null))) {
return false;
}
}
{
String lhsTargetIncludeLibraryVersionId;
lhsTargetIncludeLibraryVersionId = this.getTargetIncludeLibraryVersionId();
String rhsTargetIncludeLibraryVersionId;
rhsTargetIncludeLibraryVersionId = that.getTargetIncludeLibraryVersionId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "targetIncludeLibraryVersionId", lhsTargetIncludeLibraryVersionId), LocatorUtils.property(thatLocator, "targetIncludeLibraryVersionId", rhsTargetIncludeLibraryVersionId), lhsTargetIncludeLibraryVersionId, rhsTargetIncludeLibraryVersionId, (this.targetIncludeLibraryVersionId!= null), (that.targetIncludeLibraryVersionId!= 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 theMessage;
theMessage = this.getMessage();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "message", theMessage), currentHashCode, theMessage, (this.message!= null));
}
{
ErrorType theErrorType;
theErrorType = this.getErrorType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "errorType", theErrorType), currentHashCode, theErrorType, (this.errorType!= null));
}
{
ErrorSeverity theErrorSeverity;
theErrorSeverity = this.getErrorSeverity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "errorSeverity", theErrorSeverity), currentHashCode, theErrorSeverity, (this.errorSeverity!= null));
}
{
String theTargetIncludeLibrarySystem;
theTargetIncludeLibrarySystem = this.getTargetIncludeLibrarySystem();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "targetIncludeLibrarySystem", theTargetIncludeLibrarySystem), currentHashCode, theTargetIncludeLibrarySystem, (this.targetIncludeLibrarySystem!= null));
}
{
String theTargetIncludeLibraryId;
theTargetIncludeLibraryId = this.getTargetIncludeLibraryId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "targetIncludeLibraryId", theTargetIncludeLibraryId), currentHashCode, theTargetIncludeLibraryId, (this.targetIncludeLibraryId!= null));
}
{
String theTargetIncludeLibraryVersionId;
theTargetIncludeLibraryVersionId = this.getTargetIncludeLibraryVersionId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "targetIncludeLibraryVersionId", theTargetIncludeLibraryVersionId), currentHashCode, theTargetIncludeLibraryVersionId, (this.targetIncludeLibraryVersionId!= 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 theMessage;
theMessage = this.getMessage();
strategy.appendField(locator, this, "message", buffer, theMessage, (this.message!= null));
}
{
ErrorType theErrorType;
theErrorType = this.getErrorType();
strategy.appendField(locator, this, "errorType", buffer, theErrorType, (this.errorType!= null));
}
{
ErrorSeverity theErrorSeverity;
theErrorSeverity = this.getErrorSeverity();
strategy.appendField(locator, this, "errorSeverity", buffer, theErrorSeverity, (this.errorSeverity!= null));
}
{
String theTargetIncludeLibrarySystem;
theTargetIncludeLibrarySystem = this.getTargetIncludeLibrarySystem();
strategy.appendField(locator, this, "targetIncludeLibrarySystem", buffer, theTargetIncludeLibrarySystem, (this.targetIncludeLibrarySystem!= null));
}
{
String theTargetIncludeLibraryId;
theTargetIncludeLibraryId = this.getTargetIncludeLibraryId();
strategy.appendField(locator, this, "targetIncludeLibraryId", buffer, theTargetIncludeLibraryId, (this.targetIncludeLibraryId!= null));
}
{
String theTargetIncludeLibraryVersionId;
theTargetIncludeLibraryVersionId = this.getTargetIncludeLibraryVersionId();
strategy.appendField(locator, this, "targetIncludeLibraryVersionId", buffer, theTargetIncludeLibraryVersionId, (this.targetIncludeLibraryVersionId!= null));
}
return buffer;
}
}