Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/systemmodeling/util/SystemmodelingSwitch.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/systemmodeling/util/SystemmodelingSwitch.java149
1 files changed, 96 insertions, 53 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/systemmodeling/util/SystemmodelingSwitch.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/systemmodeling/util/SystemmodelingSwitch.java
index bba1cd7ad8e..44d0c3009be 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/systemmodeling/util/SystemmodelingSwitch.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/systemmodeling/util/SystemmodelingSwitch.java
@@ -20,6 +20,7 @@ import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
import org.eclipse.papyrus.eastadl.infrastructure.elements.Context;
import org.eclipse.papyrus.eastadl.infrastructure.elements.EAElement;
+import org.eclipse.papyrus.eastadl.structure.systemmodeling.*;
import org.eclipse.papyrus.eastadl.structure.systemmodeling.AnalysisLevel;
import org.eclipse.papyrus.eastadl.structure.systemmodeling.DesignLevel;
import org.eclipse.papyrus.eastadl.structure.systemmodeling.ImplementationLevel;
@@ -31,21 +32,23 @@ import org.eclipse.papyrus.eastadl.structure.systemmodeling.VehicleLevel;
/**
* <!-- 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.eastadl.structure.systemmodeling.SystemmodelingPackage
* @generated
*/
public class SystemmodelingSwitch<T> extends Switch<T> {
+
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static SystemmodelingPackage modelPackage;
@@ -54,10 +57,11 @@ public class SystemmodelingSwitch<T> extends Switch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public SystemmodelingSwitch() {
- if (modelPackage == null) {
+ if(modelPackage == null) {
modelPackage = SystemmodelingPackage.eINSTANCE;
}
}
@@ -66,6 +70,7 @@ public class SystemmodelingSwitch<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
@@ -81,7 +86,9 @@ public class SystemmodelingSwitch<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>Analysis Level</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -96,7 +103,9 @@ public class SystemmodelingSwitch<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>Context</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -111,7 +120,9 @@ public class SystemmodelingSwitch<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>Design Level</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -126,7 +137,9 @@ public class SystemmodelingSwitch<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>Implementation Level</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -141,7 +154,9 @@ public class SystemmodelingSwitch<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>System Model</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -156,7 +171,9 @@ public class SystemmodelingSwitch<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>Vehicle Level</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -171,7 +188,9 @@ public class SystemmodelingSwitch<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>EA Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -186,7 +205,9 @@ public class SystemmodelingSwitch<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
@@ -200,53 +221,75 @@ public class SystemmodelingSwitch<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 SystemmodelingPackage.SYSTEM_MODEL: {
- SystemModel systemModel = (SystemModel)theEObject;
- T result = caseSystemModel(systemModel);
- if (result == null) result = caseContext(systemModel);
- if (result == null) result = caseEAElement(systemModel);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case SystemmodelingPackage.IMPLEMENTATION_LEVEL: {
- ImplementationLevel implementationLevel = (ImplementationLevel)theEObject;
- T result = caseImplementationLevel(implementationLevel);
- if (result == null) result = caseContext(implementationLevel);
- if (result == null) result = caseEAElement(implementationLevel);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case SystemmodelingPackage.ANALYSIS_LEVEL: {
- AnalysisLevel analysisLevel = (AnalysisLevel)theEObject;
- T result = caseAnalysisLevel(analysisLevel);
- if (result == null) result = caseContext(analysisLevel);
- if (result == null) result = caseEAElement(analysisLevel);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case SystemmodelingPackage.DESIGN_LEVEL: {
- DesignLevel designLevel = (DesignLevel)theEObject;
- T result = caseDesignLevel(designLevel);
- if (result == null) result = caseContext(designLevel);
- if (result == null) result = caseEAElement(designLevel);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case SystemmodelingPackage.VEHICLE_LEVEL: {
- VehicleLevel vehicleLevel = (VehicleLevel)theEObject;
- T result = caseVehicleLevel(vehicleLevel);
- if (result == null) result = caseContext(vehicleLevel);
- if (result == null) result = caseEAElement(vehicleLevel);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
+ switch(classifierID) {
+ case SystemmodelingPackage.SYSTEM_MODEL:
+ {
+ SystemModel systemModel = (SystemModel)theEObject;
+ T result = caseSystemModel(systemModel);
+ if(result == null)
+ result = caseContext(systemModel);
+ if(result == null)
+ result = caseEAElement(systemModel);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case SystemmodelingPackage.IMPLEMENTATION_LEVEL:
+ {
+ ImplementationLevel implementationLevel = (ImplementationLevel)theEObject;
+ T result = caseImplementationLevel(implementationLevel);
+ if(result == null)
+ result = caseContext(implementationLevel);
+ if(result == null)
+ result = caseEAElement(implementationLevel);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case SystemmodelingPackage.ANALYSIS_LEVEL:
+ {
+ AnalysisLevel analysisLevel = (AnalysisLevel)theEObject;
+ T result = caseAnalysisLevel(analysisLevel);
+ if(result == null)
+ result = caseContext(analysisLevel);
+ if(result == null)
+ result = caseEAElement(analysisLevel);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case SystemmodelingPackage.DESIGN_LEVEL:
+ {
+ DesignLevel designLevel = (DesignLevel)theEObject;
+ T result = caseDesignLevel(designLevel);
+ if(result == null)
+ result = caseContext(designLevel);
+ if(result == null)
+ result = caseEAElement(designLevel);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case SystemmodelingPackage.VEHICLE_LEVEL:
+ {
+ VehicleLevel vehicleLevel = (VehicleLevel)theEObject;
+ T result = caseVehicleLevel(vehicleLevel);
+ if(result == null)
+ result = caseContext(vehicleLevel);
+ if(result == null)
+ result = caseEAElement(vehicleLevel);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
}
}

Back to the top