blob: da17e58bb905cc6ede1379103c77b3aa97c24d40 [file] [log] [blame]
/**
*/
package org.hl7.fhir.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.hl7.fhir.CodeableConcept;
import org.hl7.fhir.ContractValuedItem;
import org.hl7.fhir.DateTime;
import org.hl7.fhir.Decimal;
import org.hl7.fhir.FhirPackage;
import org.hl7.fhir.Identifier;
import org.hl7.fhir.Money;
import org.hl7.fhir.Reference;
import org.hl7.fhir.SimpleQuantity;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Contract Valued Item</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.hl7.fhir.impl.ContractValuedItemImpl#getEntityCodeableConcept <em>Entity Codeable Concept</em>}</li>
* <li>{@link org.hl7.fhir.impl.ContractValuedItemImpl#getEntityReference <em>Entity Reference</em>}</li>
* <li>{@link org.hl7.fhir.impl.ContractValuedItemImpl#getIdentifier <em>Identifier</em>}</li>
* <li>{@link org.hl7.fhir.impl.ContractValuedItemImpl#getEffectiveTime <em>Effective Time</em>}</li>
* <li>{@link org.hl7.fhir.impl.ContractValuedItemImpl#getQuantity <em>Quantity</em>}</li>
* <li>{@link org.hl7.fhir.impl.ContractValuedItemImpl#getUnitPrice <em>Unit Price</em>}</li>
* <li>{@link org.hl7.fhir.impl.ContractValuedItemImpl#getFactor <em>Factor</em>}</li>
* <li>{@link org.hl7.fhir.impl.ContractValuedItemImpl#getPoints <em>Points</em>}</li>
* <li>{@link org.hl7.fhir.impl.ContractValuedItemImpl#getNet <em>Net</em>}</li>
* </ul>
*
* @generated
*/
public class ContractValuedItemImpl extends BackboneElementImpl implements ContractValuedItem {
/**
* The cached value of the '{@link #getEntityCodeableConcept() <em>Entity Codeable Concept</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEntityCodeableConcept()
* @generated
* @ordered
*/
protected CodeableConcept entityCodeableConcept;
/**
* The cached value of the '{@link #getEntityReference() <em>Entity Reference</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEntityReference()
* @generated
* @ordered
*/
protected Reference entityReference;
/**
* The cached value of the '{@link #getIdentifier() <em>Identifier</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getIdentifier()
* @generated
* @ordered
*/
protected Identifier identifier;
/**
* The cached value of the '{@link #getEffectiveTime() <em>Effective Time</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getEffectiveTime()
* @generated
* @ordered
*/
protected DateTime effectiveTime;
/**
* The cached value of the '{@link #getQuantity() <em>Quantity</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getQuantity()
* @generated
* @ordered
*/
protected SimpleQuantity quantity;
/**
* The cached value of the '{@link #getUnitPrice() <em>Unit Price</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getUnitPrice()
* @generated
* @ordered
*/
protected Money unitPrice;
/**
* The cached value of the '{@link #getFactor() <em>Factor</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getFactor()
* @generated
* @ordered
*/
protected Decimal factor;
/**
* The cached value of the '{@link #getPoints() <em>Points</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPoints()
* @generated
* @ordered
*/
protected Decimal points;
/**
* The cached value of the '{@link #getNet() <em>Net</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNet()
* @generated
* @ordered
*/
protected Money net;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ContractValuedItemImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FhirPackage.eINSTANCE.getContractValuedItem();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CodeableConcept getEntityCodeableConcept() {
return entityCodeableConcept;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetEntityCodeableConcept(CodeableConcept newEntityCodeableConcept, NotificationChain msgs) {
CodeableConcept oldEntityCodeableConcept = entityCodeableConcept;
entityCodeableConcept = newEntityCodeableConcept;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_CODEABLE_CONCEPT, oldEntityCodeableConcept, newEntityCodeableConcept);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setEntityCodeableConcept(CodeableConcept newEntityCodeableConcept) {
if (newEntityCodeableConcept != entityCodeableConcept) {
NotificationChain msgs = null;
if (entityCodeableConcept != null)
msgs = ((InternalEObject)entityCodeableConcept).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_CODEABLE_CONCEPT, null, msgs);
if (newEntityCodeableConcept != null)
msgs = ((InternalEObject)newEntityCodeableConcept).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_CODEABLE_CONCEPT, null, msgs);
msgs = basicSetEntityCodeableConcept(newEntityCodeableConcept, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_CODEABLE_CONCEPT, newEntityCodeableConcept, newEntityCodeableConcept));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Reference getEntityReference() {
return entityReference;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetEntityReference(Reference newEntityReference, NotificationChain msgs) {
Reference oldEntityReference = entityReference;
entityReference = newEntityReference;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_REFERENCE, oldEntityReference, newEntityReference);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setEntityReference(Reference newEntityReference) {
if (newEntityReference != entityReference) {
NotificationChain msgs = null;
if (entityReference != null)
msgs = ((InternalEObject)entityReference).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_REFERENCE, null, msgs);
if (newEntityReference != null)
msgs = ((InternalEObject)newEntityReference).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_REFERENCE, null, msgs);
msgs = basicSetEntityReference(newEntityReference, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_REFERENCE, newEntityReference, newEntityReference));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Identifier getIdentifier() {
return identifier;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetIdentifier(Identifier newIdentifier, NotificationChain msgs) {
Identifier oldIdentifier = identifier;
identifier = newIdentifier;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__IDENTIFIER, oldIdentifier, newIdentifier);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setIdentifier(Identifier newIdentifier) {
if (newIdentifier != identifier) {
NotificationChain msgs = null;
if (identifier != null)
msgs = ((InternalEObject)identifier).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__IDENTIFIER, null, msgs);
if (newIdentifier != null)
msgs = ((InternalEObject)newIdentifier).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__IDENTIFIER, null, msgs);
msgs = basicSetIdentifier(newIdentifier, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__IDENTIFIER, newIdentifier, newIdentifier));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DateTime getEffectiveTime() {
return effectiveTime;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetEffectiveTime(DateTime newEffectiveTime, NotificationChain msgs) {
DateTime oldEffectiveTime = effectiveTime;
effectiveTime = newEffectiveTime;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__EFFECTIVE_TIME, oldEffectiveTime, newEffectiveTime);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setEffectiveTime(DateTime newEffectiveTime) {
if (newEffectiveTime != effectiveTime) {
NotificationChain msgs = null;
if (effectiveTime != null)
msgs = ((InternalEObject)effectiveTime).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__EFFECTIVE_TIME, null, msgs);
if (newEffectiveTime != null)
msgs = ((InternalEObject)newEffectiveTime).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__EFFECTIVE_TIME, null, msgs);
msgs = basicSetEffectiveTime(newEffectiveTime, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__EFFECTIVE_TIME, newEffectiveTime, newEffectiveTime));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SimpleQuantity getQuantity() {
return quantity;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetQuantity(SimpleQuantity newQuantity, NotificationChain msgs) {
SimpleQuantity oldQuantity = quantity;
quantity = newQuantity;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__QUANTITY, oldQuantity, newQuantity);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setQuantity(SimpleQuantity newQuantity) {
if (newQuantity != quantity) {
NotificationChain msgs = null;
if (quantity != null)
msgs = ((InternalEObject)quantity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__QUANTITY, null, msgs);
if (newQuantity != null)
msgs = ((InternalEObject)newQuantity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__QUANTITY, null, msgs);
msgs = basicSetQuantity(newQuantity, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__QUANTITY, newQuantity, newQuantity));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Money getUnitPrice() {
return unitPrice;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetUnitPrice(Money newUnitPrice, NotificationChain msgs) {
Money oldUnitPrice = unitPrice;
unitPrice = newUnitPrice;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__UNIT_PRICE, oldUnitPrice, newUnitPrice);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setUnitPrice(Money newUnitPrice) {
if (newUnitPrice != unitPrice) {
NotificationChain msgs = null;
if (unitPrice != null)
msgs = ((InternalEObject)unitPrice).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__UNIT_PRICE, null, msgs);
if (newUnitPrice != null)
msgs = ((InternalEObject)newUnitPrice).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__UNIT_PRICE, null, msgs);
msgs = basicSetUnitPrice(newUnitPrice, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__UNIT_PRICE, newUnitPrice, newUnitPrice));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Decimal getFactor() {
return factor;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetFactor(Decimal newFactor, NotificationChain msgs) {
Decimal oldFactor = factor;
factor = newFactor;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__FACTOR, oldFactor, newFactor);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setFactor(Decimal newFactor) {
if (newFactor != factor) {
NotificationChain msgs = null;
if (factor != null)
msgs = ((InternalEObject)factor).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__FACTOR, null, msgs);
if (newFactor != null)
msgs = ((InternalEObject)newFactor).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__FACTOR, null, msgs);
msgs = basicSetFactor(newFactor, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__FACTOR, newFactor, newFactor));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Decimal getPoints() {
return points;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetPoints(Decimal newPoints, NotificationChain msgs) {
Decimal oldPoints = points;
points = newPoints;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__POINTS, oldPoints, newPoints);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setPoints(Decimal newPoints) {
if (newPoints != points) {
NotificationChain msgs = null;
if (points != null)
msgs = ((InternalEObject)points).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__POINTS, null, msgs);
if (newPoints != null)
msgs = ((InternalEObject)newPoints).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__POINTS, null, msgs);
msgs = basicSetPoints(newPoints, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__POINTS, newPoints, newPoints));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Money getNet() {
return net;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetNet(Money newNet, NotificationChain msgs) {
Money oldNet = net;
net = newNet;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__NET, oldNet, newNet);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setNet(Money newNet) {
if (newNet != net) {
NotificationChain msgs = null;
if (net != null)
msgs = ((InternalEObject)net).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__NET, null, msgs);
if (newNet != null)
msgs = ((InternalEObject)newNet).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONTRACT_VALUED_ITEM__NET, null, msgs);
msgs = basicSetNet(newNet, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONTRACT_VALUED_ITEM__NET, newNet, newNet));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_CODEABLE_CONCEPT:
return basicSetEntityCodeableConcept(null, msgs);
case FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_REFERENCE:
return basicSetEntityReference(null, msgs);
case FhirPackage.CONTRACT_VALUED_ITEM__IDENTIFIER:
return basicSetIdentifier(null, msgs);
case FhirPackage.CONTRACT_VALUED_ITEM__EFFECTIVE_TIME:
return basicSetEffectiveTime(null, msgs);
case FhirPackage.CONTRACT_VALUED_ITEM__QUANTITY:
return basicSetQuantity(null, msgs);
case FhirPackage.CONTRACT_VALUED_ITEM__UNIT_PRICE:
return basicSetUnitPrice(null, msgs);
case FhirPackage.CONTRACT_VALUED_ITEM__FACTOR:
return basicSetFactor(null, msgs);
case FhirPackage.CONTRACT_VALUED_ITEM__POINTS:
return basicSetPoints(null, msgs);
case FhirPackage.CONTRACT_VALUED_ITEM__NET:
return basicSetNet(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_CODEABLE_CONCEPT:
return getEntityCodeableConcept();
case FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_REFERENCE:
return getEntityReference();
case FhirPackage.CONTRACT_VALUED_ITEM__IDENTIFIER:
return getIdentifier();
case FhirPackage.CONTRACT_VALUED_ITEM__EFFECTIVE_TIME:
return getEffectiveTime();
case FhirPackage.CONTRACT_VALUED_ITEM__QUANTITY:
return getQuantity();
case FhirPackage.CONTRACT_VALUED_ITEM__UNIT_PRICE:
return getUnitPrice();
case FhirPackage.CONTRACT_VALUED_ITEM__FACTOR:
return getFactor();
case FhirPackage.CONTRACT_VALUED_ITEM__POINTS:
return getPoints();
case FhirPackage.CONTRACT_VALUED_ITEM__NET:
return getNet();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_CODEABLE_CONCEPT:
setEntityCodeableConcept((CodeableConcept)newValue);
return;
case FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_REFERENCE:
setEntityReference((Reference)newValue);
return;
case FhirPackage.CONTRACT_VALUED_ITEM__IDENTIFIER:
setIdentifier((Identifier)newValue);
return;
case FhirPackage.CONTRACT_VALUED_ITEM__EFFECTIVE_TIME:
setEffectiveTime((DateTime)newValue);
return;
case FhirPackage.CONTRACT_VALUED_ITEM__QUANTITY:
setQuantity((SimpleQuantity)newValue);
return;
case FhirPackage.CONTRACT_VALUED_ITEM__UNIT_PRICE:
setUnitPrice((Money)newValue);
return;
case FhirPackage.CONTRACT_VALUED_ITEM__FACTOR:
setFactor((Decimal)newValue);
return;
case FhirPackage.CONTRACT_VALUED_ITEM__POINTS:
setPoints((Decimal)newValue);
return;
case FhirPackage.CONTRACT_VALUED_ITEM__NET:
setNet((Money)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_CODEABLE_CONCEPT:
setEntityCodeableConcept((CodeableConcept)null);
return;
case FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_REFERENCE:
setEntityReference((Reference)null);
return;
case FhirPackage.CONTRACT_VALUED_ITEM__IDENTIFIER:
setIdentifier((Identifier)null);
return;
case FhirPackage.CONTRACT_VALUED_ITEM__EFFECTIVE_TIME:
setEffectiveTime((DateTime)null);
return;
case FhirPackage.CONTRACT_VALUED_ITEM__QUANTITY:
setQuantity((SimpleQuantity)null);
return;
case FhirPackage.CONTRACT_VALUED_ITEM__UNIT_PRICE:
setUnitPrice((Money)null);
return;
case FhirPackage.CONTRACT_VALUED_ITEM__FACTOR:
setFactor((Decimal)null);
return;
case FhirPackage.CONTRACT_VALUED_ITEM__POINTS:
setPoints((Decimal)null);
return;
case FhirPackage.CONTRACT_VALUED_ITEM__NET:
setNet((Money)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_CODEABLE_CONCEPT:
return entityCodeableConcept != null;
case FhirPackage.CONTRACT_VALUED_ITEM__ENTITY_REFERENCE:
return entityReference != null;
case FhirPackage.CONTRACT_VALUED_ITEM__IDENTIFIER:
return identifier != null;
case FhirPackage.CONTRACT_VALUED_ITEM__EFFECTIVE_TIME:
return effectiveTime != null;
case FhirPackage.CONTRACT_VALUED_ITEM__QUANTITY:
return quantity != null;
case FhirPackage.CONTRACT_VALUED_ITEM__UNIT_PRICE:
return unitPrice != null;
case FhirPackage.CONTRACT_VALUED_ITEM__FACTOR:
return factor != null;
case FhirPackage.CONTRACT_VALUED_ITEM__POINTS:
return points != null;
case FhirPackage.CONTRACT_VALUED_ITEM__NET:
return net != null;
}
return super.eIsSet(featureID);
}
} //ContractValuedItemImpl