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/std_datatypes/impl/UInt32MultiArrayImpl.java')
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/impl/UInt32MultiArrayImpl.java125
1 files changed, 50 insertions, 75 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/impl/UInt32MultiArrayImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/impl/UInt32MultiArrayImpl.java
index dd25e140b5b..112afc208e1 100644
--- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/impl/UInt32MultiArrayImpl.java
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/impl/UInt32MultiArrayImpl.java
@@ -1,26 +1,22 @@
-/*****************************************************************************
- * 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.std_datatypes.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
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.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
+
import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.MultiArrayLayout;
import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Std_datatypesPackage;
import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.UInt32MultiArray;
@@ -32,22 +28,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.std_datatypes.impl.UInt32MultiArrayImpl#getLayout <em>Layout
- * </em>}</li>
- * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl.UInt32MultiArrayImpl#getData <em>Data
- * </em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl.UInt32MultiArrayImpl#getLayout <em>Layout</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl.UInt32MultiArrayImpl#getData <em>Data</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
-public class UInt32MultiArrayImpl extends EObjectImpl implements UInt32MultiArray {
-
+public class UInt32MultiArrayImpl extends MinimalEObjectImpl.Container implements UInt32MultiArray {
/**
* The cached value of the '{@link #getLayout() <em>Layout</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getLayout()
* @generated
* @ordered
@@ -58,7 +50,6 @@ public class UInt32MultiArrayImpl extends EObjectImpl implements UInt32MultiArra
* The cached value of the '{@link #getData() <em>Data</em>}' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getData()
* @generated
* @ordered
@@ -68,7 +59,6 @@ public class UInt32MultiArrayImpl extends EObjectImpl implements UInt32MultiArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected UInt32MultiArrayImpl() {
@@ -78,7 +68,6 @@ public class UInt32MultiArrayImpl extends EObjectImpl implements UInt32MultiArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -89,7 +78,6 @@ public class UInt32MultiArrayImpl extends EObjectImpl implements UInt32MultiArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public MultiArrayLayout getLayout() {
@@ -99,18 +87,14 @@ public class UInt32MultiArrayImpl extends EObjectImpl implements UInt32MultiArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public NotificationChain basicSetLayout(MultiArrayLayout newLayout, NotificationChain msgs) {
MultiArrayLayout oldLayout = layout;
layout = newLayout;
- if(eNotificationRequired()) {
+ if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Std_datatypesPackage.UINT32_MULTI_ARRAY__LAYOUT, oldLayout, newLayout);
- if(msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
@@ -118,31 +102,29 @@ public class UInt32MultiArrayImpl extends EObjectImpl implements UInt32MultiArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setLayout(MultiArrayLayout newLayout) {
- if(newLayout != layout) {
+ if (newLayout != layout) {
NotificationChain msgs = null;
- if(layout != null)
+ if (layout != null)
msgs = ((InternalEObject)layout).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Std_datatypesPackage.UINT32_MULTI_ARRAY__LAYOUT, null, msgs);
- if(newLayout != null)
+ if (newLayout != null)
msgs = ((InternalEObject)newLayout).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Std_datatypesPackage.UINT32_MULTI_ARRAY__LAYOUT, null, msgs);
msgs = basicSetLayout(newLayout, msgs);
- if(msgs != null)
- msgs.dispatch();
- } else if(eNotificationRequired())
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Std_datatypesPackage.UINT32_MULTI_ARRAY__LAYOUT, newLayout, newLayout));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EList<Long> getData() {
- if(data == null) {
+ if (data == null) {
data = new EDataTypeUniqueEList<Long>(Long.class, this, Std_datatypesPackage.UINT32_MULTI_ARRAY__DATA);
}
return data;
@@ -151,14 +133,13 @@ public class UInt32MultiArrayImpl extends EObjectImpl implements UInt32MultiArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch(featureID) {
- case Std_datatypesPackage.UINT32_MULTI_ARRAY__LAYOUT:
- return basicSetLayout(null, msgs);
+ switch (featureID) {
+ case Std_datatypesPackage.UINT32_MULTI_ARRAY__LAYOUT:
+ return basicSetLayout(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -166,16 +147,15 @@ public class UInt32MultiArrayImpl extends EObjectImpl implements UInt32MultiArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case Std_datatypesPackage.UINT32_MULTI_ARRAY__LAYOUT:
- return getLayout();
- case Std_datatypesPackage.UINT32_MULTI_ARRAY__DATA:
- return getData();
+ switch (featureID) {
+ case Std_datatypesPackage.UINT32_MULTI_ARRAY__LAYOUT:
+ return getLayout();
+ case Std_datatypesPackage.UINT32_MULTI_ARRAY__DATA:
+ return getData();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -183,20 +163,19 @@ public class UInt32MultiArrayImpl extends EObjectImpl implements UInt32MultiArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case Std_datatypesPackage.UINT32_MULTI_ARRAY__LAYOUT:
- setLayout((MultiArrayLayout)newValue);
- return;
- case Std_datatypesPackage.UINT32_MULTI_ARRAY__DATA:
- getData().clear();
- getData().addAll((Collection<? extends Long>)newValue);
- return;
+ switch (featureID) {
+ case Std_datatypesPackage.UINT32_MULTI_ARRAY__LAYOUT:
+ setLayout((MultiArrayLayout)newValue);
+ return;
+ case Std_datatypesPackage.UINT32_MULTI_ARRAY__DATA:
+ getData().clear();
+ getData().addAll((Collection<? extends Long>)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -204,18 +183,17 @@ public class UInt32MultiArrayImpl extends EObjectImpl implements UInt32MultiArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
- case Std_datatypesPackage.UINT32_MULTI_ARRAY__LAYOUT:
- setLayout((MultiArrayLayout)null);
- return;
- case Std_datatypesPackage.UINT32_MULTI_ARRAY__DATA:
- getData().clear();
- return;
+ switch (featureID) {
+ case Std_datatypesPackage.UINT32_MULTI_ARRAY__LAYOUT:
+ setLayout((MultiArrayLayout)null);
+ return;
+ case Std_datatypesPackage.UINT32_MULTI_ARRAY__DATA:
+ getData().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -223,16 +201,15 @@ public class UInt32MultiArrayImpl extends EObjectImpl implements UInt32MultiArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
- case Std_datatypesPackage.UINT32_MULTI_ARRAY__LAYOUT:
- return layout != null;
- case Std_datatypesPackage.UINT32_MULTI_ARRAY__DATA:
- return data != null && !data.isEmpty();
+ switch (featureID) {
+ case Std_datatypesPackage.UINT32_MULTI_ARRAY__LAYOUT:
+ return layout != null;
+ case Std_datatypesPackage.UINT32_MULTI_ARRAY__DATA:
+ return data != null && !data.isEmpty();
}
return super.eIsSet(featureID);
}
@@ -240,13 +217,11 @@ public class UInt32MultiArrayImpl extends EObjectImpl implements UInt32MultiArra
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public String toString() {
- if(eIsProxy())
- return super.toString();
+ if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (data: ");

Back to the top