/** * generated by Xtext 2.12.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.FileDeclaration; import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.FileReference; 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; /** * * An implementation of the model object 'File Reference'. * *

* The following features are implemented: *

* * * @generated */ public class FileReferenceImpl extends FileImpl implements FileReference { /** * The cached value of the '{@link #getReferred() Referred}' reference. * * * @see #getReferred() * @generated * @ordered */ protected FileDeclaration referred; /** * * * @generated */ protected FileReferenceImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return ApplicationConfigurationPackage.Literals.FILE_REFERENCE; } /** * * * @generated */ public FileDeclaration getReferred() { if (referred != null && referred.eIsProxy()) { InternalEObject oldReferred = (InternalEObject)referred; referred = (FileDeclaration)eResolveProxy(oldReferred); if (referred != oldReferred) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED, oldReferred, referred)); } } return referred; } /** * * * @generated */ public FileDeclaration basicGetReferred() { return referred; } /** * * * @generated */ public void setReferred(FileDeclaration newReferred) { FileDeclaration oldReferred = referred; referred = newReferred; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED, oldReferred, referred)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED: if (resolve) return getReferred(); return basicGetReferred(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED: setReferred((FileDeclaration)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED: setReferred((FileDeclaration)null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case ApplicationConfigurationPackage.FILE_REFERENCE__REFERRED: return referred != null; } return super.eIsSet(featureID); } } //FileReferenceImpl