/** * generated by Xtext 2.21.0 */ package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; /** * * An implementation of the model object 'Metamodel Entry'. * *

* The following features are implemented: *

* * * @generated */ public class MetamodelEntryImpl extends MinimalEObjectImpl.Container implements MetamodelEntry { /** * The cached value of the '{@link #getPackage() Package}' reference. * * * @see #getPackage() * @generated * @ordered */ protected EPackage package_; /** * * * @generated */ protected MetamodelEntryImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return ApplicationConfigurationPackage.Literals.METAMODEL_ENTRY; } /** * * * @generated */ @Override public EPackage getPackage() { if (package_ != null && package_.eIsProxy()) { InternalEObject oldPackage = (InternalEObject)package_; package_ = (EPackage)eResolveProxy(oldPackage); if (package_ != oldPackage) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE, oldPackage, package_)); } } return package_; } /** * * * @generated */ public EPackage basicGetPackage() { return package_; } /** * * * @generated */ @Override public void setPackage(EPackage newPackage) { EPackage oldPackage = package_; package_ = newPackage; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE, oldPackage, package_)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE: if (resolve) return getPackage(); return basicGetPackage(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE: setPackage((EPackage)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE: setPackage((EPackage)null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE: return package_ != null; } return super.eIsSet(featureID); } } //MetamodelEntryImpl