Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2012-05-05 05:57:49 +0000
committerMartin Taal2012-05-05 05:57:49 +0000
commite24f7504f59bc45ff4015f54bc715d8d1c959cd8 (patch)
treef2e2caf7240d6b7e124f01d8ecd27608ec8d356c /core/org.eclipse.emf.teneo.annotations/src
parentefaa9c5d4ec2d3a86626cc8d8906a6b1eed83ddf (diff)
downloadorg.eclipse.emf.teneo-e24f7504f59bc45ff4015f54bc715d8d1c959cd8.tar.gz
org.eclipse.emf.teneo-e24f7504f59bc45ff4015f54bc715d8d1c959cd8.tar.xz
org.eclipse.emf.teneo-e24f7504f59bc45ff4015f54bc715d8d1c959cd8.zip
solve compile errors on helios
Diffstat (limited to 'core/org.eclipse.emf.teneo.annotations/src')
-rwxr-xr-xcore/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pamodel/util/PamodelAdapterFactory.java2
-rw-r--r--core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pamodel/util/PamodelSwitch.java156
-rwxr-xr-xcore/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pannotation/util/PannotationAdapterFactory.java2
-rw-r--r--[-rwxr-xr-x]core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pannotation/util/PannotationSwitch.java192
4 files changed, 180 insertions, 172 deletions
diff --git a/core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pamodel/util/PamodelAdapterFactory.java b/core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pamodel/util/PamodelAdapterFactory.java
index 388403c44..264e5d9e9 100755
--- a/core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pamodel/util/PamodelAdapterFactory.java
+++ b/core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pamodel/util/PamodelAdapterFactory.java
@@ -130,7 +130,7 @@ public class PamodelAdapterFactory extends AdapterFactoryImpl {
*/
@Override
public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch(0, (EObject)target);
+ return modelSwitch.doSwitch((EObject)target);
}
diff --git a/core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pamodel/util/PamodelSwitch.java b/core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pamodel/util/PamodelSwitch.java
index 226073008..a40fd3656 100644
--- a/core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pamodel/util/PamodelSwitch.java
+++ b/core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pamodel/util/PamodelSwitch.java
@@ -2,43 +2,43 @@
* <copyright>
* </copyright>
*
- * $Id: PamodelSwitch.java,v 1.30 2011/02/21 06:40:11 mtaal Exp $
+ * $Id$
*/
package org.eclipse.emf.teneo.annotations.pamodel.util;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedEAttribute;
-import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedEClass;
-import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedEDataType;
-import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedEModelElement;
-import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedEPackage;
-import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedEReference;
-import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedEStructuralFeature;
-import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedETypedElement;
-import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedModel;
-import org.eclipse.emf.teneo.annotations.pamodel.PamodelPackage;
+
+import org.eclipse.emf.teneo.annotations.pamodel.*;
/**
- * <!-- 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, 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.
+ * <!-- 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,
+ * 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.emf.teneo.annotations.pamodel.PamodelPackage
* @generated
*/
-public class PamodelSwitch<T> {
+public class PamodelSwitch<T> {
/**
* The cached model package
- * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
protected static PamodelPackage modelPackage;
/**
* Creates an instance of the switch.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
public PamodelSwitch() {
@@ -48,20 +48,40 @@ public class PamodelSwitch<T> {
}
/**
- * Checks whether this is a switch for the given package.
+ * 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
+ */
+ public T doSwitch(EObject theEObject) {
+ return doSwitch(theEObject.eClass(), theEObject);
+ }
+
+ /**
+ * 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 -->
- * @parameter ePackage the package in question.
- * @return whether this is a switch for the given package.
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
- protected boolean isSwitchFor(EPackage ePackage) {
- return ePackage == modelPackage;
+ protected T doSwitch(EClass theEClass, EObject theEObject) {
+ if (theEClass.eContainer() == modelPackage) {
+ return doSwitch(theEClass.getClassifierID(), theEObject);
+ }
+ else {
+ List<EClass> eSuperTypes = theEClass.getESuperTypes();
+ return
+ eSuperTypes.isEmpty() ?
+ defaultCase(theEObject) :
+ doSwitch(eSuperTypes.get(0), theEObject);
+ }
}
/**
* 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 -->
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@@ -139,8 +159,10 @@ public class PamodelSwitch<T> {
/**
* Returns the result of interpreting the object as an instance of '<em>PAnnotated EModel Element</em>'.
- * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will
- * terminate the switch. <!-- end-user-doc -->
+ * <!-- 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>PAnnotated EModel Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -152,8 +174,10 @@ public class PamodelSwitch<T> {
/**
* Returns the result of interpreting the object as an instance of '<em>PAnnotated Model</em>'.
- * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will
- * terminate the switch. <!-- end-user-doc -->
+ * <!-- 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>PAnnotated Model</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -165,8 +189,10 @@ public class PamodelSwitch<T> {
/**
* Returns the result of interpreting the object as an instance of '<em>PAnnotated EPackage</em>'.
- * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will
- * terminate the switch. <!-- end-user-doc -->
+ * <!-- 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>PAnnotated EPackage</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -178,8 +204,10 @@ public class PamodelSwitch<T> {
/**
* Returns the result of interpreting the object as an instance of '<em>PAnnotated EClass</em>'.
- * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will
- * terminate the switch. <!-- end-user-doc -->
+ * <!-- 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>PAnnotated EClass</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -191,8 +219,10 @@ public class PamodelSwitch<T> {
/**
* Returns the result of interpreting the object as an instance of '<em>PAnnotated EStructural Feature</em>'.
- * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will
- * terminate the switch. <!-- end-user-doc -->
+ * <!-- 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>PAnnotated EStructural Feature</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -204,8 +234,10 @@ public class PamodelSwitch<T> {
/**
* Returns the result of interpreting the object as an instance of '<em>PAnnotated EAttribute</em>'.
- * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will
- * terminate the switch. <!-- end-user-doc -->
+ * <!-- 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>PAnnotated EAttribute</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -216,51 +248,57 @@ public class PamodelSwitch<T> {
}
/**
- * Returns the result of interpreting the object as an instance of '<em>PAnnotated EData Type</em>'.
- * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will
- * terminate the switch. <!-- end-user-doc -->
+ * Returns the result of interpreting the object as an instance of '<em>PAnnotated EReference</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>PAnnotated EData Type</em>'.
+ * @return the result of interpreting the object as an instance of '<em>PAnnotated EReference</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
- public T casePAnnotatedEDataType(PAnnotatedEDataType object) {
+ public T casePAnnotatedEReference(PAnnotatedEReference object) {
return null;
}
/**
- * Returns the result of interpreting the object as an instance of '<em>PAnnotated EReference</em>'.
- * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will
- * terminate the switch. <!-- end-user-doc -->
+ * Returns the result of interpreting the object as an instance of '<em>PAnnotated ETyped 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>PAnnotated EReference</em>'.
+ * @return the result of interpreting the object as an instance of '<em>PAnnotated ETyped Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
- public T casePAnnotatedEReference(PAnnotatedEReference object) {
+ public T casePAnnotatedETypedElement(PAnnotatedETypedElement object) {
return null;
}
/**
- * Returns the result of interpreting the object as an instance of '<em>PAnnotated ETyped Element</em>'.
- * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will
- * terminate the switch. <!-- end-user-doc -->
+ * Returns the result of interpreting the object as an instance of '<em>PAnnotated EData Type</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>PAnnotated ETyped Element</em>'.
+ * @return the result of interpreting the object as an instance of '<em>PAnnotated EData Type</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
- public T casePAnnotatedETypedElement(PAnnotatedETypedElement object) {
+ public T casePAnnotatedEDataType(PAnnotatedEDataType object) {
return null;
}
/**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!--
- * begin-user-doc --> 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.
+ * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * 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.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
@@ -269,4 +307,4 @@ public class PamodelSwitch<T> {
return null;
}
-} // PamodelSwitch
+} //PamodelSwitch
diff --git a/core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pannotation/util/PannotationAdapterFactory.java b/core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pannotation/util/PannotationAdapterFactory.java
index 1f353d628..fda9d7cd4 100755
--- a/core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pannotation/util/PannotationAdapterFactory.java
+++ b/core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pannotation/util/PannotationAdapterFactory.java
@@ -330,7 +330,7 @@ public class PannotationAdapterFactory extends AdapterFactoryImpl {
*/
@Override
public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch(0, (EObject)target);
+ return modelSwitch.doSwitch((EObject)target);
}
diff --git a/core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pannotation/util/PannotationSwitch.java b/core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pannotation/util/PannotationSwitch.java
index 99f41cd7d..4427279cb 100755..100644
--- a/core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pannotation/util/PannotationSwitch.java
+++ b/core/org.eclipse.emf.teneo.annotations/src/org/eclipse/emf/teneo/annotations/pannotation/util/PannotationSwitch.java
@@ -2,64 +2,16 @@
* <copyright>
* </copyright>
*
- * $Id: PannotationSwitch.java,v 1.33 2011/02/21 06:40:10 mtaal Exp $
+ * $Id$
*/
package org.eclipse.emf.teneo.annotations.pannotation.util;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.teneo.annotations.pannotation.AssociationOverride;
-import org.eclipse.emf.teneo.annotations.pannotation.AttributeOverride;
-import org.eclipse.emf.teneo.annotations.pannotation.Basic;
-import org.eclipse.emf.teneo.annotations.pannotation.Cacheable;
-import org.eclipse.emf.teneo.annotations.pannotation.CollectionTable;
-import org.eclipse.emf.teneo.annotations.pannotation.Column;
-import org.eclipse.emf.teneo.annotations.pannotation.DiscriminatorColumn;
-import org.eclipse.emf.teneo.annotations.pannotation.DiscriminatorValue;
-import org.eclipse.emf.teneo.annotations.pannotation.EAVMapping;
-import org.eclipse.emf.teneo.annotations.pannotation.ElementCollection;
-import org.eclipse.emf.teneo.annotations.pannotation.Embeddable;
-import org.eclipse.emf.teneo.annotations.pannotation.Embedded;
-import org.eclipse.emf.teneo.annotations.pannotation.EmbeddedId;
-import org.eclipse.emf.teneo.annotations.pannotation.Entity;
-import org.eclipse.emf.teneo.annotations.pannotation.Enumerated;
-import org.eclipse.emf.teneo.annotations.pannotation.External;
-import org.eclipse.emf.teneo.annotations.pannotation.ForeignKey;
-import org.eclipse.emf.teneo.annotations.pannotation.GeneratedValue;
-import org.eclipse.emf.teneo.annotations.pannotation.Id;
-import org.eclipse.emf.teneo.annotations.pannotation.IdClass;
-import org.eclipse.emf.teneo.annotations.pannotation.Inheritance;
-import org.eclipse.emf.teneo.annotations.pannotation.JoinColumn;
-import org.eclipse.emf.teneo.annotations.pannotation.JoinTable;
-import org.eclipse.emf.teneo.annotations.pannotation.ListIndexColumn;
-import org.eclipse.emf.teneo.annotations.pannotation.Lob;
-import org.eclipse.emf.teneo.annotations.pannotation.ManyToMany;
-import org.eclipse.emf.teneo.annotations.pannotation.ManyToOne;
-import org.eclipse.emf.teneo.annotations.pannotation.MapKey;
-import org.eclipse.emf.teneo.annotations.pannotation.MapKeyClass;
-import org.eclipse.emf.teneo.annotations.pannotation.MapKeyColumn;
-import org.eclipse.emf.teneo.annotations.pannotation.MapKeyEnumerated;
-import org.eclipse.emf.teneo.annotations.pannotation.MapKeyJoinColumn;
-import org.eclipse.emf.teneo.annotations.pannotation.MapKeyTemporal;
-import org.eclipse.emf.teneo.annotations.pannotation.MappedSuperclass;
-import org.eclipse.emf.teneo.annotations.pannotation.MapsId;
-import org.eclipse.emf.teneo.annotations.pannotation.NoEAVMapping;
-import org.eclipse.emf.teneo.annotations.pannotation.OneToMany;
-import org.eclipse.emf.teneo.annotations.pannotation.OneToOne;
-import org.eclipse.emf.teneo.annotations.pannotation.OrderBy;
-import org.eclipse.emf.teneo.annotations.pannotation.OrderColumn;
-import org.eclipse.emf.teneo.annotations.pannotation.PAnnotation;
-import org.eclipse.emf.teneo.annotations.pannotation.PannotationPackage;
-import org.eclipse.emf.teneo.annotations.pannotation.PrimaryKeyJoinColumn;
-import org.eclipse.emf.teneo.annotations.pannotation.SecondaryTable;
-import org.eclipse.emf.teneo.annotations.pannotation.SequenceGenerator;
-import org.eclipse.emf.teneo.annotations.pannotation.SequenceStyleGenerator;
-import org.eclipse.emf.teneo.annotations.pannotation.Table;
-import org.eclipse.emf.teneo.annotations.pannotation.TableGenerator;
-import org.eclipse.emf.teneo.annotations.pannotation.Temporal;
-import org.eclipse.emf.teneo.annotations.pannotation.Transient;
-import org.eclipse.emf.teneo.annotations.pannotation.UniqueConstraint;
-import org.eclipse.emf.teneo.annotations.pannotation.Version;
+
+import org.eclipse.emf.teneo.annotations.pannotation.*;
/**
* <!-- begin-user-doc -->
@@ -96,16 +48,34 @@ public class PannotationSwitch<T> {
}
/**
- * Checks whether this is a switch for the given package.
+ * 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 -->
- * @parameter ePackage the package in question.
- * @return whether this is a switch for the given package.
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
- @Override
- protected boolean isSwitchFor(EPackage ePackage) {
- return ePackage == modelPackage;
+ public T doSwitch(EObject theEObject) {
+ return doSwitch(theEObject.eClass(), theEObject);
+ }
+
+ /**
+ * 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
+ */
+ protected T doSwitch(EClass theEClass, EObject theEObject) {
+ if (theEClass.eContainer() == modelPackage) {
+ return doSwitch(theEClass.getClassifierID(), theEObject);
+ }
+ else {
+ List<EClass> eSuperTypes = theEClass.getESuperTypes();
+ return
+ eSuperTypes.isEmpty() ?
+ defaultCase(theEObject) :
+ doSwitch(eSuperTypes.get(0), theEObject);
+ }
}
/**
@@ -508,6 +478,21 @@ public class PannotationSwitch<T> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Association Override</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>Association Override</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAssociationOverride(AssociationOverride object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>Basic</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
@@ -628,36 +613,6 @@ public class PannotationSwitch<T> {
}
/**
- * Returns the result of interpreting the object as an instance of '<em>Mapped Superclass</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>Mapped Superclass</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseMappedSuperclass(MappedSuperclass object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Maps Id</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>Maps Id</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseMapsId(MapsId object) {
- return null;
- }
-
- /**
* Returns the result of interpreting the object as an instance of '<em>Embedded</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
@@ -688,32 +643,32 @@ public class PannotationSwitch<T> {
}
/**
- * Returns the result of interpreting the object as an instance of '<em>Enumerated</em>'.
+ * Returns the result of interpreting the object as an instance of '<em>Entity</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>Enumerated</em>'.
+ * @return the result of interpreting the object as an instance of '<em>Entity</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
- public T caseEnumerated(Enumerated object) {
+ public T caseEntity(Entity object) {
return null;
}
/**
- * Returns the result of interpreting the object as an instance of '<em>Entity</em>'.
+ * Returns the result of interpreting the object as an instance of '<em>Enumerated</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>Entity</em>'.
+ * @return the result of interpreting the object as an instance of '<em>Enumerated</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
- public T caseEntity(Entity object) {
+ public T caseEnumerated(Enumerated object) {
return null;
}
@@ -943,6 +898,36 @@ public class PannotationSwitch<T> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Mapped Superclass</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>Mapped Superclass</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMappedSuperclass(MappedSuperclass object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Maps Id</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>Maps Id</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMapsId(MapsId object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>One To Many</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
@@ -1228,21 +1213,6 @@ public class PannotationSwitch<T> {
}
/**
- * Returns the result of interpreting the object as an instance of '<em>Association Override</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>Association Override</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseAssociationOverride(AssociationOverride object) {
- return null;
- }
-
- /**
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;

Back to the top