blob: d409cc68760b2861ec93a53e641855c8a224c0b0 [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.Canonical;
import org.hl7.fhir.CodeableConcept;
import org.hl7.fhir.ContactDetail;
import org.hl7.fhir.DateTime;
import org.hl7.fhir.ExampleScenario;
import org.hl7.fhir.ExampleScenarioActor;
import org.hl7.fhir.ExampleScenarioInstance;
import org.hl7.fhir.ExampleScenarioProcess;
import org.hl7.fhir.FhirPackage;
import org.hl7.fhir.Identifier;
import org.hl7.fhir.Markdown;
import org.hl7.fhir.PublicationStatus;
import org.hl7.fhir.Uri;
import org.hl7.fhir.UsageContext;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Example Scenario</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getUrl <em>Url</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getIdentifier <em>Identifier</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getVersion <em>Version</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getName <em>Name</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getStatus <em>Status</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getExperimental <em>Experimental</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getDate <em>Date</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getPublisher <em>Publisher</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getContact <em>Contact</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getUseContext <em>Use Context</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getJurisdiction <em>Jurisdiction</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getCopyright <em>Copyright</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getPurpose <em>Purpose</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getActor <em>Actor</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getInstance <em>Instance</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getProcess <em>Process</em>}</li>
* <li>{@link org.hl7.fhir.impl.ExampleScenarioImpl#getWorkflow <em>Workflow</em>}</li>
* </ul>
*
* @generated
*/
public class ExampleScenarioImpl extends DomainResourceImpl implements ExampleScenario {
/**
* The cached value of the '{@link #getUrl() <em>Url</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getUrl()
* @generated
* @ordered
*/
protected Uri url;
/**
* 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 #getVersion() <em>Version</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getVersion()
* @generated
* @ordered
*/
protected org.hl7.fhir.String version;
/**
* The cached value of the '{@link #getName() <em>Name</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected org.hl7.fhir.String name;
/**
* The cached value of the '{@link #getStatus() <em>Status</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getStatus()
* @generated
* @ordered
*/
protected PublicationStatus status;
/**
* The cached value of the '{@link #getExperimental() <em>Experimental</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getExperimental()
* @generated
* @ordered
*/
protected org.hl7.fhir.Boolean experimental;
/**
* The cached value of the '{@link #getDate() <em>Date</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDate()
* @generated
* @ordered
*/
protected DateTime date;
/**
* The cached value of the '{@link #getPublisher() <em>Publisher</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPublisher()
* @generated
* @ordered
*/
protected org.hl7.fhir.String publisher;
/**
* The cached value of the '{@link #getContact() <em>Contact</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getContact()
* @generated
* @ordered
*/
protected EList<ContactDetail> contact;
/**
* The cached value of the '{@link #getUseContext() <em>Use Context</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getUseContext()
* @generated
* @ordered
*/
protected EList<UsageContext> useContext;
/**
* The cached value of the '{@link #getJurisdiction() <em>Jurisdiction</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getJurisdiction()
* @generated
* @ordered
*/
protected EList<CodeableConcept> jurisdiction;
/**
* The cached value of the '{@link #getCopyright() <em>Copyright</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCopyright()
* @generated
* @ordered
*/
protected Markdown copyright;
/**
* The cached value of the '{@link #getPurpose() <em>Purpose</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPurpose()
* @generated
* @ordered
*/
protected Markdown purpose;
/**
* The cached value of the '{@link #getActor() <em>Actor</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getActor()
* @generated
* @ordered
*/
protected EList<ExampleScenarioActor> actor;
/**
* The cached value of the '{@link #getInstance() <em>Instance</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInstance()
* @generated
* @ordered
*/
protected EList<ExampleScenarioInstance> instance;
/**
* The cached value of the '{@link #getProcess() <em>Process</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getProcess()
* @generated
* @ordered
*/
protected EList<ExampleScenarioProcess> process;
/**
* The cached value of the '{@link #getWorkflow() <em>Workflow</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getWorkflow()
* @generated
* @ordered
*/
protected EList<Canonical> workflow;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ExampleScenarioImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FhirPackage.eINSTANCE.getExampleScenario();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Uri getUrl() {
return url;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetUrl(Uri newUrl, NotificationChain msgs) {
Uri oldUrl = url;
url = newUrl;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__URL, oldUrl, newUrl);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setUrl(Uri newUrl) {
if (newUrl != url) {
NotificationChain msgs = null;
if (url != null)
msgs = ((InternalEObject)url).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__URL, null, msgs);
if (newUrl != null)
msgs = ((InternalEObject)newUrl).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__URL, null, msgs);
msgs = basicSetUrl(newUrl, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__URL, newUrl, newUrl));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Identifier> getIdentifier() {
if (identifier == null) {
identifier = new EObjectContainmentEList<Identifier>(Identifier.class, this, FhirPackage.EXAMPLE_SCENARIO__IDENTIFIER);
}
return identifier;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.hl7.fhir.String getVersion() {
return version;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetVersion(org.hl7.fhir.String newVersion, NotificationChain msgs) {
org.hl7.fhir.String oldVersion = version;
version = newVersion;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__VERSION, oldVersion, newVersion);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setVersion(org.hl7.fhir.String newVersion) {
if (newVersion != version) {
NotificationChain msgs = null;
if (version != null)
msgs = ((InternalEObject)version).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__VERSION, null, msgs);
if (newVersion != null)
msgs = ((InternalEObject)newVersion).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__VERSION, null, msgs);
msgs = basicSetVersion(newVersion, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__VERSION, newVersion, newVersion));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.hl7.fhir.String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetName(org.hl7.fhir.String newName, NotificationChain msgs) {
org.hl7.fhir.String oldName = name;
name = newName;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__NAME, oldName, newName);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setName(org.hl7.fhir.String newName) {
if (newName != name) {
NotificationChain msgs = null;
if (name != null)
msgs = ((InternalEObject)name).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__NAME, null, msgs);
if (newName != null)
msgs = ((InternalEObject)newName).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__NAME, null, msgs);
msgs = basicSetName(newName, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__NAME, newName, newName));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PublicationStatus getStatus() {
return status;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetStatus(PublicationStatus newStatus, NotificationChain msgs) {
PublicationStatus oldStatus = status;
status = newStatus;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__STATUS, oldStatus, newStatus);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setStatus(PublicationStatus newStatus) {
if (newStatus != status) {
NotificationChain msgs = null;
if (status != null)
msgs = ((InternalEObject)status).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__STATUS, null, msgs);
if (newStatus != null)
msgs = ((InternalEObject)newStatus).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__STATUS, null, msgs);
msgs = basicSetStatus(newStatus, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__STATUS, newStatus, newStatus));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.hl7.fhir.Boolean getExperimental() {
return experimental;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetExperimental(org.hl7.fhir.Boolean newExperimental, NotificationChain msgs) {
org.hl7.fhir.Boolean oldExperimental = experimental;
experimental = newExperimental;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__EXPERIMENTAL, oldExperimental, newExperimental);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setExperimental(org.hl7.fhir.Boolean newExperimental) {
if (newExperimental != experimental) {
NotificationChain msgs = null;
if (experimental != null)
msgs = ((InternalEObject)experimental).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__EXPERIMENTAL, null, msgs);
if (newExperimental != null)
msgs = ((InternalEObject)newExperimental).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__EXPERIMENTAL, null, msgs);
msgs = basicSetExperimental(newExperimental, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__EXPERIMENTAL, newExperimental, newExperimental));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DateTime getDate() {
return date;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetDate(DateTime newDate, NotificationChain msgs) {
DateTime oldDate = date;
date = newDate;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__DATE, oldDate, newDate);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDate(DateTime newDate) {
if (newDate != date) {
NotificationChain msgs = null;
if (date != null)
msgs = ((InternalEObject)date).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__DATE, null, msgs);
if (newDate != null)
msgs = ((InternalEObject)newDate).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__DATE, null, msgs);
msgs = basicSetDate(newDate, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__DATE, newDate, newDate));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.hl7.fhir.String getPublisher() {
return publisher;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetPublisher(org.hl7.fhir.String newPublisher, NotificationChain msgs) {
org.hl7.fhir.String oldPublisher = publisher;
publisher = newPublisher;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__PUBLISHER, oldPublisher, newPublisher);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setPublisher(org.hl7.fhir.String newPublisher) {
if (newPublisher != publisher) {
NotificationChain msgs = null;
if (publisher != null)
msgs = ((InternalEObject)publisher).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__PUBLISHER, null, msgs);
if (newPublisher != null)
msgs = ((InternalEObject)newPublisher).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__PUBLISHER, null, msgs);
msgs = basicSetPublisher(newPublisher, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__PUBLISHER, newPublisher, newPublisher));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<ContactDetail> getContact() {
if (contact == null) {
contact = new EObjectContainmentEList<ContactDetail>(ContactDetail.class, this, FhirPackage.EXAMPLE_SCENARIO__CONTACT);
}
return contact;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<UsageContext> getUseContext() {
if (useContext == null) {
useContext = new EObjectContainmentEList<UsageContext>(UsageContext.class, this, FhirPackage.EXAMPLE_SCENARIO__USE_CONTEXT);
}
return useContext;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<CodeableConcept> getJurisdiction() {
if (jurisdiction == null) {
jurisdiction = new EObjectContainmentEList<CodeableConcept>(CodeableConcept.class, this, FhirPackage.EXAMPLE_SCENARIO__JURISDICTION);
}
return jurisdiction;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Markdown getCopyright() {
return copyright;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetCopyright(Markdown newCopyright, NotificationChain msgs) {
Markdown oldCopyright = copyright;
copyright = newCopyright;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__COPYRIGHT, oldCopyright, newCopyright);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCopyright(Markdown newCopyright) {
if (newCopyright != copyright) {
NotificationChain msgs = null;
if (copyright != null)
msgs = ((InternalEObject)copyright).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__COPYRIGHT, null, msgs);
if (newCopyright != null)
msgs = ((InternalEObject)newCopyright).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__COPYRIGHT, null, msgs);
msgs = basicSetCopyright(newCopyright, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__COPYRIGHT, newCopyright, newCopyright));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Markdown getPurpose() {
return purpose;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetPurpose(Markdown newPurpose, NotificationChain msgs) {
Markdown oldPurpose = purpose;
purpose = newPurpose;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__PURPOSE, oldPurpose, newPurpose);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setPurpose(Markdown newPurpose) {
if (newPurpose != purpose) {
NotificationChain msgs = null;
if (purpose != null)
msgs = ((InternalEObject)purpose).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__PURPOSE, null, msgs);
if (newPurpose != null)
msgs = ((InternalEObject)newPurpose).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.EXAMPLE_SCENARIO__PURPOSE, null, msgs);
msgs = basicSetPurpose(newPurpose, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.EXAMPLE_SCENARIO__PURPOSE, newPurpose, newPurpose));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<ExampleScenarioActor> getActor() {
if (actor == null) {
actor = new EObjectContainmentEList<ExampleScenarioActor>(ExampleScenarioActor.class, this, FhirPackage.EXAMPLE_SCENARIO__ACTOR);
}
return actor;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<ExampleScenarioInstance> getInstance() {
if (instance == null) {
instance = new EObjectContainmentEList<ExampleScenarioInstance>(ExampleScenarioInstance.class, this, FhirPackage.EXAMPLE_SCENARIO__INSTANCE);
}
return instance;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<ExampleScenarioProcess> getProcess() {
if (process == null) {
process = new EObjectContainmentEList<ExampleScenarioProcess>(ExampleScenarioProcess.class, this, FhirPackage.EXAMPLE_SCENARIO__PROCESS);
}
return process;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Canonical> getWorkflow() {
if (workflow == null) {
workflow = new EObjectContainmentEList<Canonical>(Canonical.class, this, FhirPackage.EXAMPLE_SCENARIO__WORKFLOW);
}
return workflow;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case FhirPackage.EXAMPLE_SCENARIO__URL:
return basicSetUrl(null, msgs);
case FhirPackage.EXAMPLE_SCENARIO__IDENTIFIER:
return ((InternalEList<?>)getIdentifier()).basicRemove(otherEnd, msgs);
case FhirPackage.EXAMPLE_SCENARIO__VERSION:
return basicSetVersion(null, msgs);
case FhirPackage.EXAMPLE_SCENARIO__NAME:
return basicSetName(null, msgs);
case FhirPackage.EXAMPLE_SCENARIO__STATUS:
return basicSetStatus(null, msgs);
case FhirPackage.EXAMPLE_SCENARIO__EXPERIMENTAL:
return basicSetExperimental(null, msgs);
case FhirPackage.EXAMPLE_SCENARIO__DATE:
return basicSetDate(null, msgs);
case FhirPackage.EXAMPLE_SCENARIO__PUBLISHER:
return basicSetPublisher(null, msgs);
case FhirPackage.EXAMPLE_SCENARIO__CONTACT:
return ((InternalEList<?>)getContact()).basicRemove(otherEnd, msgs);
case FhirPackage.EXAMPLE_SCENARIO__USE_CONTEXT:
return ((InternalEList<?>)getUseContext()).basicRemove(otherEnd, msgs);
case FhirPackage.EXAMPLE_SCENARIO__JURISDICTION:
return ((InternalEList<?>)getJurisdiction()).basicRemove(otherEnd, msgs);
case FhirPackage.EXAMPLE_SCENARIO__COPYRIGHT:
return basicSetCopyright(null, msgs);
case FhirPackage.EXAMPLE_SCENARIO__PURPOSE:
return basicSetPurpose(null, msgs);
case FhirPackage.EXAMPLE_SCENARIO__ACTOR:
return ((InternalEList<?>)getActor()).basicRemove(otherEnd, msgs);
case FhirPackage.EXAMPLE_SCENARIO__INSTANCE:
return ((InternalEList<?>)getInstance()).basicRemove(otherEnd, msgs);
case FhirPackage.EXAMPLE_SCENARIO__PROCESS:
return ((InternalEList<?>)getProcess()).basicRemove(otherEnd, msgs);
case FhirPackage.EXAMPLE_SCENARIO__WORKFLOW:
return ((InternalEList<?>)getWorkflow()).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 FhirPackage.EXAMPLE_SCENARIO__URL:
return getUrl();
case FhirPackage.EXAMPLE_SCENARIO__IDENTIFIER:
return getIdentifier();
case FhirPackage.EXAMPLE_SCENARIO__VERSION:
return getVersion();
case FhirPackage.EXAMPLE_SCENARIO__NAME:
return getName();
case FhirPackage.EXAMPLE_SCENARIO__STATUS:
return getStatus();
case FhirPackage.EXAMPLE_SCENARIO__EXPERIMENTAL:
return getExperimental();
case FhirPackage.EXAMPLE_SCENARIO__DATE:
return getDate();
case FhirPackage.EXAMPLE_SCENARIO__PUBLISHER:
return getPublisher();
case FhirPackage.EXAMPLE_SCENARIO__CONTACT:
return getContact();
case FhirPackage.EXAMPLE_SCENARIO__USE_CONTEXT:
return getUseContext();
case FhirPackage.EXAMPLE_SCENARIO__JURISDICTION:
return getJurisdiction();
case FhirPackage.EXAMPLE_SCENARIO__COPYRIGHT:
return getCopyright();
case FhirPackage.EXAMPLE_SCENARIO__PURPOSE:
return getPurpose();
case FhirPackage.EXAMPLE_SCENARIO__ACTOR:
return getActor();
case FhirPackage.EXAMPLE_SCENARIO__INSTANCE:
return getInstance();
case FhirPackage.EXAMPLE_SCENARIO__PROCESS:
return getProcess();
case FhirPackage.EXAMPLE_SCENARIO__WORKFLOW:
return getWorkflow();
}
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.EXAMPLE_SCENARIO__URL:
setUrl((Uri)newValue);
return;
case FhirPackage.EXAMPLE_SCENARIO__IDENTIFIER:
getIdentifier().clear();
getIdentifier().addAll((Collection<? extends Identifier>)newValue);
return;
case FhirPackage.EXAMPLE_SCENARIO__VERSION:
setVersion((org.hl7.fhir.String)newValue);
return;
case FhirPackage.EXAMPLE_SCENARIO__NAME:
setName((org.hl7.fhir.String)newValue);
return;
case FhirPackage.EXAMPLE_SCENARIO__STATUS:
setStatus((PublicationStatus)newValue);
return;
case FhirPackage.EXAMPLE_SCENARIO__EXPERIMENTAL:
setExperimental((org.hl7.fhir.Boolean)newValue);
return;
case FhirPackage.EXAMPLE_SCENARIO__DATE:
setDate((DateTime)newValue);
return;
case FhirPackage.EXAMPLE_SCENARIO__PUBLISHER:
setPublisher((org.hl7.fhir.String)newValue);
return;
case FhirPackage.EXAMPLE_SCENARIO__CONTACT:
getContact().clear();
getContact().addAll((Collection<? extends ContactDetail>)newValue);
return;
case FhirPackage.EXAMPLE_SCENARIO__USE_CONTEXT:
getUseContext().clear();
getUseContext().addAll((Collection<? extends UsageContext>)newValue);
return;
case FhirPackage.EXAMPLE_SCENARIO__JURISDICTION:
getJurisdiction().clear();
getJurisdiction().addAll((Collection<? extends CodeableConcept>)newValue);
return;
case FhirPackage.EXAMPLE_SCENARIO__COPYRIGHT:
setCopyright((Markdown)newValue);
return;
case FhirPackage.EXAMPLE_SCENARIO__PURPOSE:
setPurpose((Markdown)newValue);
return;
case FhirPackage.EXAMPLE_SCENARIO__ACTOR:
getActor().clear();
getActor().addAll((Collection<? extends ExampleScenarioActor>)newValue);
return;
case FhirPackage.EXAMPLE_SCENARIO__INSTANCE:
getInstance().clear();
getInstance().addAll((Collection<? extends ExampleScenarioInstance>)newValue);
return;
case FhirPackage.EXAMPLE_SCENARIO__PROCESS:
getProcess().clear();
getProcess().addAll((Collection<? extends ExampleScenarioProcess>)newValue);
return;
case FhirPackage.EXAMPLE_SCENARIO__WORKFLOW:
getWorkflow().clear();
getWorkflow().addAll((Collection<? extends Canonical>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FhirPackage.EXAMPLE_SCENARIO__URL:
setUrl((Uri)null);
return;
case FhirPackage.EXAMPLE_SCENARIO__IDENTIFIER:
getIdentifier().clear();
return;
case FhirPackage.EXAMPLE_SCENARIO__VERSION:
setVersion((org.hl7.fhir.String)null);
return;
case FhirPackage.EXAMPLE_SCENARIO__NAME:
setName((org.hl7.fhir.String)null);
return;
case FhirPackage.EXAMPLE_SCENARIO__STATUS:
setStatus((PublicationStatus)null);
return;
case FhirPackage.EXAMPLE_SCENARIO__EXPERIMENTAL:
setExperimental((org.hl7.fhir.Boolean)null);
return;
case FhirPackage.EXAMPLE_SCENARIO__DATE:
setDate((DateTime)null);
return;
case FhirPackage.EXAMPLE_SCENARIO__PUBLISHER:
setPublisher((org.hl7.fhir.String)null);
return;
case FhirPackage.EXAMPLE_SCENARIO__CONTACT:
getContact().clear();
return;
case FhirPackage.EXAMPLE_SCENARIO__USE_CONTEXT:
getUseContext().clear();
return;
case FhirPackage.EXAMPLE_SCENARIO__JURISDICTION:
getJurisdiction().clear();
return;
case FhirPackage.EXAMPLE_SCENARIO__COPYRIGHT:
setCopyright((Markdown)null);
return;
case FhirPackage.EXAMPLE_SCENARIO__PURPOSE:
setPurpose((Markdown)null);
return;
case FhirPackage.EXAMPLE_SCENARIO__ACTOR:
getActor().clear();
return;
case FhirPackage.EXAMPLE_SCENARIO__INSTANCE:
getInstance().clear();
return;
case FhirPackage.EXAMPLE_SCENARIO__PROCESS:
getProcess().clear();
return;
case FhirPackage.EXAMPLE_SCENARIO__WORKFLOW:
getWorkflow().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FhirPackage.EXAMPLE_SCENARIO__URL:
return url != null;
case FhirPackage.EXAMPLE_SCENARIO__IDENTIFIER:
return identifier != null && !identifier.isEmpty();
case FhirPackage.EXAMPLE_SCENARIO__VERSION:
return version != null;
case FhirPackage.EXAMPLE_SCENARIO__NAME:
return name != null;
case FhirPackage.EXAMPLE_SCENARIO__STATUS:
return status != null;
case FhirPackage.EXAMPLE_SCENARIO__EXPERIMENTAL:
return experimental != null;
case FhirPackage.EXAMPLE_SCENARIO__DATE:
return date != null;
case FhirPackage.EXAMPLE_SCENARIO__PUBLISHER:
return publisher != null;
case FhirPackage.EXAMPLE_SCENARIO__CONTACT:
return contact != null && !contact.isEmpty();
case FhirPackage.EXAMPLE_SCENARIO__USE_CONTEXT:
return useContext != null && !useContext.isEmpty();
case FhirPackage.EXAMPLE_SCENARIO__JURISDICTION:
return jurisdiction != null && !jurisdiction.isEmpty();
case FhirPackage.EXAMPLE_SCENARIO__COPYRIGHT:
return copyright != null;
case FhirPackage.EXAMPLE_SCENARIO__PURPOSE:
return purpose != null;
case FhirPackage.EXAMPLE_SCENARIO__ACTOR:
return actor != null && !actor.isEmpty();
case FhirPackage.EXAMPLE_SCENARIO__INSTANCE:
return instance != null && !instance.isEmpty();
case FhirPackage.EXAMPLE_SCENARIO__PROCESS:
return process != null && !process.isEmpty();
case FhirPackage.EXAMPLE_SCENARIO__WORKFLOW:
return workflow != null && !workflow.isEmpty();
}
return super.eIsSet(featureID);
}
} //ExampleScenarioImpl