/** */ package hu.bme.mit.inf.dslreasoner.logic.model.logicresult.impl; import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.ErrorResult; import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.LogicresultPackage; 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 'Error Result'. * *

* The following features are implemented: *

* * * @generated */ public class ErrorResultImpl extends UnknownResultImpl implements ErrorResult { /** * The default value of the '{@link #getMessage() Message}' attribute. * * * @see #getMessage() * @generated * @ordered */ protected static final String MESSAGE_EDEFAULT = null; /** * The cached value of the '{@link #getMessage() Message}' attribute. * * * @see #getMessage() * @generated * @ordered */ protected String message = MESSAGE_EDEFAULT; /** * * * @generated */ protected ErrorResultImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return LogicresultPackage.Literals.ERROR_RESULT; } /** * * * @generated */ public String getMessage() { return message; } /** * * * @generated */ public void setMessage(String newMessage) { String oldMessage = message; message = newMessage; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, LogicresultPackage.ERROR_RESULT__MESSAGE, oldMessage, message)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case LogicresultPackage.ERROR_RESULT__MESSAGE: return getMessage(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case LogicresultPackage.ERROR_RESULT__MESSAGE: setMessage((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case LogicresultPackage.ERROR_RESULT__MESSAGE: setMessage(MESSAGE_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case LogicresultPackage.ERROR_RESULT__MESSAGE: return MESSAGE_EDEFAULT == null ? message != null : !MESSAGE_EDEFAULT.equals(message); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (message: "); result.append(message); result.append(')'); return result.toString(); } } //ErrorResultImpl