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

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

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.15.0
Show newest version
//
// 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.10.25 at 10:12:25 AM MDT 
//


package org.hl7.fhir;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.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.Group complex type. * *

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

 * <complexType name="StructureMap.Group">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <element name="name" type="{http://hl7.org/fhir}id"/>
 *         <element name="extends" type="{http://hl7.org/fhir}id" minOccurs="0"/>
 *         <element name="documentation" type="{http://hl7.org/fhir}string" minOccurs="0"/>
 *         <element name="input" type="{http://hl7.org/fhir}StructureMap.Input" maxOccurs="unbounded"/>
 *         <element name="rule" type="{http://hl7.org/fhir}StructureMap.Rule" maxOccurs="unbounded"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "StructureMap.Group", propOrder = { "name", "_extends", "documentation", "input", "rule" }) public class StructureMapGroup extends BackboneElement implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) protected Id name; @XmlElement(name = "extends") protected Id _extends; protected org.hl7.fhir.String documentation; @XmlElement(required = true) protected List input; @XmlElement(required = true) protected List rule; /** * Gets the value of the name property. * * @return * possible object is * {@link Id } * */ public Id getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link Id } * */ public void setName(Id value) { this.name = value; } /** * Gets the value of the extends property. * * @return * possible object is * {@link Id } * */ public Id getExtends() { return _extends; } /** * Sets the value of the extends property. * * @param value * allowed object is * {@link Id } * */ public void setExtends(Id value) { this._extends = value; } /** * Gets the value of the documentation property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getDocumentation() { return documentation; } /** * Sets the value of the documentation property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setDocumentation(org.hl7.fhir.String value) { this.documentation = value; } /** * Gets the value of the input property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the input property. * *

* For example, to add a new item, do as follows: *

     *    getInput().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link StructureMapInput } * * */ public List getInput() { if (input == null) { input = new ArrayList(); } return this.input; } /** * Gets the value of the rule property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the rule property. * *

* For example, to add a new item, do as follows: *

     *    getRule().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link StructureMapRule } * * */ public List getRule() { if (rule == null) { rule = new ArrayList(); } return this.rule; } public StructureMapGroup withName(Id value) { setName(value); return this; } public StructureMapGroup withExtends(Id value) { setExtends(value); return this; } public StructureMapGroup withDocumentation(org.hl7.fhir.String value) { setDocumentation(value); return this; } public StructureMapGroup withInput(StructureMapInput... values) { if (values!= null) { for (StructureMapInput value: values) { getInput().add(value); } } return this; } public StructureMapGroup withInput(Collection values) { if (values!= null) { getInput().addAll(values); } return this; } public StructureMapGroup withRule(StructureMapRule... values) { if (values!= null) { for (StructureMapRule value: values) { getRule().add(value); } } return this; } public StructureMapGroup withRule(Collection values) { if (values!= null) { getRule().addAll(values); } return this; } @Override public StructureMapGroup withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public StructureMapGroup withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public StructureMapGroup withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public StructureMapGroup withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public StructureMapGroup 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 StructureMapGroup that = ((StructureMapGroup) object); { Id lhsName; lhsName = this.getName(); Id rhsName; rhsName = that.getName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName, (this.name!= null), (that.name!= null))) { return false; } } { Id lhsExtends; lhsExtends = this.getExtends(); Id rhsExtends; rhsExtends = that.getExtends(); if (!strategy.equals(LocatorUtils.property(thisLocator, "_extends", lhsExtends), LocatorUtils.property(thatLocator, "_extends", rhsExtends), lhsExtends, rhsExtends, (this._extends!= null), (that._extends!= null))) { return false; } } { org.hl7.fhir.String lhsDocumentation; lhsDocumentation = this.getDocumentation(); org.hl7.fhir.String rhsDocumentation; rhsDocumentation = that.getDocumentation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "documentation", lhsDocumentation), LocatorUtils.property(thatLocator, "documentation", rhsDocumentation), lhsDocumentation, rhsDocumentation, (this.documentation!= null), (that.documentation!= null))) { return false; } } { List lhsInput; lhsInput = (((this.input!= null)&&(!this.input.isEmpty()))?this.getInput():null); List rhsInput; rhsInput = (((that.input!= null)&&(!that.input.isEmpty()))?that.getInput():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "input", lhsInput), LocatorUtils.property(thatLocator, "input", rhsInput), lhsInput, rhsInput, ((this.input!= null)&&(!this.input.isEmpty())), ((that.input!= null)&&(!that.input.isEmpty())))) { return false; } } { List lhsRule; lhsRule = (((this.rule!= null)&&(!this.rule.isEmpty()))?this.getRule():null); List rhsRule; rhsRule = (((that.rule!= null)&&(!that.rule.isEmpty()))?that.getRule():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "rule", lhsRule), LocatorUtils.property(thatLocator, "rule", rhsRule), lhsRule, rhsRule, ((this.rule!= null)&&(!this.rule.isEmpty())), ((that.rule!= null)&&(!that.rule.isEmpty())))) { 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); { Id theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null)); } { Id theExtends; theExtends = this.getExtends(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "_extends", theExtends), currentHashCode, theExtends, (this._extends!= null)); } { org.hl7.fhir.String theDocumentation; theDocumentation = this.getDocumentation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "documentation", theDocumentation), currentHashCode, theDocumentation, (this.documentation!= null)); } { List theInput; theInput = (((this.input!= null)&&(!this.input.isEmpty()))?this.getInput():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "input", theInput), currentHashCode, theInput, ((this.input!= null)&&(!this.input.isEmpty()))); } { List theRule; theRule = (((this.rule!= null)&&(!this.rule.isEmpty()))?this.getRule():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rule", theRule), currentHashCode, theRule, ((this.rule!= null)&&(!this.rule.isEmpty()))); } 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); { Id theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName, (this.name!= null)); } { Id theExtends; theExtends = this.getExtends(); strategy.appendField(locator, this, "_extends", buffer, theExtends, (this._extends!= null)); } { org.hl7.fhir.String theDocumentation; theDocumentation = this.getDocumentation(); strategy.appendField(locator, this, "documentation", buffer, theDocumentation, (this.documentation!= null)); } { List theInput; theInput = (((this.input!= null)&&(!this.input.isEmpty()))?this.getInput():null); strategy.appendField(locator, this, "input", buffer, theInput, ((this.input!= null)&&(!this.input.isEmpty()))); } { List theRule; theRule = (((this.rule!= null)&&(!this.rule.isEmpty()))?this.getRule():null); strategy.appendField(locator, this, "rule", buffer, theRule, ((this.rule!= null)&&(!this.rule.isEmpty()))); } return buffer; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy