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/util/Std_datatypesSwitch.java')
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/util/Std_datatypesSwitch.java324
1 files changed, 117 insertions, 207 deletions
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/util/Std_datatypesSwitch.java b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/util/Std_datatypesSwitch.java
index 8fbee71e4f5..1d5d91b5452 100644
--- a/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/util/Std_datatypesSwitch.java
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotMLLibraries/RobotML_ModelLibrary/RobotML_DataTypes/std_datatypes/util/Std_datatypesSwitch.java
@@ -1,56 +1,32 @@
-/*****************************************************************************
- * 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.util;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
+
import org.eclipse.emf.ecore.util.Switch;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.ByteMultiArray;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.ColorRGBA;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Float32MultiArray;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Float64MultiArray;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Header;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Int16MultiArray;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Int32MultiArray;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Int64MultiArray;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Int8MultiArray;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.MultiArrayDimension;
-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.UIint16MultiArray;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.UInt32MultiArray;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.UInt64MultiArray;
-import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.UInt8MultiArray;
+
+import org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.*;
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
* starting with the actual class of the object
* and proceeding up the inheritance hierarchy
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.RobotMLLibraries.RobotML_ModelLibrary.RobotML_DataTypes.std_datatypes.Std_datatypesPackage
* @generated
*/
public class Std_datatypesSwitch<T> extends Switch<T> {
-
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected static Std_datatypesPackage modelPackage;
@@ -59,11 +35,10 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Std_datatypesSwitch() {
- if(modelPackage == null) {
+ if (modelPackage == null) {
modelPackage = Std_datatypesPackage.eINSTANCE;
}
}
@@ -72,7 +47,6 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* Checks whether this is a switch for the given package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @parameter ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
@@ -86,135 +60,103 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
- switch(classifierID) {
- case Std_datatypesPackage.HEADER:
- {
- Header header = (Header)theEObject;
- T result = caseHeader(header);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Std_datatypesPackage.MULTI_ARRAY_DIMENSION:
- {
- MultiArrayDimension multiArrayDimension = (MultiArrayDimension)theEObject;
- T result = caseMultiArrayDimension(multiArrayDimension);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Std_datatypesPackage.MULTI_ARRAY_LAYOUT:
- {
- MultiArrayLayout multiArrayLayout = (MultiArrayLayout)theEObject;
- T result = caseMultiArrayLayout(multiArrayLayout);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Std_datatypesPackage.BYTE_MULTI_ARRAY:
- {
- ByteMultiArray byteMultiArray = (ByteMultiArray)theEObject;
- T result = caseByteMultiArray(byteMultiArray);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Std_datatypesPackage.COLOR_RGBA:
- {
- ColorRGBA colorRGBA = (ColorRGBA)theEObject;
- T result = caseColorRGBA(colorRGBA);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Std_datatypesPackage.FLOAT32_MULTI_ARRAY:
- {
- Float32MultiArray float32MultiArray = (Float32MultiArray)theEObject;
- T result = caseFloat32MultiArray(float32MultiArray);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Std_datatypesPackage.INT32_MULTI_ARRAY:
- {
- Int32MultiArray int32MultiArray = (Int32MultiArray)theEObject;
- T result = caseInt32MultiArray(int32MultiArray);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Std_datatypesPackage.INT8_MULTI_ARRAY:
- {
- Int8MultiArray int8MultiArray = (Int8MultiArray)theEObject;
- T result = caseInt8MultiArray(int8MultiArray);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Std_datatypesPackage.INT16_MULTI_ARRAY:
- {
- Int16MultiArray int16MultiArray = (Int16MultiArray)theEObject;
- T result = caseInt16MultiArray(int16MultiArray);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Std_datatypesPackage.INT64_MULTI_ARRAY:
- {
- Int64MultiArray int64MultiArray = (Int64MultiArray)theEObject;
- T result = caseInt64MultiArray(int64MultiArray);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Std_datatypesPackage.FLOAT64_MULTI_ARRAY:
- {
- Float64MultiArray float64MultiArray = (Float64MultiArray)theEObject;
- T result = caseFloat64MultiArray(float64MultiArray);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Std_datatypesPackage.UINT64_MULTI_ARRAY:
- {
- UInt64MultiArray uInt64MultiArray = (UInt64MultiArray)theEObject;
- T result = caseUInt64MultiArray(uInt64MultiArray);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Std_datatypesPackage.UIINT16_MULTI_ARRAY:
- {
- UIint16MultiArray uIint16MultiArray = (UIint16MultiArray)theEObject;
- T result = caseUIint16MultiArray(uIint16MultiArray);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Std_datatypesPackage.UINT32_MULTI_ARRAY:
- {
- UInt32MultiArray uInt32MultiArray = (UInt32MultiArray)theEObject;
- T result = caseUInt32MultiArray(uInt32MultiArray);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Std_datatypesPackage.UINT8_MULTI_ARRAY:
- {
- UInt8MultiArray uInt8MultiArray = (UInt8MultiArray)theEObject;
- T result = caseUInt8MultiArray(uInt8MultiArray);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- default:
- return defaultCase(theEObject);
+ switch (classifierID) {
+ case Std_datatypesPackage.HEADER: {
+ Header header = (Header)theEObject;
+ T result = caseHeader(header);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case Std_datatypesPackage.MULTI_ARRAY_DIMENSION: {
+ MultiArrayDimension multiArrayDimension = (MultiArrayDimension)theEObject;
+ T result = caseMultiArrayDimension(multiArrayDimension);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case Std_datatypesPackage.MULTI_ARRAY_LAYOUT: {
+ MultiArrayLayout multiArrayLayout = (MultiArrayLayout)theEObject;
+ T result = caseMultiArrayLayout(multiArrayLayout);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case Std_datatypesPackage.BYTE_MULTI_ARRAY: {
+ ByteMultiArray byteMultiArray = (ByteMultiArray)theEObject;
+ T result = caseByteMultiArray(byteMultiArray);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case Std_datatypesPackage.COLOR_RGBA: {
+ ColorRGBA colorRGBA = (ColorRGBA)theEObject;
+ T result = caseColorRGBA(colorRGBA);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case Std_datatypesPackage.FLOAT32_MULTI_ARRAY: {
+ Float32MultiArray float32MultiArray = (Float32MultiArray)theEObject;
+ T result = caseFloat32MultiArray(float32MultiArray);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case Std_datatypesPackage.INT32_MULTI_ARRAY: {
+ Int32MultiArray int32MultiArray = (Int32MultiArray)theEObject;
+ T result = caseInt32MultiArray(int32MultiArray);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case Std_datatypesPackage.INT8_MULTI_ARRAY: {
+ Int8MultiArray int8MultiArray = (Int8MultiArray)theEObject;
+ T result = caseInt8MultiArray(int8MultiArray);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case Std_datatypesPackage.INT16_MULTI_ARRAY: {
+ Int16MultiArray int16MultiArray = (Int16MultiArray)theEObject;
+ T result = caseInt16MultiArray(int16MultiArray);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case Std_datatypesPackage.INT64_MULTI_ARRAY: {
+ Int64MultiArray int64MultiArray = (Int64MultiArray)theEObject;
+ T result = caseInt64MultiArray(int64MultiArray);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case Std_datatypesPackage.FLOAT64_MULTI_ARRAY: {
+ Float64MultiArray float64MultiArray = (Float64MultiArray)theEObject;
+ T result = caseFloat64MultiArray(float64MultiArray);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case Std_datatypesPackage.UINT64_MULTI_ARRAY: {
+ UInt64MultiArray uInt64MultiArray = (UInt64MultiArray)theEObject;
+ T result = caseUInt64MultiArray(uInt64MultiArray);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case Std_datatypesPackage.UIINT16_MULTI_ARRAY: {
+ UIint16MultiArray uIint16MultiArray = (UIint16MultiArray)theEObject;
+ T result = caseUIint16MultiArray(uIint16MultiArray);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case Std_datatypesPackage.UINT32_MULTI_ARRAY: {
+ UInt32MultiArray uInt32MultiArray = (UInt32MultiArray)theEObject;
+ T result = caseUInt32MultiArray(uInt32MultiArray);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case Std_datatypesPackage.UINT8_MULTI_ARRAY: {
+ UInt8MultiArray uInt8MultiArray = (UInt8MultiArray)theEObject;
+ T result = caseUInt8MultiArray(uInt8MultiArray);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
}
}
@@ -224,9 +166,7 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Header</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -241,9 +181,7 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Multi Array Dimension</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -258,9 +196,7 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Multi Array Layout</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -275,9 +211,7 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Byte Multi Array</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -292,9 +226,7 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Color RGBA</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -309,9 +241,7 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Float32 Multi Array</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -326,9 +256,7 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Int32 Multi Array</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -343,9 +271,7 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Int8 Multi Array</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -360,9 +286,7 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Int16 Multi Array</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -377,9 +301,7 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Int64 Multi Array</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -394,9 +316,7 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Float64 Multi Array</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -411,9 +331,7 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>UInt64 Multi Array</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -428,9 +346,7 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>UIint16 Multi Array</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -445,9 +361,7 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>UInt32 Multi Array</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -462,9 +376,7 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>UInt8 Multi Array</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -479,9 +391,7 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
@@ -491,4 +401,4 @@ public class Std_datatypesSwitch<T> extends Switch<T> {
return null;
}
-} //Std_datatypesSwitch
+} //Std_datatypesSwitch \ No newline at end of file

Back to the top