/** */ package hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.impl; import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.Entry; import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.EntryType; import hu.bme.mit.inf.dslreasoner.domains.yakindu.sgraph.yakindumm.YakindummPackage; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; /** * * An implementation of the model object 'Entry'. * *

* The following features are implemented: *

* * * @generated */ public class EntryImpl extends PseudostateImpl implements Entry { /** * The default value of the '{@link #getType() Type}' attribute. * * * @see #getType() * @generated * @ordered */ protected static final EntryType TYPE_EDEFAULT = EntryType.NORMAL; /** * The cached value of the '{@link #getType() Type}' attribute. * * * @see #getType() * @generated * @ordered */ protected EntryType type = TYPE_EDEFAULT; /** * * * @generated */ protected EntryImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return YakindummPackage.Literals.ENTRY; } /** * * * @generated */ public EntryType getType() { return type; } /** * * * @generated */ public void setType(EntryType newType) { EntryType oldType = type; type = newType == null ? TYPE_EDEFAULT : newType; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, YakindummPackage.ENTRY__TYPE, oldType, type)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case YakindummPackage.ENTRY__TYPE: return getType(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case YakindummPackage.ENTRY__TYPE: setType((EntryType)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case YakindummPackage.ENTRY__TYPE: setType(TYPE_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case YakindummPackage.ENTRY__TYPE: return type != TYPE_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuilder result = new StringBuilder(super.toString()); result.append(" (Type: "); result.append(type); result.append(')'); return result.toString(); } } //EntryImpl