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/primarykeyjoin')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/Body.java112
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/Head.java83
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/PrimarykeyjoinFactory.java55
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/PrimarykeyjoinPackage.java249
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/impl/BodyImpl.java282
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/impl/HeadImpl.java201
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/impl/PrimarykeyjoinFactoryImpl.java110
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/impl/PrimarykeyjoinPackageImpl.java319
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/model/pkey.genmodel18
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/model/pkey.xsd31
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/model/primarykeyjoin.ecore49
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinAdapterFactory.java142
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinResourceFactoryImpl.java56
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinResourceImpl.java32
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinSwitch.java151
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinXMLProcessor.java52
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/validation/BodyValidator.java22
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/validation/HeadValidator.java20
18 files changed, 0 insertions, 1984 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/Body.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/Body.java
deleted file mode 100644
index 22bf376ba..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/Body.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: Body.java,v 1.2 2006/09/05 12:16:33 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Body</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Body#getTheID <em>The ID</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Body#getHead <em>Head</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.PrimarykeyjoinPackage#getBody()
- * @model extendedMetaData="name='Body' kind='elementOnly'"
- * @generated
- */
-public interface Body extends EObject {
- /**
- * Returns the value of the '<em><b>The ID</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>The ID</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>The ID</em>' attribute.
- * @see #isSetTheID()
- * @see #unsetTheID()
- * @see #setTheID(long)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.PrimarykeyjoinPackage#getBody_TheID()
- * @model unique="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Long" required="true"
- * annotation="teneo.jpa appinfo='@Id'"
- * extendedMetaData="kind='element' name='theID'"
- * @generated
- */
- long getTheID();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Body#getTheID <em>The ID</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>The ID</em>' attribute.
- * @see #isSetTheID()
- * @see #unsetTheID()
- * @see #getTheID()
- * @generated
- */
- void setTheID(long value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Body#getTheID <em>The ID</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isSetTheID()
- * @see #getTheID()
- * @see #setTheID(long)
- * @generated
- */
- void unsetTheID();
-
- /**
- * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Body#getTheID <em>The ID</em>}' attribute is set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return whether the value of the '<em>The ID</em>' attribute is set.
- * @see #unsetTheID()
- * @see #getTheID()
- * @see #setTheID(long)
- * @generated
- */
- boolean isSetTheID();
-
- /**
- * Returns the value of the '<em><b>Head</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Head</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Head</em>' containment reference.
- * @see #setHead(Head)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.PrimarykeyjoinPackage#getBody_Head()
- * @model containment="true" required="true"
- * annotation="teneo.jpa appinfo='@PrimaryKeyJoinColumn(name=\"theID\")'"
- * extendedMetaData="kind='element' name='head'"
- * @generated
- */
- Head getHead();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Body#getHead <em>Head</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Head</em>' containment reference.
- * @see #getHead()
- * @generated
- */
- void setHead(Head value);
-
-} // Body
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/Head.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/Head.java
deleted file mode 100644
index bae9b51f6..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/Head.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: Head.java,v 1.2 2006/09/05 12:16:33 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Head</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Head#getMyID <em>My ID</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.PrimarykeyjoinPackage#getHead()
- * @model extendedMetaData="name='Head' kind='elementOnly'"
- * @generated
- */
-public interface Head extends EObject {
- /**
- * Returns the value of the '<em><b>My ID</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>My ID</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 ID</em>' attribute.
- * @see #isSetMyID()
- * @see #unsetMyID()
- * @see #setMyID(long)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.PrimarykeyjoinPackage#getHead_MyID()
- * @model unique="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Long" required="true"
- * annotation="teneo.jpa appinfo='@Id'"
- * extendedMetaData="kind='element' name='myID'"
- * @generated
- */
- long getMyID();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Head#getMyID <em>My ID</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>My ID</em>' attribute.
- * @see #isSetMyID()
- * @see #unsetMyID()
- * @see #getMyID()
- * @generated
- */
- void setMyID(long value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Head#getMyID <em>My ID</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isSetMyID()
- * @see #getMyID()
- * @see #setMyID(long)
- * @generated
- */
- void unsetMyID();
-
- /**
- * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Head#getMyID <em>My ID</em>}' attribute is set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return whether the value of the '<em>My ID</em>' attribute is set.
- * @see #unsetMyID()
- * @see #getMyID()
- * @see #setMyID(long)
- * @generated
- */
- boolean isSetMyID();
-
-} // Head
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/PrimarykeyjoinFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/PrimarykeyjoinFactory.java
deleted file mode 100644
index 12e0434d1..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/PrimarykeyjoinFactory.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: PrimarykeyjoinFactory.java,v 1.1 2006/07/11 16:56:54 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin;
-
-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.primarykeyjoin.PrimarykeyjoinPackage
- * @generated
- */
-public interface PrimarykeyjoinFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- PrimarykeyjoinFactory eINSTANCE = org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.PrimarykeyjoinFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Body</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Body</em>'.
- * @generated
- */
- Body createBody();
-
- /**
- * Returns a new object of class '<em>Head</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Head</em>'.
- * @generated
- */
- Head createHead();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- PrimarykeyjoinPackage getPrimarykeyjoinPackage();
-
-} //PrimarykeyjoinFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/PrimarykeyjoinPackage.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/PrimarykeyjoinPackage.java
deleted file mode 100644
index 838336d3e..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/PrimarykeyjoinPackage.java
+++ /dev/null
@@ -1,249 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: PrimarykeyjoinPackage.java,v 1.1 2006/07/11 16:56:54 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-/**
- * <!-- 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.primarykeyjoin.PrimarykeyjoinFactory
- * @model kind="package"
- * @generated
- */
-public interface PrimarykeyjoinPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "primarykeyjoin";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/emf/teneo/samples/emf/annotations/primarykeyjoin";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "primarykeyjoin";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- PrimarykeyjoinPackage eINSTANCE = org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.PrimarykeyjoinPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.BodyImpl <em>Body</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.BodyImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.PrimarykeyjoinPackageImpl#getBody()
- * @generated
- */
- int BODY = 0;
-
- /**
- * The feature id for the '<em><b>The ID</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BODY__THE_ID = 0;
-
- /**
- * The feature id for the '<em><b>Head</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BODY__HEAD = 1;
-
- /**
- * The number of structural features of the '<em>Body</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BODY_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.HeadImpl <em>Head</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.HeadImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.PrimarykeyjoinPackageImpl#getHead()
- * @generated
- */
- int HEAD = 1;
-
- /**
- * The feature id for the '<em><b>My ID</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int HEAD__MY_ID = 0;
-
- /**
- * The number of structural features of the '<em>Head</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int HEAD_FEATURE_COUNT = 1;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Body <em>Body</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Body</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Body
- * @generated
- */
- EClass getBody();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Body#getTheID <em>The ID</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>The ID</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Body#getTheID()
- * @see #getBody()
- * @generated
- */
- EAttribute getBody_TheID();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Body#getHead <em>Head</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Head</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Body#getHead()
- * @see #getBody()
- * @generated
- */
- EReference getBody_Head();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Head <em>Head</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Head</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Head
- * @generated
- */
- EClass getHead();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Head#getMyID <em>My ID</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>My ID</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Head#getMyID()
- * @see #getHead()
- * @generated
- */
- EAttribute getHead_MyID();
-
- /**
- * 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
- */
- PrimarykeyjoinFactory getPrimarykeyjoinFactory();
-
- /**
- * <!-- 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.primarykeyjoin.impl.BodyImpl <em>Body</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.BodyImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.PrimarykeyjoinPackageImpl#getBody()
- * @generated
- */
- EClass BODY = eINSTANCE.getBody();
-
- /**
- * The meta object literal for the '<em><b>The ID</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute BODY__THE_ID = eINSTANCE.getBody_TheID();
-
- /**
- * The meta object literal for the '<em><b>Head</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference BODY__HEAD = eINSTANCE.getBody_Head();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.HeadImpl <em>Head</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.HeadImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.PrimarykeyjoinPackageImpl#getHead()
- * @generated
- */
- EClass HEAD = eINSTANCE.getHead();
-
- /**
- * The meta object literal for the '<em><b>My ID</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute HEAD__MY_ID = eINSTANCE.getHead_MyID();
-
- }
-
-} //PrimarykeyjoinPackage
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/impl/BodyImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/impl/BodyImpl.java
deleted file mode 100644
index a60c614c0..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/impl/BodyImpl.java
+++ /dev/null
@@ -1,282 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: BodyImpl.java,v 1.2 2007/02/08 23:09:28 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Body;
-import org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Head;
-import org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.PrimarykeyjoinPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Body</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.BodyImpl#getTheID <em>The ID</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.BodyImpl#getHead <em>Head</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class BodyImpl extends EObjectImpl implements Body {
- /**
- * The default value of the '{@link #getTheID() <em>The ID</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTheID()
- * @generated
- * @ordered
- */
- protected static final long THE_ID_EDEFAULT = 0L;
-
- /**
- * The cached value of the '{@link #getTheID() <em>The ID</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTheID()
- * @generated
- * @ordered
- */
- protected long theID = THE_ID_EDEFAULT;
-
- /**
- * This is true if the The ID attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean theIDESet = false;
-
- /**
- * The cached value of the '{@link #getHead() <em>Head</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHead()
- * @generated
- * @ordered
- */
- protected Head head = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected BodyImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PrimarykeyjoinPackage.Literals.BODY;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public long getTheID() {
- return theID;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTheID(long newTheID) {
- long oldTheID = theID;
- theID = newTheID;
- boolean oldTheIDESet = theIDESet;
- theIDESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PrimarykeyjoinPackage.BODY__THE_ID, oldTheID, theID, !oldTheIDESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetTheID() {
- long oldTheID = theID;
- boolean oldTheIDESet = theIDESet;
- theID = THE_ID_EDEFAULT;
- theIDESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, PrimarykeyjoinPackage.BODY__THE_ID, oldTheID, THE_ID_EDEFAULT, oldTheIDESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetTheID() {
- return theIDESet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Head getHead() {
- return head;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetHead(Head newHead, NotificationChain msgs) {
- Head oldHead = head;
- head = newHead;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PrimarykeyjoinPackage.BODY__HEAD, oldHead, newHead);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setHead(Head newHead) {
- if (newHead != head) {
- NotificationChain msgs = null;
- if (head != null)
- msgs = ((InternalEObject)head).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PrimarykeyjoinPackage.BODY__HEAD, null, msgs);
- if (newHead != null)
- msgs = ((InternalEObject)newHead).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PrimarykeyjoinPackage.BODY__HEAD, null, msgs);
- msgs = basicSetHead(newHead, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PrimarykeyjoinPackage.BODY__HEAD, newHead, newHead));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case PrimarykeyjoinPackage.BODY__HEAD:
- return basicSetHead(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PrimarykeyjoinPackage.BODY__THE_ID:
- return new Long(getTheID());
- case PrimarykeyjoinPackage.BODY__HEAD:
- return getHead();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PrimarykeyjoinPackage.BODY__THE_ID:
- setTheID(((Long)newValue).longValue());
- return;
- case PrimarykeyjoinPackage.BODY__HEAD:
- setHead((Head)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PrimarykeyjoinPackage.BODY__THE_ID:
- unsetTheID();
- return;
- case PrimarykeyjoinPackage.BODY__HEAD:
- setHead((Head)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PrimarykeyjoinPackage.BODY__THE_ID:
- return isSetTheID();
- case PrimarykeyjoinPackage.BODY__HEAD:
- return head != null;
- }
- 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(" (theID: ");
- if (theIDESet) result.append(theID); else result.append("<unset>");
- result.append(')');
- return result.toString();
- }
-
-} //BodyImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/impl/HeadImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/impl/HeadImpl.java
deleted file mode 100644
index 7c37f47ae..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/impl/HeadImpl.java
+++ /dev/null
@@ -1,201 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: HeadImpl.java,v 1.2 2007/02/08 23:09:28 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.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.primarykeyjoin.Head;
-import org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.PrimarykeyjoinPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Head</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl.HeadImpl#getMyID <em>My ID</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class HeadImpl extends EObjectImpl implements Head {
- /**
- * The default value of the '{@link #getMyID() <em>My ID</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMyID()
- * @generated
- * @ordered
- */
- protected static final long MY_ID_EDEFAULT = 0L;
-
- /**
- * The cached value of the '{@link #getMyID() <em>My ID</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMyID()
- * @generated
- * @ordered
- */
- protected long myID = MY_ID_EDEFAULT;
-
- /**
- * This is true if the My ID attribute has been set.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean myIDESet = false;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected HeadImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PrimarykeyjoinPackage.Literals.HEAD;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public long getMyID() {
- return myID;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setMyID(long newMyID) {
- long oldMyID = myID;
- myID = newMyID;
- boolean oldMyIDESet = myIDESet;
- myIDESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PrimarykeyjoinPackage.HEAD__MY_ID, oldMyID, myID, !oldMyIDESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void unsetMyID() {
- long oldMyID = myID;
- boolean oldMyIDESet = myIDESet;
- myID = MY_ID_EDEFAULT;
- myIDESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, PrimarykeyjoinPackage.HEAD__MY_ID, oldMyID, MY_ID_EDEFAULT, oldMyIDESet));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetMyID() {
- return myIDESet;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PrimarykeyjoinPackage.HEAD__MY_ID:
- return new Long(getMyID());
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PrimarykeyjoinPackage.HEAD__MY_ID:
- setMyID(((Long)newValue).longValue());
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PrimarykeyjoinPackage.HEAD__MY_ID:
- unsetMyID();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PrimarykeyjoinPackage.HEAD__MY_ID:
- return isSetMyID();
- }
- 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(" (myID: ");
- if (myIDESet) result.append(myID); else result.append("<unset>");
- result.append(')');
- return result.toString();
- }
-
-} //HeadImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/impl/PrimarykeyjoinFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/impl/PrimarykeyjoinFactoryImpl.java
deleted file mode 100644
index eba61218a..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/impl/PrimarykeyjoinFactoryImpl.java
+++ /dev/null
@@ -1,110 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: PrimarykeyjoinFactoryImpl.java,v 1.2 2007/02/08 23:09:28 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.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.primarykeyjoin.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class PrimarykeyjoinFactoryImpl extends EFactoryImpl implements PrimarykeyjoinFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static PrimarykeyjoinFactory init() {
- try {
- PrimarykeyjoinFactory thePrimarykeyjoinFactory = (PrimarykeyjoinFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/teneo/samples/emf/annotations/primarykeyjoin");
- if (thePrimarykeyjoinFactory != null) {
- return thePrimarykeyjoinFactory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new PrimarykeyjoinFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PrimarykeyjoinFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case PrimarykeyjoinPackage.BODY: return createBody();
- case PrimarykeyjoinPackage.HEAD: return createHead();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Body createBody() {
- BodyImpl body = new BodyImpl();
- return body;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Head createHead() {
- HeadImpl head = new HeadImpl();
- return head;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PrimarykeyjoinPackage getPrimarykeyjoinPackage() {
- return (PrimarykeyjoinPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static PrimarykeyjoinPackage getPackage() {
- return PrimarykeyjoinPackage.eINSTANCE;
- }
-
-} //PrimarykeyjoinFactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/impl/PrimarykeyjoinPackageImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/impl/PrimarykeyjoinPackageImpl.java
deleted file mode 100644
index 0138a95d3..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/impl/PrimarykeyjoinPackageImpl.java
+++ /dev/null
@@ -1,319 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: PrimarykeyjoinPackageImpl.java,v 1.3 2007/02/08 23:09:28 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-
-import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Body;
-import org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Head;
-import org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.PrimarykeyjoinFactory;
-import org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.PrimarykeyjoinPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class PrimarykeyjoinPackageImpl extends EPackageImpl implements PrimarykeyjoinPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass bodyEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass headEClass = 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.primarykeyjoin.PrimarykeyjoinPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private PrimarykeyjoinPackageImpl() {
- super(eNS_URI, PrimarykeyjoinFactory.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 PrimarykeyjoinPackage init() {
- if (isInited) return (PrimarykeyjoinPackage)EPackage.Registry.INSTANCE.getEPackage(PrimarykeyjoinPackage.eNS_URI);
-
- // Obtain or create and register package
- PrimarykeyjoinPackageImpl thePrimarykeyjoinPackage = (PrimarykeyjoinPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof PrimarykeyjoinPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new PrimarykeyjoinPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- XMLTypePackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- thePrimarykeyjoinPackage.createPackageContents();
-
- // Initialize created meta-data
- thePrimarykeyjoinPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- thePrimarykeyjoinPackage.freeze();
-
- return thePrimarykeyjoinPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getBody() {
- return bodyEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBody_TheID() {
- return (EAttribute)bodyEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getBody_Head() {
- return (EReference)bodyEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getHead() {
- return headEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getHead_MyID() {
- return (EAttribute)headEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PrimarykeyjoinFactory getPrimarykeyjoinFactory() {
- return (PrimarykeyjoinFactory)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
- bodyEClass = createEClass(BODY);
- createEAttribute(bodyEClass, BODY__THE_ID);
- createEReference(bodyEClass, BODY__HEAD);
-
- headEClass = createEClass(HEAD);
- createEAttribute(headEClass, HEAD__MY_ID);
- }
-
- /**
- * <!-- 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
-
- // Initialize classes and features; add operations and parameters
- initEClass(bodyEClass, Body.class, "Body", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getBody_TheID(), theXMLTypePackage.getLong(), "theID", null, 1, 1, Body.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getBody_Head(), this.getHead(), null, "head", null, 1, 1, Body.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(headEClass, Head.class, "Head", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getHead_MyID(), theXMLTypePackage.getLong(), "myID", null, 1, 1, Head.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Create resource
- createResource(eNS_URI);
-
- // Create annotations
- // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
- createExtendedMetaDataAnnotations();
- // teneo.jpa
- createTeneoAnnotations();
- }
-
- /**
- * 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
- (bodyEClass,
- source,
- new String[] {
- "name", "Body",
- "kind", "elementOnly"
- });
- addAnnotation
- (getBody_TheID(),
- source,
- new String[] {
- "kind", "element",
- "name", "theID"
- });
- addAnnotation
- (getBody_Head(),
- source,
- new String[] {
- "kind", "element",
- "name", "head"
- });
- addAnnotation
- (headEClass,
- source,
- new String[] {
- "name", "Head",
- "kind", "elementOnly"
- });
- addAnnotation
- (getHead_MyID(),
- source,
- new String[] {
- "kind", "element",
- "name", "myID"
- });
- }
-
- /**
- * Initializes the annotations for <b>teneo.jpa</b>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void createTeneoAnnotations() {
- String source = "teneo.jpa";
- addAnnotation
- (getBody_TheID(),
- source,
- new String[] {
- "appinfo", "@Id"
- });
- addAnnotation
- (getBody_Head(),
- source,
- new String[] {
- "appinfo", "@PrimaryKeyJoinColumn(name=\"theID\")"
- });
- addAnnotation
- (getHead_MyID(),
- source,
- new String[] {
- "appinfo", "@Id"
- });
- }
-
-} //PrimarykeyjoinPackageImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/model/pkey.genmodel b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/model/pkey.genmodel
deleted file mode 100644
index 4c0e1e73e..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/model/pkey.genmodel
+++ /dev/null
@@ -1,18 +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" modelDirectory="/org.eclipse.emf.teneo.samples/src"
- modelPluginID="org.eclipse.emf.teneo.samples" modelName="Pkey" importerID="org.eclipse.xsd.ecore.importer"
- complianceLevel="5.0">
- <foreignModel>pkey.xsd</foreignModel>
- <genPackages prefix="Primarykeyjoin" basePackage="org.eclipse.emf.teneo.samples.emf.annotations"
- resource="XML" disposableProviderFactory="true" ecorePackage="primarykeyjoin.ecore#/">
- <genClasses ecoreClass="primarykeyjoin.ecore#//Body">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute primarykeyjoin.ecore#//Body/theID"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference primarykeyjoin.ecore#//Body/head"/>
- </genClasses>
- <genClasses ecoreClass="primarykeyjoin.ecore#//Head">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute primarykeyjoin.ecore#//Head/myID"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/model/pkey.xsd b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/model/pkey.xsd
deleted file mode 100644
index f7d788e28..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/model/pkey.xsd
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsd:schema targetNamespace="http://www.eclipse.org/emf/teneo/samples/emf/annotations/primarykeyjoin"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:this="http://www.eclipse.org/emf/teneo/samples/emf/annotations/primarykeyjoin"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
-
- <xsd:complexType name="Body">
- <xsd:sequence>
- <xsd:element name="theID" type="xsd:long">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@Id</xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="head" type="this:Head">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@PrimaryKeyJoinColumn(name="theID")</xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
-
- <xsd:complexType name="Head">
- <xsd:sequence>
- <xsd:element name="myID" type="xsd:long">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@Id</xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:schema>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/model/primarykeyjoin.ecore b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/model/primarykeyjoin.ecore
deleted file mode 100644
index 31fbb9bc8..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/model/primarykeyjoin.ecore
+++ /dev/null
@@ -1,49 +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="primarykeyjoin"
- nsURI="http://www.eclipse.org/emf/teneo/samples/emf/annotations/primarykeyjoin"
- nsPrefix="primarykeyjoin">
- <eClassifiers xsi:type="ecore:EClass" name="Body">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Body"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="theID" unique="false" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long" unsettable="true">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@Id"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="theID"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="head" lowerBound="1" eType="#//Head"
- containment="true" resolveProxies="false">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@PrimaryKeyJoinColumn(name=&quot;theID&quot;)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="head"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Head">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Head"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="myID" unique="false" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long" unsettable="true">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@Id"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="myID"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinAdapterFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinAdapterFactory.java
deleted file mode 100644
index 3d7099495..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinAdapterFactory.java
+++ /dev/null
@@ -1,142 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: PrimarykeyjoinAdapterFactory.java,v 1.2 2007/02/08 23:09:26 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.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.primarykeyjoin.*;
-
-/**
- * <!-- 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.primarykeyjoin.PrimarykeyjoinPackage
- * @generated
- */
-public class PrimarykeyjoinAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static PrimarykeyjoinPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PrimarykeyjoinAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = PrimarykeyjoinPackage.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 PrimarykeyjoinSwitch<Adapter> modelSwitch =
- new PrimarykeyjoinSwitch<Adapter>() {
- @Override
- public Adapter caseBody(Body object) {
- return createBodyAdapter();
- }
- @Override
- public Adapter caseHead(Head object) {
- return createHeadAdapter();
- }
- @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.primarykeyjoin.Body <em>Body</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.primarykeyjoin.Body
- * @generated
- */
- public Adapter createBodyAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Head <em>Head</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.primarykeyjoin.Head
- * @generated
- */
- public Adapter createHeadAdapter() {
- 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;
- }
-
-} //PrimarykeyjoinAdapterFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinResourceFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinResourceFactoryImpl.java
deleted file mode 100644
index 2aca225db..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinResourceFactoryImpl.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: PrimarykeyjoinResourceFactoryImpl.java,v 1.2 2007/02/08 23:09:26 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.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.primarykeyjoin.util.PrimarykeyjoinResourceImpl
- * @generated
- */
-public class PrimarykeyjoinResourceFactoryImpl extends ResourceFactoryImpl {
- /**
- * Creates an instance of the resource factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PrimarykeyjoinResourceFactoryImpl() {
- super();
- }
-
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Resource createResource(URI uri) {
- XMLResource result = new PrimarykeyjoinResourceImpl(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;
- }
-
-} //PrimarykeyjoinResourceFactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinResourceImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinResourceImpl.java
deleted file mode 100644
index 4aec7e897..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinResourceImpl.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: PrimarykeyjoinResourceImpl.java,v 1.1 2006/07/11 16:57:16 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.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.primarykeyjoin.util.PrimarykeyjoinResourceFactoryImpl
- * @generated
- */
-public class PrimarykeyjoinResourceImpl extends XMLResourceImpl {
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param uri the URI of the new resource.
- * @generated
- */
- public PrimarykeyjoinResourceImpl(URI uri) {
- super(uri);
- }
-
-} //PrimarykeyjoinResourceImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinSwitch.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinSwitch.java
deleted file mode 100644
index a298fd3f3..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinSwitch.java
+++ /dev/null
@@ -1,151 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: PrimarykeyjoinSwitch.java,v 1.2 2007/02/08 23:09:26 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.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.primarykeyjoin.*;
-
-/**
- * <!-- 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.primarykeyjoin.PrimarykeyjoinPackage
- * @generated
- */
-public class PrimarykeyjoinSwitch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static PrimarykeyjoinPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PrimarykeyjoinSwitch() {
- if (modelPackage == null) {
- modelPackage = PrimarykeyjoinPackage.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 PrimarykeyjoinPackage.BODY: {
- Body body = (Body)theEObject;
- T result = caseBody(body);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case PrimarykeyjoinPackage.HEAD: {
- Head head = (Head)theEObject;
- T result = caseHead(head);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Body</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 interpretting the object as an instance of '<em>Body</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseBody(Body object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Head</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 interpretting the object as an instance of '<em>Head</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseHead(Head object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting 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 interpretting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public T defaultCase(EObject object) {
- return null;
- }
-
-} //PrimarykeyjoinSwitch
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinXMLProcessor.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinXMLProcessor.java
deleted file mode 100644
index c96a51578..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/util/PrimarykeyjoinXMLProcessor.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: PrimarykeyjoinXMLProcessor.java,v 1.2 2007/02/08 23:09:26 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.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.primarykeyjoin.PrimarykeyjoinPackage;
-
-/**
- * This class contains helper methods to serialize and deserialize XML documents
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class PrimarykeyjoinXMLProcessor extends XMLProcessor {
- /**
- * Public constructor to instantiate the helper.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PrimarykeyjoinXMLProcessor() {
- super((EPackage.Registry.INSTANCE));
- PrimarykeyjoinPackage.eINSTANCE.eClass();
- }
-
- /**
- * Register for "*" and "xml" file extensions the PrimarykeyjoinResourceFactoryImpl 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 PrimarykeyjoinResourceFactoryImpl());
- registrations.put(STAR_EXTENSION, new PrimarykeyjoinResourceFactoryImpl());
- }
- return registrations;
- }
-
-} //PrimarykeyjoinXMLProcessor
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/validation/BodyValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/validation/BodyValidator.java
deleted file mode 100644
index 72aeebd3d..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/validation/BodyValidator.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: BodyValidator.java,v 1.1 2007/02/08 23:09:19 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.validation;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Head;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Body}.
- * 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 BodyValidator {
- boolean validate();
-
- boolean validateTheID(long value);
- boolean validateHead(Head value);
-}
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/validation/HeadValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/validation/HeadValidator.java
deleted file mode 100644
index 7f8608bdd..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/primarykeyjoin/validation/HeadValidator.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: HeadValidator.java,v 1.1 2007/02/08 23:09:19 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.validation;
-
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.primarykeyjoin.Head}.
- * 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 HeadValidator {
- boolean validate();
-
- boolean validateMyID(long value);
-}

Back to the top