
org.cqframework.cql.elm.execution.IncludeElement Maven / Gradle / Ivy
//
// 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.02.14 at 09:20:00 AM MST
//
package org.cqframework.cql.elm.execution;
import java.util.Collection;
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 javax.xml.namespace.QName;
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;
/**
* The IncludeElement type specifies include information for an include within a retrieve.
*
* Java class for IncludeElement complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="IncludeElement">
* <complexContent>
* <extension base="{urn:hl7-org:elm:r1}Element">
* <attribute name="includeFrom" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="relatedDataType" use="required" type="{http://www.w3.org/2001/XMLSchema}QName" />
* <attribute name="relatedProperty" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="relatedSearch" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="isReverse" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "IncludeElement", namespace = "urn:hl7-org:elm:r1")
public class IncludeElement
extends Element
implements Equals2, HashCode2, ToString2
{
@XmlAttribute(name = "includeFrom")
protected String includeFrom;
@XmlAttribute(name = "relatedDataType", required = true)
protected QName relatedDataType;
@XmlAttribute(name = "relatedProperty")
protected String relatedProperty;
@XmlAttribute(name = "relatedSearch")
protected String relatedSearch;
@XmlAttribute(name = "isReverse")
protected Boolean isReverse;
/**
* Gets the value of the includeFrom property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIncludeFrom() {
return includeFrom;
}
/**
* Sets the value of the includeFrom property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIncludeFrom(String value) {
this.includeFrom = value;
}
/**
* Gets the value of the relatedDataType property.
*
* @return
* possible object is
* {@link QName }
*
*/
public QName getRelatedDataType() {
return relatedDataType;
}
/**
* Sets the value of the relatedDataType property.
*
* @param value
* allowed object is
* {@link QName }
*
*/
public void setRelatedDataType(QName value) {
this.relatedDataType = value;
}
/**
* Gets the value of the relatedProperty property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRelatedProperty() {
return relatedProperty;
}
/**
* Sets the value of the relatedProperty property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRelatedProperty(String value) {
this.relatedProperty = value;
}
/**
* Gets the value of the relatedSearch property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRelatedSearch() {
return relatedSearch;
}
/**
* Sets the value of the relatedSearch property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRelatedSearch(String value) {
this.relatedSearch = value;
}
/**
* Gets the value of the isReverse property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isIsReverse() {
return isReverse;
}
/**
* Sets the value of the isReverse property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setIsReverse(Boolean value) {
this.isReverse = value;
}
public IncludeElement withIncludeFrom(String value) {
setIncludeFrom(value);
return this;
}
public IncludeElement withRelatedDataType(QName value) {
setRelatedDataType(value);
return this;
}
public IncludeElement withRelatedProperty(String value) {
setRelatedProperty(value);
return this;
}
public IncludeElement withRelatedSearch(String value) {
setRelatedSearch(value);
return this;
}
public IncludeElement withIsReverse(Boolean value) {
setIsReverse(value);
return this;
}
@Override
public IncludeElement withAnnotation(CqlToElmBase... values) {
if (values!= null) {
for (CqlToElmBase value: values) {
getAnnotation().add(value);
}
}
return this;
}
@Override
public IncludeElement withAnnotation(Collection values) {
if (values!= null) {
getAnnotation().addAll(values);
}
return this;
}
@Override
public IncludeElement withResultTypeSpecifier(TypeSpecifier value) {
setResultTypeSpecifier(value);
return this;
}
@Override
public IncludeElement withLocalId(String value) {
setLocalId(value);
return this;
}
@Override
public IncludeElement withLocator(String value) {
setLocator(value);
return this;
}
@Override
public IncludeElement withResultTypeName(QName value) {
setResultTypeName(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 IncludeElement that = ((IncludeElement) object);
{
String lhsIncludeFrom;
lhsIncludeFrom = this.getIncludeFrom();
String rhsIncludeFrom;
rhsIncludeFrom = that.getIncludeFrom();
if (!strategy.equals(LocatorUtils.property(thisLocator, "includeFrom", lhsIncludeFrom), LocatorUtils.property(thatLocator, "includeFrom", rhsIncludeFrom), lhsIncludeFrom, rhsIncludeFrom, (this.includeFrom!= null), (that.includeFrom!= null))) {
return false;
}
}
{
QName lhsRelatedDataType;
lhsRelatedDataType = this.getRelatedDataType();
QName rhsRelatedDataType;
rhsRelatedDataType = that.getRelatedDataType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "relatedDataType", lhsRelatedDataType), LocatorUtils.property(thatLocator, "relatedDataType", rhsRelatedDataType), lhsRelatedDataType, rhsRelatedDataType, (this.relatedDataType!= null), (that.relatedDataType!= null))) {
return false;
}
}
{
String lhsRelatedProperty;
lhsRelatedProperty = this.getRelatedProperty();
String rhsRelatedProperty;
rhsRelatedProperty = that.getRelatedProperty();
if (!strategy.equals(LocatorUtils.property(thisLocator, "relatedProperty", lhsRelatedProperty), LocatorUtils.property(thatLocator, "relatedProperty", rhsRelatedProperty), lhsRelatedProperty, rhsRelatedProperty, (this.relatedProperty!= null), (that.relatedProperty!= null))) {
return false;
}
}
{
String lhsRelatedSearch;
lhsRelatedSearch = this.getRelatedSearch();
String rhsRelatedSearch;
rhsRelatedSearch = that.getRelatedSearch();
if (!strategy.equals(LocatorUtils.property(thisLocator, "relatedSearch", lhsRelatedSearch), LocatorUtils.property(thatLocator, "relatedSearch", rhsRelatedSearch), lhsRelatedSearch, rhsRelatedSearch, (this.relatedSearch!= null), (that.relatedSearch!= null))) {
return false;
}
}
{
Boolean lhsIsReverse;
lhsIsReverse = this.isIsReverse();
Boolean rhsIsReverse;
rhsIsReverse = that.isIsReverse();
if (!strategy.equals(LocatorUtils.property(thisLocator, "isReverse", lhsIsReverse), LocatorUtils.property(thatLocator, "isReverse", rhsIsReverse), lhsIsReverse, rhsIsReverse, (this.isReverse!= null), (that.isReverse!= 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 theIncludeFrom;
theIncludeFrom = this.getIncludeFrom();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "includeFrom", theIncludeFrom), currentHashCode, theIncludeFrom, (this.includeFrom!= null));
}
{
QName theRelatedDataType;
theRelatedDataType = this.getRelatedDataType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "relatedDataType", theRelatedDataType), currentHashCode, theRelatedDataType, (this.relatedDataType!= null));
}
{
String theRelatedProperty;
theRelatedProperty = this.getRelatedProperty();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "relatedProperty", theRelatedProperty), currentHashCode, theRelatedProperty, (this.relatedProperty!= null));
}
{
String theRelatedSearch;
theRelatedSearch = this.getRelatedSearch();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "relatedSearch", theRelatedSearch), currentHashCode, theRelatedSearch, (this.relatedSearch!= null));
}
{
Boolean theIsReverse;
theIsReverse = this.isIsReverse();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "isReverse", theIsReverse), currentHashCode, theIsReverse, (this.isReverse!= 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 theIncludeFrom;
theIncludeFrom = this.getIncludeFrom();
strategy.appendField(locator, this, "includeFrom", buffer, theIncludeFrom, (this.includeFrom!= null));
}
{
QName theRelatedDataType;
theRelatedDataType = this.getRelatedDataType();
strategy.appendField(locator, this, "relatedDataType", buffer, theRelatedDataType, (this.relatedDataType!= null));
}
{
String theRelatedProperty;
theRelatedProperty = this.getRelatedProperty();
strategy.appendField(locator, this, "relatedProperty", buffer, theRelatedProperty, (this.relatedProperty!= null));
}
{
String theRelatedSearch;
theRelatedSearch = this.getRelatedSearch();
strategy.appendField(locator, this, "relatedSearch", buffer, theRelatedSearch, (this.relatedSearch!= null));
}
{
Boolean theIsReverse;
theIsReverse = this.isIsReverse();
strategy.appendField(locator, this, "isReverse", buffer, theIsReverse, (this.isReverse!= null));
}
return buffer;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy