org.hl7.fhir.ContractValuedItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quick Show documentation
Show all versions of quick Show documentation
The quick library for the Clinical Quality Language Java reference implementation
//
// 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.03.21 at 12:42:34 PM 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.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 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 Equals2, HashCode2, ToString2
{
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;
}
@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 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, (this.entityCodeableConcept!= null), (that.entityCodeableConcept!= null))) {
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, (this.entityReference!= null), (that.entityReference!= null))) {
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, (this.identifier!= null), (that.identifier!= null))) {
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, (this.effectiveTime!= null), (that.effectiveTime!= null))) {
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, (this.quantity!= null), (that.quantity!= null))) {
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, (this.unitPrice!= null), (that.unitPrice!= null))) {
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, (this.factor!= null), (that.factor!= null))) {
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, (this.points!= null), (that.points!= null))) {
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, (this.net!= null), (that.net!= 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);
{
CodeableConcept theEntityCodeableConcept;
theEntityCodeableConcept = this.getEntityCodeableConcept();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "entityCodeableConcept", theEntityCodeableConcept), currentHashCode, theEntityCodeableConcept, (this.entityCodeableConcept!= null));
}
{
Reference theEntityReference;
theEntityReference = this.getEntityReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "entityReference", theEntityReference), currentHashCode, theEntityReference, (this.entityReference!= null));
}
{
Identifier theIdentifier;
theIdentifier = this.getIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "identifier", theIdentifier), currentHashCode, theIdentifier, (this.identifier!= null));
}
{
DateTime theEffectiveTime;
theEffectiveTime = this.getEffectiveTime();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "effectiveTime", theEffectiveTime), currentHashCode, theEffectiveTime, (this.effectiveTime!= null));
}
{
SimpleQuantity theQuantity;
theQuantity = this.getQuantity();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "quantity", theQuantity), currentHashCode, theQuantity, (this.quantity!= null));
}
{
Money theUnitPrice;
theUnitPrice = this.getUnitPrice();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "unitPrice", theUnitPrice), currentHashCode, theUnitPrice, (this.unitPrice!= null));
}
{
Decimal theFactor;
theFactor = this.getFactor();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "factor", theFactor), currentHashCode, theFactor, (this.factor!= null));
}
{
Decimal thePoints;
thePoints = this.getPoints();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "points", thePoints), currentHashCode, thePoints, (this.points!= null));
}
{
Money theNet;
theNet = this.getNet();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "net", theNet), currentHashCode, theNet, (this.net!= 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);
{
CodeableConcept theEntityCodeableConcept;
theEntityCodeableConcept = this.getEntityCodeableConcept();
strategy.appendField(locator, this, "entityCodeableConcept", buffer, theEntityCodeableConcept, (this.entityCodeableConcept!= null));
}
{
Reference theEntityReference;
theEntityReference = this.getEntityReference();
strategy.appendField(locator, this, "entityReference", buffer, theEntityReference, (this.entityReference!= null));
}
{
Identifier theIdentifier;
theIdentifier = this.getIdentifier();
strategy.appendField(locator, this, "identifier", buffer, theIdentifier, (this.identifier!= null));
}
{
DateTime theEffectiveTime;
theEffectiveTime = this.getEffectiveTime();
strategy.appendField(locator, this, "effectiveTime", buffer, theEffectiveTime, (this.effectiveTime!= null));
}
{
SimpleQuantity theQuantity;
theQuantity = this.getQuantity();
strategy.appendField(locator, this, "quantity", buffer, theQuantity, (this.quantity!= null));
}
{
Money theUnitPrice;
theUnitPrice = this.getUnitPrice();
strategy.appendField(locator, this, "unitPrice", buffer, theUnitPrice, (this.unitPrice!= null));
}
{
Decimal theFactor;
theFactor = this.getFactor();
strategy.appendField(locator, this, "factor", buffer, theFactor, (this.factor!= null));
}
{
Decimal thePoints;
thePoints = this.getPoints();
strategy.appendField(locator, this, "points", buffer, thePoints, (this.points!= null));
}
{
Money theNet;
theNet = this.getNet();
strategy.appendField(locator, this, "net", buffer, theNet, (this.net!= null));
}
return buffer;
}
}