/** */ package hu.bme.mit.inf.dslreasoner.smtLanguage.impl; import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTComplexSatCommand; import hu.bme.mit.inf.dslreasoner.smtLanguage.SMTReasoningTactic; import hu.bme.mit.inf.dslreasoner.smtLanguage.SmtLanguagePackage; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; 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 'SMT Complex Sat Command'. * *

* The following features are implemented: *

*

* * @generated */ public class SMTComplexSatCommandImpl extends SMTSatCommandImpl implements SMTComplexSatCommand { /** * The cached value of the '{@link #getMethod() Method}' containment reference. * * * @see #getMethod() * @generated * @ordered */ protected SMTReasoningTactic method; /** * * * @generated */ protected SMTComplexSatCommandImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return SmtLanguagePackage.Literals.SMT_COMPLEX_SAT_COMMAND; } /** * * * @generated */ public SMTReasoningTactic getMethod() { return method; } /** * * * @generated */ public NotificationChain basicSetMethod(SMTReasoningTactic newMethod, NotificationChain msgs) { SMTReasoningTactic oldMethod = method; method = newMethod; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD, oldMethod, newMethod); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ public void setMethod(SMTReasoningTactic newMethod) { if (newMethod != method) { NotificationChain msgs = null; if (method != null) msgs = ((InternalEObject)method).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD, null, msgs); if (newMethod != null) msgs = ((InternalEObject)newMethod).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD, null, msgs); msgs = basicSetMethod(newMethod, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD, newMethod, newMethod)); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD: return basicSetMethod(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD: return getMethod(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD: setMethod((SMTReasoningTactic)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD: setMethod((SMTReasoningTactic)null); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case SmtLanguagePackage.SMT_COMPLEX_SAT_COMMAND__METHOD: return method != null; } return super.eIsSet(featureID); } } //SMTComplexSatCommandImpl