org.hl7.cql_annotations.r1.Locator 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.XmlSeeAlso;
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 Locator complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Locator">
* <complexContent>
* <extension base="{urn:hl7-org:cql-annotations:r1}CqlToElmBase">
* <attribute name="librarySystem" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="libraryId" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="libraryVersion" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="startLine" type="{http://www.w3.org/2001/XMLSchema}int" />
* <attribute name="startChar" type="{http://www.w3.org/2001/XMLSchema}int" />
* <attribute name="endLine" type="{http://www.w3.org/2001/XMLSchema}int" />
* <attribute name="endChar" type="{http://www.w3.org/2001/XMLSchema}int" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Locator", namespace = "urn:hl7-org:cql-annotations:r1")
@XmlSeeAlso({
CqlToElmError.class
})
public class Locator
extends CqlToElmBase
implements Equals2, HashCode2, ToString2
{
@XmlAttribute(name = "librarySystem")
protected String librarySystem;
@XmlAttribute(name = "libraryId")
protected String libraryId;
@XmlAttribute(name = "libraryVersion")
protected String libraryVersion;
@XmlAttribute(name = "startLine")
protected Integer startLine;
@XmlAttribute(name = "startChar")
protected Integer startChar;
@XmlAttribute(name = "endLine")
protected Integer endLine;
@XmlAttribute(name = "endChar")
protected Integer endChar;
/**
* Gets the value of the librarySystem property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLibrarySystem() {
return librarySystem;
}
/**
* Sets the value of the librarySystem property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLibrarySystem(String value) {
this.librarySystem = value;
}
/**
* Gets the value of the libraryId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLibraryId() {
return libraryId;
}
/**
* Sets the value of the libraryId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLibraryId(String value) {
this.libraryId = value;
}
/**
* Gets the value of the libraryVersion property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLibraryVersion() {
return libraryVersion;
}
/**
* Sets the value of the libraryVersion property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLibraryVersion(String value) {
this.libraryVersion = value;
}
/**
* Gets the value of the startLine property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getStartLine() {
return startLine;
}
/**
* Sets the value of the startLine property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setStartLine(Integer value) {
this.startLine = value;
}
/**
* Gets the value of the startChar property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getStartChar() {
return startChar;
}
/**
* Sets the value of the startChar property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setStartChar(Integer value) {
this.startChar = value;
}
/**
* Gets the value of the endLine property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getEndLine() {
return endLine;
}
/**
* Sets the value of the endLine property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setEndLine(Integer value) {
this.endLine = value;
}
/**
* Gets the value of the endChar property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getEndChar() {
return endChar;
}
/**
* Sets the value of the endChar property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setEndChar(Integer value) {
this.endChar = value;
}
public Locator withLibrarySystem(String value) {
setLibrarySystem(value);
return this;
}
public Locator withLibraryId(String value) {
setLibraryId(value);
return this;
}
public Locator withLibraryVersion(String value) {
setLibraryVersion(value);
return this;
}
public Locator withStartLine(Integer value) {
setStartLine(value);
return this;
}
public Locator withStartChar(Integer value) {
setStartChar(value);
return this;
}
public Locator withEndLine(Integer value) {
setEndLine(value);
return this;
}
public Locator 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 Locator that = ((Locator) object);
{
String lhsLibrarySystem;
lhsLibrarySystem = this.getLibrarySystem();
String rhsLibrarySystem;
rhsLibrarySystem = that.getLibrarySystem();
if (!strategy.equals(LocatorUtils.property(thisLocator, "librarySystem", lhsLibrarySystem), LocatorUtils.property(thatLocator, "librarySystem", rhsLibrarySystem), lhsLibrarySystem, rhsLibrarySystem, (this.librarySystem!= null), (that.librarySystem!= null))) {
return false;
}
}
{
String lhsLibraryId;
lhsLibraryId = this.getLibraryId();
String rhsLibraryId;
rhsLibraryId = that.getLibraryId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "libraryId", lhsLibraryId), LocatorUtils.property(thatLocator, "libraryId", rhsLibraryId), lhsLibraryId, rhsLibraryId, (this.libraryId!= null), (that.libraryId!= null))) {
return false;
}
}
{
String lhsLibraryVersion;
lhsLibraryVersion = this.getLibraryVersion();
String rhsLibraryVersion;
rhsLibraryVersion = that.getLibraryVersion();
if (!strategy.equals(LocatorUtils.property(thisLocator, "libraryVersion", lhsLibraryVersion), LocatorUtils.property(thatLocator, "libraryVersion", rhsLibraryVersion), lhsLibraryVersion, rhsLibraryVersion, (this.libraryVersion!= null), (that.libraryVersion!= null))) {
return false;
}
}
{
Integer lhsStartLine;
lhsStartLine = this.getStartLine();
Integer rhsStartLine;
rhsStartLine = that.getStartLine();
if (!strategy.equals(LocatorUtils.property(thisLocator, "startLine", lhsStartLine), LocatorUtils.property(thatLocator, "startLine", rhsStartLine), lhsStartLine, rhsStartLine, (this.startLine!= null), (that.startLine!= null))) {
return false;
}
}
{
Integer lhsStartChar;
lhsStartChar = this.getStartChar();
Integer rhsStartChar;
rhsStartChar = that.getStartChar();
if (!strategy.equals(LocatorUtils.property(thisLocator, "startChar", lhsStartChar), LocatorUtils.property(thatLocator, "startChar", rhsStartChar), lhsStartChar, rhsStartChar, (this.startChar!= null), (that.startChar!= null))) {
return false;
}
}
{
Integer lhsEndLine;
lhsEndLine = this.getEndLine();
Integer rhsEndLine;
rhsEndLine = that.getEndLine();
if (!strategy.equals(LocatorUtils.property(thisLocator, "endLine", lhsEndLine), LocatorUtils.property(thatLocator, "endLine", rhsEndLine), lhsEndLine, rhsEndLine, (this.endLine!= null), (that.endLine!= null))) {
return false;
}
}
{
Integer lhsEndChar;
lhsEndChar = this.getEndChar();
Integer rhsEndChar;
rhsEndChar = that.getEndChar();
if (!strategy.equals(LocatorUtils.property(thisLocator, "endChar", lhsEndChar), LocatorUtils.property(thatLocator, "endChar", rhsEndChar), lhsEndChar, rhsEndChar, (this.endChar!= null), (that.endChar!= 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 theLibrarySystem;
theLibrarySystem = this.getLibrarySystem();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "librarySystem", theLibrarySystem), currentHashCode, theLibrarySystem, (this.librarySystem!= null));
}
{
String theLibraryId;
theLibraryId = this.getLibraryId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "libraryId", theLibraryId), currentHashCode, theLibraryId, (this.libraryId!= null));
}
{
String theLibraryVersion;
theLibraryVersion = this.getLibraryVersion();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "libraryVersion", theLibraryVersion), currentHashCode, theLibraryVersion, (this.libraryVersion!= null));
}
{
Integer theStartLine;
theStartLine = this.getStartLine();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "startLine", theStartLine), currentHashCode, theStartLine, (this.startLine!= null));
}
{
Integer theStartChar;
theStartChar = this.getStartChar();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "startChar", theStartChar), currentHashCode, theStartChar, (this.startChar!= null));
}
{
Integer theEndLine;
theEndLine = this.getEndLine();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "endLine", theEndLine), currentHashCode, theEndLine, (this.endLine!= null));
}
{
Integer theEndChar;
theEndChar = this.getEndChar();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "endChar", theEndChar), currentHashCode, theEndChar, (this.endChar!= 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 theLibrarySystem;
theLibrarySystem = this.getLibrarySystem();
strategy.appendField(locator, this, "librarySystem", buffer, theLibrarySystem, (this.librarySystem!= null));
}
{
String theLibraryId;
theLibraryId = this.getLibraryId();
strategy.appendField(locator, this, "libraryId", buffer, theLibraryId, (this.libraryId!= null));
}
{
String theLibraryVersion;
theLibraryVersion = this.getLibraryVersion();
strategy.appendField(locator, this, "libraryVersion", buffer, theLibraryVersion, (this.libraryVersion!= null));
}
{
Integer theStartLine;
theStartLine = this.getStartLine();
strategy.appendField(locator, this, "startLine", buffer, theStartLine, (this.startLine!= null));
}
{
Integer theStartChar;
theStartChar = this.getStartChar();
strategy.appendField(locator, this, "startChar", buffer, theStartChar, (this.startChar!= null));
}
{
Integer theEndLine;
theEndLine = this.getEndLine();
strategy.appendField(locator, this, "endLine", buffer, theEndLine, (this.endLine!= null));
}
{
Integer theEndChar;
theEndChar = this.getEndChar();
strategy.appendField(locator, this, "endChar", buffer, theEndChar, (this.endChar!= null));
}
return buffer;
}
}