Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/alf09/src-gen/org/eclipse/papyrus/alf/alf/impl/AcceptStatementImpl.java')
-rw-r--r--extraplugins/alf09/src-gen/org/eclipse/papyrus/alf/alf/impl/AcceptStatementImpl.java341
1 files changed, 341 insertions, 0 deletions
diff --git a/extraplugins/alf09/src-gen/org/eclipse/papyrus/alf/alf/impl/AcceptStatementImpl.java b/extraplugins/alf09/src-gen/org/eclipse/papyrus/alf/alf/impl/AcceptStatementImpl.java
new file mode 100644
index 00000000000..491902cebd0
--- /dev/null
+++ b/extraplugins/alf09/src-gen/org/eclipse/papyrus/alf/alf/impl/AcceptStatementImpl.java
@@ -0,0 +1,341 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+
+ */
+package org.eclipse.papyrus.alf.alf.impl;
+
+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;
+
+import org.eclipse.papyrus.alf.alf.AcceptClause;
+import org.eclipse.papyrus.alf.alf.AcceptStatement;
+import org.eclipse.papyrus.alf.alf.AlfPackage;
+import org.eclipse.papyrus.alf.alf.CompoundAcceptStatementCompletion;
+import org.eclipse.papyrus.alf.alf.SimpleAcceptStatementCompletion;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Accept Statement</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.alf.alf.impl.AcceptStatementImpl#getClause <em>Clause</em>}</li>
+ * <li>{@link org.eclipse.papyrus.alf.alf.impl.AcceptStatementImpl#getSimpleAccept <em>Simple Accept</em>}</li>
+ * <li>{@link org.eclipse.papyrus.alf.alf.impl.AcceptStatementImpl#getCompoundAccept <em>Compound Accept</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class AcceptStatementImpl extends StatementImpl implements AcceptStatement
+{
+ /**
+ * The cached value of the '{@link #getClause() <em>Clause</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getClause()
+ * @generated
+ * @ordered
+ */
+ protected AcceptClause clause;
+
+ /**
+ * The cached value of the '{@link #getSimpleAccept() <em>Simple Accept</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSimpleAccept()
+ * @generated
+ * @ordered
+ */
+ protected SimpleAcceptStatementCompletion simpleAccept;
+
+ /**
+ * The cached value of the '{@link #getCompoundAccept() <em>Compound Accept</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCompoundAccept()
+ * @generated
+ * @ordered
+ */
+ protected CompoundAcceptStatementCompletion compoundAccept;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected AcceptStatementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return AlfPackage.Literals.ACCEPT_STATEMENT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public AcceptClause getClause()
+ {
+ return clause;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetClause(AcceptClause newClause, NotificationChain msgs)
+ {
+ AcceptClause oldClause = clause;
+ clause = newClause;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlfPackage.ACCEPT_STATEMENT__CLAUSE, oldClause, newClause);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setClause(AcceptClause newClause)
+ {
+ if (newClause != clause)
+ {
+ NotificationChain msgs = null;
+ if (clause != null)
+ msgs = ((InternalEObject)clause).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlfPackage.ACCEPT_STATEMENT__CLAUSE, null, msgs);
+ if (newClause != null)
+ msgs = ((InternalEObject)newClause).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlfPackage.ACCEPT_STATEMENT__CLAUSE, null, msgs);
+ msgs = basicSetClause(newClause, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, AlfPackage.ACCEPT_STATEMENT__CLAUSE, newClause, newClause));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SimpleAcceptStatementCompletion getSimpleAccept()
+ {
+ return simpleAccept;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetSimpleAccept(SimpleAcceptStatementCompletion newSimpleAccept, NotificationChain msgs)
+ {
+ SimpleAcceptStatementCompletion oldSimpleAccept = simpleAccept;
+ simpleAccept = newSimpleAccept;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlfPackage.ACCEPT_STATEMENT__SIMPLE_ACCEPT, oldSimpleAccept, newSimpleAccept);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSimpleAccept(SimpleAcceptStatementCompletion newSimpleAccept)
+ {
+ if (newSimpleAccept != simpleAccept)
+ {
+ NotificationChain msgs = null;
+ if (simpleAccept != null)
+ msgs = ((InternalEObject)simpleAccept).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlfPackage.ACCEPT_STATEMENT__SIMPLE_ACCEPT, null, msgs);
+ if (newSimpleAccept != null)
+ msgs = ((InternalEObject)newSimpleAccept).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlfPackage.ACCEPT_STATEMENT__SIMPLE_ACCEPT, null, msgs);
+ msgs = basicSetSimpleAccept(newSimpleAccept, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, AlfPackage.ACCEPT_STATEMENT__SIMPLE_ACCEPT, newSimpleAccept, newSimpleAccept));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CompoundAcceptStatementCompletion getCompoundAccept()
+ {
+ return compoundAccept;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetCompoundAccept(CompoundAcceptStatementCompletion newCompoundAccept, NotificationChain msgs)
+ {
+ CompoundAcceptStatementCompletion oldCompoundAccept = compoundAccept;
+ compoundAccept = newCompoundAccept;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlfPackage.ACCEPT_STATEMENT__COMPOUND_ACCEPT, oldCompoundAccept, newCompoundAccept);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setCompoundAccept(CompoundAcceptStatementCompletion newCompoundAccept)
+ {
+ if (newCompoundAccept != compoundAccept)
+ {
+ NotificationChain msgs = null;
+ if (compoundAccept != null)
+ msgs = ((InternalEObject)compoundAccept).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlfPackage.ACCEPT_STATEMENT__COMPOUND_ACCEPT, null, msgs);
+ if (newCompoundAccept != null)
+ msgs = ((InternalEObject)newCompoundAccept).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlfPackage.ACCEPT_STATEMENT__COMPOUND_ACCEPT, null, msgs);
+ msgs = basicSetCompoundAccept(newCompoundAccept, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, AlfPackage.ACCEPT_STATEMENT__COMPOUND_ACCEPT, newCompoundAccept, newCompoundAccept));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case AlfPackage.ACCEPT_STATEMENT__CLAUSE:
+ return basicSetClause(null, msgs);
+ case AlfPackage.ACCEPT_STATEMENT__SIMPLE_ACCEPT:
+ return basicSetSimpleAccept(null, msgs);
+ case AlfPackage.ACCEPT_STATEMENT__COMPOUND_ACCEPT:
+ return basicSetCompoundAccept(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case AlfPackage.ACCEPT_STATEMENT__CLAUSE:
+ return getClause();
+ case AlfPackage.ACCEPT_STATEMENT__SIMPLE_ACCEPT:
+ return getSimpleAccept();
+ case AlfPackage.ACCEPT_STATEMENT__COMPOUND_ACCEPT:
+ return getCompoundAccept();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case AlfPackage.ACCEPT_STATEMENT__CLAUSE:
+ setClause((AcceptClause)newValue);
+ return;
+ case AlfPackage.ACCEPT_STATEMENT__SIMPLE_ACCEPT:
+ setSimpleAccept((SimpleAcceptStatementCompletion)newValue);
+ return;
+ case AlfPackage.ACCEPT_STATEMENT__COMPOUND_ACCEPT:
+ setCompoundAccept((CompoundAcceptStatementCompletion)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case AlfPackage.ACCEPT_STATEMENT__CLAUSE:
+ setClause((AcceptClause)null);
+ return;
+ case AlfPackage.ACCEPT_STATEMENT__SIMPLE_ACCEPT:
+ setSimpleAccept((SimpleAcceptStatementCompletion)null);
+ return;
+ case AlfPackage.ACCEPT_STATEMENT__COMPOUND_ACCEPT:
+ setCompoundAccept((CompoundAcceptStatementCompletion)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case AlfPackage.ACCEPT_STATEMENT__CLAUSE:
+ return clause != null;
+ case AlfPackage.ACCEPT_STATEMENT__SIMPLE_ACCEPT:
+ return simpleAccept != null;
+ case AlfPackage.ACCEPT_STATEMENT__COMPOUND_ACCEPT:
+ return compoundAccept != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //AcceptStatementImpl

Back to the top