Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/util/UserattributesSwitch.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/util/UserattributesSwitch.java106
1 files changed, 68 insertions, 38 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/util/UserattributesSwitch.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/util/UserattributesSwitch.java
index a277781f94f..8351a7c18d0 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/util/UserattributesSwitch.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/infrastructure/userattributes/util/UserattributesSwitch.java
@@ -19,6 +19,7 @@ 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.EAElement;
+import org.eclipse.papyrus.eastadl.infrastructure.userattributes.*;
import org.eclipse.papyrus.eastadl.infrastructure.userattributes.UserAttributeDefinition;
import org.eclipse.papyrus.eastadl.infrastructure.userattributes.UserAttributeElementType;
import org.eclipse.papyrus.eastadl.infrastructure.userattributes.UserAttributeValue;
@@ -29,21 +30,23 @@ import org.eclipse.papyrus.eastadl.infrastructure.userattributes.UserattributesP
/**
* <!-- 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.infrastructure.userattributes.UserattributesPackage
* @generated
*/
public class UserattributesSwitch<T> extends Switch<T> {
+
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static UserattributesPackage modelPackage;
@@ -52,10 +55,11 @@ public class UserattributesSwitch<T> extends Switch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public UserattributesSwitch() {
- if (modelPackage == null) {
+ if(modelPackage == null) {
modelPackage = UserattributesPackage.eINSTANCE;
}
}
@@ -64,6 +68,7 @@ public class UserattributesSwitch<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
@@ -79,7 +84,9 @@ public class UserattributesSwitch<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>User Attributeable Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -94,7 +101,9 @@ public class UserattributesSwitch<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>User Attribute Definition</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -109,7 +118,9 @@ public class UserattributesSwitch<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>User Attribute Element Type</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -124,7 +135,9 @@ public class UserattributesSwitch<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>User Attribute Value</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -139,7 +152,9 @@ public class UserattributesSwitch<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
@@ -154,7 +169,9 @@ public class UserattributesSwitch<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
@@ -168,40 +185,53 @@ public class UserattributesSwitch<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 UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE: {
- UserAttributeElementType userAttributeElementType = (UserAttributeElementType)theEObject;
- T result = caseUserAttributeElementType(userAttributeElementType);
- if (result == null) result = caseEAElement(userAttributeElementType);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case UserattributesPackage.USER_ATTRIBUTE_DEFINITION: {
- UserAttributeDefinition userAttributeDefinition = (UserAttributeDefinition)theEObject;
- T result = caseUserAttributeDefinition(userAttributeDefinition);
- if (result == null) result = caseEAElement(userAttributeDefinition);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case UserattributesPackage.USER_ATTRIBUTEABLE_ELEMENT: {
- UserAttributeableElement userAttributeableElement = (UserAttributeableElement)theEObject;
- T result = caseUserAttributeableElement(userAttributeableElement);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case UserattributesPackage.USER_ATTRIBUTE_VALUE: {
- UserAttributeValue userAttributeValue = (UserAttributeValue)theEObject;
- T result = caseUserAttributeValue(userAttributeValue);
- if (result == null) result = caseEAElement(userAttributeValue);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
+ switch(classifierID) {
+ case UserattributesPackage.USER_ATTRIBUTE_ELEMENT_TYPE:
+ {
+ UserAttributeElementType userAttributeElementType = (UserAttributeElementType)theEObject;
+ T result = caseUserAttributeElementType(userAttributeElementType);
+ if(result == null)
+ result = caseEAElement(userAttributeElementType);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case UserattributesPackage.USER_ATTRIBUTE_DEFINITION:
+ {
+ UserAttributeDefinition userAttributeDefinition = (UserAttributeDefinition)theEObject;
+ T result = caseUserAttributeDefinition(userAttributeDefinition);
+ if(result == null)
+ result = caseEAElement(userAttributeDefinition);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case UserattributesPackage.USER_ATTRIBUTEABLE_ELEMENT:
+ {
+ UserAttributeableElement userAttributeableElement = (UserAttributeableElement)theEObject;
+ T result = caseUserAttributeableElement(userAttributeableElement);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case UserattributesPackage.USER_ATTRIBUTE_VALUE:
+ {
+ UserAttributeValue userAttributeValue = (UserAttributeValue)theEObject;
+ T result = caseUserAttributeValue(userAttributeValue);
+ if(result == null)
+ result = caseEAElement(userAttributeValue);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
}
}

Back to the top