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

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

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2018.01.12 at 11:04:27 AM MST 
//


package org.hl7.fhir;

import java.util.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
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.Parameter complex type. * *

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

 * <complexType name="StructureMap.Parameter">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <choice>
 *           <element name="valueId" type="{http://hl7.org/fhir}id"/>
 *           <element name="valueString" type="{http://hl7.org/fhir}string"/>
 *           <element name="valueBoolean" type="{http://hl7.org/fhir}boolean"/>
 *           <element name="valueInteger" type="{http://hl7.org/fhir}integer"/>
 *           <element name="valueDecimal" type="{http://hl7.org/fhir}decimal"/>
 *         </choice>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "StructureMap.Parameter", propOrder = { "valueId", "valueString", "valueBoolean", "valueInteger", "valueDecimal" }) public class StructureMapParameter extends BackboneElement implements Equals, HashCode, ToString { protected Id valueId; protected org.hl7.fhir.String valueString; protected Boolean valueBoolean; protected Integer valueInteger; protected Decimal valueDecimal; /** * Gets the value of the valueId property. * * @return * possible object is * {@link Id } * */ public Id getValueId() { return valueId; } /** * Sets the value of the valueId property. * * @param value * allowed object is * {@link Id } * */ public void setValueId(Id value) { this.valueId = value; } /** * Gets the value of the valueString property. * * @return * possible object is * {@link org.hl7.fhir.String } * */ public org.hl7.fhir.String getValueString() { return valueString; } /** * Sets the value of the valueString property. * * @param value * allowed object is * {@link org.hl7.fhir.String } * */ public void setValueString(org.hl7.fhir.String value) { this.valueString = value; } /** * Gets the value of the valueBoolean property. * * @return * possible object is * {@link Boolean } * */ public Boolean getValueBoolean() { return valueBoolean; } /** * Sets the value of the valueBoolean property. * * @param value * allowed object is * {@link Boolean } * */ public void setValueBoolean(Boolean value) { this.valueBoolean = value; } /** * Gets the value of the valueInteger property. * * @return * possible object is * {@link Integer } * */ public Integer getValueInteger() { return valueInteger; } /** * Sets the value of the valueInteger property. * * @param value * allowed object is * {@link Integer } * */ public void setValueInteger(Integer value) { this.valueInteger = value; } /** * Gets the value of the valueDecimal property. * * @return * possible object is * {@link Decimal } * */ public Decimal getValueDecimal() { return valueDecimal; } /** * Sets the value of the valueDecimal property. * * @param value * allowed object is * {@link Decimal } * */ public void setValueDecimal(Decimal value) { this.valueDecimal = value; } public StructureMapParameter withValueId(Id value) { setValueId(value); return this; } public StructureMapParameter withValueString(org.hl7.fhir.String value) { setValueString(value); return this; } public StructureMapParameter withValueBoolean(Boolean value) { setValueBoolean(value); return this; } public StructureMapParameter withValueInteger(Integer value) { setValueInteger(value); return this; } public StructureMapParameter withValueDecimal(Decimal value) { setValueDecimal(value); return this; } @Override public StructureMapParameter withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public StructureMapParameter withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public StructureMapParameter withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public StructureMapParameter withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public StructureMapParameter withId(java.lang.String value) { setId(value); return this; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof StructureMapParameter)) { return false; } if (this == object) { return true; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final StructureMapParameter that = ((StructureMapParameter) object); { Id lhsValueId; lhsValueId = this.getValueId(); Id rhsValueId; rhsValueId = that.getValueId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "valueId", lhsValueId), LocatorUtils.property(thatLocator, "valueId", rhsValueId), lhsValueId, rhsValueId)) { return false; } } { org.hl7.fhir.String lhsValueString; lhsValueString = this.getValueString(); org.hl7.fhir.String rhsValueString; rhsValueString = that.getValueString(); if (!strategy.equals(LocatorUtils.property(thisLocator, "valueString", lhsValueString), LocatorUtils.property(thatLocator, "valueString", rhsValueString), lhsValueString, rhsValueString)) { return false; } } { Boolean lhsValueBoolean; lhsValueBoolean = this.getValueBoolean(); Boolean rhsValueBoolean; rhsValueBoolean = that.getValueBoolean(); if (!strategy.equals(LocatorUtils.property(thisLocator, "valueBoolean", lhsValueBoolean), LocatorUtils.property(thatLocator, "valueBoolean", rhsValueBoolean), lhsValueBoolean, rhsValueBoolean)) { return false; } } { Integer lhsValueInteger; lhsValueInteger = this.getValueInteger(); Integer rhsValueInteger; rhsValueInteger = that.getValueInteger(); if (!strategy.equals(LocatorUtils.property(thisLocator, "valueInteger", lhsValueInteger), LocatorUtils.property(thatLocator, "valueInteger", rhsValueInteger), lhsValueInteger, rhsValueInteger)) { return false; } } { Decimal lhsValueDecimal; lhsValueDecimal = this.getValueDecimal(); Decimal rhsValueDecimal; rhsValueDecimal = that.getValueDecimal(); if (!strategy.equals(LocatorUtils.property(thisLocator, "valueDecimal", lhsValueDecimal), LocatorUtils.property(thatLocator, "valueDecimal", rhsValueDecimal), lhsValueDecimal, rhsValueDecimal)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { Id theValueId; theValueId = this.getValueId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueId", theValueId), currentHashCode, theValueId); } { org.hl7.fhir.String theValueString; theValueString = this.getValueString(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueString", theValueString), currentHashCode, theValueString); } { Boolean theValueBoolean; theValueBoolean = this.getValueBoolean(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueBoolean", theValueBoolean), currentHashCode, theValueBoolean); } { Integer theValueInteger; theValueInteger = this.getValueInteger(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueInteger", theValueInteger), currentHashCode, theValueInteger); } { Decimal theValueDecimal; theValueDecimal = this.getValueDecimal(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "valueDecimal", theValueDecimal), currentHashCode, theValueDecimal); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public java.lang.String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { Id theValueId; theValueId = this.getValueId(); strategy.appendField(locator, this, "valueId", buffer, theValueId); } { org.hl7.fhir.String theValueString; theValueString = this.getValueString(); strategy.appendField(locator, this, "valueString", buffer, theValueString); } { Boolean theValueBoolean; theValueBoolean = this.getValueBoolean(); strategy.appendField(locator, this, "valueBoolean", buffer, theValueBoolean); } { Integer theValueInteger; theValueInteger = this.getValueInteger(); strategy.appendField(locator, this, "valueInteger", buffer, theValueInteger); } { Decimal theValueDecimal; theValueDecimal = this.getValueDecimal(); strategy.appendField(locator, this, "valueDecimal", buffer, theValueDecimal); } return buffer; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy