Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/PortImpl.java')
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/PortImpl.java222
1 files changed, 0 insertions, 222 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/PortImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/PortImpl.java
deleted file mode 100644
index 119118dcc77..00000000000
--- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/PortImpl.java
+++ /dev/null
@@ -1,222 +0,0 @@
-/**
- */
-package org.eclipse.papyrus.RobotML.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.papyrus.RobotML.Port;
-import org.eclipse.papyrus.RobotML.RobotMLPackage;
-import org.eclipse.papyrus.RobotML.SynchronizationKind;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Port</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.RobotML.impl.PortImpl#getBase_Port <em>Base Port</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotML.impl.PortImpl#getSynchronizationPolicy <em>Synchronization Policy</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public abstract class PortImpl extends MinimalEObjectImpl.Container implements Port {
- /**
- * The cached value of the '{@link #getBase_Port() <em>Base Port</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getBase_Port()
- * @generated
- * @ordered
- */
- protected org.eclipse.uml2.uml.Port base_Port;
-
- /**
- * The default value of the '{@link #getSynchronizationPolicy() <em>Synchronization Policy</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSynchronizationPolicy()
- * @generated
- * @ordered
- */
- protected static final SynchronizationKind SYNCHRONIZATION_POLICY_EDEFAULT = SynchronizationKind.SYNCH;
-
- /**
- * The cached value of the '{@link #getSynchronizationPolicy() <em>Synchronization Policy</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getSynchronizationPolicy()
- * @generated
- * @ordered
- */
- protected SynchronizationKind synchronizationPolicy = SYNCHRONIZATION_POLICY_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected PortImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return RobotMLPackage.Literals.PORT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public org.eclipse.uml2.uml.Port getBase_Port() {
- if (base_Port != null && base_Port.eIsProxy()) {
- InternalEObject oldBase_Port = (InternalEObject)base_Port;
- base_Port = (org.eclipse.uml2.uml.Port)eResolveProxy(oldBase_Port);
- if (base_Port != oldBase_Port) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, RobotMLPackage.PORT__BASE_PORT, oldBase_Port, base_Port));
- }
- }
- return base_Port;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public org.eclipse.uml2.uml.Port basicGetBase_Port() {
- return base_Port;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setBase_Port(org.eclipse.uml2.uml.Port newBase_Port) {
- org.eclipse.uml2.uml.Port oldBase_Port = base_Port;
- base_Port = newBase_Port;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, RobotMLPackage.PORT__BASE_PORT, oldBase_Port, base_Port));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SynchronizationKind getSynchronizationPolicy() {
- return synchronizationPolicy;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setSynchronizationPolicy(SynchronizationKind newSynchronizationPolicy) {
- SynchronizationKind oldSynchronizationPolicy = synchronizationPolicy;
- synchronizationPolicy = newSynchronizationPolicy == null ? SYNCHRONIZATION_POLICY_EDEFAULT : newSynchronizationPolicy;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, RobotMLPackage.PORT__SYNCHRONIZATION_POLICY, oldSynchronizationPolicy, synchronizationPolicy));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case RobotMLPackage.PORT__BASE_PORT:
- if (resolve) return getBase_Port();
- return basicGetBase_Port();
- case RobotMLPackage.PORT__SYNCHRONIZATION_POLICY:
- return getSynchronizationPolicy();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case RobotMLPackage.PORT__BASE_PORT:
- setBase_Port((org.eclipse.uml2.uml.Port)newValue);
- return;
- case RobotMLPackage.PORT__SYNCHRONIZATION_POLICY:
- setSynchronizationPolicy((SynchronizationKind)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case RobotMLPackage.PORT__BASE_PORT:
- setBase_Port((org.eclipse.uml2.uml.Port)null);
- return;
- case RobotMLPackage.PORT__SYNCHRONIZATION_POLICY:
- setSynchronizationPolicy(SYNCHRONIZATION_POLICY_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case RobotMLPackage.PORT__BASE_PORT:
- return base_Port != null;
- case RobotMLPackage.PORT__SYNCHRONIZATION_POLICY:
- return synchronizationPolicy != SYNCHRONIZATION_POLICY_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(" (synchronizationPolicy: ");
- result.append(synchronizationPolicy);
- result.append(')');
- return result.toString();
- }
-
-} // PortImpl

Back to the top