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/sensor_datatypes/impl/JoyFeedbackArrayImpl.java')
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/sensor_datatypes/impl/JoyFeedbackArrayImpl.java75
1 files changed, 30 insertions, 45 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/sensor_datatypes/impl/JoyFeedbackArrayImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/sensor_datatypes/impl/JoyFeedbackArrayImpl.java
index 79aa75fa8f3..b7a139d2730 100644
--- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/sensor_datatypes/impl/JoyFeedbackArrayImpl.java
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/sensor_datatypes/impl/JoyFeedbackArrayImpl.java
@@ -1,25 +1,21 @@
-/*****************************************************************************
- * 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.sensor_datatypes.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
+
import org.eclipse.emf.common.util.EList;
+
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
+
import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.sensor_datatypes.JoyFeedback;
import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.sensor_datatypes.JoyFeedbackArray;
import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.sensor_datatypes.Sensor_datatypesPackage;
@@ -31,20 +27,17 @@ 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.sensor_datatypes.impl.JoyFeedbackArrayImpl#getArray <em>
- * Array</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.sensor_datatypes.impl.JoyFeedbackArrayImpl#getArray <em>Array</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
-public class JoyFeedbackArrayImpl extends EObjectImpl implements JoyFeedbackArray {
-
+public class JoyFeedbackArrayImpl extends MinimalEObjectImpl.Container implements JoyFeedbackArray {
/**
* The cached value of the '{@link #getArray() <em>Array</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getArray()
* @generated
* @ordered
@@ -54,7 +47,6 @@ public class JoyFeedbackArrayImpl extends EObjectImpl implements JoyFeedbackArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected JoyFeedbackArrayImpl() {
@@ -64,7 +56,6 @@ public class JoyFeedbackArrayImpl extends EObjectImpl implements JoyFeedbackArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -75,11 +66,10 @@ public class JoyFeedbackArrayImpl extends EObjectImpl implements JoyFeedbackArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EList<JoyFeedback> getArray() {
- if(array == null) {
+ if (array == null) {
array = new EObjectContainmentEList<JoyFeedback>(JoyFeedback.class, this, Sensor_datatypesPackage.JOY_FEEDBACK_ARRAY__ARRAY);
}
return array;
@@ -88,14 +78,13 @@ public class JoyFeedbackArrayImpl extends EObjectImpl implements JoyFeedbackArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch(featureID) {
- case Sensor_datatypesPackage.JOY_FEEDBACK_ARRAY__ARRAY:
- return ((InternalEList<?>)getArray()).basicRemove(otherEnd, msgs);
+ switch (featureID) {
+ case Sensor_datatypesPackage.JOY_FEEDBACK_ARRAY__ARRAY:
+ return ((InternalEList<?>)getArray()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -103,14 +92,13 @@ public class JoyFeedbackArrayImpl extends EObjectImpl implements JoyFeedbackArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case Sensor_datatypesPackage.JOY_FEEDBACK_ARRAY__ARRAY:
- return getArray();
+ switch (featureID) {
+ case Sensor_datatypesPackage.JOY_FEEDBACK_ARRAY__ARRAY:
+ return getArray();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -118,17 +106,16 @@ public class JoyFeedbackArrayImpl extends EObjectImpl implements JoyFeedbackArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case Sensor_datatypesPackage.JOY_FEEDBACK_ARRAY__ARRAY:
- getArray().clear();
- getArray().addAll((Collection<? extends JoyFeedback>)newValue);
- return;
+ switch (featureID) {
+ case Sensor_datatypesPackage.JOY_FEEDBACK_ARRAY__ARRAY:
+ getArray().clear();
+ getArray().addAll((Collection<? extends JoyFeedback>)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -136,15 +123,14 @@ public class JoyFeedbackArrayImpl extends EObjectImpl implements JoyFeedbackArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
- case Sensor_datatypesPackage.JOY_FEEDBACK_ARRAY__ARRAY:
- getArray().clear();
- return;
+ switch (featureID) {
+ case Sensor_datatypesPackage.JOY_FEEDBACK_ARRAY__ARRAY:
+ getArray().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -152,14 +138,13 @@ public class JoyFeedbackArrayImpl extends EObjectImpl implements JoyFeedbackArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
- case Sensor_datatypesPackage.JOY_FEEDBACK_ARRAY__ARRAY:
- return array != null && !array.isEmpty();
+ switch (featureID) {
+ case Sensor_datatypesPackage.JOY_FEEDBACK_ARRAY__ARRAY:
+ return array != null && !array.isEmpty();
}
return super.eIsSet(featureID);
}

Back to the top