Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/impl/ExtensionImpl.java')
-rw-r--r--plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/impl/ExtensionImpl.java83
1 files changed, 82 insertions, 1 deletions
diff --git a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/impl/ExtensionImpl.java b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/impl/ExtensionImpl.java
index 593bc71c..9b9f38e9 100644
--- a/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/impl/ExtensionImpl.java
+++ b/plugins/org.eclipse.xpand3/emf-gen/org/eclipse/xpand3/declaration/impl/ExtensionImpl.java
@@ -2,18 +2,21 @@
* <copyright>
* </copyright>
*
- * $Id: ExtensionImpl.java,v 1.1 2008/02/27 13:21:08 sefftinge Exp $
+ * $Id: ExtensionImpl.java,v 1.2 2008/03/06 15:35:15 jkohnlein Exp $
*/
package org.eclipse.xpand3.declaration.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.xpand3.declaration.DeclarationPackage;
import org.eclipse.xpand3.declaration.Extension;
+import org.eclipse.xpand3.expression.AbstractExpression;
/**
* <!-- begin-user-doc -->
@@ -23,6 +26,7 @@ import org.eclipse.xpand3.declaration.Extension;
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.xpand3.declaration.impl.ExtensionImpl#isCached <em>Cached</em>}</li>
+ * <li>{@link org.eclipse.xpand3.declaration.impl.ExtensionImpl#getBody <em>Body</em>}</li>
* </ul>
* </p>
*
@@ -50,6 +54,16 @@ public class ExtensionImpl extends AbstractNamedDeclarationImpl implements Exten
protected boolean cached = CACHED_EDEFAULT;
/**
+ * The cached value of the '{@link #getBody() <em>Body</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBody()
+ * @generated
+ * @ordered
+ */
+ protected AbstractExpression body;
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -94,11 +108,70 @@ public class ExtensionImpl extends AbstractNamedDeclarationImpl implements Exten
* <!-- end-user-doc -->
* @generated
*/
+ public AbstractExpression getBody() {
+ return body;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetBody(AbstractExpression newBody, NotificationChain msgs) {
+ AbstractExpression oldBody = body;
+ body = newBody;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DeclarationPackage.EXTENSION__BODY, oldBody, newBody);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBody(AbstractExpression newBody) {
+ if (newBody != body) {
+ NotificationChain msgs = null;
+ if (body != null)
+ msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DeclarationPackage.EXTENSION__BODY, null, msgs);
+ if (newBody != null)
+ msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DeclarationPackage.EXTENSION__BODY, null, msgs);
+ msgs = basicSetBody(newBody, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, DeclarationPackage.EXTENSION__BODY, newBody, newBody));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case DeclarationPackage.EXTENSION__BODY:
+ return basicSetBody(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 DeclarationPackage.EXTENSION__CACHED:
return isCached() ? Boolean.TRUE : Boolean.FALSE;
+ case DeclarationPackage.EXTENSION__BODY:
+ return getBody();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -114,6 +187,9 @@ public class ExtensionImpl extends AbstractNamedDeclarationImpl implements Exten
case DeclarationPackage.EXTENSION__CACHED:
setCached(((Boolean)newValue).booleanValue());
return;
+ case DeclarationPackage.EXTENSION__BODY:
+ setBody((AbstractExpression)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -129,6 +205,9 @@ public class ExtensionImpl extends AbstractNamedDeclarationImpl implements Exten
case DeclarationPackage.EXTENSION__CACHED:
setCached(CACHED_EDEFAULT);
return;
+ case DeclarationPackage.EXTENSION__BODY:
+ setBody((AbstractExpression)null);
+ return;
}
super.eUnset(featureID);
}
@@ -143,6 +222,8 @@ public class ExtensionImpl extends AbstractNamedDeclarationImpl implements Exten
switch (featureID) {
case DeclarationPackage.EXTENSION__CACHED:
return cached != CACHED_EDEFAULT;
+ case DeclarationPackage.EXTENSION__BODY:
+ return body != null;
}
return super.eIsSet(featureID);
}

Back to the top