blob: 41b4828bbca3d6389135e1a6876d54d4c4ac4e26 [file] [log] [blame]
/**
*/
package org.hl7.fhir.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.InternalEList;
import org.hl7.fhir.Code;
import org.hl7.fhir.Coding;
import org.hl7.fhir.DateTime;
import org.hl7.fhir.EnrollmentResponse;
import org.hl7.fhir.FhirPackage;
import org.hl7.fhir.Identifier;
import org.hl7.fhir.Reference;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Enrollment Response</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.hl7.fhir.impl.EnrollmentResponseImpl#getIdentifier <em>Identifier</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentResponseImpl#getRequest <em>Request</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentResponseImpl#getOutcome <em>Outcome</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentResponseImpl#getDisposition <em>Disposition</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentResponseImpl#getRuleset <em>Ruleset</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentResponseImpl#getOriginalRuleset <em>Original Ruleset</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentResponseImpl#getCreated <em>Created</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentResponseImpl#getOrganization <em>Organization</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentResponseImpl#getRequestProvider <em>Request Provider</em>}</li>
* <li>{@link org.hl7.fhir.impl.EnrollmentResponseImpl#getRequestOrganization <em>Request Organization</em>}</li>
* </ul>
*
* @generated
*/
public class EnrollmentResponseImpl extends DomainResourceImpl implements EnrollmentResponse {
/**
* The cached value of the '{@link #getIdentifier() <em>Identifier</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getIdentifier()
* @generated
* @ordered
*/
protected EList<Identifier> identifier;
/**
* The cached value of the '{@link #getRequest() <em>Request</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRequest()
* @generated
* @ordered
*/
protected Reference request;
/**
* The cached value of the '{@link #getOutcome() <em>Outcome</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOutcome()
* @generated
* @ordered
*/
protected Code outcome;
/**
* The cached value of the '{@link #getDisposition() <em>Disposition</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDisposition()
* @generated
* @ordered
*/
protected org.hl7.fhir.String disposition;
/**
* The cached value of the '{@link #getRuleset() <em>Ruleset</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRuleset()
* @generated
* @ordered
*/
protected Coding ruleset;
/**
* The cached value of the '{@link #getOriginalRuleset() <em>Original Ruleset</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOriginalRuleset()
* @generated
* @ordered
*/
protected Coding originalRuleset;
/**
* The cached value of the '{@link #getCreated() <em>Created</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCreated()
* @generated
* @ordered
*/
protected DateTime created;
/**
* The cached value of the '{@link #getOrganization() <em>Organization</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getOrganization()
* @generated
* @ordered
*/
protected Reference organization;
/**
* The cached value of the '{@link #getRequestProvider() <em>Request Provider</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRequestProvider()
* @generated
* @ordered
*/
protected Reference requestProvider;
/**
* The cached value of the '{@link #getRequestOrganization() <em>Request Organization</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRequestOrganization()
* @generated
* @ordered
*/
protected Reference requestOrganization;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EnrollmentResponseImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FhirPackage.eINSTANCE.getEnrollmentResponse();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Identifier> getIdentifier() {
if (identifier == null) {
identifier = new EObjectContainmentEList<Identifier>(Identifier.class, this, FhirPackage.ENROLLMENT_RESPONSE__IDENTIFIER);
}
return identifier;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Reference getRequest() {
return request;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetRequest(Reference newRequest, NotificationChain msgs) {
Reference oldRequest = request;
request = newRequest;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__REQUEST, oldRequest, newRequest);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRequest(Reference newRequest) {
if (newRequest != request) {
NotificationChain msgs = null;
if (request != null)
msgs = ((InternalEObject)request).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__REQUEST, null, msgs);
if (newRequest != null)
msgs = ((InternalEObject)newRequest).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__REQUEST, null, msgs);
msgs = basicSetRequest(newRequest, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__REQUEST, newRequest, newRequest));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Code getOutcome() {
return outcome;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetOutcome(Code newOutcome, NotificationChain msgs) {
Code oldOutcome = outcome;
outcome = newOutcome;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__OUTCOME, oldOutcome, newOutcome);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOutcome(Code newOutcome) {
if (newOutcome != outcome) {
NotificationChain msgs = null;
if (outcome != null)
msgs = ((InternalEObject)outcome).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__OUTCOME, null, msgs);
if (newOutcome != null)
msgs = ((InternalEObject)newOutcome).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__OUTCOME, null, msgs);
msgs = basicSetOutcome(newOutcome, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__OUTCOME, newOutcome, newOutcome));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.hl7.fhir.String getDisposition() {
return disposition;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetDisposition(org.hl7.fhir.String newDisposition, NotificationChain msgs) {
org.hl7.fhir.String oldDisposition = disposition;
disposition = newDisposition;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__DISPOSITION, oldDisposition, newDisposition);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDisposition(org.hl7.fhir.String newDisposition) {
if (newDisposition != disposition) {
NotificationChain msgs = null;
if (disposition != null)
msgs = ((InternalEObject)disposition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__DISPOSITION, null, msgs);
if (newDisposition != null)
msgs = ((InternalEObject)newDisposition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__DISPOSITION, null, msgs);
msgs = basicSetDisposition(newDisposition, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__DISPOSITION, newDisposition, newDisposition));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Coding getRuleset() {
return ruleset;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetRuleset(Coding newRuleset, NotificationChain msgs) {
Coding oldRuleset = ruleset;
ruleset = newRuleset;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__RULESET, oldRuleset, newRuleset);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRuleset(Coding newRuleset) {
if (newRuleset != ruleset) {
NotificationChain msgs = null;
if (ruleset != null)
msgs = ((InternalEObject)ruleset).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__RULESET, null, msgs);
if (newRuleset != null)
msgs = ((InternalEObject)newRuleset).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__RULESET, null, msgs);
msgs = basicSetRuleset(newRuleset, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__RULESET, newRuleset, newRuleset));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Coding getOriginalRuleset() {
return originalRuleset;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetOriginalRuleset(Coding newOriginalRuleset, NotificationChain msgs) {
Coding oldOriginalRuleset = originalRuleset;
originalRuleset = newOriginalRuleset;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__ORIGINAL_RULESET, oldOriginalRuleset, newOriginalRuleset);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOriginalRuleset(Coding newOriginalRuleset) {
if (newOriginalRuleset != originalRuleset) {
NotificationChain msgs = null;
if (originalRuleset != null)
msgs = ((InternalEObject)originalRuleset).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__ORIGINAL_RULESET, null, msgs);
if (newOriginalRuleset != null)
msgs = ((InternalEObject)newOriginalRuleset).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__ORIGINAL_RULESET, null, msgs);
msgs = basicSetOriginalRuleset(newOriginalRuleset, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__ORIGINAL_RULESET, newOriginalRuleset, newOriginalRuleset));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DateTime getCreated() {
return created;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetCreated(DateTime newCreated, NotificationChain msgs) {
DateTime oldCreated = created;
created = newCreated;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__CREATED, oldCreated, newCreated);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCreated(DateTime newCreated) {
if (newCreated != created) {
NotificationChain msgs = null;
if (created != null)
msgs = ((InternalEObject)created).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__CREATED, null, msgs);
if (newCreated != null)
msgs = ((InternalEObject)newCreated).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__CREATED, null, msgs);
msgs = basicSetCreated(newCreated, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__CREATED, newCreated, newCreated));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Reference getOrganization() {
return organization;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetOrganization(Reference newOrganization, NotificationChain msgs) {
Reference oldOrganization = organization;
organization = newOrganization;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__ORGANIZATION, oldOrganization, newOrganization);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOrganization(Reference newOrganization) {
if (newOrganization != organization) {
NotificationChain msgs = null;
if (organization != null)
msgs = ((InternalEObject)organization).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__ORGANIZATION, null, msgs);
if (newOrganization != null)
msgs = ((InternalEObject)newOrganization).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__ORGANIZATION, null, msgs);
msgs = basicSetOrganization(newOrganization, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__ORGANIZATION, newOrganization, newOrganization));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Reference getRequestProvider() {
return requestProvider;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetRequestProvider(Reference newRequestProvider, NotificationChain msgs) {
Reference oldRequestProvider = requestProvider;
requestProvider = newRequestProvider;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__REQUEST_PROVIDER, oldRequestProvider, newRequestProvider);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRequestProvider(Reference newRequestProvider) {
if (newRequestProvider != requestProvider) {
NotificationChain msgs = null;
if (requestProvider != null)
msgs = ((InternalEObject)requestProvider).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__REQUEST_PROVIDER, null, msgs);
if (newRequestProvider != null)
msgs = ((InternalEObject)newRequestProvider).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__REQUEST_PROVIDER, null, msgs);
msgs = basicSetRequestProvider(newRequestProvider, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__REQUEST_PROVIDER, newRequestProvider, newRequestProvider));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Reference getRequestOrganization() {
return requestOrganization;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetRequestOrganization(Reference newRequestOrganization, NotificationChain msgs) {
Reference oldRequestOrganization = requestOrganization;
requestOrganization = newRequestOrganization;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__REQUEST_ORGANIZATION, oldRequestOrganization, newRequestOrganization);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRequestOrganization(Reference newRequestOrganization) {
if (newRequestOrganization != requestOrganization) {
NotificationChain msgs = null;
if (requestOrganization != null)
msgs = ((InternalEObject)requestOrganization).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__REQUEST_ORGANIZATION, null, msgs);
if (newRequestOrganization != null)
msgs = ((InternalEObject)newRequestOrganization).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.ENROLLMENT_RESPONSE__REQUEST_ORGANIZATION, null, msgs);
msgs = basicSetRequestOrganization(newRequestOrganization, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.ENROLLMENT_RESPONSE__REQUEST_ORGANIZATION, newRequestOrganization, newRequestOrganization));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case FhirPackage.ENROLLMENT_RESPONSE__IDENTIFIER:
return ((InternalEList<?>)getIdentifier()).basicRemove(otherEnd, msgs);
case FhirPackage.ENROLLMENT_RESPONSE__REQUEST:
return basicSetRequest(null, msgs);
case FhirPackage.ENROLLMENT_RESPONSE__OUTCOME:
return basicSetOutcome(null, msgs);
case FhirPackage.ENROLLMENT_RESPONSE__DISPOSITION:
return basicSetDisposition(null, msgs);
case FhirPackage.ENROLLMENT_RESPONSE__RULESET:
return basicSetRuleset(null, msgs);
case FhirPackage.ENROLLMENT_RESPONSE__ORIGINAL_RULESET:
return basicSetOriginalRuleset(null, msgs);
case FhirPackage.ENROLLMENT_RESPONSE__CREATED:
return basicSetCreated(null, msgs);
case FhirPackage.ENROLLMENT_RESPONSE__ORGANIZATION:
return basicSetOrganization(null, msgs);
case FhirPackage.ENROLLMENT_RESPONSE__REQUEST_PROVIDER:
return basicSetRequestProvider(null, msgs);
case FhirPackage.ENROLLMENT_RESPONSE__REQUEST_ORGANIZATION:
return basicSetRequestOrganization(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.ENROLLMENT_RESPONSE__IDENTIFIER:
return getIdentifier();
case FhirPackage.ENROLLMENT_RESPONSE__REQUEST:
return getRequest();
case FhirPackage.ENROLLMENT_RESPONSE__OUTCOME:
return getOutcome();
case FhirPackage.ENROLLMENT_RESPONSE__DISPOSITION:
return getDisposition();
case FhirPackage.ENROLLMENT_RESPONSE__RULESET:
return getRuleset();
case FhirPackage.ENROLLMENT_RESPONSE__ORIGINAL_RULESET:
return getOriginalRuleset();
case FhirPackage.ENROLLMENT_RESPONSE__CREATED:
return getCreated();
case FhirPackage.ENROLLMENT_RESPONSE__ORGANIZATION:
return getOrganization();
case FhirPackage.ENROLLMENT_RESPONSE__REQUEST_PROVIDER:
return getRequestProvider();
case FhirPackage.ENROLLMENT_RESPONSE__REQUEST_ORGANIZATION:
return getRequestOrganization();
}
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 FhirPackage.ENROLLMENT_RESPONSE__IDENTIFIER:
getIdentifier().clear();
getIdentifier().addAll((Collection<? extends Identifier>)newValue);
return;
case FhirPackage.ENROLLMENT_RESPONSE__REQUEST:
setRequest((Reference)newValue);
return;
case FhirPackage.ENROLLMENT_RESPONSE__OUTCOME:
setOutcome((Code)newValue);
return;
case FhirPackage.ENROLLMENT_RESPONSE__DISPOSITION:
setDisposition((org.hl7.fhir.String)newValue);
return;
case FhirPackage.ENROLLMENT_RESPONSE__RULESET:
setRuleset((Coding)newValue);
return;
case FhirPackage.ENROLLMENT_RESPONSE__ORIGINAL_RULESET:
setOriginalRuleset((Coding)newValue);
return;
case FhirPackage.ENROLLMENT_RESPONSE__CREATED:
setCreated((DateTime)newValue);
return;
case FhirPackage.ENROLLMENT_RESPONSE__ORGANIZATION:
setOrganization((Reference)newValue);
return;
case FhirPackage.ENROLLMENT_RESPONSE__REQUEST_PROVIDER:
setRequestProvider((Reference)newValue);
return;
case FhirPackage.ENROLLMENT_RESPONSE__REQUEST_ORGANIZATION:
setRequestOrganization((Reference)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FhirPackage.ENROLLMENT_RESPONSE__IDENTIFIER:
getIdentifier().clear();
return;
case FhirPackage.ENROLLMENT_RESPONSE__REQUEST:
setRequest((Reference)null);
return;
case FhirPackage.ENROLLMENT_RESPONSE__OUTCOME:
setOutcome((Code)null);
return;
case FhirPackage.ENROLLMENT_RESPONSE__DISPOSITION:
setDisposition((org.hl7.fhir.String)null);
return;
case FhirPackage.ENROLLMENT_RESPONSE__RULESET:
setRuleset((Coding)null);
return;
case FhirPackage.ENROLLMENT_RESPONSE__ORIGINAL_RULESET:
setOriginalRuleset((Coding)null);
return;
case FhirPackage.ENROLLMENT_RESPONSE__CREATED:
setCreated((DateTime)null);
return;
case FhirPackage.ENROLLMENT_RESPONSE__ORGANIZATION:
setOrganization((Reference)null);
return;
case FhirPackage.ENROLLMENT_RESPONSE__REQUEST_PROVIDER:
setRequestProvider((Reference)null);
return;
case FhirPackage.ENROLLMENT_RESPONSE__REQUEST_ORGANIZATION:
setRequestOrganization((Reference)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FhirPackage.ENROLLMENT_RESPONSE__IDENTIFIER:
return identifier != null && !identifier.isEmpty();
case FhirPackage.ENROLLMENT_RESPONSE__REQUEST:
return request != null;
case FhirPackage.ENROLLMENT_RESPONSE__OUTCOME:
return outcome != null;
case FhirPackage.ENROLLMENT_RESPONSE__DISPOSITION:
return disposition != null;
case FhirPackage.ENROLLMENT_RESPONSE__RULESET:
return ruleset != null;
case FhirPackage.ENROLLMENT_RESPONSE__ORIGINAL_RULESET:
return originalRuleset != null;
case FhirPackage.ENROLLMENT_RESPONSE__CREATED:
return created != null;
case FhirPackage.ENROLLMENT_RESPONSE__ORGANIZATION:
return organization != null;
case FhirPackage.ENROLLMENT_RESPONSE__REQUEST_PROVIDER:
return requestProvider != null;
case FhirPackage.ENROLLMENT_RESPONSE__REQUEST_ORGANIZATION:
return requestOrganization != null;
}
return super.eIsSet(featureID);
}
} //EnrollmentResponseImpl