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/OnPortImpl.java')
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/OnPortImpl.java112
1 files changed, 45 insertions, 67 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/OnPortImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/OnPortImpl.java
index 7729d09326e..b7f8cfca24c 100644
--- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/OnPortImpl.java
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/impl/OnPortImpl.java
@@ -1,24 +1,19 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Saadia Dhouib (CEA LIST) saadia.dhouib@cea.fr - Initial API and implementation
- *****************************************************************************/
+/**
+ */
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.EObjectImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
import org.eclipse.papyrus.RobotML.OnPort;
import org.eclipse.papyrus.RobotML.Port;
import org.eclipse.papyrus.RobotML.RobotMLPackage;
+
import org.eclipse.uml2.uml.Parameter;
/**
@@ -28,20 +23,18 @@ import org.eclipse.uml2.uml.Parameter;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.RobotML.impl.OnPortImpl#getPort <em>Port</em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotML.impl.OnPortImpl#getBase_Parameter <em>Base Parameter</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotML.impl.OnPortImpl#getPort <em>Port</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotML.impl.OnPortImpl#getBase_Parameter <em>Base Parameter</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
-public class OnPortImpl extends EObjectImpl implements OnPort {
-
+public class OnPortImpl extends MinimalEObjectImpl.Container implements OnPort {
/**
* The cached value of the '{@link #getPort() <em>Port</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getPort()
* @generated
* @ordered
@@ -52,7 +45,6 @@ public class OnPortImpl extends EObjectImpl implements OnPort {
* The cached value of the '{@link #getBase_Parameter() <em>Base Parameter</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getBase_Parameter()
* @generated
* @ordered
@@ -62,7 +54,6 @@ public class OnPortImpl extends EObjectImpl implements OnPort {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected OnPortImpl() {
@@ -72,7 +63,6 @@ public class OnPortImpl extends EObjectImpl implements OnPort {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -83,15 +73,14 @@ public class OnPortImpl extends EObjectImpl implements OnPort {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Port getPort() {
- if(port != null && port.eIsProxy()) {
+ if (port != null && port.eIsProxy()) {
InternalEObject oldPort = (InternalEObject)port;
port = (Port)eResolveProxy(oldPort);
- if(port != oldPort) {
- if(eNotificationRequired())
+ if (port != oldPort) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, RobotMLPackage.ON_PORT__PORT, oldPort, port));
}
}
@@ -101,7 +90,6 @@ public class OnPortImpl extends EObjectImpl implements OnPort {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Port basicGetPort() {
@@ -111,28 +99,26 @@ public class OnPortImpl extends EObjectImpl implements OnPort {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setPort(Port newPort) {
Port oldPort = port;
port = newPort;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, RobotMLPackage.ON_PORT__PORT, oldPort, port));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Parameter getBase_Parameter() {
- if(base_Parameter != null && base_Parameter.eIsProxy()) {
+ if (base_Parameter != null && base_Parameter.eIsProxy()) {
InternalEObject oldBase_Parameter = (InternalEObject)base_Parameter;
base_Parameter = (Parameter)eResolveProxy(oldBase_Parameter);
- if(base_Parameter != oldBase_Parameter) {
- if(eNotificationRequired())
+ if (base_Parameter != oldBase_Parameter) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, RobotMLPackage.ON_PORT__BASE_PARAMETER, oldBase_Parameter, base_Parameter));
}
}
@@ -142,7 +128,6 @@ public class OnPortImpl extends EObjectImpl implements OnPort {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Parameter basicGetBase_Parameter() {
@@ -152,33 +137,29 @@ public class OnPortImpl extends EObjectImpl implements OnPort {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setBase_Parameter(Parameter newBase_Parameter) {
Parameter oldBase_Parameter = base_Parameter;
base_Parameter = newBase_Parameter;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, RobotMLPackage.ON_PORT__BASE_PARAMETER, oldBase_Parameter, base_Parameter));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case RobotMLPackage.ON_PORT__PORT:
- if(resolve)
- return getPort();
- return basicGetPort();
- case RobotMLPackage.ON_PORT__BASE_PARAMETER:
- if(resolve)
- return getBase_Parameter();
- return basicGetBase_Parameter();
+ switch (featureID) {
+ case RobotMLPackage.ON_PORT__PORT:
+ if (resolve) return getPort();
+ return basicGetPort();
+ case RobotMLPackage.ON_PORT__BASE_PARAMETER:
+ if (resolve) return getBase_Parameter();
+ return basicGetBase_Parameter();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -186,18 +167,17 @@ public class OnPortImpl extends EObjectImpl implements OnPort {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case RobotMLPackage.ON_PORT__PORT:
- setPort((Port)newValue);
- return;
- case RobotMLPackage.ON_PORT__BASE_PARAMETER:
- setBase_Parameter((Parameter)newValue);
- return;
+ switch (featureID) {
+ case RobotMLPackage.ON_PORT__PORT:
+ setPort((Port)newValue);
+ return;
+ case RobotMLPackage.ON_PORT__BASE_PARAMETER:
+ setBase_Parameter((Parameter)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -205,18 +185,17 @@ public class OnPortImpl extends EObjectImpl implements OnPort {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
- case RobotMLPackage.ON_PORT__PORT:
- setPort((Port)null);
- return;
- case RobotMLPackage.ON_PORT__BASE_PARAMETER:
- setBase_Parameter((Parameter)null);
- return;
+ switch (featureID) {
+ case RobotMLPackage.ON_PORT__PORT:
+ setPort((Port)null);
+ return;
+ case RobotMLPackage.ON_PORT__BASE_PARAMETER:
+ setBase_Parameter((Parameter)null);
+ return;
}
super.eUnset(featureID);
}
@@ -224,16 +203,15 @@ public class OnPortImpl extends EObjectImpl implements OnPort {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
- case RobotMLPackage.ON_PORT__PORT:
- return port != null;
- case RobotMLPackage.ON_PORT__BASE_PARAMETER:
- return base_Parameter != null;
+ switch (featureID) {
+ case RobotMLPackage.ON_PORT__PORT:
+ return port != null;
+ case RobotMLPackage.ON_PORT__BASE_PARAMETER:
+ return base_Parameter != null;
}
return super.eIsSet(featureID);
}

Back to the top