Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/oarps_datatypes/oarp4_datatypes/impl/Proxi_Left_RightImpl.java')
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/oarps_datatypes/oarp4_datatypes/impl/Proxi_Left_RightImpl.java142
1 files changed, 55 insertions, 87 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/oarps_datatypes/oarp4_datatypes/impl/Proxi_Left_RightImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/oarps_datatypes/oarp4_datatypes/impl/Proxi_Left_RightImpl.java
index 50fba098e83..69f7d9ce3a3 100644
--- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/oarps_datatypes/oarp4_datatypes/impl/Proxi_Left_RightImpl.java
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/oarps_datatypes/oarp4_datatypes/impl/Proxi_Left_RightImpl.java
@@ -1,22 +1,16 @@
-/*****************************************************************************
- * 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.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.oarps_datatypes.oarp4_datatypes.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.EObjectImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.oarps_datatypes.oarp4_datatypes.Distance;
import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.oarps_datatypes.oarp4_datatypes.Oarp4_datatypesPackage;
import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.oarps_datatypes.oarp4_datatypes.Proxi_Left_Right;
@@ -28,24 +22,18 @@ import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTyp
* <p>
* The following features are implemented:
* <ul>
- * <li>
- * {@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.oarps_datatypes.oarp4_datatypes.impl.Proxi_Left_RightImpl#getProxi_left
- * <em>Proxi left</em>}</li>
- * <li>
- * {@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.oarps_datatypes.oarp4_datatypes.impl.Proxi_Left_RightImpl#getProxi_right
- * <em>Proxi right</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.oarps_datatypes.oarp4_datatypes.impl.Proxi_Left_RightImpl#getProxi_left <em>Proxi left</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.oarps_datatypes.oarp4_datatypes.impl.Proxi_Left_RightImpl#getProxi_right <em>Proxi right</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
-public class Proxi_Left_RightImpl extends EObjectImpl implements Proxi_Left_Right {
-
+public class Proxi_Left_RightImpl extends MinimalEObjectImpl.Container implements Proxi_Left_Right {
/**
* The cached value of the '{@link #getProxi_left() <em>Proxi left</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getProxi_left()
* @generated
* @ordered
@@ -56,7 +44,6 @@ public class Proxi_Left_RightImpl extends EObjectImpl implements Proxi_Left_Righ
* The cached value of the '{@link #getProxi_right() <em>Proxi right</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getProxi_right()
* @generated
* @ordered
@@ -66,7 +53,6 @@ public class Proxi_Left_RightImpl extends EObjectImpl implements Proxi_Left_Righ
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected Proxi_Left_RightImpl() {
@@ -76,7 +62,6 @@ public class Proxi_Left_RightImpl extends EObjectImpl implements Proxi_Left_Righ
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -87,7 +72,6 @@ public class Proxi_Left_RightImpl extends EObjectImpl implements Proxi_Left_Righ
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Distance getProxi_left() {
@@ -97,18 +81,14 @@ public class Proxi_Left_RightImpl extends EObjectImpl implements Proxi_Left_Righ
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public NotificationChain basicSetProxi_left(Distance newProxi_left, NotificationChain msgs) {
Distance oldProxi_left = proxi_left;
proxi_left = newProxi_left;
- if(eNotificationRequired()) {
+ if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_LEFT, oldProxi_left, newProxi_left);
- if(msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
@@ -116,27 +96,25 @@ public class Proxi_Left_RightImpl extends EObjectImpl implements Proxi_Left_Righ
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setProxi_left(Distance newProxi_left) {
- if(newProxi_left != proxi_left) {
+ if (newProxi_left != proxi_left) {
NotificationChain msgs = null;
- if(proxi_left != null)
+ if (proxi_left != null)
msgs = ((InternalEObject)proxi_left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_LEFT, null, msgs);
- if(newProxi_left != null)
+ if (newProxi_left != null)
msgs = ((InternalEObject)newProxi_left).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_LEFT, null, msgs);
msgs = basicSetProxi_left(newProxi_left, msgs);
- if(msgs != null)
- msgs.dispatch();
- } else if(eNotificationRequired())
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_LEFT, newProxi_left, newProxi_left));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Distance getProxi_right() {
@@ -146,18 +124,14 @@ public class Proxi_Left_RightImpl extends EObjectImpl implements Proxi_Left_Righ
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public NotificationChain basicSetProxi_right(Distance newProxi_right, NotificationChain msgs) {
Distance oldProxi_right = proxi_right;
proxi_right = newProxi_right;
- if(eNotificationRequired()) {
+ if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_RIGHT, oldProxi_right, newProxi_right);
- if(msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
@@ -165,36 +139,34 @@ public class Proxi_Left_RightImpl extends EObjectImpl implements Proxi_Left_Righ
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setProxi_right(Distance newProxi_right) {
- if(newProxi_right != proxi_right) {
+ if (newProxi_right != proxi_right) {
NotificationChain msgs = null;
- if(proxi_right != null)
+ if (proxi_right != null)
msgs = ((InternalEObject)proxi_right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_RIGHT, null, msgs);
- if(newProxi_right != null)
+ if (newProxi_right != null)
msgs = ((InternalEObject)newProxi_right).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_RIGHT, null, msgs);
msgs = basicSetProxi_right(newProxi_right, msgs);
- if(msgs != null)
- msgs.dispatch();
- } else if(eNotificationRequired())
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_RIGHT, newProxi_right, newProxi_right));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch(featureID) {
- case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_LEFT:
- return basicSetProxi_left(null, msgs);
- case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_RIGHT:
- return basicSetProxi_right(null, msgs);
+ switch (featureID) {
+ case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_LEFT:
+ return basicSetProxi_left(null, msgs);
+ case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_RIGHT:
+ return basicSetProxi_right(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -202,16 +174,15 @@ public class Proxi_Left_RightImpl extends EObjectImpl implements Proxi_Left_Righ
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_LEFT:
- return getProxi_left();
- case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_RIGHT:
- return getProxi_right();
+ switch (featureID) {
+ case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_LEFT:
+ return getProxi_left();
+ case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_RIGHT:
+ return getProxi_right();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -219,18 +190,17 @@ public class Proxi_Left_RightImpl extends EObjectImpl implements Proxi_Left_Righ
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_LEFT:
- setProxi_left((Distance)newValue);
- return;
- case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_RIGHT:
- setProxi_right((Distance)newValue);
- return;
+ switch (featureID) {
+ case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_LEFT:
+ setProxi_left((Distance)newValue);
+ return;
+ case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_RIGHT:
+ setProxi_right((Distance)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -238,18 +208,17 @@ public class Proxi_Left_RightImpl extends EObjectImpl implements Proxi_Left_Righ
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
- case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_LEFT:
- setProxi_left((Distance)null);
- return;
- case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_RIGHT:
- setProxi_right((Distance)null);
- return;
+ switch (featureID) {
+ case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_LEFT:
+ setProxi_left((Distance)null);
+ return;
+ case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_RIGHT:
+ setProxi_right((Distance)null);
+ return;
}
super.eUnset(featureID);
}
@@ -257,16 +226,15 @@ public class Proxi_Left_RightImpl extends EObjectImpl implements Proxi_Left_Righ
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
- case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_LEFT:
- return proxi_left != null;
- case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_RIGHT:
- return proxi_right != null;
+ switch (featureID) {
+ case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_LEFT:
+ return proxi_left != null;
+ case Oarp4_datatypesPackage.PROXI_LEFT_RIGHT__PROXI_RIGHT:
+ return proxi_right != null;
}
return super.eIsSet(featureID);
}

Back to the top