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/vehiclefeaturemodeling/util/VehiclefeaturemodelingSwitch.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/vehiclefeaturemodeling/util/VehiclefeaturemodelingSwitch.java86
1 files changed, 60 insertions, 26 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/vehiclefeaturemodeling/util/VehiclefeaturemodelingSwitch.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/vehiclefeaturemodeling/util/VehiclefeaturemodelingSwitch.java
index e93f8cfeab9..f9c6ada3321 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/vehiclefeaturemodeling/util/VehiclefeaturemodelingSwitch.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/vehiclefeaturemodeling/util/VehiclefeaturemodelingSwitch.java
@@ -1,7 +1,7 @@
/*****************************************************************************
* Copyright (c) 2010 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
@@ -34,6 +34,7 @@ import org.eclipse.papyrus.eastadl.structure.vehiclefeaturemodeling.Vehiclefeatu
* 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.vehiclefeaturemodeling.VehiclefeaturemodelingPackage
* @generated
*/
@@ -42,6 +43,7 @@ public class VehiclefeaturemodelingSwitch<T> extends Switch<T> {
/**
* The cached model package
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
protected static VehiclefeaturemodelingPackage modelPackage;
@@ -49,6 +51,7 @@ public class VehiclefeaturemodelingSwitch<T> extends Switch<T> {
/**
* Creates an instance of the switch.
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public VehiclefeaturemodelingSwitch() {
@@ -61,6 +64,7 @@ public class VehiclefeaturemodelingSwitch<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
@@ -76,7 +80,9 @@ public class VehiclefeaturemodelingSwitch<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
@@ -89,7 +95,9 @@ public class VehiclefeaturemodelingSwitch<T> extends Switch<T> {
* Returns the result of interpreting the object as an instance of '<em>Deviation Attribute Set</em>'.
* <!-- begin-user-doc --> 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>Deviation Attribute Set</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -102,7 +110,7 @@ public class VehiclefeaturemodelingSwitch<T> extends Switch<T> {
* Returns the result of interpreting the object as an instance of '<em>Feature</em>'. <!--
* begin-user-doc --> This implementation returns null; returning a non-null result will
* terminate the switch. <!-- end-user-doc -->
- *
+ *
* @param object
* the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Feature</em>'.
@@ -117,7 +125,9 @@ public class VehiclefeaturemodelingSwitch<T> extends Switch<T> {
* Returns the result of interpreting the object as an instance of '<em>Feature Tree Node</em>'.
* <!-- begin-user-doc --> 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>Feature Tree Node</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -130,7 +140,9 @@ public class VehiclefeaturemodelingSwitch<T> extends Switch<T> {
* Returns the result of interpreting the object as an instance of '<em>Vehicle Feature</em>'.
* <!-- begin-user-doc --> 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 Feature</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -145,7 +157,9 @@ public class VehiclefeaturemodelingSwitch<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
@@ -160,7 +174,9 @@ public class VehiclefeaturemodelingSwitch<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 Packageable Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -173,7 +189,7 @@ public class VehiclefeaturemodelingSwitch<T> extends Switch<T> {
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!--
* begin-user-doc --> 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.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
@@ -188,31 +204,49 @@ public class VehiclefeaturemodelingSwitch<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 VehiclefeaturemodelingPackage.DEVIATION_ATTRIBUTE_SET: {
- DeviationAttributeSet deviationAttributeSet = (DeviationAttributeSet)theEObject;
- T result = caseDeviationAttributeSet(deviationAttributeSet);
- if (result == null) result = caseEAElement(deviationAttributeSet);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ case VehiclefeaturemodelingPackage.DEVIATION_ATTRIBUTE_SET: {
+ DeviationAttributeSet deviationAttributeSet = (DeviationAttributeSet) theEObject;
+ T result = caseDeviationAttributeSet(deviationAttributeSet);
+ if (result == null) {
+ result = caseEAElement(deviationAttributeSet);
}
- case VehiclefeaturemodelingPackage.VEHICLE_FEATURE: {
- VehicleFeature vehicleFeature = (VehicleFeature)theEObject;
- T result = caseVehicleFeature(vehicleFeature);
- if (result == null) result = caseFeature(vehicleFeature);
- if (result == null) result = caseFeatureTreeNode(vehicleFeature);
- if (result == null) result = caseContext(vehicleFeature);
- if (result == null) result = caseEAPackageableElement(vehicleFeature);
- if (result == null) result = caseEAElement(vehicleFeature);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ if (result == null) {
+ result = defaultCase(theEObject);
}
- default: return defaultCase(theEObject);
+ return result;
+ }
+ case VehiclefeaturemodelingPackage.VEHICLE_FEATURE: {
+ VehicleFeature vehicleFeature = (VehicleFeature) theEObject;
+ T result = caseVehicleFeature(vehicleFeature);
+ if (result == null) {
+ result = caseFeature(vehicleFeature);
+ }
+ if (result == null) {
+ result = caseFeatureTreeNode(vehicleFeature);
+ }
+ if (result == null) {
+ result = caseContext(vehicleFeature);
+ }
+ if (result == null) {
+ result = caseEAPackageableElement(vehicleFeature);
+ }
+ if (result == null) {
+ result = caseEAElement(vehicleFeature);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
}
}

Back to the top