diff options
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.java | 115 |
1 files changed, 79 insertions, 36 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..32a554dad53 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 @@ -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 @@ -30,13 +30,13 @@ 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 */ @@ -45,6 +45,7 @@ public class SafetyconstraintsSwitch<T> extends Switch<T> { * The cached model package * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ protected static SafetyconstraintsPackage modelPackage; @@ -53,6 +54,7 @@ public class SafetyconstraintsSwitch<T> extends Switch<T> { * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * * @generated */ public SafetyconstraintsSwitch() { @@ -65,6 +67,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 +83,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 +100,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 +117,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 +134,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 +151,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 +168,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 +185,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,41 +201,67 @@ 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.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); } - 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; + if (result == null) { + result = caseEAElement(safetyConstraint); } - 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; + if (result == null) { + result = defaultCase(theEObject); } - default: return 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); } } -} //SafetyconstraintsSwitch +} // SafetyconstraintsSwitch |