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

org.hl7.fhir.StructureMapSource Maven / Gradle / Ivy

Go to download

The quick 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 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:55 AM MDT 
//


package org.hl7.fhir;

import java.util.Collection;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
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;


/**
 * A Map of relationships between 2 structures that can be used to transform data.
 * 
 * 

Java class for StructureMap.Source complex type. * *

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

 * <complexType name="StructureMap.Source">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="required" type="{http://hl7.org/fhir}boolean"/>
 *         <element name="context" type="{http://hl7.org/fhir}id"/>
 *         <element name="contextType" type="{http://hl7.org/fhir}StructureMapContextType"/>
 *         <element name="element" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="listMode" type="{http://hl7.org/fhir}StructureMapListMode" minOccurs="0"/>
 *         <element name="variable" type="{http://hl7.org/fhir}id" minOccurs="0"/>
 *         <element name="condition" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="check" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "StructureMap.Source", propOrder = { "required", "context", "contextType", "element", "listMode", "variable", "condition", "check" }) public class StructureMapSource extends BackboneElement implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected Boolean required; @XmlElement(required = true) protected Id context; @XmlElement(required = true) protected StructureMapContextType contextType; protected org.hl7.fhir.String element; protected StructureMapListMode listMode; protected Id variable; protected org.hl7.fhir.String condition; protected org.hl7.fhir.String check; /** * Gets the value of the required property. * * @return * possible object is * {@link Boolean } * */ public Boolean getRequired() { return required; } /** * Sets the value of the required property. * * @param value * allowed object is * {@link Boolean } * */ public void setRequired(Boolean value) { this.required = value; } /** * Gets the value of the context property. * * @return * possible object is * {@link Id } * */ public Id getContext() { return context; } /** * Sets the value of the context property. * * @param value * allowed object is * {@link Id } * */ public void setContext(Id value) { this.context = value; } /** * Gets the value of the contextType property. * * @return * possible object is * {@link StructureMapContextType } * */ public StructureMapContextType getContextType() { return contextType; } /** * Sets the value of the contextType property. * * @param value * allowed object is * {@link StructureMapContextType } * */ public void setContextType(StructureMapContextType value) { this.contextType = value; } /** * Gets the value of the element property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getElement() { return element; } /** * Sets the value of the element property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setElement(org.hl7.fhir.String value) { this.element = value; } /** * Gets the value of the listMode property. * * @return * possible object is * {@link StructureMapListMode } * */ public StructureMapListMode getListMode() { return listMode; } /** * Sets the value of the listMode property. * * @param value * allowed object is * {@link StructureMapListMode } * */ public void setListMode(StructureMapListMode value) { this.listMode = value; } /** * Gets the value of the variable property. * * @return * possible object is * {@link Id } * */ public Id getVariable() { return variable; } /** * Sets the value of the variable property. * * @param value * allowed object is * {@link Id } * */ public void setVariable(Id value) { this.variable = value; } /** * Gets the value of the condition property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getCondition() { return condition; } /** * Sets the value of the condition property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setCondition(org.hl7.fhir.String value) { this.condition = value; } /** * Gets the value of the check property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getCheck() { return check; } /** * Sets the value of the check property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setCheck(org.hl7.fhir.String value) { this.check = value; } public StructureMapSource withRequired(Boolean value) { setRequired(value); return this; } public StructureMapSource withContext(Id value) { setContext(value); return this; } public StructureMapSource withContextType(StructureMapContextType value) { setContextType(value); return this; } public StructureMapSource withElement(org.hl7.fhir.String value) { setElement(value); return this; } public StructureMapSource withListMode(StructureMapListMode value) { setListMode(value); return this; } public StructureMapSource withVariable(Id value) { setVariable(value); return this; } public StructureMapSource withCondition(org.hl7.fhir.String value) { setCondition(value); return this; } public StructureMapSource withCheck(org.hl7.fhir.String value) { setCheck(value); return this; } @Override public StructureMapSource withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public StructureMapSource withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public StructureMapSource withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public StructureMapSource withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public StructureMapSource withId(java.lang.String value) { setId(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 StructureMapSource that = ((StructureMapSource) object); { Boolean lhsRequired; lhsRequired = this.getRequired(); Boolean rhsRequired; rhsRequired = that.getRequired(); if (!strategy.equals(LocatorUtils.property(thisLocator, "required", lhsRequired), LocatorUtils.property(thatLocator, "required", rhsRequired), lhsRequired, rhsRequired, (this.required!= null), (that.required!= null))) { return false; } } { Id lhsContext; lhsContext = this.getContext(); Id rhsContext; rhsContext = that.getContext(); if (!strategy.equals(LocatorUtils.property(thisLocator, "context", lhsContext), LocatorUtils.property(thatLocator, "context", rhsContext), lhsContext, rhsContext, (this.context!= null), (that.context!= null))) { return false; } } { StructureMapContextType lhsContextType; lhsContextType = this.getContextType(); StructureMapContextType rhsContextType; rhsContextType = that.getContextType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "contextType", lhsContextType), LocatorUtils.property(thatLocator, "contextType", rhsContextType), lhsContextType, rhsContextType, (this.contextType!= null), (that.contextType!= null))) { return false; } } { org.hl7.fhir.String lhsElement; lhsElement = this.getElement(); org.hl7.fhir.String rhsElement; rhsElement = that.getElement(); if (!strategy.equals(LocatorUtils.property(thisLocator, "element", lhsElement), LocatorUtils.property(thatLocator, "element", rhsElement), lhsElement, rhsElement, (this.element!= null), (that.element!= null))) { return false; } } { StructureMapListMode lhsListMode; lhsListMode = this.getListMode(); StructureMapListMode rhsListMode; rhsListMode = that.getListMode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "listMode", lhsListMode), LocatorUtils.property(thatLocator, "listMode", rhsListMode), lhsListMode, rhsListMode, (this.listMode!= null), (that.listMode!= null))) { return false; } } { Id lhsVariable; lhsVariable = this.getVariable(); Id rhsVariable; rhsVariable = that.getVariable(); if (!strategy.equals(LocatorUtils.property(thisLocator, "variable", lhsVariable), LocatorUtils.property(thatLocator, "variable", rhsVariable), lhsVariable, rhsVariable, (this.variable!= null), (that.variable!= null))) { return false; } } { org.hl7.fhir.String lhsCondition; lhsCondition = this.getCondition(); org.hl7.fhir.String rhsCondition; rhsCondition = that.getCondition(); if (!strategy.equals(LocatorUtils.property(thisLocator, "condition", lhsCondition), LocatorUtils.property(thatLocator, "condition", rhsCondition), lhsCondition, rhsCondition, (this.condition!= null), (that.condition!= null))) { return false; } } { org.hl7.fhir.String lhsCheck; lhsCheck = this.getCheck(); org.hl7.fhir.String rhsCheck; rhsCheck = that.getCheck(); if (!strategy.equals(LocatorUtils.property(thisLocator, "check", lhsCheck), LocatorUtils.property(thatLocator, "check", rhsCheck), lhsCheck, rhsCheck, (this.check!= null), (that.check!= 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); { Boolean theRequired; theRequired = this.getRequired(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "required", theRequired), currentHashCode, theRequired, (this.required!= null)); } { Id theContext; theContext = this.getContext(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "context", theContext), currentHashCode, theContext, (this.context!= null)); } { StructureMapContextType theContextType; theContextType = this.getContextType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contextType", theContextType), currentHashCode, theContextType, (this.contextType!= null)); } { org.hl7.fhir.String theElement; theElement = this.getElement(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "element", theElement), currentHashCode, theElement, (this.element!= null)); } { StructureMapListMode theListMode; theListMode = this.getListMode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "listMode", theListMode), currentHashCode, theListMode, (this.listMode!= null)); } { Id theVariable; theVariable = this.getVariable(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "variable", theVariable), currentHashCode, theVariable, (this.variable!= null)); } { org.hl7.fhir.String theCondition; theCondition = this.getCondition(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "condition", theCondition), currentHashCode, theCondition, (this.condition!= null)); } { org.hl7.fhir.String theCheck; theCheck = this.getCheck(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "check", theCheck), currentHashCode, theCheck, (this.check!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } @Override public java.lang.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); { Boolean theRequired; theRequired = this.getRequired(); strategy.appendField(locator, this, "required", buffer, theRequired, (this.required!= null)); } { Id theContext; theContext = this.getContext(); strategy.appendField(locator, this, "context", buffer, theContext, (this.context!= null)); } { StructureMapContextType theContextType; theContextType = this.getContextType(); strategy.appendField(locator, this, "contextType", buffer, theContextType, (this.contextType!= null)); } { org.hl7.fhir.String theElement; theElement = this.getElement(); strategy.appendField(locator, this, "element", buffer, theElement, (this.element!= null)); } { StructureMapListMode theListMode; theListMode = this.getListMode(); strategy.appendField(locator, this, "listMode", buffer, theListMode, (this.listMode!= null)); } { Id theVariable; theVariable = this.getVariable(); strategy.appendField(locator, this, "variable", buffer, theVariable, (this.variable!= null)); } { org.hl7.fhir.String theCondition; theCondition = this.getCondition(); strategy.appendField(locator, this, "condition", buffer, theCondition, (this.condition!= null)); } { org.hl7.fhir.String theCheck; theCheck = this.getCheck(); strategy.appendField(locator, this, "check", buffer, theCheck, (this.check!= null)); } return buffer; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy