blob: 3f7e81f745125451ed1bd092ee0bdac4a38abb21 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016 David Carlson and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* David Carlson (Clinical Cloud Solutions, LLC) - initial API and implementation
*******************************************************************************/
/**
*/
package org.eclipse.mdht.uml.fhir.core.resource.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.mdht.uml.fhir.core.datatype.Annotation;
import org.eclipse.mdht.uml.fhir.core.datatype.Code;
import org.eclipse.mdht.uml.fhir.core.datatype.CodeableConcept;
import org.eclipse.mdht.uml.fhir.core.datatype.DataType;
import org.eclipse.mdht.uml.fhir.core.datatype.Date;
import org.eclipse.mdht.uml.fhir.core.datatype.Identifier;
import org.eclipse.mdht.uml.fhir.core.resource.FhirResourcePackage;
import org.eclipse.mdht.uml.fhir.core.resource.Goal;
import org.eclipse.mdht.uml.fhir.core.resource.GoalOutcome;
import org.eclipse.mdht.uml.fhir.core.resource.Resource;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Goal</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.GoalImpl#getIdentifiers <em>Identifier</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.GoalImpl#getSubject <em>Subject</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.GoalImpl#getStartx <em>Startx</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.GoalImpl#getTargetx <em>Targetx</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.GoalImpl#getCategories <em>Category</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.GoalImpl#getDescription <em>Description</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.GoalImpl#getStatus <em>Status</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.GoalImpl#getStatusDate <em>Status Date</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.GoalImpl#getStatusReason <em>Status Reason</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.GoalImpl#getAuthor <em>Author</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.GoalImpl#getPriority <em>Priority</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.GoalImpl#getAddresses <em>Addresses</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.GoalImpl#getNotes <em>Note</em>}</li>
* <li>{@link org.eclipse.mdht.uml.fhir.core.resource.impl.GoalImpl#getOutcomes <em>Outcome</em>}</li>
* </ul>
*
* @generated
*/
public class GoalImpl extends DomainResourceImpl implements Goal {
/**
* The cached value of the '{@link #getIdentifiers() <em>Identifier</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getIdentifiers()
* @generated
* @ordered
*/
protected EList<Identifier> identifiers;
/**
* The cached value of the '{@link #getSubject() <em>Subject</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSubject()
* @generated
* @ordered
*/
protected Resource subject;
/**
* The cached value of the '{@link #getStartx() <em>Startx</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getStartx()
* @generated
* @ordered
*/
protected DataType startx;
/**
* The cached value of the '{@link #getTargetx() <em>Targetx</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTargetx()
* @generated
* @ordered
*/
protected DataType targetx;
/**
* The cached value of the '{@link #getCategories() <em>Category</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCategories()
* @generated
* @ordered
*/
protected EList<CodeableConcept> categories;
/**
* The cached value of the '{@link #getDescription() <em>Description</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected org.eclipse.mdht.uml.fhir.core.datatype.String description;
/**
* The cached value of the '{@link #getStatus() <em>Status</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getStatus()
* @generated
* @ordered
*/
protected Code status;
/**
* The cached value of the '{@link #getStatusDate() <em>Status Date</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getStatusDate()
* @generated
* @ordered
*/
protected Date statusDate;
/**
* The cached value of the '{@link #getStatusReason() <em>Status Reason</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getStatusReason()
* @generated
* @ordered
*/
protected CodeableConcept statusReason;
/**
* The cached value of the '{@link #getAuthor() <em>Author</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAuthor()
* @generated
* @ordered
*/
protected Resource author;
/**
* The cached value of the '{@link #getPriority() <em>Priority</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPriority()
* @generated
* @ordered
*/
protected CodeableConcept priority;
/**
* The cached value of the '{@link #getAddresses() <em>Addresses</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAddresses()
* @generated
* @ordered
*/
protected EList<Resource> addresses;
/**
* The cached value of the '{@link #getNotes() <em>Note</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNotes()
* @generated
* @ordered
*/
protected EList<Annotation> notes;
/**
* The cached value of the '{@link #getOutcomes() <em>Outcome</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOutcomes()
* @generated
* @ordered
*/
protected EList<GoalOutcome> outcomes;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GoalImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FhirResourcePackage.eINSTANCE.getGoal();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Identifier> getIdentifiers() {
if (identifiers == null) {
identifiers = new EObjectResolvingEList<Identifier>(Identifier.class, this, FhirResourcePackage.GOAL__IDENTIFIER);
}
return identifiers;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Resource getSubject() {
if (subject != null && subject.eIsProxy()) {
InternalEObject oldSubject = (InternalEObject)subject;
subject = (Resource)eResolveProxy(oldSubject);
if (subject != oldSubject) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.GOAL__SUBJECT, oldSubject, subject));
}
}
return subject;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Resource basicGetSubject() {
return subject;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSubject(Resource newSubject) {
Resource oldSubject = subject;
subject = newSubject;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.GOAL__SUBJECT, oldSubject, subject));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DataType getStartx() {
if (startx != null && startx.eIsProxy()) {
InternalEObject oldStartx = (InternalEObject)startx;
startx = (DataType)eResolveProxy(oldStartx);
if (startx != oldStartx) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.GOAL__STARTX, oldStartx, startx));
}
}
return startx;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DataType basicGetStartx() {
return startx;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setStartx(DataType newStartx) {
DataType oldStartx = startx;
startx = newStartx;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.GOAL__STARTX, oldStartx, startx));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DataType getTargetx() {
if (targetx != null && targetx.eIsProxy()) {
InternalEObject oldTargetx = (InternalEObject)targetx;
targetx = (DataType)eResolveProxy(oldTargetx);
if (targetx != oldTargetx) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.GOAL__TARGETX, oldTargetx, targetx));
}
}
return targetx;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DataType basicGetTargetx() {
return targetx;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTargetx(DataType newTargetx) {
DataType oldTargetx = targetx;
targetx = newTargetx;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.GOAL__TARGETX, oldTargetx, targetx));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<CodeableConcept> getCategories() {
if (categories == null) {
categories = new EObjectResolvingEList<CodeableConcept>(CodeableConcept.class, this, FhirResourcePackage.GOAL__CATEGORY);
}
return categories;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.eclipse.mdht.uml.fhir.core.datatype.String getDescription() {
if (description != null && description.eIsProxy()) {
InternalEObject oldDescription = (InternalEObject)description;
description = (org.eclipse.mdht.uml.fhir.core.datatype.String)eResolveProxy(oldDescription);
if (description != oldDescription) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.GOAL__DESCRIPTION, oldDescription, description));
}
}
return description;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.eclipse.mdht.uml.fhir.core.datatype.String basicGetDescription() {
return description;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDescription(org.eclipse.mdht.uml.fhir.core.datatype.String newDescription) {
org.eclipse.mdht.uml.fhir.core.datatype.String oldDescription = description;
description = newDescription;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.GOAL__DESCRIPTION, oldDescription, description));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Code getStatus() {
if (status != null && status.eIsProxy()) {
InternalEObject oldStatus = (InternalEObject)status;
status = (Code)eResolveProxy(oldStatus);
if (status != oldStatus) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.GOAL__STATUS, oldStatus, status));
}
}
return status;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Code basicGetStatus() {
return status;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setStatus(Code newStatus) {
Code oldStatus = status;
status = newStatus;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.GOAL__STATUS, oldStatus, status));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Date getStatusDate() {
if (statusDate != null && statusDate.eIsProxy()) {
InternalEObject oldStatusDate = (InternalEObject)statusDate;
statusDate = (Date)eResolveProxy(oldStatusDate);
if (statusDate != oldStatusDate) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.GOAL__STATUS_DATE, oldStatusDate, statusDate));
}
}
return statusDate;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Date basicGetStatusDate() {
return statusDate;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setStatusDate(Date newStatusDate) {
Date oldStatusDate = statusDate;
statusDate = newStatusDate;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.GOAL__STATUS_DATE, oldStatusDate, statusDate));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CodeableConcept getStatusReason() {
if (statusReason != null && statusReason.eIsProxy()) {
InternalEObject oldStatusReason = (InternalEObject)statusReason;
statusReason = (CodeableConcept)eResolveProxy(oldStatusReason);
if (statusReason != oldStatusReason) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.GOAL__STATUS_REASON, oldStatusReason, statusReason));
}
}
return statusReason;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CodeableConcept basicGetStatusReason() {
return statusReason;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setStatusReason(CodeableConcept newStatusReason) {
CodeableConcept oldStatusReason = statusReason;
statusReason = newStatusReason;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.GOAL__STATUS_REASON, oldStatusReason, statusReason));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Resource getAuthor() {
if (author != null && author.eIsProxy()) {
InternalEObject oldAuthor = (InternalEObject)author;
author = (Resource)eResolveProxy(oldAuthor);
if (author != oldAuthor) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.GOAL__AUTHOR, oldAuthor, author));
}
}
return author;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Resource basicGetAuthor() {
return author;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setAuthor(Resource newAuthor) {
Resource oldAuthor = author;
author = newAuthor;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.GOAL__AUTHOR, oldAuthor, author));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CodeableConcept getPriority() {
if (priority != null && priority.eIsProxy()) {
InternalEObject oldPriority = (InternalEObject)priority;
priority = (CodeableConcept)eResolveProxy(oldPriority);
if (priority != oldPriority) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, FhirResourcePackage.GOAL__PRIORITY, oldPriority, priority));
}
}
return priority;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CodeableConcept basicGetPriority() {
return priority;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setPriority(CodeableConcept newPriority) {
CodeableConcept oldPriority = priority;
priority = newPriority;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirResourcePackage.GOAL__PRIORITY, oldPriority, priority));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Resource> getAddresses() {
if (addresses == null) {
addresses = new EObjectResolvingEList<Resource>(Resource.class, this, FhirResourcePackage.GOAL__ADDRESSES);
}
return addresses;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Annotation> getNotes() {
if (notes == null) {
notes = new EObjectResolvingEList<Annotation>(Annotation.class, this, FhirResourcePackage.GOAL__NOTE);
}
return notes;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<GoalOutcome> getOutcomes() {
if (outcomes == null) {
outcomes = new EObjectContainmentEList<GoalOutcome>(GoalOutcome.class, this, FhirResourcePackage.GOAL__OUTCOME);
}
return outcomes;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case FhirResourcePackage.GOAL__OUTCOME:
return ((InternalEList<?>)getOutcomes()).basicRemove(otherEnd, 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 FhirResourcePackage.GOAL__IDENTIFIER:
return getIdentifiers();
case FhirResourcePackage.GOAL__SUBJECT:
if (resolve) return getSubject();
return basicGetSubject();
case FhirResourcePackage.GOAL__STARTX:
if (resolve) return getStartx();
return basicGetStartx();
case FhirResourcePackage.GOAL__TARGETX:
if (resolve) return getTargetx();
return basicGetTargetx();
case FhirResourcePackage.GOAL__CATEGORY:
return getCategories();
case FhirResourcePackage.GOAL__DESCRIPTION:
if (resolve) return getDescription();
return basicGetDescription();
case FhirResourcePackage.GOAL__STATUS:
if (resolve) return getStatus();
return basicGetStatus();
case FhirResourcePackage.GOAL__STATUS_DATE:
if (resolve) return getStatusDate();
return basicGetStatusDate();
case FhirResourcePackage.GOAL__STATUS_REASON:
if (resolve) return getStatusReason();
return basicGetStatusReason();
case FhirResourcePackage.GOAL__AUTHOR:
if (resolve) return getAuthor();
return basicGetAuthor();
case FhirResourcePackage.GOAL__PRIORITY:
if (resolve) return getPriority();
return basicGetPriority();
case FhirResourcePackage.GOAL__ADDRESSES:
return getAddresses();
case FhirResourcePackage.GOAL__NOTE:
return getNotes();
case FhirResourcePackage.GOAL__OUTCOME:
return getOutcomes();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case FhirResourcePackage.GOAL__IDENTIFIER:
getIdentifiers().clear();
getIdentifiers().addAll((Collection<? extends Identifier>)newValue);
return;
case FhirResourcePackage.GOAL__SUBJECT:
setSubject((Resource)newValue);
return;
case FhirResourcePackage.GOAL__STARTX:
setStartx((DataType)newValue);
return;
case FhirResourcePackage.GOAL__TARGETX:
setTargetx((DataType)newValue);
return;
case FhirResourcePackage.GOAL__CATEGORY:
getCategories().clear();
getCategories().addAll((Collection<? extends CodeableConcept>)newValue);
return;
case FhirResourcePackage.GOAL__DESCRIPTION:
setDescription((org.eclipse.mdht.uml.fhir.core.datatype.String)newValue);
return;
case FhirResourcePackage.GOAL__STATUS:
setStatus((Code)newValue);
return;
case FhirResourcePackage.GOAL__STATUS_DATE:
setStatusDate((Date)newValue);
return;
case FhirResourcePackage.GOAL__STATUS_REASON:
setStatusReason((CodeableConcept)newValue);
return;
case FhirResourcePackage.GOAL__AUTHOR:
setAuthor((Resource)newValue);
return;
case FhirResourcePackage.GOAL__PRIORITY:
setPriority((CodeableConcept)newValue);
return;
case FhirResourcePackage.GOAL__ADDRESSES:
getAddresses().clear();
getAddresses().addAll((Collection<? extends Resource>)newValue);
return;
case FhirResourcePackage.GOAL__NOTE:
getNotes().clear();
getNotes().addAll((Collection<? extends Annotation>)newValue);
return;
case FhirResourcePackage.GOAL__OUTCOME:
getOutcomes().clear();
getOutcomes().addAll((Collection<? extends GoalOutcome>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FhirResourcePackage.GOAL__IDENTIFIER:
getIdentifiers().clear();
return;
case FhirResourcePackage.GOAL__SUBJECT:
setSubject((Resource)null);
return;
case FhirResourcePackage.GOAL__STARTX:
setStartx((DataType)null);
return;
case FhirResourcePackage.GOAL__TARGETX:
setTargetx((DataType)null);
return;
case FhirResourcePackage.GOAL__CATEGORY:
getCategories().clear();
return;
case FhirResourcePackage.GOAL__DESCRIPTION:
setDescription((org.eclipse.mdht.uml.fhir.core.datatype.String)null);
return;
case FhirResourcePackage.GOAL__STATUS:
setStatus((Code)null);
return;
case FhirResourcePackage.GOAL__STATUS_DATE:
setStatusDate((Date)null);
return;
case FhirResourcePackage.GOAL__STATUS_REASON:
setStatusReason((CodeableConcept)null);
return;
case FhirResourcePackage.GOAL__AUTHOR:
setAuthor((Resource)null);
return;
case FhirResourcePackage.GOAL__PRIORITY:
setPriority((CodeableConcept)null);
return;
case FhirResourcePackage.GOAL__ADDRESSES:
getAddresses().clear();
return;
case FhirResourcePackage.GOAL__NOTE:
getNotes().clear();
return;
case FhirResourcePackage.GOAL__OUTCOME:
getOutcomes().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FhirResourcePackage.GOAL__IDENTIFIER:
return identifiers != null && !identifiers.isEmpty();
case FhirResourcePackage.GOAL__SUBJECT:
return subject != null;
case FhirResourcePackage.GOAL__STARTX:
return startx != null;
case FhirResourcePackage.GOAL__TARGETX:
return targetx != null;
case FhirResourcePackage.GOAL__CATEGORY:
return categories != null && !categories.isEmpty();
case FhirResourcePackage.GOAL__DESCRIPTION:
return description != null;
case FhirResourcePackage.GOAL__STATUS:
return status != null;
case FhirResourcePackage.GOAL__STATUS_DATE:
return statusDate != null;
case FhirResourcePackage.GOAL__STATUS_REASON:
return statusReason != null;
case FhirResourcePackage.GOAL__AUTHOR:
return author != null;
case FhirResourcePackage.GOAL__PRIORITY:
return priority != null;
case FhirResourcePackage.GOAL__ADDRESSES:
return addresses != null && !addresses.isEmpty();
case FhirResourcePackage.GOAL__NOTE:
return notes != null && !notes.isEmpty();
case FhirResourcePackage.GOAL__OUTCOME:
return outcomes != null && !outcomes.isEmpty();
}
return super.eIsSet(featureID);
}
} //GoalImpl