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/nmset')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/MyItem.java77
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/NmsetFactory.java55
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/NmsetPackage.java277
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/YourItem.java77
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/MyItemImpl.java236
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/NmsetFactoryImpl.java111
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/NmsetPackageImpl.java328
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/YourItemImpl.java236
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/package.jdo39
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/model/NMSet.genmodel19
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/model/NMSet.xsd33
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/model/nmset.ecore52
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetAdapterFactory.java142
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetResourceFactoryImpl.java56
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetResourceImpl.java32
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetSwitch.java151
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetXMLProcessor.java52
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/validation/MyItemValidator.java24
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/validation/YourItemValidator.java24
19 files changed, 0 insertions, 2021 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/MyItem.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/MyItem.java
deleted file mode 100644
index a95063acb..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/MyItem.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: MyItem.java,v 1.3 2007/02/08 23:09:28 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.nmset;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>My Item</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem#getYourItem <em>Your Item</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.NmsetPackage#getMyItem()
- * @model extendedMetaData="name='MyItem' kind='elementOnly'"
- * @generated
- */
-public interface MyItem extends EObject {
- /**
- * 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.nmset.NmsetPackage#getMyItem_Name()
- * @model unique="false" 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.nmset.MyItem#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);
-
- /**
- * Returns the value of the '<em><b>Your Item</b></em>' reference list.
- * The list contents are of type {@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem}.
- * It is bidirectional and its opposite is '{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem#getMyItem <em>My Item</em>}'.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Your Item</em>' reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Your Item</em>' reference list.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.NmsetPackage#getMyItem_YourItem()
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem#getMyItem
- * @model type="org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem" opposite="myItem" required="true"
- * annotation="teneo.jpa appinfo='@ManyToMany(Indexed=false)'"
- * extendedMetaData="kind='element' name='yourItem'"
- * @generated
- */
- EList<YourItem> getYourItem();
-
-} // MyItem
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/NmsetFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/NmsetFactory.java
deleted file mode 100644
index 79f93756c..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/NmsetFactory.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: NmsetFactory.java,v 1.1 2006/07/11 16:56:59 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.nmset;
-
-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.nmset.NmsetPackage
- * @generated
- */
-public interface NmsetFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- NmsetFactory eINSTANCE = org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.NmsetFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>My Item</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>My Item</em>'.
- * @generated
- */
- MyItem createMyItem();
-
- /**
- * Returns a new object of class '<em>Your Item</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Your Item</em>'.
- * @generated
- */
- YourItem createYourItem();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- NmsetPackage getNmsetPackage();
-
-} //NmsetFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/NmsetPackage.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/NmsetPackage.java
deleted file mode 100644
index cb5d47caf..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/NmsetPackage.java
+++ /dev/null
@@ -1,277 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: NmsetPackage.java,v 1.1 2006/07/11 16:56:59 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.nmset;
-
-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.nmset.NmsetFactory
- * @model kind="package"
- * @generated
- */
-public interface NmsetPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "nmset";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/emf/teneo/samples/emf/annotations/nmset";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "nmset";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- NmsetPackage eINSTANCE = org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.NmsetPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.MyItemImpl <em>My Item</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.MyItemImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.NmsetPackageImpl#getMyItem()
- * @generated
- */
- int MY_ITEM = 0;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MY_ITEM__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Your Item</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MY_ITEM__YOUR_ITEM = 1;
-
- /**
- * The number of structural features of the '<em>My Item</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MY_ITEM_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.YourItemImpl <em>Your Item</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.YourItemImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.NmsetPackageImpl#getYourItem()
- * @generated
- */
- int YOUR_ITEM = 1;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int YOUR_ITEM__NAME = 0;
-
- /**
- * The feature id for the '<em><b>My Item</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int YOUR_ITEM__MY_ITEM = 1;
-
- /**
- * The number of structural features of the '<em>Your Item</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int YOUR_ITEM_FEATURE_COUNT = 2;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem <em>My Item</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>My Item</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem
- * @generated
- */
- EClass getMyItem();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem#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.nmset.MyItem#getName()
- * @see #getMyItem()
- * @generated
- */
- EAttribute getMyItem_Name();
-
- /**
- * Returns the meta object for the reference list '{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem#getYourItem <em>Your Item</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference list '<em>Your Item</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem#getYourItem()
- * @see #getMyItem()
- * @generated
- */
- EReference getMyItem_YourItem();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem <em>Your Item</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Your Item</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem
- * @generated
- */
- EClass getYourItem();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem#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.nmset.YourItem#getName()
- * @see #getYourItem()
- * @generated
- */
- EAttribute getYourItem_Name();
-
- /**
- * Returns the meta object for the reference list '{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem#getMyItem <em>My Item</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference list '<em>My Item</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem#getMyItem()
- * @see #getYourItem()
- * @generated
- */
- EReference getYourItem_MyItem();
-
- /**
- * 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
- */
- NmsetFactory getNmsetFactory();
-
- /**
- * <!-- 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.nmset.impl.MyItemImpl <em>My Item</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.MyItemImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.NmsetPackageImpl#getMyItem()
- * @generated
- */
- EClass MY_ITEM = eINSTANCE.getMyItem();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute MY_ITEM__NAME = eINSTANCE.getMyItem_Name();
-
- /**
- * The meta object literal for the '<em><b>Your Item</b></em>' reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference MY_ITEM__YOUR_ITEM = eINSTANCE.getMyItem_YourItem();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.YourItemImpl <em>Your Item</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.YourItemImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.NmsetPackageImpl#getYourItem()
- * @generated
- */
- EClass YOUR_ITEM = eINSTANCE.getYourItem();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute YOUR_ITEM__NAME = eINSTANCE.getYourItem_Name();
-
- /**
- * The meta object literal for the '<em><b>My Item</b></em>' reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference YOUR_ITEM__MY_ITEM = eINSTANCE.getYourItem_MyItem();
-
- }
-
-} //NmsetPackage
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/YourItem.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/YourItem.java
deleted file mode 100644
index eb4cb7424..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/YourItem.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: YourItem.java,v 1.3 2007/02/08 23:09:28 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.nmset;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Your Item</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem#getMyItem <em>My Item</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.NmsetPackage#getYourItem()
- * @model extendedMetaData="name='YourItem' kind='elementOnly'"
- * @generated
- */
-public interface YourItem extends EObject {
- /**
- * 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.nmset.NmsetPackage#getYourItem_Name()
- * @model unique="false" 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.nmset.YourItem#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);
-
- /**
- * Returns the value of the '<em><b>My Item</b></em>' reference list.
- * The list contents are of type {@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem}.
- * It is bidirectional and its opposite is '{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem#getYourItem <em>Your Item</em>}'.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>My Item</em>' reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>My Item</em>' reference list.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.NmsetPackage#getYourItem_MyItem()
- * @see org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem#getYourItem
- * @model type="org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem" opposite="yourItem" required="true"
- * annotation="teneo.jpa appinfo='@ManyToMany(Indexed=false)'"
- * extendedMetaData="kind='element' name='myItem'"
- * @generated
- */
- EList<MyItem> getMyItem();
-
-} // YourItem
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/MyItemImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/MyItemImpl.java
deleted file mode 100644
index 88d67c14e..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/MyItemImpl.java
+++ /dev/null
@@ -1,236 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: MyItemImpl.java,v 1.3 2007/02/08 23:09:21 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.util.EList;
-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.ecore.util.EObjectWithInverseResolvingEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem;
-import org.eclipse.emf.teneo.samples.emf.annotations.nmset.NmsetPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>My Item</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.MyItemImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.MyItemImpl#getYourItem <em>Your Item</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class MyItemImpl extends EObjectImpl implements MyItem {
- /**
- * 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;
-
- /**
- * The cached value of the '{@link #getYourItem() <em>Your Item</em>}' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getYourItem()
- * @generated
- * @ordered
- */
- protected EList<YourItem> yourItem = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected MyItemImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NmsetPackage.Literals.MY_ITEM;
- }
-
- /**
- * <!-- 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, NmsetPackage.MY_ITEM__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<YourItem> getYourItem() {
- if (yourItem == null) {
- yourItem = new EObjectWithInverseResolvingEList.ManyInverse<YourItem>(YourItem.class, this, NmsetPackage.MY_ITEM__YOUR_ITEM, NmsetPackage.YOUR_ITEM__MY_ITEM);
- }
- return yourItem;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case NmsetPackage.MY_ITEM__YOUR_ITEM:
- return ((InternalEList<InternalEObject>)(InternalEList<?>)getYourItem()).basicAdd(otherEnd, msgs);
- }
- return super.eInverseAdd(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case NmsetPackage.MY_ITEM__YOUR_ITEM:
- return ((InternalEList<?>)getYourItem()).basicRemove(otherEnd, 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 NmsetPackage.MY_ITEM__NAME:
- return getName();
- case NmsetPackage.MY_ITEM__YOUR_ITEM:
- return getYourItem();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case NmsetPackage.MY_ITEM__NAME:
- setName((String)newValue);
- return;
- case NmsetPackage.MY_ITEM__YOUR_ITEM:
- getYourItem().clear();
- getYourItem().addAll((Collection<? extends YourItem>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NmsetPackage.MY_ITEM__NAME:
- setName(NAME_EDEFAULT);
- return;
- case NmsetPackage.MY_ITEM__YOUR_ITEM:
- getYourItem().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NmsetPackage.MY_ITEM__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case NmsetPackage.MY_ITEM__YOUR_ITEM:
- return yourItem != null && !yourItem.isEmpty();
- }
- 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();
- }
-
-} //MyItemImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/NmsetFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/NmsetFactoryImpl.java
deleted file mode 100644
index 6a9ae18ac..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/NmsetFactoryImpl.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: NmsetFactoryImpl.java,v 1.5 2007/02/08 23:09:21 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.nmset.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.nmset.*;
-import org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem;
-import org.eclipse.emf.teneo.samples.emf.annotations.nmset.NmsetFactory;
-import org.eclipse.emf.teneo.samples.emf.annotations.nmset.NmsetPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class NmsetFactoryImpl extends EFactoryImpl implements NmsetFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static NmsetFactory init() {
- try {
- NmsetFactory theNmsetFactory = (NmsetFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/teneo/samples/emf/annotations/nmset");
- if (theNmsetFactory != null) {
- return theNmsetFactory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new NmsetFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NmsetFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case NmsetPackage.MY_ITEM: return createMyItem();
- case NmsetPackage.YOUR_ITEM: return createYourItem();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MyItem createMyItem() {
- MyItemImpl myItem = new MyItemImpl();
- return myItem;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public YourItem createYourItem() {
- YourItemImpl yourItem = new YourItemImpl();
- return yourItem;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NmsetPackage getNmsetPackage() {
- return (NmsetPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static NmsetPackage getPackage() {
- return NmsetPackage.eINSTANCE;
- }
-
-} //NmsetFactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/NmsetPackageImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/NmsetPackageImpl.java
deleted file mode 100644
index 9b83eb96e..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/NmsetPackageImpl.java
+++ /dev/null
@@ -1,328 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: NmsetPackageImpl.java,v 1.4 2007/02/08 23:09:21 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.nmset.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.nmset.MyItem;
-import org.eclipse.emf.teneo.samples.emf.annotations.nmset.NmsetFactory;
-import org.eclipse.emf.teneo.samples.emf.annotations.nmset.NmsetPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class NmsetPackageImpl extends EPackageImpl implements NmsetPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass myItemEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass yourItemEClass = 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.nmset.NmsetPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private NmsetPackageImpl() {
- super(eNS_URI, NmsetFactory.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 NmsetPackage init() {
- if (isInited) return (NmsetPackage)EPackage.Registry.INSTANCE.getEPackage(NmsetPackage.eNS_URI);
-
- // Obtain or create and register package
- NmsetPackageImpl theNmsetPackage = (NmsetPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof NmsetPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new NmsetPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- XMLTypePackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theNmsetPackage.createPackageContents();
-
- // Initialize created meta-data
- theNmsetPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theNmsetPackage.freeze();
-
- return theNmsetPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getMyItem() {
- return myItemEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getMyItem_Name() {
- return (EAttribute)myItemEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getMyItem_YourItem() {
- return (EReference)myItemEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getYourItem() {
- return yourItemEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getYourItem_Name() {
- return (EAttribute)yourItemEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getYourItem_MyItem() {
- return (EReference)yourItemEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NmsetFactory getNmsetFactory() {
- return (NmsetFactory)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
- myItemEClass = createEClass(MY_ITEM);
- createEAttribute(myItemEClass, MY_ITEM__NAME);
- createEReference(myItemEClass, MY_ITEM__YOUR_ITEM);
-
- yourItemEClass = createEClass(YOUR_ITEM);
- createEAttribute(yourItemEClass, YOUR_ITEM__NAME);
- createEReference(yourItemEClass, YOUR_ITEM__MY_ITEM);
- }
-
- /**
- * <!-- 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(myItemEClass, MyItem.class, "MyItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getMyItem_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, MyItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getMyItem_YourItem(), this.getYourItem(), this.getYourItem_MyItem(), "yourItem", null, 1, -1, MyItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(yourItemEClass, YourItem.class, "YourItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getYourItem_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, YourItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getYourItem_MyItem(), this.getMyItem(), this.getMyItem_YourItem(), "myItem", null, 1, -1, YourItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, 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
- (myItemEClass,
- source,
- new String[] {
- "name", "MyItem",
- "kind", "elementOnly"
- });
- addAnnotation
- (getMyItem_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name"
- });
- addAnnotation
- (getMyItem_YourItem(),
- source,
- new String[] {
- "kind", "element",
- "name", "yourItem"
- });
- addAnnotation
- (yourItemEClass,
- source,
- new String[] {
- "name", "YourItem",
- "kind", "elementOnly"
- });
- addAnnotation
- (getYourItem_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name"
- });
- addAnnotation
- (getYourItem_MyItem(),
- source,
- new String[] {
- "kind", "element",
- "name", "myItem"
- });
- }
-
- /**
- * Initializes the annotations for <b>teneo.jpa</b>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void createTeneoAnnotations() {
- String source = "teneo.jpa";
- addAnnotation
- (getMyItem_YourItem(),
- source,
- new String[] {
- "appinfo", "@ManyToMany(Indexed=false)"
- });
- addAnnotation
- (getYourItem_MyItem(),
- source,
- new String[] {
- "appinfo", "@ManyToMany(Indexed=false)"
- });
- }
-
-} //NmsetPackageImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/YourItemImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/YourItemImpl.java
deleted file mode 100644
index e5b05d678..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/YourItemImpl.java
+++ /dev/null
@@ -1,236 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: YourItemImpl.java,v 1.3 2007/02/08 23:09:21 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.util.EList;
-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.ecore.util.EObjectWithInverseResolvingEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem;
-import org.eclipse.emf.teneo.samples.emf.annotations.nmset.NmsetPackage;
-import org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Your Item</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.YourItemImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.YourItemImpl#getMyItem <em>My Item</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class YourItemImpl extends EObjectImpl implements YourItem {
- /**
- * 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;
-
- /**
- * The cached value of the '{@link #getMyItem() <em>My Item</em>}' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getMyItem()
- * @generated
- * @ordered
- */
- protected EList<MyItem> myItem = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected YourItemImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NmsetPackage.Literals.YOUR_ITEM;
- }
-
- /**
- * <!-- 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, NmsetPackage.YOUR_ITEM__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<MyItem> getMyItem() {
- if (myItem == null) {
- myItem = new EObjectWithInverseResolvingEList.ManyInverse<MyItem>(MyItem.class, this, NmsetPackage.YOUR_ITEM__MY_ITEM, NmsetPackage.MY_ITEM__YOUR_ITEM);
- }
- return myItem;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case NmsetPackage.YOUR_ITEM__MY_ITEM:
- return ((InternalEList<InternalEObject>)(InternalEList<?>)getMyItem()).basicAdd(otherEnd, msgs);
- }
- return super.eInverseAdd(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case NmsetPackage.YOUR_ITEM__MY_ITEM:
- return ((InternalEList<?>)getMyItem()).basicRemove(otherEnd, 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 NmsetPackage.YOUR_ITEM__NAME:
- return getName();
- case NmsetPackage.YOUR_ITEM__MY_ITEM:
- return getMyItem();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case NmsetPackage.YOUR_ITEM__NAME:
- setName((String)newValue);
- return;
- case NmsetPackage.YOUR_ITEM__MY_ITEM:
- getMyItem().clear();
- getMyItem().addAll((Collection<? extends MyItem>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NmsetPackage.YOUR_ITEM__NAME:
- setName(NAME_EDEFAULT);
- return;
- case NmsetPackage.YOUR_ITEM__MY_ITEM:
- getMyItem().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NmsetPackage.YOUR_ITEM__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case NmsetPackage.YOUR_ITEM__MY_ITEM:
- return myItem != null && !myItem.isEmpty();
- }
- 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();
- }
-
-} //YourItemImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/package.jdo b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/impl/package.jdo
deleted file mode 100644
index ead6c3950..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/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.nmset.impl">
- <class name="org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.MyItemImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="myitem" identity-type="datastore">
- <implements name="org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem"/>
- <implements name="org.eclipse.emf.ecore.EObject"/>
- <implements name="org.eclipse.emf.common.notify.Notifier"/>
- <inheritance strategy="new-table">
- <discriminator column="dtype" strategy="value-map" value="MyItem"/>
- </inheritance>
- <version strategy="version-number" column="e_version"/>
- <field name="name" persistence-modifier="persistent" null-value="exception"/>
- <field name="yourItem" persistence-modifier="persistent" delete-action="restrict">
- <collection element-type="org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.YourItemImpl" dependent-element="false">
- <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
- </collection>
- <join/>
- </field>
- </class>
- <class name="org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.YourItemImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="youritem" identity-type="datastore">
- <implements name="org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem"/>
- <implements name="org.eclipse.emf.ecore.EObject"/>
- <implements name="org.eclipse.emf.common.notify.Notifier"/>
- <inheritance strategy="new-table">
- <discriminator column="dtype" strategy="value-map" value="YourItem"/>
- </inheritance>
- <version strategy="version-number" column="e_version"/>
- <field name="name" persistence-modifier="persistent" null-value="exception"/>
- <field name="myItem" persistence-modifier="persistent" delete-action="restrict">
- <collection element-type="org.eclipse.emf.teneo.samples.emf.annotations.nmset.impl.MyItemImpl" dependent-element="false">
- <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
- </collection>
- <join/>
- </field>
- </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/nmset/model/NMSet.genmodel b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/model/NMSet.genmodel
deleted file mode 100644
index 2ac361142..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/model/NMSet.genmodel
+++ /dev/null
@@ -1,19 +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="NMSet" importerID="org.eclipse.xsd.ecore.importer"
- complianceLevel="5.0">
- <foreignModel>NMSet.xsd</foreignModel>
- <genPackages prefix="Nmset" basePackage="org.eclipse.emf.teneo.samples.emf.annotations"
- resource="XML" disposableProviderFactory="true" ecorePackage="nmset.ecore#/">
- <genClasses ecoreClass="nmset.ecore#//MyItem">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute nmset.ecore#//MyItem/name"/>
- <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference nmset.ecore#//MyItem/yourItem"/>
- </genClasses>
- <genClasses ecoreClass="nmset.ecore#//YourItem">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute nmset.ecore#//YourItem/name"/>
- <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference nmset.ecore#//YourItem/myItem"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/model/NMSet.xsd b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/model/NMSet.xsd
deleted file mode 100644
index a754076ff..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/model/NMSet.xsd
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsd:schema targetNamespace="http://www.eclipse.org/emf/teneo/samples/emf/annotations/nmset"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:this="http://www.eclipse.org/emf/teneo/samples/emf/annotations/nmset"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
-
- <!-- Test nm relations with sets on both sides -->
-
- <xsd:complexType name="MyItem">
- <xsd:sequence>
- <xsd:element name="name" type="xsd:string"/>
- <xsd:element name="yourItem" type="xsd:anyURI"
- ecore:reference="this:YourItem" ecore:opposite="myItem" maxOccurs="unbounded">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@ManyToMany(Indexed=false)</xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
-
- <xsd:complexType name="YourItem">
- <xsd:sequence>
- <xsd:element name="name" type="xsd:string"/>
- <xsd:element name="myItem" type="xsd:anyURI"
- ecore:reference="this:MyItem" ecore:opposite="yourItem" maxOccurs="unbounded">
- <xsd:annotation>
- <!-- facet.elver.org is maintained for backwards compatibility -->
- <xsd:appinfo source="teneo.jpa">@ManyToMany(Indexed=false)</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/nmset/model/nmset.ecore b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/model/nmset.ecore
deleted file mode 100644
index 3b198b4f7..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/model/nmset.ecore
+++ /dev/null
@@ -1,52 +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="nmset"
- nsURI="http://www.eclipse.org/emf/teneo/samples/emf/annotations/nmset" nsPrefix="nmset">
- <eClassifiers xsi:type="ecore:EClass" name="MyItem">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="MyItem"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" 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>
- <eStructuralFeatures xsi:type="ecore:EReference" name="yourItem" lowerBound="1"
- upperBound="-1" eType="#//YourItem" eOpposite="#//YourItem/myItem">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@ManyToMany(Indexed=false)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="yourItem"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="YourItem">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="YourItem"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" 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>
- <eStructuralFeatures xsi:type="ecore:EReference" name="myItem" lowerBound="1"
- upperBound="-1" eType="#//MyItem" eOpposite="#//MyItem/yourItem">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@ManyToMany(Indexed=false)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="myItem"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetAdapterFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetAdapterFactory.java
deleted file mode 100644
index 8c945c108..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetAdapterFactory.java
+++ /dev/null
@@ -1,142 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: NmsetAdapterFactory.java,v 1.2 2007/02/08 23:09:22 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.nmset.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.nmset.*;
-
-/**
- * <!-- 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.nmset.NmsetPackage
- * @generated
- */
-public class NmsetAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static NmsetPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NmsetAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = NmsetPackage.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 NmsetSwitch<Adapter> modelSwitch =
- new NmsetSwitch<Adapter>() {
- @Override
- public Adapter caseMyItem(MyItem object) {
- return createMyItemAdapter();
- }
- @Override
- public Adapter caseYourItem(YourItem object) {
- return createYourItemAdapter();
- }
- @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.nmset.MyItem <em>My Item</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.nmset.MyItem
- * @generated
- */
- public Adapter createMyItemAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem <em>Your Item</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.nmset.YourItem
- * @generated
- */
- public Adapter createYourItemAdapter() {
- 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;
- }
-
-} //NmsetAdapterFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetResourceFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetResourceFactoryImpl.java
deleted file mode 100644
index 0c0e85593..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetResourceFactoryImpl.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: NmsetResourceFactoryImpl.java,v 1.2 2007/02/08 23:09:22 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.nmset.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.nmset.util.NmsetResourceImpl
- * @generated
- */
-public class NmsetResourceFactoryImpl extends ResourceFactoryImpl {
- /**
- * Creates an instance of the resource factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NmsetResourceFactoryImpl() {
- super();
- }
-
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Resource createResource(URI uri) {
- XMLResource result = new NmsetResourceImpl(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;
- }
-
-} //NmsetResourceFactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetResourceImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetResourceImpl.java
deleted file mode 100644
index 8803283b5..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetResourceImpl.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: NmsetResourceImpl.java,v 1.1 2006/07/11 16:57:06 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.nmset.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.nmset.util.NmsetResourceFactoryImpl
- * @generated
- */
-public class NmsetResourceImpl extends XMLResourceImpl {
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param uri the URI of the new resource.
- * @generated
- */
- public NmsetResourceImpl(URI uri) {
- super(uri);
- }
-
-} //NmsetResourceImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetSwitch.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetSwitch.java
deleted file mode 100644
index af904bb9f..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetSwitch.java
+++ /dev/null
@@ -1,151 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: NmsetSwitch.java,v 1.2 2007/02/08 23:09:22 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.nmset.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.nmset.*;
-
-/**
- * <!-- 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.nmset.NmsetPackage
- * @generated
- */
-public class NmsetSwitch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static NmsetPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NmsetSwitch() {
- if (modelPackage == null) {
- modelPackage = NmsetPackage.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 NmsetPackage.MY_ITEM: {
- MyItem myItem = (MyItem)theEObject;
- T result = caseMyItem(myItem);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case NmsetPackage.YOUR_ITEM: {
- YourItem yourItem = (YourItem)theEObject;
- T result = caseYourItem(yourItem);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>My Item</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>My Item</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseMyItem(MyItem object) {
- return null;
- }
-
- /**
- * Returns the result of interpretting the object as an instance of '<em>Your Item</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>Your Item</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseYourItem(YourItem 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;
- }
-
-} //NmsetSwitch
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetXMLProcessor.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetXMLProcessor.java
deleted file mode 100644
index 0c7948c95..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/util/NmsetXMLProcessor.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: NmsetXMLProcessor.java,v 1.2 2007/02/08 23:09:22 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.nmset.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.nmset.NmsetPackage;
-
-/**
- * This class contains helper methods to serialize and deserialize XML documents
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class NmsetXMLProcessor extends XMLProcessor {
- /**
- * Public constructor to instantiate the helper.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NmsetXMLProcessor() {
- super((EPackage.Registry.INSTANCE));
- NmsetPackage.eINSTANCE.eClass();
- }
-
- /**
- * Register for "*" and "xml" file extensions the NmsetResourceFactoryImpl 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 NmsetResourceFactoryImpl());
- registrations.put(STAR_EXTENSION, new NmsetResourceFactoryImpl());
- }
- return registrations;
- }
-
-} //NmsetXMLProcessor
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/validation/MyItemValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/validation/MyItemValidator.java
deleted file mode 100644
index 38c6fb1f4..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/validation/MyItemValidator.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: MyItemValidator.java,v 1.1 2007/02/08 23:09:27 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.nmset.validation;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem}.
- * 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 MyItemValidator {
- boolean validate();
-
- boolean validateName(String value);
- boolean validateYourItem(EList<YourItem> value);
-}
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/validation/YourItemValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/validation/YourItemValidator.java
deleted file mode 100644
index 37d67e6e5..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/nmset/validation/YourItemValidator.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: YourItemValidator.java,v 1.1 2007/02/08 23:09:27 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.nmset.validation;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.nmset.MyItem;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.nmset.YourItem}.
- * 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 YourItemValidator {
- boolean validate();
-
- boolean validateName(String value);
- boolean validateMyItem(EList<MyItem> value);
-}

Back to the top