/** * generated by Xtext 2.21.0 */ package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement; 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; /** * * An implementation of the model object 'All Package Entry'. * *

* The following features are implemented: *

* * * @generated */ public class AllPackageEntryImpl extends MetamodelEntryImpl implements AllPackageEntry { /** * The cached value of the '{@link #getExclusion() Exclusion}' containment reference list. * * * @see #getExclusion() * @generated * @ordered */ protected EList exclusion; /** * * * @generated */ protected AllPackageEntryImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return ApplicationConfigurationPackage.Literals.ALL_PACKAGE_ENTRY; } /** * * * @generated */ @Override public EList getExclusion() { if (exclusion == null) { exclusion = new EObjectContainmentEList(MetamodelElement.class, this, ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION); } return exclusion; } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: return ((InternalEList)getExclusion()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: return getExclusion(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: getExclusion().clear(); getExclusion().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: getExclusion().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: return exclusion != null && !exclusion.isEmpty(); } return super.eIsSet(featureID); } } //AllPackageEntryImpl