/** * * * */ package org.eclipse.papyrus.alf.alf.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.alf.alf.AlfPackage; import org.eclipse.papyrus.alf.alf.ForAllOrExistsOrOneOperation; import org.eclipse.papyrus.alf.alf.ForAllOrExistsOrOneOperator; /** * * An implementation of the model object 'For All Or Exists Or One Operation'. * *

* The following features are implemented: *

*

* * @generated */ public class ForAllOrExistsOrOneOperationImpl extends SequenceExpansionExpressionImpl implements ForAllOrExistsOrOneOperation { /** * The default value of the '{@link #getOp() Op}' attribute. * * * @see #getOp() * @generated * @ordered */ protected static final ForAllOrExistsOrOneOperator OP_EDEFAULT = ForAllOrExistsOrOneOperator.FORALL; /** * The cached value of the '{@link #getOp() Op}' attribute. * * * @see #getOp() * @generated * @ordered */ protected ForAllOrExistsOrOneOperator op = OP_EDEFAULT; /** * * * @generated */ protected ForAllOrExistsOrOneOperationImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return AlfPackage.Literals.FOR_ALL_OR_EXISTS_OR_ONE_OPERATION; } /** * * * @generated */ public ForAllOrExistsOrOneOperator getOp() { return op; } /** * * * @generated */ public void setOp(ForAllOrExistsOrOneOperator newOp) { ForAllOrExistsOrOneOperator oldOp = op; op = newOp == null ? OP_EDEFAULT : newOp; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AlfPackage.FOR_ALL_OR_EXISTS_OR_ONE_OPERATION__OP, oldOp, op)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case AlfPackage.FOR_ALL_OR_EXISTS_OR_ONE_OPERATION__OP: return getOp(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case AlfPackage.FOR_ALL_OR_EXISTS_OR_ONE_OPERATION__OP: setOp((ForAllOrExistsOrOneOperator)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case AlfPackage.FOR_ALL_OR_EXISTS_OR_ONE_OPERATION__OP: setOp(OP_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case AlfPackage.FOR_ALL_OR_EXISTS_OR_ONE_OPERATION__OP: return op != OP_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (op: "); result.append(op); result.append(')'); return result.toString(); } } //ForAllOrExistsOrOneOperationImpl