Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaadia Dhouib2015-05-22 10:24:10 -0400
committerSaadia Dhouib2015-05-22 10:24:10 -0400
commit4d31bce01b3ad69926b86676137c2bab26d78898 (patch)
tree73caed6a9da30868459e84d5ee739a68601cd285
parent8152c54de223f80a6c0c7c524764e3adf352e089 (diff)
downloadorg.eclipse.papyrus-4d31bce01b3ad69926b86676137c2bab26d78898.tar.gz
org.eclipse.papyrus-4d31bce01b3ad69926b86676137c2bab26d78898.tar.xz
org.eclipse.papyrus-4d31bce01b3ad69926b86676137c2bab26d78898.zip
Regenerating profile
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/UInt16MultiArray.java69
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/impl/UInt16MultiArrayImpl.java233
2 files changed, 302 insertions, 0 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/UInt16MultiArray.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/UInt16MultiArray.java
new file mode 100644
index 00000000000..fadd49faebc
--- /dev/null
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/UInt16MultiArray.java
@@ -0,0 +1,69 @@
+/**
+ */
+package org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>UInt16 Multi Array</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.UInt16MultiArray#getLayout <em>Layout</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.UInt16MultiArray#getData <em>Data</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Std_datatypesPackage#getUInt16MultiArray()
+ * @model
+ * @generated
+ */
+public interface UInt16MultiArray extends EObject {
+ /**
+ * Returns the value of the '<em><b>Layout</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Layout</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Layout</em>' containment reference.
+ * @see #setLayout(MultiArrayLayout)
+ * @see org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Std_datatypesPackage#getUInt16MultiArray_Layout()
+ * @model containment="true" required="true" ordered="false"
+ * @generated
+ */
+ MultiArrayLayout getLayout();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.UInt16MultiArray#getLayout <em>Layout</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Layout</em>' containment reference.
+ * @see #getLayout()
+ * @generated
+ */
+ void setLayout(MultiArrayLayout value);
+
+ /**
+ * Returns the value of the '<em><b>Data</b></em>' attribute list.
+ * The list contents are of type {@link java.lang.Object}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Data</em>' attribute list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Data</em>' attribute list.
+ * @see org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Std_datatypesPackage#getUInt16MultiArray_Data()
+ * @model dataType="org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.UInt16" ordered="false"
+ * @generated
+ */
+ EList<Object> getData();
+
+} // UInt16MultiArray
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/impl/UInt16MultiArrayImpl.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/impl/UInt16MultiArrayImpl.java
new file mode 100644
index 00000000000..1010f9046c0
--- /dev/null
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/impl/UInt16MultiArrayImpl.java
@@ -0,0 +1,233 @@
+/**
+ */
+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.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.UInt16MultiArray;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>UInt16 Multi Array</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl.UInt16MultiArrayImpl#getLayout <em>Layout</em>}</li>
+ * <li>{@link org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.impl.UInt16MultiArrayImpl#getData <em>Data</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class UInt16MultiArrayImpl extends MinimalEObjectImpl.Container implements UInt16MultiArray {
+ /**
+ * The cached value of the '{@link #getLayout() <em>Layout</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLayout()
+ * @generated
+ * @ordered
+ */
+ protected MultiArrayLayout layout;
+
+ /**
+ * The cached value of the '{@link #getData() <em>Data</em>}' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getData()
+ * @generated
+ * @ordered
+ */
+ protected EList<Object> data;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected UInt16MultiArrayImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return Std_datatypesPackage.Literals.UINT16_MULTI_ARRAY;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MultiArrayLayout getLayout() {
+ return layout;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetLayout(MultiArrayLayout newLayout, NotificationChain msgs) {
+ MultiArrayLayout oldLayout = layout;
+ layout = newLayout;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Std_datatypesPackage.UINT16_MULTI_ARRAY__LAYOUT, oldLayout, newLayout);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setLayout(MultiArrayLayout newLayout) {
+ if (newLayout != layout) {
+ NotificationChain msgs = null;
+ if (layout != null)
+ msgs = ((InternalEObject)layout).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Std_datatypesPackage.UINT16_MULTI_ARRAY__LAYOUT, null, msgs);
+ if (newLayout != null)
+ msgs = ((InternalEObject)newLayout).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Std_datatypesPackage.UINT16_MULTI_ARRAY__LAYOUT, null, msgs);
+ msgs = basicSetLayout(newLayout, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Std_datatypesPackage.UINT16_MULTI_ARRAY__LAYOUT, newLayout, newLayout));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<Object> getData() {
+ if (data == null) {
+ data = new EDataTypeUniqueEList<Object>(Object.class, this, Std_datatypesPackage.UINT16_MULTI_ARRAY__DATA);
+ }
+ return data;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case Std_datatypesPackage.UINT16_MULTI_ARRAY__LAYOUT:
+ return basicSetLayout(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case Std_datatypesPackage.UINT16_MULTI_ARRAY__LAYOUT:
+ return getLayout();
+ case Std_datatypesPackage.UINT16_MULTI_ARRAY__DATA:
+ return getData();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case Std_datatypesPackage.UINT16_MULTI_ARRAY__LAYOUT:
+ setLayout((MultiArrayLayout)newValue);
+ return;
+ case Std_datatypesPackage.UINT16_MULTI_ARRAY__DATA:
+ getData().clear();
+ getData().addAll((Collection<? extends Object>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case Std_datatypesPackage.UINT16_MULTI_ARRAY__LAYOUT:
+ setLayout((MultiArrayLayout)null);
+ return;
+ case Std_datatypesPackage.UINT16_MULTI_ARRAY__DATA:
+ getData().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case Std_datatypesPackage.UINT16_MULTI_ARRAY__LAYOUT:
+ return layout != null;
+ case Std_datatypesPackage.UINT16_MULTI_ARRAY__DATA:
+ return data != null && !data.isEmpty();
+ }
+ 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(" (data: ");
+ result.append(data);
+ result.append(')');
+ return result.toString();
+ }
+
+} //UInt16MultiArrayImpl

Back to the top