/** */ package org.eclipse.papyrus.papyrusgmfgenextension.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.papyrus.papyrusgmfgenextension.CustomDiagramUpdaterSingleton; import org.eclipse.papyrus.papyrusgmfgenextension.PapyrusgmfgenextensionPackage; /** * * An implementation of the model object 'Custom Diagram Updater Singleton'. * *

* The following features are implemented: *

*

* * @generated */ public class CustomDiagramUpdaterSingletonImpl extends CommentedElementImpl implements CustomDiagramUpdaterSingleton { /** * The default value of the '{@link #getSingletonPath() Singleton Path}' attribute. * * * * @see #getSingletonPath() * @generated * @ordered */ protected static final String SINGLETON_PATH_EDEFAULT = null; /** * The cached value of the '{@link #getSingletonPath() Singleton Path}' attribute. * * * * @see #getSingletonPath() * @generated * @ordered */ protected String singletonPath = SINGLETON_PATH_EDEFAULT; /** * * * * @generated */ protected CustomDiagramUpdaterSingletonImpl() { super(); } /** * * * * @generated */ @Override protected EClass eStaticClass() { return PapyrusgmfgenextensionPackage.Literals.CUSTOM_DIAGRAM_UPDATER_SINGLETON; } /** * * * * @generated */ @Override public String getSingletonPath() { return singletonPath; } /** * * * * @generated */ @Override public void setSingletonPath(String newSingletonPath) { String oldSingletonPath = singletonPath; singletonPath = newSingletonPath; if (eNotificationRequired()) { eNotify(new ENotificationImpl(this, Notification.SET, PapyrusgmfgenextensionPackage.CUSTOM_DIAGRAM_UPDATER_SINGLETON__SINGLETON_PATH, oldSingletonPath, singletonPath)); } } /** * * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case PapyrusgmfgenextensionPackage.CUSTOM_DIAGRAM_UPDATER_SINGLETON__SINGLETON_PATH: return getSingletonPath(); } return super.eGet(featureID, resolve, coreType); } /** * * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case PapyrusgmfgenextensionPackage.CUSTOM_DIAGRAM_UPDATER_SINGLETON__SINGLETON_PATH: setSingletonPath((String) newValue); return; } super.eSet(featureID, newValue); } /** * * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case PapyrusgmfgenextensionPackage.CUSTOM_DIAGRAM_UPDATER_SINGLETON__SINGLETON_PATH: setSingletonPath(SINGLETON_PATH_EDEFAULT); return; } super.eUnset(featureID); } /** * * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case PapyrusgmfgenextensionPackage.CUSTOM_DIAGRAM_UPDATER_SINGLETON__SINGLETON_PATH: return SINGLETON_PATH_EDEFAULT == null ? singletonPath != null : !SINGLETON_PATH_EDEFAULT.equals(singletonPath); } return super.eIsSet(featureID); } /** * * * * @generated */ @Override public String toString() { if (eIsProxy()) { return super.toString(); } StringBuffer result = new StringBuffer(super.toString()); result.append(" (singletonPath: "); result.append(singletonPath); result.append(')'); return result.toString(); } } // CustomDiagramUpdaterSingletonImpl