Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/InitialDeclarationImpl.java')
-rw-r--r--plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/InitialDeclarationImpl.java173
1 files changed, 173 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/InitialDeclarationImpl.java b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/InitialDeclarationImpl.java
new file mode 100644
index 000000000..5a742439e
--- /dev/null
+++ b/plugins/org.eclipse.etrice.generator.fsmtest/src-gen/org/eclipse/etrice/generator/fsmtest/impl/InitialDeclarationImpl.java
@@ -0,0 +1,173 @@
+/**
+ */
+package org.eclipse.etrice.generator.fsmtest.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.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.etrice.generator.fsmtest.FsmtestPackage;
+import org.eclipse.etrice.generator.fsmtest.InitialDeclaration;
+import org.eclipse.etrice.generator.fsmtest.State;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Initial Declaration</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.generator.fsmtest.impl.InitialDeclarationImpl#getInitial <em>Initial</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class InitialDeclarationImpl extends MinimalEObjectImpl.Container implements InitialDeclaration
+{
+ /**
+ * The cached value of the '{@link #getInitial() <em>Initial</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getInitial()
+ * @generated
+ * @ordered
+ */
+ protected State initial;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected InitialDeclarationImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return FsmtestPackage.Literals.INITIAL_DECLARATION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public State getInitial()
+ {
+ if (initial != null && initial.eIsProxy())
+ {
+ InternalEObject oldInitial = (InternalEObject)initial;
+ initial = (State)eResolveProxy(oldInitial);
+ if (initial != oldInitial)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, FsmtestPackage.INITIAL_DECLARATION__INITIAL, oldInitial, initial));
+ }
+ }
+ return initial;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public State basicGetInitial()
+ {
+ return initial;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setInitial(State newInitial)
+ {
+ State oldInitial = initial;
+ initial = newInitial;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, FsmtestPackage.INITIAL_DECLARATION__INITIAL, oldInitial, initial));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case FsmtestPackage.INITIAL_DECLARATION__INITIAL:
+ if (resolve) return getInitial();
+ return basicGetInitial();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case FsmtestPackage.INITIAL_DECLARATION__INITIAL:
+ setInitial((State)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case FsmtestPackage.INITIAL_DECLARATION__INITIAL:
+ setInitial((State)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case FsmtestPackage.INITIAL_DECLARATION__INITIAL:
+ return initial != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //InitialDeclarationImpl

Back to the top