Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/needs/util/NeedsSwitch.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/needs/util/NeedsSwitch.java309
1 files changed, 112 insertions, 197 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/needs/util/NeedsSwitch.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/needs/util/NeedsSwitch.java
index 7c679a5cacf..8f6bb66ed6c 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/needs/util/NeedsSwitch.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/needs/util/NeedsSwitch.java
@@ -18,7 +18,6 @@ package org.eclipse.papyrus.eastadl.annex.needs.util;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
-import org.eclipse.papyrus.eastadl.annex.needs.*;
import org.eclipse.papyrus.eastadl.annex.needs.ArchitecturalDescription;
import org.eclipse.papyrus.eastadl.annex.needs.ArchitecturalModel;
import org.eclipse.papyrus.eastadl.annex.needs.Architecture;
@@ -39,23 +38,21 @@ import org.eclipse.papyrus.eastadl.infrastructure.elements.TraceableSpecificatio
/**
* <!-- 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.annex.needs.NeedsPackage
* @generated
*/
public class NeedsSwitch<T> extends Switch<T> {
-
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected static NeedsPackage modelPackage;
@@ -64,11 +61,10 @@ public class NeedsSwitch<T> extends Switch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public NeedsSwitch() {
- if(modelPackage == null) {
+ if (modelPackage == null) {
modelPackage = NeedsPackage.eINSTANCE;
}
}
@@ -77,7 +73,6 @@ public class NeedsSwitch<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
@@ -93,9 +88,7 @@ public class NeedsSwitch<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>Architectural Description</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -110,9 +103,7 @@ public class NeedsSwitch<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>Architectural Model</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -127,9 +118,7 @@ public class NeedsSwitch<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
@@ -144,9 +133,7 @@ public class NeedsSwitch<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
@@ -161,9 +148,7 @@ public class NeedsSwitch<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>Architecture</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -178,9 +163,7 @@ public class NeedsSwitch<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>Business Opportunity</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -195,9 +178,7 @@ public class NeedsSwitch<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>Concept</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -212,9 +193,7 @@ public class NeedsSwitch<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>Mission</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -229,9 +208,7 @@ public class NeedsSwitch<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>Problem Statement</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -246,9 +223,7 @@ public class NeedsSwitch<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>Product Positioning</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -263,9 +238,7 @@ public class NeedsSwitch<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>Stakeholder</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -280,9 +253,7 @@ public class NeedsSwitch<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>Stakeholder Need</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -297,9 +268,7 @@ public class NeedsSwitch<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>Traceable Specification</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -314,9 +283,7 @@ public class NeedsSwitch<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 System</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -331,9 +298,7 @@ public class NeedsSwitch<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
@@ -347,155 +312,105 @@ public class NeedsSwitch<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 NeedsPackage.STAKEHOLDER:
- {
- Stakeholder stakeholder = (Stakeholder)theEObject;
- T result = caseStakeholder(stakeholder);
- if(result == null)
- result = caseTraceableSpecification(stakeholder);
- if(result == null)
- result = caseEAPackageableElement(stakeholder);
- if(result == null)
- result = caseEAElement(stakeholder);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case NeedsPackage.STAKEHOLDER_NEED:
- {
- StakeholderNeed stakeholderNeed = (StakeholderNeed)theEObject;
- T result = caseStakeholderNeed(stakeholderNeed);
- if(result == null)
- result = caseTraceableSpecification(stakeholderNeed);
- if(result == null)
- result = caseEAPackageableElement(stakeholderNeed);
- if(result == null)
- result = caseEAElement(stakeholderNeed);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case NeedsPackage.PROBLEM_STATEMENT:
- {
- ProblemStatement problemStatement = (ProblemStatement)theEObject;
- T result = caseProblemStatement(problemStatement);
- if(result == null)
- result = caseTraceableSpecification(problemStatement);
- if(result == null)
- result = caseEAPackageableElement(problemStatement);
- if(result == null)
- result = caseEAElement(problemStatement);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case NeedsPackage.PRODUCT_POSITIONING:
- {
- ProductPositioning productPositioning = (ProductPositioning)theEObject;
- T result = caseProductPositioning(productPositioning);
- if(result == null)
- result = caseTraceableSpecification(productPositioning);
- if(result == null)
- result = caseEAPackageableElement(productPositioning);
- if(result == null)
- result = caseEAElement(productPositioning);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case NeedsPackage.BUSINESS_OPPORTUNITY:
- {
- BusinessOpportunity businessOpportunity = (BusinessOpportunity)theEObject;
- T result = caseBusinessOpportunity(businessOpportunity);
- if(result == null)
- result = caseTraceableSpecification(businessOpportunity);
- if(result == null)
- result = caseEAPackageableElement(businessOpportunity);
- if(result == null)
- result = caseEAElement(businessOpportunity);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case NeedsPackage.CONCEPT:
- {
- Concept concept = (Concept)theEObject;
- T result = caseConcept(concept);
- if(result == null)
- result = caseEAElement(concept);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case NeedsPackage.MISSION:
- {
- Mission mission = (Mission)theEObject;
- T result = caseMission(mission);
- if(result == null)
- result = caseConcept(mission);
- if(result == null)
- result = caseEAElement(mission);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case NeedsPackage.VEHICLE_SYSTEM:
- {
- VehicleSystem vehicleSystem = (VehicleSystem)theEObject;
- T result = caseVehicleSystem(vehicleSystem);
- if(result == null)
- result = caseConcept(vehicleSystem);
- if(result == null)
- result = caseEAElement(vehicleSystem);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case NeedsPackage.ARCHITECTURE:
- {
- Architecture architecture = (Architecture)theEObject;
- T result = caseArchitecture(architecture);
- if(result == null)
- result = caseConcept(architecture);
- if(result == null)
- result = caseEAElement(architecture);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case NeedsPackage.ARCHITECTURAL_DESCRIPTION:
- {
- ArchitecturalDescription architecturalDescription = (ArchitecturalDescription)theEObject;
- T result = caseArchitecturalDescription(architecturalDescription);
- if(result == null)
- result = caseConcept(architecturalDescription);
- if(result == null)
- result = caseEAElement(architecturalDescription);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case NeedsPackage.ARCHITECTURAL_MODEL:
- {
- ArchitecturalModel architecturalModel = (ArchitecturalModel)theEObject;
- T result = caseArchitecturalModel(architecturalModel);
- if(result == null)
- result = caseConcept(architecturalModel);
- if(result == null)
- result = caseEAElement(architecturalModel);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- default:
- return defaultCase(theEObject);
+ switch (classifierID) {
+ case NeedsPackage.STAKEHOLDER: {
+ Stakeholder stakeholder = (Stakeholder)theEObject;
+ T result = caseStakeholder(stakeholder);
+ if (result == null) result = caseTraceableSpecification(stakeholder);
+ if (result == null) result = caseEAPackageableElement(stakeholder);
+ if (result == null) result = caseEAElement(stakeholder);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case NeedsPackage.STAKEHOLDER_NEED: {
+ StakeholderNeed stakeholderNeed = (StakeholderNeed)theEObject;
+ T result = caseStakeholderNeed(stakeholderNeed);
+ if (result == null) result = caseTraceableSpecification(stakeholderNeed);
+ if (result == null) result = caseEAPackageableElement(stakeholderNeed);
+ if (result == null) result = caseEAElement(stakeholderNeed);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case NeedsPackage.PROBLEM_STATEMENT: {
+ ProblemStatement problemStatement = (ProblemStatement)theEObject;
+ T result = caseProblemStatement(problemStatement);
+ if (result == null) result = caseTraceableSpecification(problemStatement);
+ if (result == null) result = caseEAPackageableElement(problemStatement);
+ if (result == null) result = caseEAElement(problemStatement);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case NeedsPackage.PRODUCT_POSITIONING: {
+ ProductPositioning productPositioning = (ProductPositioning)theEObject;
+ T result = caseProductPositioning(productPositioning);
+ if (result == null) result = caseTraceableSpecification(productPositioning);
+ if (result == null) result = caseEAPackageableElement(productPositioning);
+ if (result == null) result = caseEAElement(productPositioning);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case NeedsPackage.BUSINESS_OPPORTUNITY: {
+ BusinessOpportunity businessOpportunity = (BusinessOpportunity)theEObject;
+ T result = caseBusinessOpportunity(businessOpportunity);
+ if (result == null) result = caseTraceableSpecification(businessOpportunity);
+ if (result == null) result = caseEAPackageableElement(businessOpportunity);
+ if (result == null) result = caseEAElement(businessOpportunity);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case NeedsPackage.CONCEPT: {
+ Concept concept = (Concept)theEObject;
+ T result = caseConcept(concept);
+ if (result == null) result = caseEAElement(concept);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case NeedsPackage.MISSION: {
+ Mission mission = (Mission)theEObject;
+ T result = caseMission(mission);
+ if (result == null) result = caseConcept(mission);
+ if (result == null) result = caseEAElement(mission);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case NeedsPackage.VEHICLE_SYSTEM: {
+ VehicleSystem vehicleSystem = (VehicleSystem)theEObject;
+ T result = caseVehicleSystem(vehicleSystem);
+ if (result == null) result = caseConcept(vehicleSystem);
+ if (result == null) result = caseEAElement(vehicleSystem);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case NeedsPackage.ARCHITECTURE: {
+ Architecture architecture = (Architecture)theEObject;
+ T result = caseArchitecture(architecture);
+ if (result == null) result = caseConcept(architecture);
+ if (result == null) result = caseEAElement(architecture);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case NeedsPackage.ARCHITECTURAL_DESCRIPTION: {
+ ArchitecturalDescription architecturalDescription = (ArchitecturalDescription)theEObject;
+ T result = caseArchitecturalDescription(architecturalDescription);
+ if (result == null) result = caseConcept(architecturalDescription);
+ if (result == null) result = caseEAElement(architecturalDescription);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case NeedsPackage.ARCHITECTURAL_MODEL: {
+ ArchitecturalModel architecturalModel = (ArchitecturalModel)theEObject;
+ T result = caseArchitecturalModel(architecturalModel);
+ if (result == null) result = caseConcept(architecturalModel);
+ if (result == null) result = caseEAElement(architecturalModel);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
}
}

Back to the top