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/attributequantificationconstraint/util/AttributequantificationconstraintSwitch.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/attributequantificationconstraint/util/AttributequantificationconstraintSwitch.java169
1 files changed, 116 insertions, 53 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/attributequantificationconstraint/util/AttributequantificationconstraintSwitch.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/attributequantificationconstraint/util/AttributequantificationconstraintSwitch.java
index 66657d98d8f..0450a00c4df 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/attributequantificationconstraint/util/AttributequantificationconstraintSwitch.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/attributequantificationconstraint/util/AttributequantificationconstraintSwitch.java
@@ -20,13 +20,13 @@ import org.eclipse.papyrus.eastadl.infrastructure.values.EAValue;
/**
* <!-- 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.attributequantificationconstraint.AttributequantificationconstraintPackage
* @generated
*/
@@ -35,6 +35,7 @@ public class AttributequantificationconstraintSwitch<T> extends Switch<T> {
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static AttributequantificationconstraintPackage modelPackage;
@@ -43,6 +44,7 @@ public class AttributequantificationconstraintSwitch<T> extends Switch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public AttributequantificationconstraintSwitch() {
@@ -55,6 +57,7 @@ public class AttributequantificationconstraintSwitch<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
@@ -68,56 +71,94 @@ public class AttributequantificationconstraintSwitch<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 AttributequantificationconstraintPackage.ATTRIBUTE_QUANTIFICATIONCONSTRAINT: {
- AttributeQuantificationconstraint attributeQuantificationconstraint = (AttributeQuantificationconstraint)theEObject;
- T result = caseAttributeQuantificationconstraint(attributeQuantificationconstraint);
- if (result == null) result = caseEAElement(attributeQuantificationconstraint);
- if (result == null) result = caseBehaviorConstraintParameter(attributeQuantificationconstraint);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ case AttributequantificationconstraintPackage.ATTRIBUTE_QUANTIFICATIONCONSTRAINT: {
+ AttributeQuantificationconstraint attributeQuantificationconstraint = (AttributeQuantificationconstraint) theEObject;
+ T result = caseAttributeQuantificationconstraint(attributeQuantificationconstraint);
+ if (result == null) {
+ result = caseEAElement(attributeQuantificationconstraint);
}
- case AttributequantificationconstraintPackage.QUANTIFICATION: {
- Quantification quantification = (Quantification)theEObject;
- T result = caseQuantification(quantification);
- if (result == null) result = caseEAElement(quantification);
- if (result == null) result = caseEAExpression(quantification);
- if (result == null) result = caseEAValue(quantification);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ if (result == null) {
+ result = caseBehaviorConstraintParameter(attributeQuantificationconstraint);
}
- case AttributequantificationconstraintPackage.BEHAVIOR_ATTRIBUTE_BINDING: {
- BehaviorAttributeBinding behaviorAttributeBinding = (BehaviorAttributeBinding)theEObject;
- T result = caseBehaviorAttributeBinding(behaviorAttributeBinding);
- if (result == null) result = caseRelationship(behaviorAttributeBinding);
- if (result == null) result = caseEAElement(behaviorAttributeBinding);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ if (result == null) {
+ result = defaultCase(theEObject);
}
- case AttributequantificationconstraintPackage.LOGICAL_EVENT: {
- LogicalEvent logicalEvent = (LogicalEvent)theEObject;
- T result = caseLogicalEvent(logicalEvent);
- if (result == null) result = caseQuantification(logicalEvent);
- if (result == null) result = caseEAElement(logicalEvent);
- if (result == null) result = caseEAExpression(logicalEvent);
- if (result == null) result = caseEAValue(logicalEvent);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ return result;
+ }
+ case AttributequantificationconstraintPackage.QUANTIFICATION: {
+ Quantification quantification = (Quantification) theEObject;
+ T result = caseQuantification(quantification);
+ if (result == null) {
+ result = caseEAElement(quantification);
+ }
+ if (result == null) {
+ result = caseEAExpression(quantification);
+ }
+ if (result == null) {
+ result = caseEAValue(quantification);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case AttributequantificationconstraintPackage.BEHAVIOR_ATTRIBUTE_BINDING: {
+ BehaviorAttributeBinding behaviorAttributeBinding = (BehaviorAttributeBinding) theEObject;
+ T result = caseBehaviorAttributeBinding(behaviorAttributeBinding);
+ if (result == null) {
+ result = caseRelationship(behaviorAttributeBinding);
+ }
+ if (result == null) {
+ result = caseEAElement(behaviorAttributeBinding);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case AttributequantificationconstraintPackage.LOGICAL_EVENT: {
+ LogicalEvent logicalEvent = (LogicalEvent) theEObject;
+ T result = caseLogicalEvent(logicalEvent);
+ if (result == null) {
+ result = caseQuantification(logicalEvent);
+ }
+ if (result == null) {
+ result = caseEAElement(logicalEvent);
+ }
+ if (result == null) {
+ result = caseEAExpression(logicalEvent);
}
- case AttributequantificationconstraintPackage.ATTRIBUTE: {
- Attribute attribute = (Attribute)theEObject;
- T result = caseAttribute(attribute);
- if (result == null) result = caseEAElement(attribute);
- if (result == null) result = caseBehaviorConstraintParameter(attribute);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ if (result == null) {
+ result = caseEAValue(logicalEvent);
}
- default: return defaultCase(theEObject);
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case AttributequantificationconstraintPackage.ATTRIBUTE: {
+ Attribute attribute = (Attribute) theEObject;
+ T result = caseAttribute(attribute);
+ if (result == null) {
+ result = caseEAElement(attribute);
+ }
+ if (result == null) {
+ result = caseBehaviorConstraintParameter(attribute);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
}
}
@@ -127,7 +168,9 @@ public class AttributequantificationconstraintSwitch<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>Attribute Quantificationconstraint</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -142,7 +185,9 @@ public class AttributequantificationconstraintSwitch<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>Quantification</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -157,7 +202,9 @@ public class AttributequantificationconstraintSwitch<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>Behavior Attribute Binding</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -172,7 +219,9 @@ public class AttributequantificationconstraintSwitch<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 Event</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -187,7 +236,9 @@ public class AttributequantificationconstraintSwitch<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>Attribute</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -202,7 +253,9 @@ public class AttributequantificationconstraintSwitch<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
@@ -217,7 +270,9 @@ public class AttributequantificationconstraintSwitch<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>Behavior Constraint Parameter</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -232,7 +287,9 @@ public class AttributequantificationconstraintSwitch<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 Value</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -247,7 +304,9 @@ public class AttributequantificationconstraintSwitch<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 Expression</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -262,7 +321,9 @@ public class AttributequantificationconstraintSwitch<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>Relationship</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -277,7 +338,9 @@ public class AttributequantificationconstraintSwitch<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
@@ -287,4 +350,4 @@ public class AttributequantificationconstraintSwitch<T> extends Switch<T> {
return null;
}
-} //AttributequantificationconstraintSwitch
+} // AttributequantificationconstraintSwitch

Back to the top