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

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

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.22.0
Show newest version
//
// 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 formal agreement between parties regarding the conduct of business, exchange of information or other matters.
 * 
 * 

Java class for Contract.ValuedItem complex type. * *

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

 * <complexType name="Contract.ValuedItem">
 *   <complexContent>
 *     <extension base="{http://hl7.org/fhir}BackboneElement">
 *       <sequence>
 *         <choice minOccurs="0">
 *           <element name="entityCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
 *           <element name="entityReference" type="{http://hl7.org/fhir}Reference"/>
 *         </choice>
 *         <element name="identifier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/>
 *         <element name="effectiveTime" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/>
 *         <element name="quantity" type="{http://hl7.org/fhir}SimpleQuantity" minOccurs="0"/>
 *         <element name="unitPrice" type="{http://hl7.org/fhir}Money" minOccurs="0"/>
 *         <element name="factor" type="{http://hl7.org/fhir}decimal" minOccurs="0"/>
 *         <element name="points" type="{http://hl7.org/fhir}decimal" minOccurs="0"/>
 *         <element name="net" type="{http://hl7.org/fhir}Money" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Contract.ValuedItem", propOrder = { "entityCodeableConcept", "entityReference", "identifier", "effectiveTime", "quantity", "unitPrice", "factor", "points", "net" }) public class ContractValuedItem extends BackboneElement implements Equals, HashCode, ToString { protected CodeableConcept entityCodeableConcept; protected Reference entityReference; protected Identifier identifier; protected DateTime effectiveTime; protected SimpleQuantity quantity; protected Money unitPrice; protected Decimal factor; protected Decimal points; protected Money net; /** * Gets the value of the entityCodeableConcept property. * * @return * possible object is * {@link CodeableConcept } * */ public CodeableConcept getEntityCodeableConcept() { return entityCodeableConcept; } /** * Sets the value of the entityCodeableConcept property. * * @param value * allowed object is * {@link CodeableConcept } * */ public void setEntityCodeableConcept(CodeableConcept value) { this.entityCodeableConcept = value; } /** * Gets the value of the entityReference property. * * @return * possible object is * {@link Reference } * */ public Reference getEntityReference() { return entityReference; } /** * Sets the value of the entityReference property. * * @param value * allowed object is * {@link Reference } * */ public void setEntityReference(Reference value) { this.entityReference = value; } /** * Gets the value of the identifier property. * * @return * possible object is * {@link Identifier } * */ public Identifier getIdentifier() { return identifier; } /** * Sets the value of the identifier property. * * @param value * allowed object is * {@link Identifier } * */ public void setIdentifier(Identifier value) { this.identifier = value; } /** * Gets the value of the effectiveTime property. * * @return * possible object is * {@link DateTime } * */ public DateTime getEffectiveTime() { return effectiveTime; } /** * Sets the value of the effectiveTime property. * * @param value * allowed object is * {@link DateTime } * */ public void setEffectiveTime(DateTime value) { this.effectiveTime = value; } /** * Gets the value of the quantity property. * * @return * possible object is * {@link SimpleQuantity } * */ public SimpleQuantity getQuantity() { return quantity; } /** * Sets the value of the quantity property. * * @param value * allowed object is * {@link SimpleQuantity } * */ public void setQuantity(SimpleQuantity value) { this.quantity = value; } /** * Gets the value of the unitPrice property. * * @return * possible object is * {@link Money } * */ public Money getUnitPrice() { return unitPrice; } /** * Sets the value of the unitPrice property. * * @param value * allowed object is * {@link Money } * */ public void setUnitPrice(Money value) { this.unitPrice = value; } /** * Gets the value of the factor property. * * @return * possible object is * {@link Decimal } * */ public Decimal getFactor() { return factor; } /** * Sets the value of the factor property. * * @param value * allowed object is * {@link Decimal } * */ public void setFactor(Decimal value) { this.factor = value; } /** * Gets the value of the points property. * * @return * possible object is * {@link Decimal } * */ public Decimal getPoints() { return points; } /** * Sets the value of the points property. * * @param value * allowed object is * {@link Decimal } * */ public void setPoints(Decimal value) { this.points = value; } /** * Gets the value of the net property. * * @return * possible object is * {@link Money } * */ public Money getNet() { return net; } /** * Sets the value of the net property. * * @param value * allowed object is * {@link Money } * */ public void setNet(Money value) { this.net = value; } public ContractValuedItem withEntityCodeableConcept(CodeableConcept value) { setEntityCodeableConcept(value); return this; } public ContractValuedItem withEntityReference(Reference value) { setEntityReference(value); return this; } public ContractValuedItem withIdentifier(Identifier value) { setIdentifier(value); return this; } public ContractValuedItem withEffectiveTime(DateTime value) { setEffectiveTime(value); return this; } public ContractValuedItem withQuantity(SimpleQuantity value) { setQuantity(value); return this; } public ContractValuedItem withUnitPrice(Money value) { setUnitPrice(value); return this; } public ContractValuedItem withFactor(Decimal value) { setFactor(value); return this; } public ContractValuedItem withPoints(Decimal value) { setPoints(value); return this; } public ContractValuedItem withNet(Money value) { setNet(value); return this; } @Override public ContractValuedItem withModifierExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getModifierExtension().add(value); } } return this; } @Override public ContractValuedItem withModifierExtension(Collection values) { if (values!= null) { getModifierExtension().addAll(values); } return this; } @Override public ContractValuedItem withExtension(Extension... values) { if (values!= null) { for (Extension value: values) { getExtension().add(value); } } return this; } @Override public ContractValuedItem withExtension(Collection values) { if (values!= null) { getExtension().addAll(values); } return this; } @Override public ContractValuedItem withId(java.lang.String value) { setId(value); return this; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ContractValuedItem)) { return false; } if (this == object) { return true; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final ContractValuedItem that = ((ContractValuedItem) object); { CodeableConcept lhsEntityCodeableConcept; lhsEntityCodeableConcept = this.getEntityCodeableConcept(); CodeableConcept rhsEntityCodeableConcept; rhsEntityCodeableConcept = that.getEntityCodeableConcept(); if (!strategy.equals(LocatorUtils.property(thisLocator, "entityCodeableConcept", lhsEntityCodeableConcept), LocatorUtils.property(thatLocator, "entityCodeableConcept", rhsEntityCodeableConcept), lhsEntityCodeableConcept, rhsEntityCodeableConcept)) { return false; } } { Reference lhsEntityReference; lhsEntityReference = this.getEntityReference(); Reference rhsEntityReference; rhsEntityReference = that.getEntityReference(); if (!strategy.equals(LocatorUtils.property(thisLocator, "entityReference", lhsEntityReference), LocatorUtils.property(thatLocator, "entityReference", rhsEntityReference), lhsEntityReference, rhsEntityReference)) { return false; } } { Identifier lhsIdentifier; lhsIdentifier = this.getIdentifier(); Identifier rhsIdentifier; rhsIdentifier = that.getIdentifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "identifier", lhsIdentifier), LocatorUtils.property(thatLocator, "identifier", rhsIdentifier), lhsIdentifier, rhsIdentifier)) { return false; } } { DateTime lhsEffectiveTime; lhsEffectiveTime = this.getEffectiveTime(); DateTime rhsEffectiveTime; rhsEffectiveTime = that.getEffectiveTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "effectiveTime", lhsEffectiveTime), LocatorUtils.property(thatLocator, "effectiveTime", rhsEffectiveTime), lhsEffectiveTime, rhsEffectiveTime)) { return false; } } { SimpleQuantity lhsQuantity; lhsQuantity = this.getQuantity(); SimpleQuantity rhsQuantity; rhsQuantity = that.getQuantity(); if (!strategy.equals(LocatorUtils.property(thisLocator, "quantity", lhsQuantity), LocatorUtils.property(thatLocator, "quantity", rhsQuantity), lhsQuantity, rhsQuantity)) { return false; } } { Money lhsUnitPrice; lhsUnitPrice = this.getUnitPrice(); Money rhsUnitPrice; rhsUnitPrice = that.getUnitPrice(); if (!strategy.equals(LocatorUtils.property(thisLocator, "unitPrice", lhsUnitPrice), LocatorUtils.property(thatLocator, "unitPrice", rhsUnitPrice), lhsUnitPrice, rhsUnitPrice)) { return false; } } { Decimal lhsFactor; lhsFactor = this.getFactor(); Decimal rhsFactor; rhsFactor = that.getFactor(); if (!strategy.equals(LocatorUtils.property(thisLocator, "factor", lhsFactor), LocatorUtils.property(thatLocator, "factor", rhsFactor), lhsFactor, rhsFactor)) { return false; } } { Decimal lhsPoints; lhsPoints = this.getPoints(); Decimal rhsPoints; rhsPoints = that.getPoints(); if (!strategy.equals(LocatorUtils.property(thisLocator, "points", lhsPoints), LocatorUtils.property(thatLocator, "points", rhsPoints), lhsPoints, rhsPoints)) { return false; } } { Money lhsNet; lhsNet = this.getNet(); Money rhsNet; rhsNet = that.getNet(); if (!strategy.equals(LocatorUtils.property(thisLocator, "net", lhsNet), LocatorUtils.property(thatLocator, "net", rhsNet), lhsNet, rhsNet)) { 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); { CodeableConcept theEntityCodeableConcept; theEntityCodeableConcept = this.getEntityCodeableConcept(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "entityCodeableConcept", theEntityCodeableConcept), currentHashCode, theEntityCodeableConcept); } { Reference theEntityReference; theEntityReference = this.getEntityReference(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "entityReference", theEntityReference), currentHashCode, theEntityReference); } { Identifier theIdentifier; theIdentifier = this.getIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier); } { DateTime theEffectiveTime; theEffectiveTime = this.getEffectiveTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "effectiveTime", theEffectiveTime), currentHashCode, theEffectiveTime); } { SimpleQuantity theQuantity; theQuantity = this.getQuantity(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "quantity", theQuantity), currentHashCode, theQuantity); } { Money theUnitPrice; theUnitPrice = this.getUnitPrice(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "unitPrice", theUnitPrice), currentHashCode, theUnitPrice); } { Decimal theFactor; theFactor = this.getFactor(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "factor", theFactor), currentHashCode, theFactor); } { Decimal thePoints; thePoints = this.getPoints(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "points", thePoints), currentHashCode, thePoints); } { Money theNet; theNet = this.getNet(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "net", theNet), currentHashCode, theNet); } 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); { CodeableConcept theEntityCodeableConcept; theEntityCodeableConcept = this.getEntityCodeableConcept(); strategy.appendField(locator, this, "entityCodeableConcept", buffer, theEntityCodeableConcept); } { Reference theEntityReference; theEntityReference = this.getEntityReference(); strategy.appendField(locator, this, "entityReference", buffer, theEntityReference); } { Identifier theIdentifier; theIdentifier = this.getIdentifier(); strategy.appendField(locator, this, "identifier", buffer, theIdentifier); } { DateTime theEffectiveTime; theEffectiveTime = this.getEffectiveTime(); strategy.appendField(locator, this, "effectiveTime", buffer, theEffectiveTime); } { SimpleQuantity theQuantity; theQuantity = this.getQuantity(); strategy.appendField(locator, this, "quantity", buffer, theQuantity); } { Money theUnitPrice; theUnitPrice = this.getUnitPrice(); strategy.appendField(locator, this, "unitPrice", buffer, theUnitPrice); } { Decimal theFactor; theFactor = this.getFactor(); strategy.appendField(locator, this, "factor", buffer, theFactor); } { Decimal thePoints; thePoints = this.getPoints(); strategy.appendField(locator, this, "points", buffer, thePoints); } { Money theNet; theNet = this.getNet(); strategy.appendField(locator, this, "net", buffer, theNet); } return buffer; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy