| /** |
| */ |
| package org.hl7.fhir.impl; |
| |
| import java.util.Collection; |
| |
| 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.util.EObjectContainmentEList; |
| import org.eclipse.emf.ecore.util.InternalEList; |
| |
| import org.hl7.fhir.ExpansionProfileDesignation2; |
| import org.hl7.fhir.ExpansionProfileExclude1; |
| import org.hl7.fhir.FhirPackage; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Expansion Profile Exclude1</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * </p> |
| * <ul> |
| * <li>{@link org.hl7.fhir.impl.ExpansionProfileExclude1Impl#getDesignation <em>Designation</em>}</li> |
| * </ul> |
| * |
| * @generated |
| */ |
| public class ExpansionProfileExclude1Impl extends BackboneElementImpl implements ExpansionProfileExclude1 { |
| /** |
| * The cached value of the '{@link #getDesignation() <em>Designation</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDesignation() |
| * @generated |
| * @ordered |
| */ |
| protected EList<ExpansionProfileDesignation2> designation; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected ExpansionProfileExclude1Impl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return FhirPackage.eINSTANCE.getExpansionProfileExclude1(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<ExpansionProfileDesignation2> getDesignation() { |
| if (designation == null) { |
| designation = new EObjectContainmentEList<ExpansionProfileDesignation2>(ExpansionProfileDesignation2.class, this, FhirPackage.EXPANSION_PROFILE_EXCLUDE1__DESIGNATION); |
| } |
| return designation; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case FhirPackage.EXPANSION_PROFILE_EXCLUDE1__DESIGNATION: |
| return ((InternalEList<?>)getDesignation()).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.EXPANSION_PROFILE_EXCLUDE1__DESIGNATION: |
| return getDesignation(); |
| } |
| 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.EXPANSION_PROFILE_EXCLUDE1__DESIGNATION: |
| getDesignation().clear(); |
| getDesignation().addAll((Collection<? extends ExpansionProfileDesignation2>)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case FhirPackage.EXPANSION_PROFILE_EXCLUDE1__DESIGNATION: |
| getDesignation().clear(); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case FhirPackage.EXPANSION_PROFILE_EXCLUDE1__DESIGNATION: |
| return designation != null && !designation.isEmpty(); |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| } //ExpansionProfileExclude1Impl |