blob: dfe99bb0072fbf7e96ae87e35dfcadd4936b125f [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.CodeableConcept;
import org.hl7.fhir.ConceptMap;
import org.hl7.fhir.ConceptMapContact;
import org.hl7.fhir.ConceptMapElement;
import org.hl7.fhir.DateTime;
import org.hl7.fhir.FhirPackage;
import org.hl7.fhir.Identifier;
import org.hl7.fhir.Reference;
import org.hl7.fhir.Uri;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Concept Map</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getUrl <em>Url</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getIdentifier <em>Identifier</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getVersion <em>Version</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getName <em>Name</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getStatus <em>Status</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getExperimental <em>Experimental</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getPublisher <em>Publisher</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getContact <em>Contact</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getDate <em>Date</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getDescription <em>Description</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getUseContext <em>Use Context</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getRequirements <em>Requirements</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getCopyright <em>Copyright</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getSourceUri <em>Source Uri</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getSourceReference <em>Source Reference</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getTargetUri <em>Target Uri</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getTargetReference <em>Target Reference</em>}</li>
* <li>{@link org.hl7.fhir.impl.ConceptMapImpl#getElement <em>Element</em>}</li>
* </ul>
*
* @generated
*/
public class ConceptMapImpl extends DomainResourceImpl implements ConceptMap {
/**
* 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.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getIdentifier()
* @generated
* @ordered
*/
protected 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 Code 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 #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<ConceptMapContact> contact;
/**
* 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 #getDescription() <em>Description</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected org.hl7.fhir.String description;
/**
* 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<CodeableConcept> useContext;
/**
* The cached value of the '{@link #getRequirements() <em>Requirements</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRequirements()
* @generated
* @ordered
*/
protected org.hl7.fhir.String requirements;
/**
* The cached value of the '{@link #getCopyright() <em>Copyright</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCopyright()
* @generated
* @ordered
*/
protected org.hl7.fhir.String copyright;
/**
* The cached value of the '{@link #getSourceUri() <em>Source Uri</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSourceUri()
* @generated
* @ordered
*/
protected Uri sourceUri;
/**
* The cached value of the '{@link #getSourceReference() <em>Source Reference</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSourceReference()
* @generated
* @ordered
*/
protected Reference sourceReference;
/**
* The cached value of the '{@link #getTargetUri() <em>Target Uri</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTargetUri()
* @generated
* @ordered
*/
protected Uri targetUri;
/**
* The cached value of the '{@link #getTargetReference() <em>Target Reference</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTargetReference()
* @generated
* @ordered
*/
protected Reference targetReference;
/**
* The cached value of the '{@link #getElement() <em>Element</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getElement()
* @generated
* @ordered
*/
protected EList<ConceptMapElement> element;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ConceptMapImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return FhirPackage.eINSTANCE.getConceptMap();
}
/**
* <!-- 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.CONCEPT_MAP__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.CONCEPT_MAP__URL, null, msgs);
if (newUrl != null)
msgs = ((InternalEObject)newUrl).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__URL, null, msgs);
msgs = basicSetUrl(newUrl, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__URL, newUrl, newUrl));
}
/**
* <!-- 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.CONCEPT_MAP__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.CONCEPT_MAP__IDENTIFIER, null, msgs);
if (newIdentifier != null)
msgs = ((InternalEObject)newIdentifier).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__IDENTIFIER, null, msgs);
msgs = basicSetIdentifier(newIdentifier, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__IDENTIFIER, newIdentifier, newIdentifier));
}
/**
* <!-- 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.CONCEPT_MAP__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.CONCEPT_MAP__VERSION, null, msgs);
if (newVersion != null)
msgs = ((InternalEObject)newVersion).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__VERSION, null, msgs);
msgs = basicSetVersion(newVersion, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__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.CONCEPT_MAP__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.CONCEPT_MAP__NAME, null, msgs);
if (newName != null)
msgs = ((InternalEObject)newName).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__NAME, null, msgs);
msgs = basicSetName(newName, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__NAME, newName, newName));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Code getStatus() {
return status;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetStatus(Code newStatus, NotificationChain msgs) {
Code oldStatus = status;
status = newStatus;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__STATUS, oldStatus, newStatus);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setStatus(Code newStatus) {
if (newStatus != status) {
NotificationChain msgs = null;
if (status != null)
msgs = ((InternalEObject)status).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__STATUS, null, msgs);
if (newStatus != null)
msgs = ((InternalEObject)newStatus).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__STATUS, null, msgs);
msgs = basicSetStatus(newStatus, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__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.CONCEPT_MAP__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.CONCEPT_MAP__EXPERIMENTAL, null, msgs);
if (newExperimental != null)
msgs = ((InternalEObject)newExperimental).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__EXPERIMENTAL, null, msgs);
msgs = basicSetExperimental(newExperimental, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__EXPERIMENTAL, newExperimental, newExperimental));
}
/**
* <!-- 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.CONCEPT_MAP__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.CONCEPT_MAP__PUBLISHER, null, msgs);
if (newPublisher != null)
msgs = ((InternalEObject)newPublisher).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__PUBLISHER, null, msgs);
msgs = basicSetPublisher(newPublisher, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__PUBLISHER, newPublisher, newPublisher));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<ConceptMapContact> getContact() {
if (contact == null) {
contact = new EObjectContainmentEList<ConceptMapContact>(ConceptMapContact.class, this, FhirPackage.CONCEPT_MAP__CONTACT);
}
return contact;
}
/**
* <!-- 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.CONCEPT_MAP__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.CONCEPT_MAP__DATE, null, msgs);
if (newDate != null)
msgs = ((InternalEObject)newDate).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__DATE, null, msgs);
msgs = basicSetDate(newDate, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__DATE, newDate, newDate));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.hl7.fhir.String getDescription() {
return description;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetDescription(org.hl7.fhir.String newDescription, NotificationChain msgs) {
org.hl7.fhir.String oldDescription = description;
description = newDescription;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__DESCRIPTION, oldDescription, newDescription);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDescription(org.hl7.fhir.String newDescription) {
if (newDescription != description) {
NotificationChain msgs = null;
if (description != null)
msgs = ((InternalEObject)description).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__DESCRIPTION, null, msgs);
if (newDescription != null)
msgs = ((InternalEObject)newDescription).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__DESCRIPTION, null, msgs);
msgs = basicSetDescription(newDescription, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__DESCRIPTION, newDescription, newDescription));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<CodeableConcept> getUseContext() {
if (useContext == null) {
useContext = new EObjectContainmentEList<CodeableConcept>(CodeableConcept.class, this, FhirPackage.CONCEPT_MAP__USE_CONTEXT);
}
return useContext;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.hl7.fhir.String getRequirements() {
return requirements;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetRequirements(org.hl7.fhir.String newRequirements, NotificationChain msgs) {
org.hl7.fhir.String oldRequirements = requirements;
requirements = newRequirements;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__REQUIREMENTS, oldRequirements, newRequirements);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRequirements(org.hl7.fhir.String newRequirements) {
if (newRequirements != requirements) {
NotificationChain msgs = null;
if (requirements != null)
msgs = ((InternalEObject)requirements).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__REQUIREMENTS, null, msgs);
if (newRequirements != null)
msgs = ((InternalEObject)newRequirements).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__REQUIREMENTS, null, msgs);
msgs = basicSetRequirements(newRequirements, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__REQUIREMENTS, newRequirements, newRequirements));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public org.hl7.fhir.String getCopyright() {
return copyright;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetCopyright(org.hl7.fhir.String newCopyright, NotificationChain msgs) {
org.hl7.fhir.String oldCopyright = copyright;
copyright = newCopyright;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__COPYRIGHT, oldCopyright, newCopyright);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCopyright(org.hl7.fhir.String newCopyright) {
if (newCopyright != copyright) {
NotificationChain msgs = null;
if (copyright != null)
msgs = ((InternalEObject)copyright).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__COPYRIGHT, null, msgs);
if (newCopyright != null)
msgs = ((InternalEObject)newCopyright).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__COPYRIGHT, null, msgs);
msgs = basicSetCopyright(newCopyright, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__COPYRIGHT, newCopyright, newCopyright));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Uri getSourceUri() {
return sourceUri;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetSourceUri(Uri newSourceUri, NotificationChain msgs) {
Uri oldSourceUri = sourceUri;
sourceUri = newSourceUri;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__SOURCE_URI, oldSourceUri, newSourceUri);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSourceUri(Uri newSourceUri) {
if (newSourceUri != sourceUri) {
NotificationChain msgs = null;
if (sourceUri != null)
msgs = ((InternalEObject)sourceUri).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__SOURCE_URI, null, msgs);
if (newSourceUri != null)
msgs = ((InternalEObject)newSourceUri).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__SOURCE_URI, null, msgs);
msgs = basicSetSourceUri(newSourceUri, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__SOURCE_URI, newSourceUri, newSourceUri));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Reference getSourceReference() {
return sourceReference;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetSourceReference(Reference newSourceReference, NotificationChain msgs) {
Reference oldSourceReference = sourceReference;
sourceReference = newSourceReference;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__SOURCE_REFERENCE, oldSourceReference, newSourceReference);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSourceReference(Reference newSourceReference) {
if (newSourceReference != sourceReference) {
NotificationChain msgs = null;
if (sourceReference != null)
msgs = ((InternalEObject)sourceReference).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__SOURCE_REFERENCE, null, msgs);
if (newSourceReference != null)
msgs = ((InternalEObject)newSourceReference).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__SOURCE_REFERENCE, null, msgs);
msgs = basicSetSourceReference(newSourceReference, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__SOURCE_REFERENCE, newSourceReference, newSourceReference));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Uri getTargetUri() {
return targetUri;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetTargetUri(Uri newTargetUri, NotificationChain msgs) {
Uri oldTargetUri = targetUri;
targetUri = newTargetUri;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__TARGET_URI, oldTargetUri, newTargetUri);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTargetUri(Uri newTargetUri) {
if (newTargetUri != targetUri) {
NotificationChain msgs = null;
if (targetUri != null)
msgs = ((InternalEObject)targetUri).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__TARGET_URI, null, msgs);
if (newTargetUri != null)
msgs = ((InternalEObject)newTargetUri).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__TARGET_URI, null, msgs);
msgs = basicSetTargetUri(newTargetUri, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__TARGET_URI, newTargetUri, newTargetUri));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Reference getTargetReference() {
return targetReference;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetTargetReference(Reference newTargetReference, NotificationChain msgs) {
Reference oldTargetReference = targetReference;
targetReference = newTargetReference;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__TARGET_REFERENCE, oldTargetReference, newTargetReference);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTargetReference(Reference newTargetReference) {
if (newTargetReference != targetReference) {
NotificationChain msgs = null;
if (targetReference != null)
msgs = ((InternalEObject)targetReference).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__TARGET_REFERENCE, null, msgs);
if (newTargetReference != null)
msgs = ((InternalEObject)newTargetReference).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FhirPackage.CONCEPT_MAP__TARGET_REFERENCE, null, msgs);
msgs = basicSetTargetReference(newTargetReference, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, FhirPackage.CONCEPT_MAP__TARGET_REFERENCE, newTargetReference, newTargetReference));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<ConceptMapElement> getElement() {
if (element == null) {
element = new EObjectContainmentEList<ConceptMapElement>(ConceptMapElement.class, this, FhirPackage.CONCEPT_MAP__ELEMENT);
}
return element;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case FhirPackage.CONCEPT_MAP__URL:
return basicSetUrl(null, msgs);
case FhirPackage.CONCEPT_MAP__IDENTIFIER:
return basicSetIdentifier(null, msgs);
case FhirPackage.CONCEPT_MAP__VERSION:
return basicSetVersion(null, msgs);
case FhirPackage.CONCEPT_MAP__NAME:
return basicSetName(null, msgs);
case FhirPackage.CONCEPT_MAP__STATUS:
return basicSetStatus(null, msgs);
case FhirPackage.CONCEPT_MAP__EXPERIMENTAL:
return basicSetExperimental(null, msgs);
case FhirPackage.CONCEPT_MAP__PUBLISHER:
return basicSetPublisher(null, msgs);
case FhirPackage.CONCEPT_MAP__CONTACT:
return ((InternalEList<?>)getContact()).basicRemove(otherEnd, msgs);
case FhirPackage.CONCEPT_MAP__DATE:
return basicSetDate(null, msgs);
case FhirPackage.CONCEPT_MAP__DESCRIPTION:
return basicSetDescription(null, msgs);
case FhirPackage.CONCEPT_MAP__USE_CONTEXT:
return ((InternalEList<?>)getUseContext()).basicRemove(otherEnd, msgs);
case FhirPackage.CONCEPT_MAP__REQUIREMENTS:
return basicSetRequirements(null, msgs);
case FhirPackage.CONCEPT_MAP__COPYRIGHT:
return basicSetCopyright(null, msgs);
case FhirPackage.CONCEPT_MAP__SOURCE_URI:
return basicSetSourceUri(null, msgs);
case FhirPackage.CONCEPT_MAP__SOURCE_REFERENCE:
return basicSetSourceReference(null, msgs);
case FhirPackage.CONCEPT_MAP__TARGET_URI:
return basicSetTargetUri(null, msgs);
case FhirPackage.CONCEPT_MAP__TARGET_REFERENCE:
return basicSetTargetReference(null, msgs);
case FhirPackage.CONCEPT_MAP__ELEMENT:
return ((InternalEList<?>)getElement()).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.CONCEPT_MAP__URL:
return getUrl();
case FhirPackage.CONCEPT_MAP__IDENTIFIER:
return getIdentifier();
case FhirPackage.CONCEPT_MAP__VERSION:
return getVersion();
case FhirPackage.CONCEPT_MAP__NAME:
return getName();
case FhirPackage.CONCEPT_MAP__STATUS:
return getStatus();
case FhirPackage.CONCEPT_MAP__EXPERIMENTAL:
return getExperimental();
case FhirPackage.CONCEPT_MAP__PUBLISHER:
return getPublisher();
case FhirPackage.CONCEPT_MAP__CONTACT:
return getContact();
case FhirPackage.CONCEPT_MAP__DATE:
return getDate();
case FhirPackage.CONCEPT_MAP__DESCRIPTION:
return getDescription();
case FhirPackage.CONCEPT_MAP__USE_CONTEXT:
return getUseContext();
case FhirPackage.CONCEPT_MAP__REQUIREMENTS:
return getRequirements();
case FhirPackage.CONCEPT_MAP__COPYRIGHT:
return getCopyright();
case FhirPackage.CONCEPT_MAP__SOURCE_URI:
return getSourceUri();
case FhirPackage.CONCEPT_MAP__SOURCE_REFERENCE:
return getSourceReference();
case FhirPackage.CONCEPT_MAP__TARGET_URI:
return getTargetUri();
case FhirPackage.CONCEPT_MAP__TARGET_REFERENCE:
return getTargetReference();
case FhirPackage.CONCEPT_MAP__ELEMENT:
return getElement();
}
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.CONCEPT_MAP__URL:
setUrl((Uri)newValue);
return;
case FhirPackage.CONCEPT_MAP__IDENTIFIER:
setIdentifier((Identifier)newValue);
return;
case FhirPackage.CONCEPT_MAP__VERSION:
setVersion((org.hl7.fhir.String)newValue);
return;
case FhirPackage.CONCEPT_MAP__NAME:
setName((org.hl7.fhir.String)newValue);
return;
case FhirPackage.CONCEPT_MAP__STATUS:
setStatus((Code)newValue);
return;
case FhirPackage.CONCEPT_MAP__EXPERIMENTAL:
setExperimental((org.hl7.fhir.Boolean)newValue);
return;
case FhirPackage.CONCEPT_MAP__PUBLISHER:
setPublisher((org.hl7.fhir.String)newValue);
return;
case FhirPackage.CONCEPT_MAP__CONTACT:
getContact().clear();
getContact().addAll((Collection<? extends ConceptMapContact>)newValue);
return;
case FhirPackage.CONCEPT_MAP__DATE:
setDate((DateTime)newValue);
return;
case FhirPackage.CONCEPT_MAP__DESCRIPTION:
setDescription((org.hl7.fhir.String)newValue);
return;
case FhirPackage.CONCEPT_MAP__USE_CONTEXT:
getUseContext().clear();
getUseContext().addAll((Collection<? extends CodeableConcept>)newValue);
return;
case FhirPackage.CONCEPT_MAP__REQUIREMENTS:
setRequirements((org.hl7.fhir.String)newValue);
return;
case FhirPackage.CONCEPT_MAP__COPYRIGHT:
setCopyright((org.hl7.fhir.String)newValue);
return;
case FhirPackage.CONCEPT_MAP__SOURCE_URI:
setSourceUri((Uri)newValue);
return;
case FhirPackage.CONCEPT_MAP__SOURCE_REFERENCE:
setSourceReference((Reference)newValue);
return;
case FhirPackage.CONCEPT_MAP__TARGET_URI:
setTargetUri((Uri)newValue);
return;
case FhirPackage.CONCEPT_MAP__TARGET_REFERENCE:
setTargetReference((Reference)newValue);
return;
case FhirPackage.CONCEPT_MAP__ELEMENT:
getElement().clear();
getElement().addAll((Collection<? extends ConceptMapElement>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case FhirPackage.CONCEPT_MAP__URL:
setUrl((Uri)null);
return;
case FhirPackage.CONCEPT_MAP__IDENTIFIER:
setIdentifier((Identifier)null);
return;
case FhirPackage.CONCEPT_MAP__VERSION:
setVersion((org.hl7.fhir.String)null);
return;
case FhirPackage.CONCEPT_MAP__NAME:
setName((org.hl7.fhir.String)null);
return;
case FhirPackage.CONCEPT_MAP__STATUS:
setStatus((Code)null);
return;
case FhirPackage.CONCEPT_MAP__EXPERIMENTAL:
setExperimental((org.hl7.fhir.Boolean)null);
return;
case FhirPackage.CONCEPT_MAP__PUBLISHER:
setPublisher((org.hl7.fhir.String)null);
return;
case FhirPackage.CONCEPT_MAP__CONTACT:
getContact().clear();
return;
case FhirPackage.CONCEPT_MAP__DATE:
setDate((DateTime)null);
return;
case FhirPackage.CONCEPT_MAP__DESCRIPTION:
setDescription((org.hl7.fhir.String)null);
return;
case FhirPackage.CONCEPT_MAP__USE_CONTEXT:
getUseContext().clear();
return;
case FhirPackage.CONCEPT_MAP__REQUIREMENTS:
setRequirements((org.hl7.fhir.String)null);
return;
case FhirPackage.CONCEPT_MAP__COPYRIGHT:
setCopyright((org.hl7.fhir.String)null);
return;
case FhirPackage.CONCEPT_MAP__SOURCE_URI:
setSourceUri((Uri)null);
return;
case FhirPackage.CONCEPT_MAP__SOURCE_REFERENCE:
setSourceReference((Reference)null);
return;
case FhirPackage.CONCEPT_MAP__TARGET_URI:
setTargetUri((Uri)null);
return;
case FhirPackage.CONCEPT_MAP__TARGET_REFERENCE:
setTargetReference((Reference)null);
return;
case FhirPackage.CONCEPT_MAP__ELEMENT:
getElement().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case FhirPackage.CONCEPT_MAP__URL:
return url != null;
case FhirPackage.CONCEPT_MAP__IDENTIFIER:
return identifier != null;
case FhirPackage.CONCEPT_MAP__VERSION:
return version != null;
case FhirPackage.CONCEPT_MAP__NAME:
return name != null;
case FhirPackage.CONCEPT_MAP__STATUS:
return status != null;
case FhirPackage.CONCEPT_MAP__EXPERIMENTAL:
return experimental != null;
case FhirPackage.CONCEPT_MAP__PUBLISHER:
return publisher != null;
case FhirPackage.CONCEPT_MAP__CONTACT:
return contact != null && !contact.isEmpty();
case FhirPackage.CONCEPT_MAP__DATE:
return date != null;
case FhirPackage.CONCEPT_MAP__DESCRIPTION:
return description != null;
case FhirPackage.CONCEPT_MAP__USE_CONTEXT:
return useContext != null && !useContext.isEmpty();
case FhirPackage.CONCEPT_MAP__REQUIREMENTS:
return requirements != null;
case FhirPackage.CONCEPT_MAP__COPYRIGHT:
return copyright != null;
case FhirPackage.CONCEPT_MAP__SOURCE_URI:
return sourceUri != null;
case FhirPackage.CONCEPT_MAP__SOURCE_REFERENCE:
return sourceReference != null;
case FhirPackage.CONCEPT_MAP__TARGET_URI:
return targetUri != null;
case FhirPackage.CONCEPT_MAP__TARGET_REFERENCE:
return targetReference != null;
case FhirPackage.CONCEPT_MAP__ELEMENT:
return element != null && !element.isEmpty();
}
return super.eIsSet(featureID);
}
} //ConceptMapImpl