Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesSwitch.java')
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesSwitch.java384
1 files changed, 313 insertions, 71 deletions
diff --git a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesSwitch.java b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesSwitch.java
index e38f3a7a666..49c8d3f741c 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesSwitch.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.extendedtypes/src-gen/org/eclipse/papyrus/infra/extendedtypes/util/ExtendedtypesSwitch.java
@@ -1,40 +1,44 @@
/**
- * <copyright>
- * </copyright>
- *
- * $Id$
+ * Copyright (c) 2013 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
*/
package org.eclipse.papyrus.infra.extendedtypes.util;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
+
import org.eclipse.emf.ecore.util.Switch;
-import org.eclipse.papyrus.infra.extendedtypes.ActionConfiguration;
-import org.eclipse.papyrus.infra.extendedtypes.ExtendedElementTypeConfiguration;
-import org.eclipse.papyrus.infra.extendedtypes.ExtendedElementTypeSet;
-import org.eclipse.papyrus.infra.extendedtypes.ExtendedtypesPackage;
-import org.eclipse.papyrus.infra.extendedtypes.IconEntry;
-import org.eclipse.papyrus.infra.extendedtypes.PostActionConfiguration;
-import org.eclipse.papyrus.infra.extendedtypes.PreActionConfiguration;
+
+import org.eclipse.papyrus.infra.extendedtypes.*;
/**
* <!-- 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.infra.extendedtypes.ExtendedtypesPackage
* @generated
*/
public class ExtendedtypesSwitch<T> extends Switch<T> {
+
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static ExtendedtypesPackage modelPackage;
@@ -43,10 +47,11 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public ExtendedtypesSwitch() {
- if (modelPackage == null) {
+ if(modelPackage == null) {
modelPackage = ExtendedtypesPackage.eINSTANCE;
}
}
@@ -55,6 +60,7 @@ public class ExtendedtypesSwitch<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,51 +74,155 @@ public class ExtendedtypesSwitch<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 ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET: {
- ExtendedElementTypeSet extendedElementTypeSet = (ExtendedElementTypeSet)theEObject;
- T result = caseExtendedElementTypeSet(extendedElementTypeSet);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_CONFIGURATION: {
- ExtendedElementTypeConfiguration extendedElementTypeConfiguration = (ExtendedElementTypeConfiguration)theEObject;
- T result = caseExtendedElementTypeConfiguration(extendedElementTypeConfiguration);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ExtendedtypesPackage.ICON_ENTRY: {
- IconEntry iconEntry = (IconEntry)theEObject;
- T result = caseIconEntry(iconEntry);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ExtendedtypesPackage.ACTION_CONFIGURATION: {
- ActionConfiguration actionConfiguration = (ActionConfiguration)theEObject;
- T result = caseActionConfiguration(actionConfiguration);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ExtendedtypesPackage.PRE_ACTION_CONFIGURATION: {
- PreActionConfiguration preActionConfiguration = (PreActionConfiguration)theEObject;
- T result = casePreActionConfiguration(preActionConfiguration);
- if (result == null) result = caseActionConfiguration(preActionConfiguration);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case ExtendedtypesPackage.POST_ACTION_CONFIGURATION: {
- PostActionConfiguration postActionConfiguration = (PostActionConfiguration)theEObject;
- T result = casePostActionConfiguration(postActionConfiguration);
- if (result == null) result = caseActionConfiguration(postActionConfiguration);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
+ switch(classifierID) {
+ case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET:
+ {
+ ExtendedElementTypeSet extendedElementTypeSet = (ExtendedElementTypeSet)theEObject;
+ T result = caseExtendedElementTypeSet(extendedElementTypeSet);
+ if(result == null)
+ result = caseConfigurationElement(extendedElementTypeSet);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ExtendedtypesPackage.ELEMENT_TYPE_CONFIGURATION:
+ {
+ ElementTypeConfiguration elementTypeConfiguration = (ElementTypeConfiguration)theEObject;
+ T result = caseElementTypeConfiguration(elementTypeConfiguration);
+ if(result == null)
+ result = caseConfigurationElement(elementTypeConfiguration);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ExtendedtypesPackage.ICON_ENTRY:
+ {
+ IconEntry iconEntry = (IconEntry)theEObject;
+ T result = caseIconEntry(iconEntry);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ExtendedtypesPackage.CONFIGURATION_ELEMENT:
+ {
+ ConfigurationElement configurationElement = (ConfigurationElement)theEObject;
+ T result = caseConfigurationElement(configurationElement);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ExtendedtypesPackage.MATCHER_CONFIGURATION:
+ {
+ MatcherConfiguration matcherConfiguration = (MatcherConfiguration)theEObject;
+ T result = caseMatcherConfiguration(matcherConfiguration);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ExtendedtypesPackage.ACTION_CONFIGURATION:
+ {
+ ActionConfiguration actionConfiguration = (ActionConfiguration)theEObject;
+ T result = caseActionConfiguration(actionConfiguration);
+ if(result == null)
+ result = caseConfigurationElement(actionConfiguration);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ExtendedtypesPackage.VIEW_ACTION_CONFIGURATION:
+ {
+ ViewActionConfiguration viewActionConfiguration = (ViewActionConfiguration)theEObject;
+ T result = caseViewActionConfiguration(viewActionConfiguration);
+ if(result == null)
+ result = caseActionConfiguration(viewActionConfiguration);
+ if(result == null)
+ result = caseConfigurationElement(viewActionConfiguration);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ExtendedtypesPackage.SEMANTIC_ACTION_CONFIGURATION:
+ {
+ SemanticActionConfiguration semanticActionConfiguration = (SemanticActionConfiguration)theEObject;
+ T result = caseSemanticActionConfiguration(semanticActionConfiguration);
+ if(result == null)
+ result = caseActionConfiguration(semanticActionConfiguration);
+ if(result == null)
+ result = caseConfigurationElement(semanticActionConfiguration);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ExtendedtypesPackage.SEMANTIC_TYPE_CONFIGURATION:
+ {
+ SemanticTypeConfiguration semanticTypeConfiguration = (SemanticTypeConfiguration)theEObject;
+ T result = caseSemanticTypeConfiguration(semanticTypeConfiguration);
+ if(result == null)
+ result = caseElementTypeConfiguration(semanticTypeConfiguration);
+ if(result == null)
+ result = caseConfigurationElement(semanticTypeConfiguration);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ExtendedtypesPackage.VIEW_TYPE_CONFIGURATION:
+ {
+ ViewTypeConfiguration viewTypeConfiguration = (ViewTypeConfiguration)theEObject;
+ T result = caseViewTypeConfiguration(viewTypeConfiguration);
+ if(result == null)
+ result = caseElementTypeConfiguration(viewTypeConfiguration);
+ if(result == null)
+ result = caseConfigurationElement(viewTypeConfiguration);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ExtendedtypesPackage.ELEMENT_TYPE_ADVICE_CONFIGURATION:
+ {
+ ElementTypeAdviceConfiguration elementTypeAdviceConfiguration = (ElementTypeAdviceConfiguration)theEObject;
+ T result = caseElementTypeAdviceConfiguration(elementTypeAdviceConfiguration);
+ if(result == null)
+ result = caseConfigurationElement(elementTypeAdviceConfiguration);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ExtendedtypesPackage.ASPECT_SEMANTIC_TYPE_CONFIGURATION:
+ {
+ AspectSemanticTypeConfiguration aspectSemanticTypeConfiguration = (AspectSemanticTypeConfiguration)theEObject;
+ T result = caseAspectSemanticTypeConfiguration(aspectSemanticTypeConfiguration);
+ if(result == null)
+ result = caseSemanticTypeConfiguration(aspectSemanticTypeConfiguration);
+ if(result == null)
+ result = caseElementTypeConfiguration(aspectSemanticTypeConfiguration);
+ if(result == null)
+ result = caseConfigurationElement(aspectSemanticTypeConfiguration);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case ExtendedtypesPackage.ASPECT_VIEW_TYPE_CONFIGURATION:
+ {
+ AspectViewTypeConfiguration aspectViewTypeConfiguration = (AspectViewTypeConfiguration)theEObject;
+ T result = caseAspectViewTypeConfiguration(aspectViewTypeConfiguration);
+ if(result == null)
+ result = caseViewTypeConfiguration(aspectViewTypeConfiguration);
+ if(result == null)
+ result = caseElementTypeConfiguration(aspectViewTypeConfiguration);
+ if(result == null)
+ result = caseConfigurationElement(aspectViewTypeConfiguration);
+ if(result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
}
}
@@ -122,7 +232,9 @@ public class ExtendedtypesSwitch<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>Extended Element Type Set</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -132,17 +244,19 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
}
/**
- * Returns the result of interpreting the object as an instance of '<em>Extended Element Type Configuration</em>'.
+ * Returns the result of interpreting the object as an instance of '<em>Element Type Configuration</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Extended Element Type Configuration</em>'.
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Element Type Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
- public T caseExtendedElementTypeConfiguration(ExtendedElementTypeConfiguration object) {
+ public T caseElementTypeConfiguration(ElementTypeConfiguration object) {
return null;
}
@@ -152,7 +266,9 @@ public class ExtendedtypesSwitch<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>Icon Entry</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -162,12 +278,48 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Configuration Element</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Configuration Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseConfigurationElement(ConfigurationElement object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Matcher Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Matcher Configuration</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMatcherConfiguration(MatcherConfiguration object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>Action Configuration</em>'.
* <!-- begin-user-doc -->
* 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>Action Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -177,32 +329,121 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
}
/**
- * Returns the result of interpreting the object as an instance of '<em>Pre Action Configuration</em>'.
+ * Returns the result of interpreting the object as an instance of '<em>View Action Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>View Action Configuration</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseViewActionConfiguration(ViewActionConfiguration object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Semantic Action Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Semantic Action Configuration</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSemanticActionConfiguration(SemanticActionConfiguration object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Semantic Type Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Semantic Type Configuration</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSemanticTypeConfiguration(SemanticTypeConfiguration object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>View Type Configuration</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Pre Action Configuration</em>'.
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>View Type Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
- public T casePreActionConfiguration(PreActionConfiguration object) {
+ public T caseViewTypeConfiguration(ViewTypeConfiguration object) {
return null;
}
/**
- * Returns the result of interpreting the object as an instance of '<em>Post Action Configuration</em>'.
+ * Returns the result of interpreting the object as an instance of '<em>Element Type Advice Configuration</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Post Action Configuration</em>'.
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Element Type Advice Configuration</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
- public T casePostActionConfiguration(PostActionConfiguration object) {
+ public T caseElementTypeAdviceConfiguration(ElementTypeAdviceConfiguration object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Aspect Semantic Type Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Aspect Semantic Type Configuration</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAspectSemanticTypeConfiguration(AspectSemanticTypeConfiguration object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Aspect View Type Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Aspect View Type Configuration</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAspectViewTypeConfiguration(AspectViewTypeConfiguration object) {
return null;
}
@@ -212,7 +453,9 @@ public class ExtendedtypesSwitch<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
@@ -221,5 +464,4 @@ public class ExtendedtypesSwitch<T> extends Switch<T> {
public T defaultCase(EObject object) {
return null;
}
-
} //ExtendedtypesSwitch

Back to the top