Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/AddIDDocument.java55
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/Document.java56
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/MappedsuperclassFactory.java73
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/MappedsuperclassPackage.java390
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/ParentDocument.java56
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/SpecificDocument.java55
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/AddIDDocumentImpl.java166
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/DocumentImpl.java167
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/MappedsuperclassFactoryImpl.java132
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/MappedsuperclassPackageImpl.java407
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/ParentDocumentImpl.java166
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/SpecificDocumentImpl.java166
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/package.jdo39
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mappedsuperclass.ecore73
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mps.genmodel23
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mps.xsd65
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassAdapterFactory.java178
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassResourceFactoryImpl.java56
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassResourceImpl.java32
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassSwitch.java197
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassXMLProcessor.java52
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/validation/AddIDDocumentValidator.java20
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/validation/DocumentValidator.java20
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/validation/ParentDocumentValidator.java20
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/validation/SpecificDocumentValidator.java20
25 files changed, 0 insertions, 2684 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/AddIDDocument.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/AddIDDocument.java
deleted file mode 100644
index 579447430..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/AddIDDocument.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: AddIDDocument.java,v 1.3 2007/08/10 20:30:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Add ID Document</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.AddIDDocument#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage#getAddIDDocument()
- * @model annotation="teneo.jpa appinfo='@Entity'"
- * extendedMetaData="name='AddIDDocument' kind='elementOnly'"
- * @generated
- */
-public interface AddIDDocument extends Document {
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage#getAddIDDocument_Name()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
- * extendedMetaData="kind='element' name='name'"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.AddIDDocument#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
-} // AddIDDocument \ No newline at end of file
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/Document.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/Document.java
deleted file mode 100644
index eca1fc95e..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/Document.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: Document.java,v 1.5 2007/08/10 20:30:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Document</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.Document#getMyGenericInfo <em>My Generic Info</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage#getDocument()
- * @model annotation="teneo.jpa appinfo='@MappedSuperclass'"
- * extendedMetaData="name='Document' kind='elementOnly'"
- * @generated
- */
-public interface Document extends EObject {
- /**
- * Returns the value of the '<em><b>My Generic Info</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>My Generic Info</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>My Generic Info</em>' attribute.
- * @see #setMyGenericInfo(String)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage#getDocument_MyGenericInfo()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
- * extendedMetaData="kind='element' name='myGenericInfo'"
- * @generated
- */
- String getMyGenericInfo();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.Document#getMyGenericInfo <em>My Generic Info</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>My Generic Info</em>' attribute.
- * @see #getMyGenericInfo()
- * @generated
- */
- void setMyGenericInfo(String value);
-
-} // Document
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/MappedsuperclassFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/MappedsuperclassFactory.java
deleted file mode 100644
index 8fbaabbe7..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/MappedsuperclassFactory.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: MappedsuperclassFactory.java,v 1.4 2007/08/10 20:30:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass;
-
-import org.eclipse.emf.ecore.EFactory;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Factory</b> for the model.
- * It provides a create method for each non-abstract class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage
- * @generated
- */
-public interface MappedsuperclassFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- MappedsuperclassFactory eINSTANCE = org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.MappedsuperclassFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Add ID Document</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Add ID Document</em>'.
- * @generated
- */
- AddIDDocument createAddIDDocument();
-
- /**
- * Returns a new object of class '<em>Document</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Document</em>'.
- * @generated
- */
- Document createDocument();
-
- /**
- * Returns a new object of class '<em>Parent Document</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Parent Document</em>'.
- * @generated
- */
- ParentDocument createParentDocument();
-
- /**
- * Returns a new object of class '<em>Specific Document</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Specific Document</em>'.
- * @generated
- */
- SpecificDocument createSpecificDocument();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- MappedsuperclassPackage getMappedsuperclassPackage();
-
-} //MappedsuperclassFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/MappedsuperclassPackage.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/MappedsuperclassPackage.java
deleted file mode 100644
index ffe0feb47..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/MappedsuperclassPackage.java
+++ /dev/null
@@ -1,390 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: MappedsuperclassPackage.java,v 1.4 2007/08/10 20:30:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Package</b> for the model.
- * It contains accessors for the meta objects to represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassFactory
- * @model kind="package"
- * @generated
- */
-public interface MappedsuperclassPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "mappedsuperclass";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/emf/teneo/samples/emf/annotations/mappedsuperclass";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "mappedsuperclass";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- MappedsuperclassPackage eINSTANCE = org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.MappedsuperclassPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.DocumentImpl <em>Document</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.DocumentImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.MappedsuperclassPackageImpl#getDocument()
- * @generated
- */
- int DOCUMENT = 1;
-
- /**
- * The feature id for the '<em><b>My Generic Info</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DOCUMENT__MY_GENERIC_INFO = 0;
-
- /**
- * The number of structural features of the '<em>Document</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DOCUMENT_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.AddIDDocumentImpl <em>Add ID Document</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.AddIDDocumentImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.MappedsuperclassPackageImpl#getAddIDDocument()
- * @generated
- */
- int ADD_ID_DOCUMENT = 0;
-
- /**
- * The feature id for the '<em><b>My Generic Info</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ADD_ID_DOCUMENT__MY_GENERIC_INFO = DOCUMENT__MY_GENERIC_INFO;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ADD_ID_DOCUMENT__NAME = DOCUMENT_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Add ID Document</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ADD_ID_DOCUMENT_FEATURE_COUNT = DOCUMENT_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.ParentDocumentImpl <em>Parent Document</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.ParentDocumentImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.MappedsuperclassPackageImpl#getParentDocument()
- * @generated
- */
- int PARENT_DOCUMENT = 2;
-
- /**
- * The feature id for the '<em><b>My Generic Info</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PARENT_DOCUMENT__MY_GENERIC_INFO = DOCUMENT__MY_GENERIC_INFO;
-
- /**
- * The feature id for the '<em><b>My Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PARENT_DOCUMENT__MY_NAME = DOCUMENT_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Parent Document</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int PARENT_DOCUMENT_FEATURE_COUNT = DOCUMENT_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.SpecificDocumentImpl <em>Specific Document</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.SpecificDocumentImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.MappedsuperclassPackageImpl#getSpecificDocument()
- * @generated
- */
- int SPECIFIC_DOCUMENT = 3;
-
- /**
- * The feature id for the '<em><b>My Generic Info</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SPECIFIC_DOCUMENT__MY_GENERIC_INFO = PARENT_DOCUMENT__MY_GENERIC_INFO;
-
- /**
- * The feature id for the '<em><b>My Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SPECIFIC_DOCUMENT__MY_NAME = PARENT_DOCUMENT__MY_NAME;
-
- /**
- * The feature id for the '<em><b>My Specific Info</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SPECIFIC_DOCUMENT__MY_SPECIFIC_INFO = PARENT_DOCUMENT_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Specific Document</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SPECIFIC_DOCUMENT_FEATURE_COUNT = PARENT_DOCUMENT_FEATURE_COUNT + 1;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.AddIDDocument <em>Add ID Document</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Add ID Document</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.AddIDDocument
- * @generated
- */
- EClass getAddIDDocument();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.AddIDDocument#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.AddIDDocument#getName()
- * @see #getAddIDDocument()
- * @generated
- */
- EAttribute getAddIDDocument_Name();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.Document <em>Document</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Document</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.Document
- * @generated
- */
- EClass getDocument();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.Document#getMyGenericInfo <em>My Generic Info</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>My Generic Info</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.Document#getMyGenericInfo()
- * @see #getDocument()
- * @generated
- */
- EAttribute getDocument_MyGenericInfo();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.ParentDocument <em>Parent Document</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Parent Document</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.ParentDocument
- * @generated
- */
- EClass getParentDocument();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.ParentDocument#getMyName <em>My Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>My Name</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.ParentDocument#getMyName()
- * @see #getParentDocument()
- * @generated
- */
- EAttribute getParentDocument_MyName();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.SpecificDocument <em>Specific Document</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Specific Document</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.SpecificDocument
- * @generated
- */
- EClass getSpecificDocument();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.SpecificDocument#getMySpecificInfo <em>My Specific Info</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>My Specific Info</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.SpecificDocument#getMySpecificInfo()
- * @see #getSpecificDocument()
- * @generated
- */
- EAttribute getSpecificDocument_MySpecificInfo();
-
- /**
- * Returns the factory that creates the instances of the model.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the factory that creates the instances of the model.
- * @generated
- */
- MappedsuperclassFactory getMappedsuperclassFactory();
-
- /**
- * <!-- begin-user-doc -->
- * Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @generated
- */
- interface Literals {
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.AddIDDocumentImpl <em>Add ID Document</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.AddIDDocumentImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.MappedsuperclassPackageImpl#getAddIDDocument()
- * @generated
- */
- EClass ADD_ID_DOCUMENT = eINSTANCE.getAddIDDocument();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute ADD_ID_DOCUMENT__NAME = eINSTANCE.getAddIDDocument_Name();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.DocumentImpl <em>Document</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.DocumentImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.MappedsuperclassPackageImpl#getDocument()
- * @generated
- */
- EClass DOCUMENT = eINSTANCE.getDocument();
-
- /**
- * The meta object literal for the '<em><b>My Generic Info</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute DOCUMENT__MY_GENERIC_INFO = eINSTANCE.getDocument_MyGenericInfo();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.ParentDocumentImpl <em>Parent Document</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.ParentDocumentImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.MappedsuperclassPackageImpl#getParentDocument()
- * @generated
- */
- EClass PARENT_DOCUMENT = eINSTANCE.getParentDocument();
-
- /**
- * The meta object literal for the '<em><b>My Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute PARENT_DOCUMENT__MY_NAME = eINSTANCE.getParentDocument_MyName();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.SpecificDocumentImpl <em>Specific Document</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.SpecificDocumentImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.MappedsuperclassPackageImpl#getSpecificDocument()
- * @generated
- */
- EClass SPECIFIC_DOCUMENT = eINSTANCE.getSpecificDocument();
-
- /**
- * The meta object literal for the '<em><b>My Specific Info</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute SPECIFIC_DOCUMENT__MY_SPECIFIC_INFO = eINSTANCE.getSpecificDocument_MySpecificInfo();
-
- }
-
-} //MappedsuperclassPackage
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/ParentDocument.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/ParentDocument.java
deleted file mode 100644
index 748a37cfd..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/ParentDocument.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: ParentDocument.java,v 1.5 2008/04/06 13:45:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Parent Document</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.ParentDocument#getMyName <em>My Name</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage#getParentDocument()
- * @model annotation="teneo.jpa appinfo='@Entity @MappedSuperclass'"
- * extendedMetaData="name='ParentDocument' kind='elementOnly'"
- * @generated
- */
-public interface ParentDocument extends Document {
- /**
- * Returns the value of the '<em><b>My Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>My Name</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>My Name</em>' attribute.
- * @see #setMyName(String)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage#getParentDocument_MyName()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
- * annotation="teneo.jpa appinfo='\n\t\t\t\t\t @Column(name=XXX,nullable=\"false\")\n\t\t\t\t\t '"
- * extendedMetaData="kind='element' name='myName'"
- * @generated
- */
- String getMyName();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.ParentDocument#getMyName <em>My Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>My Name</em>' attribute.
- * @see #getMyName()
- * @generated
- */
- void setMyName(String value);
-
-} // ParentDocument
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/SpecificDocument.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/SpecificDocument.java
deleted file mode 100644
index 06579e4b6..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/SpecificDocument.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: SpecificDocument.java,v 1.4 2008/04/06 13:45:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Specific Document</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.SpecificDocument#getMySpecificInfo <em>My Specific Info</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage#getSpecificDocument()
- * @model annotation="teneo.jpa appinfo='@Entity\n @AttributeOverrides({@AttributeOverride(name=\"myName\", \n\t\tcolumn=@Column(name=\"PARENTDOCUMENT_NAME\", length=\"50\"))})\n\t\t\t'"
- * extendedMetaData="name='SpecificDocument' kind='elementOnly'"
- * @generated
- */
-public interface SpecificDocument extends ParentDocument {
- /**
- * Returns the value of the '<em><b>My Specific Info</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>My Specific Info</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>My Specific Info</em>' attribute.
- * @see #setMySpecificInfo(String)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage#getSpecificDocument_MySpecificInfo()
- * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
- * extendedMetaData="kind='element' name='mySpecificInfo'"
- * @generated
- */
- String getMySpecificInfo();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.SpecificDocument#getMySpecificInfo <em>My Specific Info</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>My Specific Info</em>' attribute.
- * @see #getMySpecificInfo()
- * @generated
- */
- void setMySpecificInfo(String value);
-
-} // SpecificDocument
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/AddIDDocumentImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/AddIDDocumentImpl.java
deleted file mode 100644
index bae0f216e..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/AddIDDocumentImpl.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: AddIDDocumentImpl.java,v 1.3 2007/08/10 20:30:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.AddIDDocument;
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Add ID Document</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.AddIDDocumentImpl#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class AddIDDocumentImpl extends DocumentImpl implements AddIDDocument {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected AddIDDocumentImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return MappedsuperclassPackage.Literals.ADD_ID_DOCUMENT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, MappedsuperclassPackage.ADD_ID_DOCUMENT__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case MappedsuperclassPackage.ADD_ID_DOCUMENT__NAME:
- return getName();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case MappedsuperclassPackage.ADD_ID_DOCUMENT__NAME:
- setName((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case MappedsuperclassPackage.ADD_ID_DOCUMENT__NAME:
- setName(NAME_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case MappedsuperclassPackage.ADD_ID_DOCUMENT__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} //AddIDDocumentImpl \ No newline at end of file
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/DocumentImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/DocumentImpl.java
deleted file mode 100644
index 3cebaddb6..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/DocumentImpl.java
+++ /dev/null
@@ -1,167 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: DocumentImpl.java,v 1.4 2007/08/10 20:30:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.Document;
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Document</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.DocumentImpl#getMyGenericInfo <em>My Generic Info</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class DocumentImpl extends EObjectImpl implements Document {
- /**
- * The default value of the '{@link #getMyGenericInfo() <em>My Generic Info</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMyGenericInfo()
- * @generated
- * @ordered
- */
- protected static final String MY_GENERIC_INFO_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getMyGenericInfo() <em>My Generic Info</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMyGenericInfo()
- * @generated
- * @ordered
- */
- protected String myGenericInfo = MY_GENERIC_INFO_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected DocumentImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return MappedsuperclassPackage.Literals.DOCUMENT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getMyGenericInfo() {
- return myGenericInfo;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setMyGenericInfo(String newMyGenericInfo) {
- String oldMyGenericInfo = myGenericInfo;
- myGenericInfo = newMyGenericInfo;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, MappedsuperclassPackage.DOCUMENT__MY_GENERIC_INFO, oldMyGenericInfo, myGenericInfo));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case MappedsuperclassPackage.DOCUMENT__MY_GENERIC_INFO:
- return getMyGenericInfo();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case MappedsuperclassPackage.DOCUMENT__MY_GENERIC_INFO:
- setMyGenericInfo((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case MappedsuperclassPackage.DOCUMENT__MY_GENERIC_INFO:
- setMyGenericInfo(MY_GENERIC_INFO_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case MappedsuperclassPackage.DOCUMENT__MY_GENERIC_INFO:
- return MY_GENERIC_INFO_EDEFAULT == null ? myGenericInfo != null : !MY_GENERIC_INFO_EDEFAULT.equals(myGenericInfo);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (myGenericInfo: ");
- result.append(myGenericInfo);
- result.append(')');
- return result.toString();
- }
-
-} //DocumentImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/MappedsuperclassFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/MappedsuperclassFactoryImpl.java
deleted file mode 100644
index 1c82be06e..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/MappedsuperclassFactoryImpl.java
+++ /dev/null
@@ -1,132 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: MappedsuperclassFactoryImpl.java,v 1.4 2007/08/10 20:30:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class MappedsuperclassFactoryImpl extends EFactoryImpl implements MappedsuperclassFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static MappedsuperclassFactory init() {
- try {
- MappedsuperclassFactory theMappedsuperclassFactory = (MappedsuperclassFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/teneo/samples/emf/annotations/mappedsuperclass");
- if (theMappedsuperclassFactory != null) {
- return theMappedsuperclassFactory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new MappedsuperclassFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MappedsuperclassFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case MappedsuperclassPackage.ADD_ID_DOCUMENT: return createAddIDDocument();
- case MappedsuperclassPackage.DOCUMENT: return createDocument();
- case MappedsuperclassPackage.PARENT_DOCUMENT: return createParentDocument();
- case MappedsuperclassPackage.SPECIFIC_DOCUMENT: return createSpecificDocument();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AddIDDocument createAddIDDocument() {
- AddIDDocumentImpl addIDDocument = new AddIDDocumentImpl();
- return addIDDocument;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Document createDocument() {
- DocumentImpl document = new DocumentImpl();
- return document;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ParentDocument createParentDocument() {
- ParentDocumentImpl parentDocument = new ParentDocumentImpl();
- return parentDocument;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SpecificDocument createSpecificDocument() {
- SpecificDocumentImpl specificDocument = new SpecificDocumentImpl();
- return specificDocument;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MappedsuperclassPackage getMappedsuperclassPackage() {
- return (MappedsuperclassPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static MappedsuperclassPackage getPackage() {
- return MappedsuperclassPackage.eINSTANCE;
- }
-
-} //MappedsuperclassFactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/MappedsuperclassPackageImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/MappedsuperclassPackageImpl.java
deleted file mode 100644
index 1f8fb7d06..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/MappedsuperclassPackageImpl.java
+++ /dev/null
@@ -1,407 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: MappedsuperclassPackageImpl.java,v 1.6 2008/04/06 13:45:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-
-import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.AddIDDocument;
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.Document;
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassFactory;
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.ParentDocument;
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.SpecificDocument;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class MappedsuperclassPackageImpl extends EPackageImpl implements MappedsuperclassPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass addIDDocumentEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass documentEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass parentDocumentEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass specificDocumentEClass = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private MappedsuperclassPackageImpl() {
- super(eNS_URI, MappedsuperclassFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this
- * model, and for any others upon which it depends. Simple
- * dependencies are satisfied by calling this method on all
- * dependent packages before doing anything else. This method drives
- * initialization for interdependent packages directly, in parallel
- * with this package, itself.
- * <p>Of this package and its interdependencies, all packages which
- * have not yet been registered by their URI values are first created
- * and registered. The packages are then initialized in two steps:
- * meta-model objects for all of the packages are created before any
- * are initialized, since one package's meta-model objects may refer to
- * those of another.
- * <p>Invocation of this method will not affect any packages that have
- * already been initialized.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static MappedsuperclassPackage init() {
- if (isInited) return (MappedsuperclassPackage)EPackage.Registry.INSTANCE.getEPackage(MappedsuperclassPackage.eNS_URI);
-
- // Obtain or create and register package
- MappedsuperclassPackageImpl theMappedsuperclassPackage = (MappedsuperclassPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof MappedsuperclassPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new MappedsuperclassPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- XMLTypePackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theMappedsuperclassPackage.createPackageContents();
-
- // Initialize created meta-data
- theMappedsuperclassPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theMappedsuperclassPackage.freeze();
-
- return theMappedsuperclassPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getAddIDDocument() {
- return addIDDocumentEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getAddIDDocument_Name() {
- return (EAttribute)addIDDocumentEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getDocument() {
- return documentEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDocument_MyGenericInfo() {
- return (EAttribute)documentEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getParentDocument() {
- return parentDocumentEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getParentDocument_MyName() {
- return (EAttribute)parentDocumentEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getSpecificDocument() {
- return specificDocumentEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSpecificDocument_MySpecificInfo() {
- return (EAttribute)specificDocumentEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MappedsuperclassFactory getMappedsuperclassFactory() {
- return (MappedsuperclassFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void createPackageContents() {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- addIDDocumentEClass = createEClass(ADD_ID_DOCUMENT);
- createEAttribute(addIDDocumentEClass, ADD_ID_DOCUMENT__NAME);
-
- documentEClass = createEClass(DOCUMENT);
- createEAttribute(documentEClass, DOCUMENT__MY_GENERIC_INFO);
-
- parentDocumentEClass = createEClass(PARENT_DOCUMENT);
- createEAttribute(parentDocumentEClass, PARENT_DOCUMENT__MY_NAME);
-
- specificDocumentEClass = createEClass(SPECIFIC_DOCUMENT);
- createEAttribute(specificDocumentEClass, SPECIFIC_DOCUMENT__MY_SPECIFIC_INFO);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Obtain other dependent packages
- XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- addIDDocumentEClass.getESuperTypes().add(this.getDocument());
- parentDocumentEClass.getESuperTypes().add(this.getDocument());
- specificDocumentEClass.getESuperTypes().add(this.getParentDocument());
-
- // Initialize classes and features; add operations and parameters
- initEClass(addIDDocumentEClass, AddIDDocument.class, "AddIDDocument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getAddIDDocument_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, AddIDDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(documentEClass, Document.class, "Document", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getDocument_MyGenericInfo(), theXMLTypePackage.getString(), "myGenericInfo", null, 1, 1, Document.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(parentDocumentEClass, ParentDocument.class, "ParentDocument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getParentDocument_MyName(), theXMLTypePackage.getString(), "myName", null, 1, 1, ParentDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(specificDocumentEClass, SpecificDocument.class, "SpecificDocument", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getSpecificDocument_MySpecificInfo(), theXMLTypePackage.getString(), "mySpecificInfo", null, 1, 1, SpecificDocument.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Create resource
- createResource(eNS_URI);
-
- // Create annotations
- // teneo.jpa
- createTeneoAnnotations();
- // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
- createExtendedMetaDataAnnotations();
- }
-
- /**
- * Initializes the annotations for <b>teneo.jpa</b>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void createTeneoAnnotations() {
- String source = "teneo.jpa";
- addAnnotation
- (addIDDocumentEClass,
- source,
- new String[] {
- "appinfo", "@Entity"
- });
- addAnnotation
- (documentEClass,
- source,
- new String[] {
- "appinfo", "@MappedSuperclass"
- });
- addAnnotation
- (parentDocumentEClass,
- source,
- new String[] {
- "appinfo", "@Entity @MappedSuperclass"
- });
- addAnnotation
- (getParentDocument_MyName(),
- source,
- new String[] {
- "appinfo", "\n\t\t\t\t\t @Column(name=XXX,nullable=\"false\")\n\t\t\t\t\t "
- });
- addAnnotation
- (specificDocumentEClass,
- source,
- new String[] {
- "appinfo", "@Entity\n @AttributeOverrides({@AttributeOverride(name=\"myName\", \n\t\tcolumn=@Column(name=\"PARENTDOCUMENT_NAME\", length=\"50\"))})\n\t\t\t"
- });
- }
-
- /**
- * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void createExtendedMetaDataAnnotations() {
- String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
- addAnnotation
- (addIDDocumentEClass,
- source,
- new String[] {
- "name", "AddIDDocument",
- "kind", "elementOnly"
- });
- addAnnotation
- (getAddIDDocument_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name"
- });
- addAnnotation
- (documentEClass,
- source,
- new String[] {
- "name", "Document",
- "kind", "elementOnly"
- });
- addAnnotation
- (getDocument_MyGenericInfo(),
- source,
- new String[] {
- "kind", "element",
- "name", "myGenericInfo"
- });
- addAnnotation
- (parentDocumentEClass,
- source,
- new String[] {
- "name", "ParentDocument",
- "kind", "elementOnly"
- });
- addAnnotation
- (getParentDocument_MyName(),
- source,
- new String[] {
- "kind", "element",
- "name", "myName"
- });
- addAnnotation
- (specificDocumentEClass,
- source,
- new String[] {
- "name", "SpecificDocument",
- "kind", "elementOnly"
- });
- addAnnotation
- (getSpecificDocument_MySpecificInfo(),
- source,
- new String[] {
- "kind", "element",
- "name", "mySpecificInfo"
- });
- }
-
-} //MappedsuperclassPackageImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/ParentDocumentImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/ParentDocumentImpl.java
deleted file mode 100644
index da49384ec..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/ParentDocumentImpl.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: ParentDocumentImpl.java,v 1.3 2007/08/10 20:30:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.ParentDocument;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Parent Document</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.ParentDocumentImpl#getMyName <em>My Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ParentDocumentImpl extends DocumentImpl implements ParentDocument {
- /**
- * The default value of the '{@link #getMyName() <em>My Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMyName()
- * @generated
- * @ordered
- */
- protected static final String MY_NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getMyName() <em>My Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMyName()
- * @generated
- * @ordered
- */
- protected String myName = MY_NAME_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ParentDocumentImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return MappedsuperclassPackage.Literals.PARENT_DOCUMENT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getMyName() {
- return myName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setMyName(String newMyName) {
- String oldMyName = myName;
- myName = newMyName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, MappedsuperclassPackage.PARENT_DOCUMENT__MY_NAME, oldMyName, myName));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case MappedsuperclassPackage.PARENT_DOCUMENT__MY_NAME:
- return getMyName();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case MappedsuperclassPackage.PARENT_DOCUMENT__MY_NAME:
- setMyName((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case MappedsuperclassPackage.PARENT_DOCUMENT__MY_NAME:
- setMyName(MY_NAME_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case MappedsuperclassPackage.PARENT_DOCUMENT__MY_NAME:
- return MY_NAME_EDEFAULT == null ? myName != null : !MY_NAME_EDEFAULT.equals(myName);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (myName: ");
- result.append(myName);
- result.append(')');
- return result.toString();
- }
-
-} //ParentDocumentImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/SpecificDocumentImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/SpecificDocumentImpl.java
deleted file mode 100644
index 3679da522..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/SpecificDocumentImpl.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: SpecificDocumentImpl.java,v 1.3 2007/08/10 20:30:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.SpecificDocument;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Specific Document</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.SpecificDocumentImpl#getMySpecificInfo <em>My Specific Info</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class SpecificDocumentImpl extends ParentDocumentImpl implements SpecificDocument {
- /**
- * The default value of the '{@link #getMySpecificInfo() <em>My Specific Info</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMySpecificInfo()
- * @generated
- * @ordered
- */
- protected static final String MY_SPECIFIC_INFO_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getMySpecificInfo() <em>My Specific Info</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMySpecificInfo()
- * @generated
- * @ordered
- */
- protected String mySpecificInfo = MY_SPECIFIC_INFO_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected SpecificDocumentImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return MappedsuperclassPackage.Literals.SPECIFIC_DOCUMENT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getMySpecificInfo() {
- return mySpecificInfo;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setMySpecificInfo(String newMySpecificInfo) {
- String oldMySpecificInfo = mySpecificInfo;
- mySpecificInfo = newMySpecificInfo;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, MappedsuperclassPackage.SPECIFIC_DOCUMENT__MY_SPECIFIC_INFO, oldMySpecificInfo, mySpecificInfo));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case MappedsuperclassPackage.SPECIFIC_DOCUMENT__MY_SPECIFIC_INFO:
- return getMySpecificInfo();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case MappedsuperclassPackage.SPECIFIC_DOCUMENT__MY_SPECIFIC_INFO:
- setMySpecificInfo((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case MappedsuperclassPackage.SPECIFIC_DOCUMENT__MY_SPECIFIC_INFO:
- setMySpecificInfo(MY_SPECIFIC_INFO_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case MappedsuperclassPackage.SPECIFIC_DOCUMENT__MY_SPECIFIC_INFO:
- return MY_SPECIFIC_INFO_EDEFAULT == null ? mySpecificInfo != null : !MY_SPECIFIC_INFO_EDEFAULT.equals(mySpecificInfo);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (mySpecificInfo: ");
- result.append(mySpecificInfo);
- result.append(')');
- return result.toString();
- }
-
-} //SpecificDocumentImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/package.jdo b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/package.jdo
deleted file mode 100644
index a781e3bc3..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/impl/package.jdo
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE jdo SYSTEM "file:/javax/jdo/jdo.dtd">
-
-<jdo>
- <package name="org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl">
- <class name="org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.AddIDDocumentImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="addiddocument" identity-type="datastore">
- <implements name="org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.AddIDDocument"/>
- <inheritance strategy="new-table">
- <discriminator column="dtype" strategy="value-map" value="AddIDDocument"/>
- </inheritance>
- <version strategy="version-number" column="e_version"/>
- <field name="name" persistence-modifier="persistent" null-value="exception"/>
- </class>
- <class name="org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.DocumentImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="document" identity-type="datastore">
- <implements name="org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.Document"/>
- <implements name="org.eclipse.emf.ecore.EObject"/>
- <implements name="org.eclipse.emf.common.notify.Notifier"/>
- <inheritance strategy="subclass-table"/>
- <version strategy="version-number" column="e_version"/>
- <field name="myGenericInfo" persistence-modifier="persistent" null-value="exception"/>
- </class>
- <class name="org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.ParentDocumentImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="parentdocument" identity-type="datastore">
- <implements name="org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.ParentDocument"/>
- <inheritance strategy="subclass-table"/>
- <version strategy="version-number" column="e_version"/>
- <field name="myName" persistence-modifier="persistent" null-value="exception">
- <column name="XXX" allows-null="false"/>
- </field>
- </class>
- <class name="org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.impl.SpecificDocumentImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="specificdocument" identity-type="datastore">
- <implements name="org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.SpecificDocument"/>
- <inheritance strategy="new-table">
- <discriminator column="dtype" strategy="value-map" value="SpecificDocument"/>
- </inheritance>
- <version strategy="version-number" column="e_version"/>
- <field name="mySpecificInfo" persistence-modifier="persistent" null-value="exception"/>
- </class>
- </package>
-</jdo> \ No newline at end of file
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mappedsuperclass.ecore b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mappedsuperclass.ecore
deleted file mode 100644
index db3deef51..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mappedsuperclass.ecore
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="mappedsuperclass"
- nsURI="http://www.eclipse.org/emf/teneo/samples/emf/annotations/mappedsuperclass"
- nsPrefix="mappedsuperclass">
- <eClassifiers xsi:type="ecore:EClass" name="AddIDDocument" eSuperTypes="#//Document">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@Entity"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="AddIDDocument"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="name"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Document">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@MappedSuperclass"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Document"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="myGenericInfo" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="myGenericInfo"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="ParentDocument" eSuperTypes="#//Document">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@Entity @MappedSuperclass"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="ParentDocument"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="myName" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="&#xA;&#x9;&#x9;&#x9;&#x9;&#x9; @Column(name=XXX,nullable=&quot;false&quot;)&#xA;&#x9;&#x9;&#x9;&#x9;&#x9; "/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="myName"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="SpecificDocument" eSuperTypes="#//ParentDocument">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@Entity&#xA; @AttributeOverrides({@AttributeOverride(name=&quot;myName&quot;, &#xA;&#x9;&#x9;column=@Column(name=&quot;PARENTDOCUMENT_NAME&quot;, length=&quot;50&quot;))})&#xA;&#x9;&#x9;&#x9;"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="SpecificDocument"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="mySpecificInfo" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="mySpecificInfo"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mps.genmodel b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mps.genmodel
deleted file mode 100644
index 3fe71262c..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mps.genmodel
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText=""
- modelDirectory="/org.eclipse.emf.teneo.samples/src" modelPluginID="org.eclipse.emf.teneo.samples"
- modelName="Mps" importerID="org.eclipse.xsd.ecore.importer" complianceLevel="5.0">
- <foreignModel>mps.xsd</foreignModel>
- <genPackages prefix="Mappedsuperclass" basePackage="org.eclipse.emf.teneo.samples.emf.annotations"
- resource="XML" disposableProviderFactory="true" ecorePackage="mappedsuperclass.ecore#/">
- <genClasses ecoreClass="mappedsuperclass.ecore#//AddIDDocument">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mappedsuperclass.ecore#//AddIDDocument/name"/>
- </genClasses>
- <genClasses ecoreClass="mappedsuperclass.ecore#//Document">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mappedsuperclass.ecore#//Document/myGenericInfo"/>
- </genClasses>
- <genClasses ecoreClass="mappedsuperclass.ecore#//ParentDocument">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mappedsuperclass.ecore#//ParentDocument/myName"/>
- </genClasses>
- <genClasses ecoreClass="mappedsuperclass.ecore#//SpecificDocument">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mappedsuperclass.ecore#//SpecificDocument/mySpecificInfo"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mps.xsd b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mps.xsd
deleted file mode 100644
index 6fee39563..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mps.xsd
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsd:schema
- targetNamespace="http://www.eclipse.org/emf/teneo/samples/emf/annotations/mappedsuperclass"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:this="http://www.eclipse.org/emf/teneo/samples/emf/annotations/mappedsuperclass"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
->
-
- <xsd:complexType name="Document">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@MappedSuperclass</xsd:appinfo>
- </xsd:annotation>
- <xsd:sequence>
- <xsd:element name="myGenericInfo" type="xsd:string" />
- </xsd:sequence>
- </xsd:complexType>
-
- <xsd:complexType name="AddIDDocument">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@Entity</xsd:appinfo>
- </xsd:annotation>
- <xsd:complexContent>
- <xsd:extension base="this:Document">
- <xsd:sequence>
- <xsd:element name="name" type="xsd:string" />
- </xsd:sequence>
- </xsd:extension>
- </xsd:complexContent>
- </xsd:complexType>
-
- <xsd:complexType name="ParentDocument">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@Entity @MappedSuperclass</xsd:appinfo>
- </xsd:annotation>
- <xsd:complexContent>
- <xsd:extension base="this:Document">
- <xsd:sequence>
- <xsd:element name="myName" type="xsd:string">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">
- @Column(name=XXX,nullable="false")
- </xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:extension>
- </xsd:complexContent>
- </xsd:complexType>
-
- <xsd:complexType name="SpecificDocument">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@Entity
- @AttributeOverrides({@AttributeOverride(name="myName",
- column=@Column(name="PARENTDOCUMENT_NAME", length="50"))})
- </xsd:appinfo>
- </xsd:annotation>
- <xsd:complexContent>
- <xsd:extension base="this:ParentDocument">
- <xsd:sequence>
- <xsd:element name="mySpecificInfo" type="xsd:string" />
- </xsd:sequence>
- </xsd:extension>
- </xsd:complexContent>
- </xsd:complexType>
-</xsd:schema>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassAdapterFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassAdapterFactory.java
deleted file mode 100644
index 992915eb0..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassAdapterFactory.java
+++ /dev/null
@@ -1,178 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: MappedsuperclassAdapterFactory.java,v 1.4 2007/08/10 20:30:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.util;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Adapter Factory</b> for the model.
- * It provides an adapter <code>createXXX</code> method for each class of the model.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage
- * @generated
- */
-public class MappedsuperclassAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static MappedsuperclassPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MappedsuperclassAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = MappedsuperclassPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc -->
- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
- * <!-- end-user-doc -->
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object) {
- if (object == modelPackage) {
- return true;
- }
- if (object instanceof EObject) {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch the delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected MappedsuperclassSwitch<Adapter> modelSwitch =
- new MappedsuperclassSwitch<Adapter>() {
- @Override
- public Adapter caseAddIDDocument(AddIDDocument object) {
- return createAddIDDocumentAdapter();
- }
- @Override
- public Adapter caseDocument(Document object) {
- return createDocumentAdapter();
- }
- @Override
- public Adapter caseParentDocument(ParentDocument object) {
- return createParentDocumentAdapter();
- }
- @Override
- public Adapter caseSpecificDocument(SpecificDocument object) {
- return createSpecificDocumentAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param target the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.AddIDDocument <em>Add ID Document</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.AddIDDocument
- * @generated
- */
- public Adapter createAddIDDocumentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.Document <em>Document</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.Document
- * @generated
- */
- public Adapter createDocumentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.ParentDocument <em>Parent Document</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.ParentDocument
- * @generated
- */
- public Adapter createParentDocumentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.SpecificDocument <em>Specific Document</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.SpecificDocument
- * @generated
- */
- public Adapter createSpecificDocumentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc -->
- * This default implementation returns null.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
-
-} //MappedsuperclassAdapterFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassResourceFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassResourceFactoryImpl.java
deleted file mode 100644
index ceda4b51a..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassResourceFactoryImpl.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: MappedsuperclassResourceFactoryImpl.java,v 1.3 2007/08/10 20:30:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.util;
-
-import org.eclipse.emf.common.util.URI;
-
-import org.eclipse.emf.ecore.resource.Resource;
-
-import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
-
-import org.eclipse.emf.ecore.xmi.XMLResource;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Resource Factory</b> associated with the package.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.util.MappedsuperclassResourceImpl
- * @generated
- */
-public class MappedsuperclassResourceFactoryImpl extends ResourceFactoryImpl {
- /**
- * Creates an instance of the resource factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MappedsuperclassResourceFactoryImpl() {
- super();
- }
-
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Resource createResource(URI uri) {
- XMLResource result = new MappedsuperclassResourceImpl(uri);
- result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
- result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
-
- result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
-
- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
- result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
-
- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
- return result;
- }
-
-} //MappedsuperclassResourceFactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassResourceImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassResourceImpl.java
deleted file mode 100644
index 5b9ffe509..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassResourceImpl.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: MappedsuperclassResourceImpl.java,v 1.3 2007/08/10 20:30:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.util;
-
-import org.eclipse.emf.common.util.URI;
-
-import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Resource </b> associated with the package.
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.util.MappedsuperclassResourceFactoryImpl
- * @generated
- */
-public class MappedsuperclassResourceImpl extends XMLResourceImpl {
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param uri the URI of the new resource.
- * @generated
- */
- public MappedsuperclassResourceImpl(URI uri) {
- super(uri);
- }
-
-} //MappedsuperclassResourceImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassSwitch.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassSwitch.java
deleted file mode 100644
index 10dbd0b8e..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassSwitch.java
+++ /dev/null
@@ -1,197 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: MappedsuperclassSwitch.java,v 1.4 2007/08/10 20:30:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.util;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.*;
-
-/**
- * <!-- 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.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage
- * @generated
- */
-public class MappedsuperclassSwitch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static MappedsuperclassPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MappedsuperclassSwitch() {
- if (modelPackage == null) {
- modelPackage = MappedsuperclassPackage.eINSTANCE;
- }
- }
-
- /**
- * 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 -->
- * @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);
- }
- }
-
- /**
- * 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(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case MappedsuperclassPackage.ADD_ID_DOCUMENT: {
- AddIDDocument addIDDocument = (AddIDDocument)theEObject;
- T result = caseAddIDDocument(addIDDocument);
- if (result == null) result = caseDocument(addIDDocument);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case MappedsuperclassPackage.DOCUMENT: {
- Document document = (Document)theEObject;
- T result = caseDocument(document);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case MappedsuperclassPackage.PARENT_DOCUMENT: {
- ParentDocument parentDocument = (ParentDocument)theEObject;
- T result = caseParentDocument(parentDocument);
- if (result == null) result = caseDocument(parentDocument);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case MappedsuperclassPackage.SPECIFIC_DOCUMENT: {
- SpecificDocument specificDocument = (SpecificDocument)theEObject;
- T result = caseSpecificDocument(specificDocument);
- if (result == null) result = caseParentDocument(specificDocument);
- if (result == null) result = caseDocument(specificDocument);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Add ID Document</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>Add ID Document</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseAddIDDocument(AddIDDocument object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Document</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>Document</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDocument(Document object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Parent Document</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>Parent Document</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseParentDocument(ParentDocument object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Specific Document</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>Specific Document</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseSpecificDocument(SpecificDocument 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.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public T defaultCase(EObject object) {
- return null;
- }
-
-} //MappedsuperclassSwitch
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassXMLProcessor.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassXMLProcessor.java
deleted file mode 100644
index d23bc4256..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/util/MappedsuperclassXMLProcessor.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: MappedsuperclassXMLProcessor.java,v 1.3 2007/08/10 20:30:43 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.util;
-
-import java.util.Map;
-
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.MappedsuperclassPackage;
-
-/**
- * This class contains helper methods to serialize and deserialize XML documents
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class MappedsuperclassXMLProcessor extends XMLProcessor {
- /**
- * Public constructor to instantiate the helper.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MappedsuperclassXMLProcessor() {
- super((EPackage.Registry.INSTANCE));
- MappedsuperclassPackage.eINSTANCE.eClass();
- }
-
- /**
- * Register for "*" and "xml" file extensions the MappedsuperclassResourceFactoryImpl factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected Map<String, Resource.Factory> getRegistrations() {
- if (registrations == null) {
- super.getRegistrations();
- registrations.put(XML_EXTENSION, new MappedsuperclassResourceFactoryImpl());
- registrations.put(STAR_EXTENSION, new MappedsuperclassResourceFactoryImpl());
- }
- return registrations;
- }
-
-} //MappedsuperclassXMLProcessor
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/validation/AddIDDocumentValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/validation/AddIDDocumentValidator.java
deleted file mode 100644
index ba9e26a52..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/validation/AddIDDocumentValidator.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: AddIDDocumentValidator.java,v 1.1 2007/02/08 23:09:19 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.validation;
-
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.AddIDDocument}.
- * This doesn't really do anything, and it's not a real EMF artifact.
- * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
- * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
- */
-public interface AddIDDocumentValidator {
- boolean validate();
-
- boolean validateName(String value);
-}
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/validation/DocumentValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/validation/DocumentValidator.java
deleted file mode 100644
index 6be00e575..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/validation/DocumentValidator.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: DocumentValidator.java,v 1.1 2007/02/08 23:09:20 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.validation;
-
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.Document}.
- * This doesn't really do anything, and it's not a real EMF artifact.
- * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
- * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
- */
-public interface DocumentValidator {
- boolean validate();
-
- boolean validateMyGenericInfo(String value);
-}
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/validation/ParentDocumentValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/validation/ParentDocumentValidator.java
deleted file mode 100644
index 6aad4d9a7..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/validation/ParentDocumentValidator.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: ParentDocumentValidator.java,v 1.1 2007/02/08 23:09:20 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.validation;
-
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.ParentDocument}.
- * This doesn't really do anything, and it's not a real EMF artifact.
- * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
- * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
- */
-public interface ParentDocumentValidator {
- boolean validate();
-
- boolean validateMyName(String value);
-}
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/validation/SpecificDocumentValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/validation/SpecificDocumentValidator.java
deleted file mode 100644
index 73cfd31c2..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/validation/SpecificDocumentValidator.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: SpecificDocumentValidator.java,v 1.1 2007/02/08 23:09:20 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.validation;
-
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.mappedsuperclass.SpecificDocument}.
- * This doesn't really do anything, and it's not a real EMF artifact.
- * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
- * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
- */
-public interface SpecificDocumentValidator {
- boolean validate();
-
- boolean validateMySpecificInfo(String value);
-}

Back to the top