Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.xpand3.parser/emf-gen/org/eclipse/xpand3/internal/parser/xpand3node/impl/CasePartNodeImpl.java')
-rw-r--r--plugins/org.eclipse.xpand3.parser/emf-gen/org/eclipse/xpand3/internal/parser/xpand3node/impl/CasePartNodeImpl.java180
1 files changed, 179 insertions, 1 deletions
diff --git a/plugins/org.eclipse.xpand3.parser/emf-gen/org/eclipse/xpand3/internal/parser/xpand3node/impl/CasePartNodeImpl.java b/plugins/org.eclipse.xpand3.parser/emf-gen/org/eclipse/xpand3/internal/parser/xpand3node/impl/CasePartNodeImpl.java
index 2e372981..1bf29d21 100644
--- a/plugins/org.eclipse.xpand3.parser/emf-gen/org/eclipse/xpand3/internal/parser/xpand3node/impl/CasePartNodeImpl.java
+++ b/plugins/org.eclipse.xpand3.parser/emf-gen/org/eclipse/xpand3/internal/parser/xpand3node/impl/CasePartNodeImpl.java
@@ -2,11 +2,18 @@
* <copyright>
* </copyright>
*
- * $Id: CasePartNodeImpl.java,v 1.2 2008/03/07 09:39:42 jkohnlein Exp $
+ * $Id: CasePartNodeImpl.java,v 1.3 2008/03/13 08:40:01 jkohnlein Exp $
*/
package org.eclipse.xpand3.internal.parser.xpand3node.impl;
+import org.eclipse.emf.common.notify.Notification;
+
import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.tmf.common.node.CompositeNode;
import org.eclipse.tmf.common.node.impl.CompositeNodeImpl;
@@ -18,12 +25,37 @@ import org.eclipse.xpand3.internal.parser.xpand3node.Xpand3nodePackage;
* An implementation of the model object '<em><b>Case Part Node</b></em>'.
* <!-- end-user-doc -->
* <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.xpand3.internal.parser.xpand3node.impl.CasePartNodeImpl#getCondition <em>Condition</em>}</li>
+ * <li>{@link org.eclipse.xpand3.internal.parser.xpand3node.impl.CasePartNodeImpl#getExpression <em>Expression</em>}</li>
+ * </ul>
* </p>
*
* @generated
*/
public class CasePartNodeImpl extends CompositeNodeImpl implements CasePartNode {
/**
+ * The cached value of the '{@link #getCondition() <em>Condition</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCondition()
+ * @generated
+ * @ordered
+ */
+ protected CompositeNode condition;
+
+ /**
+ * The cached value of the '{@link #getExpression() <em>Expression</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getExpression()
+ * @generated
+ * @ordered
+ */
+ protected CompositeNode expression;
+
+ /**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
@@ -42,4 +74,150 @@ public class CasePartNodeImpl extends CompositeNodeImpl implements CasePartNode
return Xpand3nodePackage.Literals.CASE_PART_NODE;
}
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CompositeNode getCondition() {
+ if (condition != null && condition.eIsProxy()) {
+ InternalEObject oldCondition = (InternalEObject)condition;
+ condition = (CompositeNode)eResolveProxy(oldCondition);
+ if (condition != oldCondition) {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, Xpand3nodePackage.CASE_PART_NODE__CONDITION, oldCondition, condition));
+ }
+ }
+ return condition;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CompositeNode basicGetCondition() {
+ return condition;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setCondition(CompositeNode newCondition) {
+ CompositeNode oldCondition = condition;
+ condition = newCondition;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Xpand3nodePackage.CASE_PART_NODE__CONDITION, oldCondition, condition));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CompositeNode getExpression() {
+ if (expression != null && expression.eIsProxy()) {
+ InternalEObject oldExpression = (InternalEObject)expression;
+ expression = (CompositeNode)eResolveProxy(oldExpression);
+ if (expression != oldExpression) {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, Xpand3nodePackage.CASE_PART_NODE__EXPRESSION, oldExpression, expression));
+ }
+ }
+ return expression;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CompositeNode basicGetExpression() {
+ return expression;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setExpression(CompositeNode newExpression) {
+ CompositeNode oldExpression = expression;
+ expression = newExpression;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Xpand3nodePackage.CASE_PART_NODE__EXPRESSION, oldExpression, expression));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case Xpand3nodePackage.CASE_PART_NODE__CONDITION:
+ if (resolve) return getCondition();
+ return basicGetCondition();
+ case Xpand3nodePackage.CASE_PART_NODE__EXPRESSION:
+ if (resolve) return getExpression();
+ return basicGetExpression();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case Xpand3nodePackage.CASE_PART_NODE__CONDITION:
+ setCondition((CompositeNode)newValue);
+ return;
+ case Xpand3nodePackage.CASE_PART_NODE__EXPRESSION:
+ setExpression((CompositeNode)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case Xpand3nodePackage.CASE_PART_NODE__CONDITION:
+ setCondition((CompositeNode)null);
+ return;
+ case Xpand3nodePackage.CASE_PART_NODE__EXPRESSION:
+ setExpression((CompositeNode)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case Xpand3nodePackage.CASE_PART_NODE__CONDITION:
+ return condition != null;
+ case Xpand3nodePackage.CASE_PART_NODE__EXPRESSION:
+ return expression != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
} //CasePartNodeImpl

Back to the top