Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/impl/RuntimeClassImpl.java')
-rw-r--r--plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/impl/RuntimeClassImpl.java322
1 files changed, 322 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/impl/RuntimeClassImpl.java b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/impl/RuntimeClassImpl.java
new file mode 100644
index 000000000..1fc5c74c9
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/eTPhys/impl/RuntimeClassImpl.java
@@ -0,0 +1,322 @@
+/**
+ */
+package org.eclipse.etrice.core.etphys.eTPhys.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.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.etrice.core.etphys.eTPhys.Documentation;
+import org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage;
+import org.eclipse.etrice.core.etphys.eTPhys.RuntimeClass;
+import org.eclipse.etrice.core.etphys.eTPhys.ThreadModel;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Runtime Class</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.etrice.core.etphys.eTPhys.impl.RuntimeClassImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.etrice.core.etphys.eTPhys.impl.RuntimeClassImpl#getDocu <em>Docu</em>}</li>
+ * <li>{@link org.eclipse.etrice.core.etphys.eTPhys.impl.RuntimeClassImpl#getThreadModel <em>Thread Model</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RuntimeClassImpl extends MinimalEObjectImpl.Container implements RuntimeClass
+{
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getDocu() <em>Docu</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDocu()
+ * @generated
+ * @ordered
+ */
+ protected Documentation docu;
+
+ /**
+ * The default value of the '{@link #getThreadModel() <em>Thread Model</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getThreadModel()
+ * @generated
+ * @ordered
+ */
+ protected static final ThreadModel THREAD_MODEL_EDEFAULT = ThreadModel.SINGLE_THREADED;
+
+ /**
+ * The cached value of the '{@link #getThreadModel() <em>Thread Model</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getThreadModel()
+ * @generated
+ * @ordered
+ */
+ protected ThreadModel threadModel = THREAD_MODEL_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected RuntimeClassImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return ETPhysPackage.Literals.RUNTIME_CLASS;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ETPhysPackage.RUNTIME_CLASS__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Documentation getDocu()
+ {
+ return docu;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetDocu(Documentation newDocu, NotificationChain msgs)
+ {
+ Documentation oldDocu = docu;
+ docu = newDocu;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ETPhysPackage.RUNTIME_CLASS__DOCU, oldDocu, newDocu);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDocu(Documentation newDocu)
+ {
+ if (newDocu != docu)
+ {
+ NotificationChain msgs = null;
+ if (docu != null)
+ msgs = ((InternalEObject)docu).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ETPhysPackage.RUNTIME_CLASS__DOCU, null, msgs);
+ if (newDocu != null)
+ msgs = ((InternalEObject)newDocu).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ETPhysPackage.RUNTIME_CLASS__DOCU, null, msgs);
+ msgs = basicSetDocu(newDocu, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ETPhysPackage.RUNTIME_CLASS__DOCU, newDocu, newDocu));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ThreadModel getThreadModel()
+ {
+ return threadModel;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setThreadModel(ThreadModel newThreadModel)
+ {
+ ThreadModel oldThreadModel = threadModel;
+ threadModel = newThreadModel == null ? THREAD_MODEL_EDEFAULT : newThreadModel;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, ETPhysPackage.RUNTIME_CLASS__THREAD_MODEL, oldThreadModel, threadModel));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case ETPhysPackage.RUNTIME_CLASS__DOCU:
+ return basicSetDocu(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 ETPhysPackage.RUNTIME_CLASS__NAME:
+ return getName();
+ case ETPhysPackage.RUNTIME_CLASS__DOCU:
+ return getDocu();
+ case ETPhysPackage.RUNTIME_CLASS__THREAD_MODEL:
+ return getThreadModel();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case ETPhysPackage.RUNTIME_CLASS__NAME:
+ setName((String)newValue);
+ return;
+ case ETPhysPackage.RUNTIME_CLASS__DOCU:
+ setDocu((Documentation)newValue);
+ return;
+ case ETPhysPackage.RUNTIME_CLASS__THREAD_MODEL:
+ setThreadModel((ThreadModel)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case ETPhysPackage.RUNTIME_CLASS__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case ETPhysPackage.RUNTIME_CLASS__DOCU:
+ setDocu((Documentation)null);
+ return;
+ case ETPhysPackage.RUNTIME_CLASS__THREAD_MODEL:
+ setThreadModel(THREAD_MODEL_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case ETPhysPackage.RUNTIME_CLASS__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case ETPhysPackage.RUNTIME_CLASS__DOCU:
+ return docu != null;
+ case ETPhysPackage.RUNTIME_CLASS__THREAD_MODEL:
+ return threadModel != THREAD_MODEL_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(", threadModel: ");
+ result.append(threadModel);
+ result.append(')');
+ return result.toString();
+ }
+
+} //RuntimeClassImpl

Back to the top