Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetyconstraints/util/SafetyconstraintsSwitch.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetyconstraints/util/SafetyconstraintsSwitch.java114
1 files changed, 75 insertions, 39 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetyconstraints/util/SafetyconstraintsSwitch.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetyconstraints/util/SafetyconstraintsSwitch.java
index e7625a98bbe..2c86367909c 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetyconstraints/util/SafetyconstraintsSwitch.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/dependability/safetyconstraints/util/SafetyconstraintsSwitch.java
@@ -18,6 +18,7 @@ package org.eclipse.papyrus.eastadl.dependability.safetyconstraints.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.dependability.safetyconstraints.*;
import org.eclipse.papyrus.eastadl.dependability.safetyconstraints.FaultFailure;
import org.eclipse.papyrus.eastadl.dependability.safetyconstraints.QuantitativeSafetyConstraint;
import org.eclipse.papyrus.eastadl.dependability.safetyconstraints.SafetyConstraint;
@@ -30,21 +31,23 @@ 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.dependability.safetyconstraints.SafetyconstraintsPackage
* @generated
*/
public class SafetyconstraintsSwitch<T> extends Switch<T> {
+
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static SafetyconstraintsPackage modelPackage;
@@ -53,10 +56,11 @@ public class SafetyconstraintsSwitch<T> extends Switch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public SafetyconstraintsSwitch() {
- if (modelPackage == null) {
+ if(modelPackage == null) {
modelPackage = SafetyconstraintsPackage.eINSTANCE;
}
}
@@ -65,6 +69,7 @@ public class SafetyconstraintsSwitch<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
@@ -80,7 +85,9 @@ public class SafetyconstraintsSwitch<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>Fault Failure</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -95,7 +102,9 @@ public class SafetyconstraintsSwitch<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>Quantitative Safety Constraint</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -110,7 +119,9 @@ public class SafetyconstraintsSwitch<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
@@ -125,7 +136,9 @@ public class SafetyconstraintsSwitch<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
@@ -140,7 +153,9 @@ public class SafetyconstraintsSwitch<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>Safety Constraint</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -155,7 +170,9 @@ public class SafetyconstraintsSwitch<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
@@ -170,7 +187,9 @@ public class SafetyconstraintsSwitch<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
@@ -184,40 +203,57 @@ public class SafetyconstraintsSwitch<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 SafetyconstraintsPackage.FAULT_FAILURE: {
- FaultFailure faultFailure = (FaultFailure)theEObject;
- T result = caseFaultFailure(faultFailure);
- if (result == null) result = caseTraceableSpecification(faultFailure);
- if (result == null) result = caseEAPackageableElement(faultFailure);
- if (result == null) result = caseEAElement(faultFailure);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case SafetyconstraintsPackage.SAFETY_CONSTRAINT: {
- SafetyConstraint safetyConstraint = (SafetyConstraint)theEObject;
- T result = caseSafetyConstraint(safetyConstraint);
- if (result == null) result = caseTraceableSpecification(safetyConstraint);
- if (result == null) result = caseEAPackageableElement(safetyConstraint);
- if (result == null) result = caseEAElement(safetyConstraint);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case SafetyconstraintsPackage.QUANTITATIVE_SAFETY_CONSTRAINT: {
- QuantitativeSafetyConstraint quantitativeSafetyConstraint = (QuantitativeSafetyConstraint)theEObject;
- T result = caseQuantitativeSafetyConstraint(quantitativeSafetyConstraint);
- if (result == null) result = caseTraceableSpecification(quantitativeSafetyConstraint);
- if (result == null) result = caseEAPackageableElement(quantitativeSafetyConstraint);
- if (result == null) result = caseEAElement(quantitativeSafetyConstraint);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
+ switch(classifierID) {
+ case SafetyconstraintsPackage.FAULT_FAILURE:
+ {
+ FaultFailure faultFailure = (FaultFailure)theEObject;
+ T result = caseFaultFailure(faultFailure);
+ if(result == null)
+ result = caseTraceableSpecification(faultFailure);
+ if(result == null)
+ result = caseEAPackageableElement(faultFailure);
+ if(result == null)
+ result = caseEAElement(faultFailure);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case SafetyconstraintsPackage.SAFETY_CONSTRAINT:
+ {
+ SafetyConstraint safetyConstraint = (SafetyConstraint)theEObject;
+ T result = caseSafetyConstraint(safetyConstraint);
+ if(result == null)
+ result = caseTraceableSpecification(safetyConstraint);
+ if(result == null)
+ result = caseEAPackageableElement(safetyConstraint);
+ if(result == null)
+ result = caseEAElement(safetyConstraint);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case SafetyconstraintsPackage.QUANTITATIVE_SAFETY_CONSTRAINT:
+ {
+ QuantitativeSafetyConstraint quantitativeSafetyConstraint = (QuantitativeSafetyConstraint)theEObject;
+ T result = caseQuantitativeSafetyConstraint(quantitativeSafetyConstraint);
+ if(result == null)
+ result = caseTraceableSpecification(quantitativeSafetyConstraint);
+ if(result == null)
+ result = caseEAPackageableElement(quantitativeSafetyConstraint);
+ if(result == null)
+ result = caseEAElement(quantitativeSafetyConstraint);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
}
}

Back to the top