/** * 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.PatternEntry; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; import org.eclipse.viatra.query.patternlanguage.emf.vql.PatternModel; /** * * An implementation of the model object 'Pattern Entry'. * *

* The following features are implemented: *

* * * @generated */ public class PatternEntryImpl extends MinimalEObjectImpl.Container implements PatternEntry { /** * The cached value of the '{@link #getPackage() Package}' reference. * * * @see #getPackage() * @generated * @ordered */ protected PatternModel package_; /** * * * @generated */ protected PatternEntryImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return ApplicationConfigurationPackage.Literals.PATTERN_ENTRY; } /** * * * @generated */ @Override public PatternModel getPackage() { if (package_ != null && package_.eIsProxy()) { InternalEObject oldPackage = (InternalEObject)package_; package_ = (PatternModel)eResolveProxy(oldPackage); if (package_ != oldPackage) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.PATTERN_ENTRY__PACKAGE, oldPackage, package_)); } } return package_; } /** * * * @generated */ public PatternModel basicGetPackage() { return package_; } /** * * * @generated */ @Override public void setPackage(PatternModel newPackage) { PatternModel oldPackage = package_; package_ = newPackage; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PATTERN_ENTRY__PACKAGE, oldPackage, package_)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case ApplicationConfigurationPackage.PATTERN_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.PATTERN_ENTRY__PACKAGE: setPackage((PatternModel)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ApplicationConfigurationPackage.PATTERN_ENTRY__PACKAGE: setPackage((PatternModel)null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case ApplicationConfigurationPackage.PATTERN_ENTRY__PACKAGE: return package_ != null; } return super.eIsSet(featureID); } } //PatternEntryImpl