Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/alf/org.eclipse.papyrus.alf/src-gen/org/eclipse/papyrus/alf/alf/impl/PrimaryExpressionImpl.java')
-rw-r--r--extraplugins/alf/org.eclipse.papyrus.alf/src-gen/org/eclipse/papyrus/alf/alf/impl/PrimaryExpressionImpl.java308
1 files changed, 163 insertions, 145 deletions
diff --git a/extraplugins/alf/org.eclipse.papyrus.alf/src-gen/org/eclipse/papyrus/alf/alf/impl/PrimaryExpressionImpl.java b/extraplugins/alf/org.eclipse.papyrus.alf/src-gen/org/eclipse/papyrus/alf/alf/impl/PrimaryExpressionImpl.java
index 12ac8700eac..4f90714f6e0 100644
--- a/extraplugins/alf/org.eclipse.papyrus.alf/src-gen/org/eclipse/papyrus/alf/alf/impl/PrimaryExpressionImpl.java
+++ b/extraplugins/alf/org.eclipse.papyrus.alf/src-gen/org/eclipse/papyrus/alf/alf/impl/PrimaryExpressionImpl.java
@@ -2,7 +2,7 @@
* <copyright>
* </copyright>
*
- * $Id$
+
*/
package org.eclipse.papyrus.alf.alf.impl;
@@ -32,149 +32,167 @@ import org.eclipse.papyrus.alf.alf.ValueSpecification;
*
* @generated
*/
-public class PrimaryExpressionImpl extends MinimalEObjectImpl.Container implements PrimaryExpression {
- /**
- * The cached value of the '{@link #getPrefix() <em>Prefix</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPrefix()
- * @generated
- * @ordered
- */
- protected ValueSpecification prefix;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected PrimaryExpressionImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return AlfPackage.Literals.PRIMARY_EXPRESSION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ValueSpecification getPrefix() {
- return prefix;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetPrefix(ValueSpecification newPrefix, NotificationChain msgs) {
- ValueSpecification oldPrefix = prefix;
- prefix = newPrefix;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlfPackage.PRIMARY_EXPRESSION__PREFIX, oldPrefix, newPrefix);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setPrefix(ValueSpecification newPrefix) {
- if (newPrefix != prefix) {
- NotificationChain msgs = null;
- if (prefix != null)
- msgs = ((InternalEObject)prefix).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlfPackage.PRIMARY_EXPRESSION__PREFIX, null, msgs);
- if (newPrefix != null)
- msgs = ((InternalEObject)newPrefix).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlfPackage.PRIMARY_EXPRESSION__PREFIX, null, msgs);
- msgs = basicSetPrefix(newPrefix, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, AlfPackage.PRIMARY_EXPRESSION__PREFIX, newPrefix, newPrefix));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case AlfPackage.PRIMARY_EXPRESSION__PREFIX:
- return basicSetPrefix(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.PRIMARY_EXPRESSION__PREFIX:
- return getPrefix();
- }
- 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.PRIMARY_EXPRESSION__PREFIX:
- setPrefix((ValueSpecification)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case AlfPackage.PRIMARY_EXPRESSION__PREFIX:
- setPrefix((ValueSpecification)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case AlfPackage.PRIMARY_EXPRESSION__PREFIX:
- return prefix != null;
- }
- return super.eIsSet(featureID);
- }
+public class PrimaryExpressionImpl extends MinimalEObjectImpl.Container implements PrimaryExpression
+{
+ /**
+ * The cached value of the '{@link #getPrefix() <em>Prefix</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPrefix()
+ * @generated
+ * @ordered
+ */
+ protected ValueSpecification prefix;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected PrimaryExpressionImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return AlfPackage.Literals.PRIMARY_EXPRESSION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ValueSpecification getPrefix()
+ {
+ return prefix;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetPrefix(ValueSpecification newPrefix, NotificationChain msgs)
+ {
+ ValueSpecification oldPrefix = prefix;
+ prefix = newPrefix;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AlfPackage.PRIMARY_EXPRESSION__PREFIX, oldPrefix, newPrefix);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPrefix(ValueSpecification newPrefix)
+ {
+ if (newPrefix != prefix)
+ {
+ NotificationChain msgs = null;
+ if (prefix != null)
+ msgs = ((InternalEObject)prefix).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AlfPackage.PRIMARY_EXPRESSION__PREFIX, null, msgs);
+ if (newPrefix != null)
+ msgs = ((InternalEObject)newPrefix).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AlfPackage.PRIMARY_EXPRESSION__PREFIX, null, msgs);
+ msgs = basicSetPrefix(newPrefix, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, AlfPackage.PRIMARY_EXPRESSION__PREFIX, newPrefix, newPrefix));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case AlfPackage.PRIMARY_EXPRESSION__PREFIX:
+ return basicSetPrefix(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.PRIMARY_EXPRESSION__PREFIX:
+ return getPrefix();
+ }
+ 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.PRIMARY_EXPRESSION__PREFIX:
+ setPrefix((ValueSpecification)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case AlfPackage.PRIMARY_EXPRESSION__PREFIX:
+ setPrefix((ValueSpecification)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case AlfPackage.PRIMARY_EXPRESSION__PREFIX:
+ return prefix != null;
+ }
+ return super.eIsSet(featureID);
+ }
} //PrimaryExpressionImpl

Back to the top