Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/requirements/requirements/util/RequirementsSwitch.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/requirements/requirements/util/RequirementsSwitch.java526
1 files changed, 526 insertions, 0 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/requirements/requirements/util/RequirementsSwitch.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/requirements/requirements/util/RequirementsSwitch.java
new file mode 100644
index 00000000000..6a0ab3b8b8c
--- /dev/null
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/requirements/requirements/util/RequirementsSwitch.java
@@ -0,0 +1,526 @@
+/**
+ */
+package org.eclipse.papyrus.eastadl.requirements.requirements.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.infrastructure.elements.Context;
+import org.eclipse.papyrus.eastadl.infrastructure.elements.EAElement;
+import org.eclipse.papyrus.eastadl.infrastructure.elements.EAPackageableElement;
+import org.eclipse.papyrus.eastadl.infrastructure.elements.Relationship;
+import org.eclipse.papyrus.eastadl.infrastructure.elements.TraceableSpecification;
+import org.eclipse.papyrus.eastadl.requirements.requirements.DeriveRequirement;
+import org.eclipse.papyrus.eastadl.requirements.requirements.OperationalSituation;
+import org.eclipse.papyrus.eastadl.requirements.requirements.QualityRequirement;
+import org.eclipse.papyrus.eastadl.requirements.requirements.Refine;
+import org.eclipse.papyrus.eastadl.requirements.requirements.Requirement;
+import org.eclipse.papyrus.eastadl.requirements.requirements.RequirementsHierarchy;
+import org.eclipse.papyrus.eastadl.requirements.requirements.RequirementsLink;
+import org.eclipse.papyrus.eastadl.requirements.requirements.RequirementsModel;
+import org.eclipse.papyrus.eastadl.requirements.requirements.RequirementsPackage;
+import org.eclipse.papyrus.eastadl.requirements.requirements.RequirementsRelationship;
+import org.eclipse.papyrus.eastadl.requirements.requirements.RequirementsRelationshipGroup;
+import org.eclipse.papyrus.eastadl.requirements.requirements.Satisfy;
+import org.eclipse.papyrus.sysml.requirements.DeriveReqt;
+import org.eclipse.uml2.uml.profile.standard.Trace;
+
+/**
+ * <!-- 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,
+ * 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.requirements.requirements.RequirementsPackage
+ * @generated
+ */
+public class RequirementsSwitch<T> extends Switch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static RequirementsPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RequirementsSwitch() {
+ if (modelPackage == null) {
+ modelPackage = RequirementsPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * 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
+ */
+ @Override
+ protected boolean isSwitchFor(EPackage ePackage) {
+ return ePackage == modelPackage;
+ }
+
+ /**
+ * 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 RequirementsPackage.REQUIREMENTS_RELATIONSHIP: {
+ RequirementsRelationship requirementsRelationship = (RequirementsRelationship)theEObject;
+ T result = caseRequirementsRelationship(requirementsRelationship);
+ if (result == null) result = caseRelationship(requirementsRelationship);
+ if (result == null) result = caseEAElement(requirementsRelationship);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case RequirementsPackage.REQUIREMENT: {
+ Requirement requirement = (Requirement)theEObject;
+ T result = caseRequirement(requirement);
+ if (result == null) result = caseRequirements_Requirement(requirement);
+ if (result == null) result = caseTraceableSpecification(requirement);
+ if (result == null) result = caseEAPackageableElement(requirement);
+ if (result == null) result = caseEAElement(requirement);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case RequirementsPackage.OPERATIONAL_SITUATION: {
+ OperationalSituation operationalSituation = (OperationalSituation)theEObject;
+ T result = caseOperationalSituation(operationalSituation);
+ if (result == null) result = caseTraceableSpecification(operationalSituation);
+ if (result == null) result = caseEAPackageableElement(operationalSituation);
+ if (result == null) result = caseEAElement(operationalSituation);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case RequirementsPackage.REQUIREMENTS_LINK: {
+ RequirementsLink requirementsLink = (RequirementsLink)theEObject;
+ T result = caseRequirementsLink(requirementsLink);
+ if (result == null) result = caseRequirementsRelationship(requirementsLink);
+ if (result == null) result = caseRelationship(requirementsLink);
+ if (result == null) result = caseEAElement(requirementsLink);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case RequirementsPackage.REQUIREMENTS_MODEL: {
+ RequirementsModel requirementsModel = (RequirementsModel)theEObject;
+ T result = caseRequirementsModel(requirementsModel);
+ if (result == null) result = caseContext(requirementsModel);
+ if (result == null) result = caseEAPackageableElement(requirementsModel);
+ if (result == null) result = caseEAElement(requirementsModel);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case RequirementsPackage.REQUIREMENTS_RELATIONSHIP_GROUP: {
+ RequirementsRelationshipGroup requirementsRelationshipGroup = (RequirementsRelationshipGroup)theEObject;
+ T result = caseRequirementsRelationshipGroup(requirementsRelationshipGroup);
+ if (result == null) result = caseTraceableSpecification(requirementsRelationshipGroup);
+ if (result == null) result = caseEAPackageableElement(requirementsRelationshipGroup);
+ if (result == null) result = caseEAElement(requirementsRelationshipGroup);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case RequirementsPackage.SATISFY: {
+ Satisfy satisfy = (Satisfy)theEObject;
+ T result = caseSatisfy(satisfy);
+ if (result == null) result = caseRequirementsRelationship(satisfy);
+ if (result == null) result = caseRequirements_Satisfy(satisfy);
+ if (result == null) result = caseRelationship(satisfy);
+ if (result == null) result = caseTrace(satisfy);
+ if (result == null) result = caseEAElement(satisfy);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case RequirementsPackage.REFINE: {
+ Refine refine = (Refine)theEObject;
+ T result = caseRefine(refine);
+ if (result == null) result = caseRequirementsRelationship(refine);
+ if (result == null) result = caseStandard_Refine(refine);
+ if (result == null) result = caseRelationship(refine);
+ if (result == null) result = caseEAElement(refine);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case RequirementsPackage.DERIVE_REQUIREMENT: {
+ DeriveRequirement deriveRequirement = (DeriveRequirement)theEObject;
+ T result = caseDeriveRequirement(deriveRequirement);
+ if (result == null) result = caseRequirementsRelationship(deriveRequirement);
+ if (result == null) result = caseDeriveReqt(deriveRequirement);
+ if (result == null) result = caseRelationship(deriveRequirement);
+ if (result == null) result = caseTrace(deriveRequirement);
+ if (result == null) result = caseEAElement(deriveRequirement);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case RequirementsPackage.QUALITY_REQUIREMENT: {
+ QualityRequirement qualityRequirement = (QualityRequirement)theEObject;
+ T result = caseQualityRequirement(qualityRequirement);
+ if (result == null) result = caseRequirement(qualityRequirement);
+ if (result == null) result = caseRequirements_Requirement(qualityRequirement);
+ if (result == null) result = caseTraceableSpecification(qualityRequirement);
+ if (result == null) result = caseEAPackageableElement(qualityRequirement);
+ if (result == null) result = caseEAElement(qualityRequirement);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case RequirementsPackage.REQUIREMENTS_HIERARCHY: {
+ RequirementsHierarchy requirementsHierarchy = (RequirementsHierarchy)theEObject;
+ T result = caseRequirementsHierarchy(requirementsHierarchy);
+ if (result == null) result = caseTraceableSpecification(requirementsHierarchy);
+ if (result == null) result = caseEAPackageableElement(requirementsHierarchy);
+ if (result == null) result = caseEAElement(requirementsHierarchy);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Relationship</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>Relationship</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRequirementsRelationship(RequirementsRelationship object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Requirement</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>Requirement</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRequirement(Requirement object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Operational Situation</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>Operational Situation</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOperationalSituation(OperationalSituation object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Link</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>Link</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRequirementsLink(RequirementsLink object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Model</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>Model</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRequirementsModel(RequirementsModel object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Relationship Group</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>Relationship Group</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRequirementsRelationshipGroup(RequirementsRelationshipGroup object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Satisfy</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>Satisfy</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSatisfy(Satisfy object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Refine</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>Refine</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRefine(Refine object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Derive Requirement</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>Derive Requirement</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDeriveRequirement(DeriveRequirement object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Quality Requirement</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>Quality Requirement</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseQualityRequirement(QualityRequirement object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Hierarchy</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>Hierarchy</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRequirementsHierarchy(RequirementsHierarchy object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EA Element</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>EA Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEAElement(EAElement object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Relationship</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>Relationship</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRelationship(Relationship object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Requirement</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>Requirement</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRequirements_Requirement(org.eclipse.papyrus.sysml.requirements.Requirement object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EA Packageable Element</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>EA Packageable Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEAPackageableElement(EAPackageableElement object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Traceable Specification</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>Traceable Specification</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseTraceableSpecification(TraceableSpecification object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Context</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>Context</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseContext(Context object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Trace</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>Trace</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseTrace(Trace object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Satisfy</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>Satisfy</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRequirements_Satisfy(org.eclipse.papyrus.sysml.requirements.Satisfy object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Refine</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>Refine</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseStandard_Refine(org.eclipse.uml2.uml.profile.standard.Refine object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Derive Reqt</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>Derive Reqt</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDeriveReqt(DeriveReqt object) {
+ return null;
+ }
+
+ /**
+ * 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>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //RequirementsSwitch

Back to the top