/** */ package org.yakindu.sct.model.stext.stext.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.yakindu.sct.model.sgraph.impl.ReactionPropertyImpl; import org.yakindu.sct.model.stext.stext.EntryPointSpec; import org.yakindu.sct.model.stext.stext.StextPackage; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Entry Point Spec</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * </p> * <ul> * <li>{@link org.yakindu.sct.model.stext.stext.impl.EntryPointSpecImpl#getEntrypoint <em>Entrypoint</em>}</li> * </ul> * * @generated */ public class EntryPointSpecImpl extends ReactionPropertyImpl implements EntryPointSpec { /** * The default value of the '{@link #getEntrypoint() <em>Entrypoint</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getEntrypoint() * @generated * @ordered */ protected static final String ENTRYPOINT_EDEFAULT = null; /** * The cached value of the '{@link #getEntrypoint() <em>Entrypoint</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getEntrypoint() * @generated * @ordered */ protected String entrypoint = ENTRYPOINT_EDEFAULT; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EntryPointSpecImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return StextPackage.Literals.ENTRY_POINT_SPEC; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getEntrypoint() { return entrypoint; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setEntrypoint(String newEntrypoint) { String oldEntrypoint = entrypoint; entrypoint = newEntrypoint; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, StextPackage.ENTRY_POINT_SPEC__ENTRYPOINT, oldEntrypoint, entrypoint)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case StextPackage.ENTRY_POINT_SPEC__ENTRYPOINT: return getEntrypoint(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case StextPackage.ENTRY_POINT_SPEC__ENTRYPOINT: setEntrypoint((String)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case StextPackage.ENTRY_POINT_SPEC__ENTRYPOINT: setEntrypoint(ENTRYPOINT_EDEFAULT); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case StextPackage.ENTRY_POINT_SPEC__ENTRYPOINT: return ENTRYPOINT_EDEFAULT == null ? entrypoint != null : !ENTRYPOINT_EDEFAULT.equals(entrypoint); } return super.eIsSet(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (entrypoint: "); result.append(entrypoint); result.append(')'); return result.toString(); } } //EntryPointSpecImpl