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/computationconstraint/util/ComputationconstraintSwitch.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/computationconstraint/util/ComputationconstraintSwitch.java101
1 files changed, 67 insertions, 34 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/computationconstraint/util/ComputationconstraintSwitch.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/computationconstraint/util/ComputationconstraintSwitch.java
index 688d4680c72..7f3e2ebac64 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/computationconstraint/util/ComputationconstraintSwitch.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/computationconstraint/util/ComputationconstraintSwitch.java
@@ -14,13 +14,13 @@ import org.eclipse.papyrus.eastadl.infrastructure.elements.EAElement;
/**
* <!-- 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.computationconstraint.ComputationconstraintPackage
* @generated
*/
@@ -29,6 +29,7 @@ public class ComputationconstraintSwitch<T> extends Switch<T> {
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static ComputationconstraintPackage modelPackage;
@@ -37,6 +38,7 @@ public class ComputationconstraintSwitch<T> extends Switch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ComputationconstraintSwitch() {
@@ -49,6 +51,7 @@ public class ComputationconstraintSwitch<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
@@ -62,41 +65,59 @@ public class ComputationconstraintSwitch<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 ComputationconstraintPackage.COMPUTATION_CONSTRAINT: {
- ComputationConstraint computationConstraint = (ComputationConstraint)theEObject;
- T result = caseComputationConstraint(computationConstraint);
- if (result == null) result = caseEAElement(computationConstraint);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ case ComputationconstraintPackage.COMPUTATION_CONSTRAINT: {
+ ComputationConstraint computationConstraint = (ComputationConstraint) theEObject;
+ T result = caseComputationConstraint(computationConstraint);
+ if (result == null) {
+ result = caseEAElement(computationConstraint);
}
- case ComputationconstraintPackage.LOGICAL_PATH: {
- LogicalPath logicalPath = (LogicalPath)theEObject;
- T result = caseLogicalPath(logicalPath);
- if (result == null) result = caseEAElement(logicalPath);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ if (result == null) {
+ result = defaultCase(theEObject);
}
- case ComputationconstraintPackage.LOGICAL_TRANSFORMATION: {
- LogicalTransformation logicalTransformation = (LogicalTransformation)theEObject;
- T result = caseLogicalTransformation(logicalTransformation);
- if (result == null) result = caseEAElement(logicalTransformation);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ return result;
+ }
+ case ComputationconstraintPackage.LOGICAL_PATH: {
+ LogicalPath logicalPath = (LogicalPath) theEObject;
+ T result = caseLogicalPath(logicalPath);
+ if (result == null) {
+ result = caseEAElement(logicalPath);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case ComputationconstraintPackage.LOGICAL_TRANSFORMATION: {
+ LogicalTransformation logicalTransformation = (LogicalTransformation) theEObject;
+ T result = caseLogicalTransformation(logicalTransformation);
+ if (result == null) {
+ result = caseEAElement(logicalTransformation);
}
- case ComputationconstraintPackage.TRANSFORMATION_OCCURRENCE: {
- TransformationOccurrence transformationOccurrence = (TransformationOccurrence)theEObject;
- T result = caseTransformationOccurrence(transformationOccurrence);
- if (result == null) result = caseEAElement(transformationOccurrence);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ if (result == null) {
+ result = defaultCase(theEObject);
}
- default: return defaultCase(theEObject);
+ return result;
+ }
+ case ComputationconstraintPackage.TRANSFORMATION_OCCURRENCE: {
+ TransformationOccurrence transformationOccurrence = (TransformationOccurrence) theEObject;
+ T result = caseTransformationOccurrence(transformationOccurrence);
+ if (result == null) {
+ result = caseEAElement(transformationOccurrence);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
}
}
@@ -106,7 +127,9 @@ public class ComputationconstraintSwitch<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>Computation Constraint</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -121,7 +144,9 @@ public class ComputationconstraintSwitch<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>Logical Path</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -136,7 +161,9 @@ public class ComputationconstraintSwitch<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>Logical Transformation</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -151,7 +178,9 @@ public class ComputationconstraintSwitch<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>Transformation Occurrence</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -166,7 +195,9 @@ public class ComputationconstraintSwitch<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
@@ -181,7 +212,9 @@ public class ComputationconstraintSwitch<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
@@ -191,4 +224,4 @@ public class ComputationconstraintSwitch<T> extends Switch<T> {
return null;
}
-} //ComputationconstraintSwitch
+} // ComputationconstraintSwitch

Back to the top