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/set')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/ContainedItem.java55
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/Item.java112
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/ItemList.java115
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/SetFactory.java64
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/SetPackage.java428
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/ContainedItemImpl.java167
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/ItemImpl.java318
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/ItemListImpl.java314
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/SetFactoryImpl.java121
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/SetPackageImpl.java423
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/package.jdo66
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/model/Set.genmodel25
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/model/set.ecore83
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/package.html1
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetAdapterFactory.java160
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetResourceFactoryImpl.java56
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetResourceImpl.java32
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetSwitch.java172
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetXMLProcessor.java52
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/validation/ContainedItemValidator.java20
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/validation/ItemListValidator.java27
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/validation/ItemValidator.java22
22 files changed, 0 insertions, 2833 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/ContainedItem.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/ContainedItem.java
deleted file mode 100644
index 995124467..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/ContainedItem.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: ContainedItem.java,v 1.3 2009/03/03 15:48:47 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Contained Item</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.set.ContainedItem#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.SetPackage#getContainedItem()
- * @model extendedMetaData="name='ContainedItem' kind='elementOnly'"
- * @generated
- */
-public interface ContainedItem 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.set.SetPackage#getContainedItem_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.set.ContainedItem#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);
-
-} // ContainedItem
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/Item.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/Item.java
deleted file mode 100644
index bff4a1987..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/Item.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: Item.java,v 1.4 2010/10/29 09:35:33 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Item</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.set.Item#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.set.Item#getItemList <em>Item List</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.set.Item#getNumber <em>Number</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.SetPackage#getItem()
- * @model extendedMetaData="name='Item' kind='elementOnly'"
- * @generated
- */
-public interface Item 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.set.SetPackage#getItem_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.set.Item#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>Item List</b></em>' reference.
- * It is bidirectional and its opposite is '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList#getItem <em>Item</em>}'.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Item List</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Item List</em>' reference.
- * @see #setItemList(ItemList)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.SetPackage#getItem_ItemList()
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList#getItem
- * @model opposite="item" resolveProxies="false" required="true"
- * extendedMetaData="kind='element' name='itemList'"
- * @generated
- */
- ItemList getItemList();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.Item#getItemList <em>Item List</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Item List</em>' reference.
- * @see #getItemList()
- * @generated
- */
- void setItemList(ItemList value);
-
- /**
- * Returns the value of the '<em><b>Number</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Number</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Number</em>' attribute.
- * @see #setNumber(long)
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.SetPackage#getItem_Number()
- * @model
- * @generated
- */
- long getNumber();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.Item#getNumber <em>Number</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Number</em>' attribute.
- * @see #getNumber()
- * @generated
- */
- void setNumber(long value);
-
-} // Item
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/ItemList.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/ItemList.java
deleted file mode 100644
index 2e97786dd..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/ItemList.java
+++ /dev/null
@@ -1,115 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: ItemList.java,v 1.8 2010/10/29 09:35:33 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Item List</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList#getContainedItem <em>Contained Item</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList#getItem <em>Item</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList#getJoinedItem <em>Joined Item</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.SetPackage#getItemList()
- * @model extendedMetaData="name='ItemList' kind='elementOnly'"
- * @generated
- */
-public interface ItemList 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.set.SetPackage#getItemList_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.set.ItemList#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>Contained Item</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.emf.teneo.samples.emf.annotations.set.ContainedItem}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Contained Item</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Contained Item</em>' containment reference list.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.SetPackage#getItemList_ContainedItem()
- * @model containment="true" required="true"
- * annotation="teneo.jpa appinfo='@OneToMany(indexed=false)'"
- * extendedMetaData="kind='element' name='containedItem'"
- * @generated
- */
- EList<ContainedItem> getContainedItem();
-
- /**
- * Returns the value of the '<em><b>Item</b></em>' reference list.
- * The list contents are of type {@link org.eclipse.emf.teneo.samples.emf.annotations.set.Item}.
- * It is bidirectional and its opposite is '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.Item#getItemList <em>Item List</em>}'.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>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>Item</em>' reference list.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.SetPackage#getItemList_Item()
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.Item#getItemList
- * @model opposite="itemList" required="true"
- * annotation="teneo.jpa appinfo='@OneToMany(indexed=false, fetch=EXTRA) @OrderBy(\"name desc\")'"
- * extendedMetaData="kind='element' name='item'"
- * @generated
- */
- EList<Item> getItem();
-
- /**
- * Returns the value of the '<em><b>Joined Item</b></em>' reference list.
- * The list contents are of type {@link org.eclipse.emf.teneo.samples.emf.annotations.set.Item}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Joined 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>Joined Item</em>' reference list.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.SetPackage#getItemList_JoinedItem()
- * @model required="true" ordered="false"
- * annotation="teneo.jpa appinfo='@OrderBy(\"ABS(number)\")'"
- * extendedMetaData="kind='element' name='joinedItem'"
- * @generated
- */
- EList<Item> getJoinedItem();
-
-} // ItemList
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/SetFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/SetFactory.java
deleted file mode 100644
index d7f180afd..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/SetFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: SetFactory.java,v 1.3 2009/03/03 15:48:47 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set;
-
-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.set.SetPackage
- * @generated
- */
-public interface SetFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- SetFactory eINSTANCE = org.eclipse.emf.teneo.samples.emf.annotations.set.impl.SetFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Contained Item</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Contained Item</em>'.
- * @generated
- */
- ContainedItem createContainedItem();
-
- /**
- * Returns a new object of class '<em>Item</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Item</em>'.
- * @generated
- */
- Item createItem();
-
- /**
- * Returns a new object of class '<em>Item List</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Item List</em>'.
- * @generated
- */
- ItemList createItemList();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- SetPackage getSetPackage();
-
-} //SetFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/SetPackage.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/SetPackage.java
deleted file mode 100644
index f7df09b0b..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/SetPackage.java
+++ /dev/null
@@ -1,428 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: SetPackage.java,v 1.5 2010/10/29 09:35:33 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set;
-
-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.set.SetFactory
- * @model kind="package"
- * @generated
- */
-public interface SetPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "set";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/emf/teneo/samples/emf/annotations/set";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "testSet";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- SetPackage eINSTANCE = org.eclipse.emf.teneo.samples.emf.annotations.set.impl.SetPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ContainedItemImpl <em>Contained Item</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ContainedItemImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.impl.SetPackageImpl#getContainedItem()
- * @generated
- */
- int CONTAINED_ITEM = 0;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CONTAINED_ITEM__NAME = 0;
-
- /**
- * The number of structural features of the '<em>Contained Item</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CONTAINED_ITEM_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemImpl <em>Item</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.impl.SetPackageImpl#getItem()
- * @generated
- */
- int ITEM = 1;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ITEM__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Item List</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ITEM__ITEM_LIST = 1;
-
- /**
- * The feature id for the '<em><b>Number</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ITEM__NUMBER = 2;
-
- /**
- * The number of structural features of the '<em>Item</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ITEM_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemListImpl <em>Item List</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemListImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.impl.SetPackageImpl#getItemList()
- * @generated
- */
- int ITEM_LIST = 2;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ITEM_LIST__NAME = 0;
-
- /**
- * The feature id for the '<em><b>Contained Item</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ITEM_LIST__CONTAINED_ITEM = 1;
-
- /**
- * The feature id for the '<em><b>Item</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ITEM_LIST__ITEM = 2;
-
- /**
- * The feature id for the '<em><b>Joined Item</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ITEM_LIST__JOINED_ITEM = 3;
-
- /**
- * The number of structural features of the '<em>Item List</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ITEM_LIST_FEATURE_COUNT = 4;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.ContainedItem <em>Contained Item</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Contained Item</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.ContainedItem
- * @generated
- */
- EClass getContainedItem();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.ContainedItem#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.set.ContainedItem#getName()
- * @see #getContainedItem()
- * @generated
- */
- EAttribute getContainedItem_Name();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.Item <em>Item</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Item</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.Item
- * @generated
- */
- EClass getItem();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.Item#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.set.Item#getName()
- * @see #getItem()
- * @generated
- */
- EAttribute getItem_Name();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.Item#getItemList <em>Item List</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Item List</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.Item#getItemList()
- * @see #getItem()
- * @generated
- */
- EReference getItem_ItemList();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.Item#getNumber <em>Number</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Number</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.Item#getNumber()
- * @see #getItem()
- * @generated
- */
- EAttribute getItem_Number();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList <em>Item List</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Item List</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList
- * @generated
- */
- EClass getItemList();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList#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.set.ItemList#getName()
- * @see #getItemList()
- * @generated
- */
- EAttribute getItemList_Name();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList#getContainedItem <em>Contained Item</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Contained Item</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList#getContainedItem()
- * @see #getItemList()
- * @generated
- */
- EReference getItemList_ContainedItem();
-
- /**
- * Returns the meta object for the reference list '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList#getItem <em>Item</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference list '<em>Item</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList#getItem()
- * @see #getItemList()
- * @generated
- */
- EReference getItemList_Item();
-
- /**
- * Returns the meta object for the reference list '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList#getJoinedItem <em>Joined Item</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference list '<em>Joined Item</em>'.
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList#getJoinedItem()
- * @see #getItemList()
- * @generated
- */
- EReference getItemList_JoinedItem();
-
- /**
- * 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
- */
- SetFactory getSetFactory();
-
- /**
- * <!-- 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.set.impl.ContainedItemImpl <em>Contained Item</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ContainedItemImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.impl.SetPackageImpl#getContainedItem()
- * @generated
- */
- EClass CONTAINED_ITEM = eINSTANCE.getContainedItem();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute CONTAINED_ITEM__NAME = eINSTANCE.getContainedItem_Name();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemImpl <em>Item</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.impl.SetPackageImpl#getItem()
- * @generated
- */
- EClass ITEM = eINSTANCE.getItem();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute ITEM__NAME = eINSTANCE.getItem_Name();
-
- /**
- * The meta object literal for the '<em><b>Item List</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ITEM__ITEM_LIST = eINSTANCE.getItem_ItemList();
-
- /**
- * The meta object literal for the '<em><b>Number</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute ITEM__NUMBER = eINSTANCE.getItem_Number();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemListImpl <em>Item List</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemListImpl
- * @see org.eclipse.emf.teneo.samples.emf.annotations.set.impl.SetPackageImpl#getItemList()
- * @generated
- */
- EClass ITEM_LIST = eINSTANCE.getItemList();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute ITEM_LIST__NAME = eINSTANCE.getItemList_Name();
-
- /**
- * The meta object literal for the '<em><b>Contained Item</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ITEM_LIST__CONTAINED_ITEM = eINSTANCE.getItemList_ContainedItem();
-
- /**
- * The meta object literal for the '<em><b>Item</b></em>' reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ITEM_LIST__ITEM = eINSTANCE.getItemList_Item();
-
- /**
- * The meta object literal for the '<em><b>Joined Item</b></em>' reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ITEM_LIST__JOINED_ITEM = eINSTANCE.getItemList_JoinedItem();
-
- }
-
-} //SetPackage
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/ContainedItemImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/ContainedItemImpl.java
deleted file mode 100644
index 127ab7bb8..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/ContainedItemImpl.java
+++ /dev/null
@@ -1,167 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: ContainedItemImpl.java,v 1.3 2009/03/03 15:48:47 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set.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.set.ContainedItem;
-import org.eclipse.emf.teneo.samples.emf.annotations.set.SetPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Contained Item</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ContainedItemImpl#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ContainedItemImpl extends EObjectImpl implements ContainedItem {
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ContainedItemImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return SetPackage.Literals.CONTAINED_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, SetPackage.CONTAINED_ITEM__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case SetPackage.CONTAINED_ITEM__NAME:
- return getName();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case SetPackage.CONTAINED_ITEM__NAME:
- setName((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case SetPackage.CONTAINED_ITEM__NAME:
- setName(NAME_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case SetPackage.CONTAINED_ITEM__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} //ContainedItemImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/ItemImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/ItemImpl.java
deleted file mode 100644
index 3c3abf9fc..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/ItemImpl.java
+++ /dev/null
@@ -1,318 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: ItemImpl.java,v 1.4 2010/10/29 09:35:34 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set.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.set.Item;
-import org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList;
-import org.eclipse.emf.teneo.samples.emf.annotations.set.SetPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Item</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemImpl#getItemList <em>Item List</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemImpl#getNumber <em>Number</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ItemImpl extends EObjectImpl implements Item {
- /**
- * 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 #getItemList() <em>Item List</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getItemList()
- * @generated
- * @ordered
- */
- protected ItemList itemList;
-
- /**
- * The default value of the '{@link #getNumber() <em>Number</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getNumber()
- * @generated
- * @ordered
- */
- protected static final long NUMBER_EDEFAULT = 0L;
-
- /**
- * The cached value of the '{@link #getNumber() <em>Number</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getNumber()
- * @generated
- * @ordered
- */
- protected long number = NUMBER_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ItemImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return SetPackage.Literals.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, SetPackage.ITEM__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ItemList getItemList() {
- return itemList;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetItemList(ItemList newItemList, NotificationChain msgs) {
- ItemList oldItemList = itemList;
- itemList = newItemList;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SetPackage.ITEM__ITEM_LIST, oldItemList, newItemList);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setItemList(ItemList newItemList) {
- if (newItemList != itemList) {
- NotificationChain msgs = null;
- if (itemList != null)
- msgs = ((InternalEObject)itemList).eInverseRemove(this, SetPackage.ITEM_LIST__ITEM, ItemList.class, msgs);
- if (newItemList != null)
- msgs = ((InternalEObject)newItemList).eInverseAdd(this, SetPackage.ITEM_LIST__ITEM, ItemList.class, msgs);
- msgs = basicSetItemList(newItemList, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, SetPackage.ITEM__ITEM_LIST, newItemList, newItemList));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public long getNumber() {
- return number;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setNumber(long newNumber) {
- long oldNumber = number;
- number = newNumber;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, SetPackage.ITEM__NUMBER, oldNumber, number));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case SetPackage.ITEM__ITEM_LIST:
- if (itemList != null)
- msgs = ((InternalEObject)itemList).eInverseRemove(this, SetPackage.ITEM_LIST__ITEM, ItemList.class, msgs);
- return basicSetItemList((ItemList)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 SetPackage.ITEM__ITEM_LIST:
- return basicSetItemList(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 SetPackage.ITEM__NAME:
- return getName();
- case SetPackage.ITEM__ITEM_LIST:
- return getItemList();
- case SetPackage.ITEM__NUMBER:
- return getNumber();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case SetPackage.ITEM__NAME:
- setName((String)newValue);
- return;
- case SetPackage.ITEM__ITEM_LIST:
- setItemList((ItemList)newValue);
- return;
- case SetPackage.ITEM__NUMBER:
- setNumber((Long)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case SetPackage.ITEM__NAME:
- setName(NAME_EDEFAULT);
- return;
- case SetPackage.ITEM__ITEM_LIST:
- setItemList((ItemList)null);
- return;
- case SetPackage.ITEM__NUMBER:
- setNumber(NUMBER_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case SetPackage.ITEM__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case SetPackage.ITEM__ITEM_LIST:
- return itemList != null;
- case SetPackage.ITEM__NUMBER:
- return number != NUMBER_EDEFAULT;
- }
- 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(", number: ");
- result.append(number);
- result.append(')');
- return result.toString();
- }
-
-} //ItemImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/ItemListImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/ItemListImpl.java
deleted file mode 100644
index 08c8ff676..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/ItemListImpl.java
+++ /dev/null
@@ -1,314 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: ItemListImpl.java,v 1.3 2009/03/03 15:48:47 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set.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.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.EObjectResolvingEList;
-import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.set.ContainedItem;
-import org.eclipse.emf.teneo.samples.emf.annotations.set.Item;
-import org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList;
-import org.eclipse.emf.teneo.samples.emf.annotations.set.SetPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Item List</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemListImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemListImpl#getContainedItem <em>Contained Item</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemListImpl#getItem <em>Item</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemListImpl#getJoinedItem <em>Joined Item</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ItemListImpl extends EObjectImpl implements ItemList {
- /**
- * 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 #getContainedItem() <em>Contained Item</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getContainedItem()
- * @generated
- * @ordered
- */
- protected EList<ContainedItem> containedItem;
-
- /**
- * The cached value of the '{@link #getItem() <em>Item</em>}' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getItem()
- * @generated
- * @ordered
- */
- protected EList<Item> item;
-
- /**
- * The cached value of the '{@link #getJoinedItem() <em>Joined Item</em>}' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getJoinedItem()
- * @generated
- * @ordered
- */
- protected EList<Item> joinedItem;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ItemListImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return SetPackage.Literals.ITEM_LIST;
- }
-
- /**
- * <!-- 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, SetPackage.ITEM_LIST__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<ContainedItem> getContainedItem() {
- if (containedItem == null) {
- containedItem = new EObjectContainmentEList<ContainedItem>(ContainedItem.class, this, SetPackage.ITEM_LIST__CONTAINED_ITEM);
- }
- return containedItem;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<Item> getItem() {
- if (item == null) {
- item = new EObjectWithInverseResolvingEList<Item>(Item.class, this, SetPackage.ITEM_LIST__ITEM, SetPackage.ITEM__ITEM_LIST);
- }
- return item;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<Item> getJoinedItem() {
- if (joinedItem == null) {
- joinedItem = new EObjectResolvingEList<Item>(Item.class, this, SetPackage.ITEM_LIST__JOINED_ITEM);
- }
- return joinedItem;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case SetPackage.ITEM_LIST__ITEM:
- return ((InternalEList<InternalEObject>)(InternalEList<?>)getItem()).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 SetPackage.ITEM_LIST__CONTAINED_ITEM:
- return ((InternalEList<?>)getContainedItem()).basicRemove(otherEnd, msgs);
- case SetPackage.ITEM_LIST__ITEM:
- return ((InternalEList<?>)getItem()).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 SetPackage.ITEM_LIST__NAME:
- return getName();
- case SetPackage.ITEM_LIST__CONTAINED_ITEM:
- return getContainedItem();
- case SetPackage.ITEM_LIST__ITEM:
- return getItem();
- case SetPackage.ITEM_LIST__JOINED_ITEM:
- return getJoinedItem();
- }
- 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 SetPackage.ITEM_LIST__NAME:
- setName((String)newValue);
- return;
- case SetPackage.ITEM_LIST__CONTAINED_ITEM:
- getContainedItem().clear();
- getContainedItem().addAll((Collection<? extends ContainedItem>)newValue);
- return;
- case SetPackage.ITEM_LIST__ITEM:
- getItem().clear();
- getItem().addAll((Collection<? extends Item>)newValue);
- return;
- case SetPackage.ITEM_LIST__JOINED_ITEM:
- getJoinedItem().clear();
- getJoinedItem().addAll((Collection<? extends Item>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case SetPackage.ITEM_LIST__NAME:
- setName(NAME_EDEFAULT);
- return;
- case SetPackage.ITEM_LIST__CONTAINED_ITEM:
- getContainedItem().clear();
- return;
- case SetPackage.ITEM_LIST__ITEM:
- getItem().clear();
- return;
- case SetPackage.ITEM_LIST__JOINED_ITEM:
- getJoinedItem().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case SetPackage.ITEM_LIST__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case SetPackage.ITEM_LIST__CONTAINED_ITEM:
- return containedItem != null && !containedItem.isEmpty();
- case SetPackage.ITEM_LIST__ITEM:
- return item != null && !item.isEmpty();
- case SetPackage.ITEM_LIST__JOINED_ITEM:
- return joinedItem != null && !joinedItem.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();
- }
-
-} //ItemListImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/SetFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/SetFactoryImpl.java
deleted file mode 100644
index dbb8f565e..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/SetFactoryImpl.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: SetFactoryImpl.java,v 1.3 2009/03/03 15:48:47 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set.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.set.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class SetFactoryImpl extends EFactoryImpl implements SetFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static SetFactory init() {
- try {
- SetFactory theSetFactory = (SetFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/teneo/samples/emf/annotations/set");
- if (theSetFactory != null) {
- return theSetFactory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new SetFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SetFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case SetPackage.CONTAINED_ITEM: return createContainedItem();
- case SetPackage.ITEM: return createItem();
- case SetPackage.ITEM_LIST: return createItemList();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ContainedItem createContainedItem() {
- ContainedItemImpl containedItem = new ContainedItemImpl();
- return containedItem;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Item createItem() {
- ItemImpl item = new ItemImpl();
- return item;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ItemList createItemList() {
- ItemListImpl itemList = new ItemListImpl();
- return itemList;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SetPackage getSetPackage() {
- return (SetPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static SetPackage getPackage() {
- return SetPackage.eINSTANCE;
- }
-
-} //SetFactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/SetPackageImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/SetPackageImpl.java
deleted file mode 100644
index 5fa72cf56..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/SetPackageImpl.java
+++ /dev/null
@@ -1,423 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: SetPackageImpl.java,v 1.8 2010/10/29 09:35:34 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set.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.set.ContainedItem;
-import org.eclipse.emf.teneo.samples.emf.annotations.set.Item;
-import org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList;
-import org.eclipse.emf.teneo.samples.emf.annotations.set.SetFactory;
-import org.eclipse.emf.teneo.samples.emf.annotations.set.SetPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class SetPackageImpl extends EPackageImpl implements SetPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass containedItemEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass itemEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass itemListEClass = 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.set.SetPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private SetPackageImpl() {
- super(eNS_URI, SetFactory.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.
- *
- * <p>This method is used to initialize {@link SetPackage#eINSTANCE} when that field is accessed.
- * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static SetPackage init() {
- if (isInited) return (SetPackage)EPackage.Registry.INSTANCE.getEPackage(SetPackage.eNS_URI);
-
- // Obtain or create and register package
- SetPackageImpl theSetPackage = (SetPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SetPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SetPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- XMLTypePackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theSetPackage.createPackageContents();
-
- // Initialize created meta-data
- theSetPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theSetPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(SetPackage.eNS_URI, theSetPackage);
- return theSetPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getContainedItem() {
- return containedItemEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getContainedItem_Name() {
- return (EAttribute)containedItemEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getItem() {
- return itemEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getItem_Name() {
- return (EAttribute)itemEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getItem_ItemList() {
- return (EReference)itemEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getItem_Number() {
- return (EAttribute)itemEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getItemList() {
- return itemListEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getItemList_Name() {
- return (EAttribute)itemListEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getItemList_ContainedItem() {
- return (EReference)itemListEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getItemList_Item() {
- return (EReference)itemListEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getItemList_JoinedItem() {
- return (EReference)itemListEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SetFactory getSetFactory() {
- return (SetFactory)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
- containedItemEClass = createEClass(CONTAINED_ITEM);
- createEAttribute(containedItemEClass, CONTAINED_ITEM__NAME);
-
- itemEClass = createEClass(ITEM);
- createEAttribute(itemEClass, ITEM__NAME);
- createEReference(itemEClass, ITEM__ITEM_LIST);
- createEAttribute(itemEClass, ITEM__NUMBER);
-
- itemListEClass = createEClass(ITEM_LIST);
- createEAttribute(itemListEClass, ITEM_LIST__NAME);
- createEReference(itemListEClass, ITEM_LIST__CONTAINED_ITEM);
- createEReference(itemListEClass, ITEM_LIST__ITEM);
- createEReference(itemListEClass, ITEM_LIST__JOINED_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(containedItemEClass, ContainedItem.class, "ContainedItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getContainedItem_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, ContainedItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(itemEClass, Item.class, "Item", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getItem_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getItem_ItemList(), this.getItemList(), this.getItemList_Item(), "itemList", null, 1, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getItem_Number(), ecorePackage.getELong(), "number", null, 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(itemListEClass, ItemList.class, "ItemList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getItemList_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, ItemList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getItemList_ContainedItem(), this.getContainedItem(), null, "containedItem", null, 1, -1, ItemList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getItemList_Item(), this.getItem(), this.getItem_ItemList(), "item", null, 1, -1, ItemList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getItemList_JoinedItem(), this.getItem(), null, "joinedItem", null, 1, -1, ItemList.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
- (containedItemEClass,
- source,
- new String[] {
- "name", "ContainedItem",
- "kind", "elementOnly"
- });
- addAnnotation
- (getContainedItem_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name"
- });
- addAnnotation
- (itemEClass,
- source,
- new String[] {
- "name", "Item",
- "kind", "elementOnly"
- });
- addAnnotation
- (getItem_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name"
- });
- addAnnotation
- (getItem_ItemList(),
- source,
- new String[] {
- "kind", "element",
- "name", "itemList"
- });
- addAnnotation
- (itemListEClass,
- source,
- new String[] {
- "name", "ItemList",
- "kind", "elementOnly"
- });
- addAnnotation
- (getItemList_Name(),
- source,
- new String[] {
- "kind", "element",
- "name", "name"
- });
- addAnnotation
- (getItemList_ContainedItem(),
- source,
- new String[] {
- "kind", "element",
- "name", "containedItem"
- });
- addAnnotation
- (getItemList_Item(),
- source,
- new String[] {
- "kind", "element",
- "name", "item"
- });
- addAnnotation
- (getItemList_JoinedItem(),
- source,
- new String[] {
- "kind", "element",
- "name", "joinedItem"
- });
- }
-
- /**
- * Initializes the annotations for <b>teneo.jpa</b>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void createTeneoAnnotations() {
- String source = "teneo.jpa";
- addAnnotation
- (getItemList_ContainedItem(),
- source,
- new String[] {
- "appinfo", "@OneToMany(indexed=false)"
- });
- addAnnotation
- (getItemList_Item(),
- source,
- new String[] {
- "appinfo", "@OneToMany(indexed=false, fetch=EXTRA) @OrderBy(\"name desc\")"
- });
- addAnnotation
- (getItemList_JoinedItem(),
- source,
- new String[] {
- "appinfo", "@OrderBy(\"ABS(number)\")"
- });
- }
-
-} //SetPackageImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/package.jdo b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/package.jdo
deleted file mode 100644
index 3de437c8e..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/impl/package.jdo
+++ /dev/null
@@ -1,66 +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.set.impl">
- <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ContainedItemImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="TESTSET_CONTAINEDITEM" identity-type="datastore">
- <implements name="org.eclipse.emf.teneo.samples.emf.annotations.set.ContainedItem"/>
- <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="testSet.ContainedItem"/>
- </inheritance>
- <version strategy="version-number" column="e_version"/>
- <field name="name" persistence-modifier="persistent" null-value="exception"/>
- </class>
- <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="TESTSET_ITEM" identity-type="datastore">
- <implements name="org.eclipse.emf.teneo.samples.emf.annotations.set.Item"/>
- <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="testSet.Item"/>
- </inheritance>
- <version strategy="version-number" column="e_version"/>
- <field name="name" persistence-modifier="persistent" null-value="exception"/>
- <field name="itemList" persistence-modifier="persistent" delete-action="restrict" null-value="none">
- <foreign-key name="TESTSET_ITEM_ITEMLIST"/>
- <column name="ITEM_ITEMLIST_E_ID" allows-null="true"/>
- <extension vendor-name="jpox" key="implementation-classes" value="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemListImpl"/>
- </field>
- </class>
- <class name="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemListImpl" requires-extent="true" persistence-modifier="persistence-capable" detachable="true" table="TESTSET_ITEMLIST" identity-type="datastore">
- <implements name="org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList"/>
- <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="testSet.ItemList"/>
- </inheritance>
- <version strategy="version-number" column="e_version"/>
- <field name="name" persistence-modifier="persistent" null-value="exception"/>
- <field name="containedItem" persistence-modifier="persistent" delete-action="restrict">
- <collection element-type="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ContainedItemImpl" dependent-element="true">
- <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
- </collection>
- <element>
- <column name="ITEMLIST_CONTAINEDITEM_E_ID" allows-null="true"/>
- </element>
- <order column="ITEMLIST_CONTAINEDITEM_IDX"/>
- <foreign-key delete-action="cascade" update-action="cascade" name="TESTSET_ITEMLIST_CONTAINEDITEM"/>
- </field>
- <field name="item" persistence-modifier="persistent" delete-action="restrict">
- <collection element-type="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemImpl" dependent-element="false">
- <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
- </collection>
- <order column="ITEMLIST_ITEM_IDX"/>
- <foreign-key delete-action="restrict" update-action="cascade"/>
- </field>
- <field name="joinedItem" persistence-modifier="persistent" table="TESTSET_ITEMLIST_TESTSET_ITEM" delete-action="restrict">
- <collection element-type="org.eclipse.emf.teneo.samples.emf.annotations.set.impl.ItemImpl" dependent-element="false">
- <extension vendor-name="jpox" key="cache-lazy-loading" value="true"/>
- </collection>
- <join/>
- <order column="ITEMLIST_JOINEDITEM_IDX"/>
- </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/set/model/Set.genmodel b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/model/Set.genmodel
deleted file mode 100644
index faa5fe62c..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/model/Set.genmodel
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText=""
- modelDirectory="/org.eclipse.emf.teneo.samples/src" modelPluginID="org.eclipse.emf.teneo.samples"
- modelName="Set" importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0">
- <foreignModel>set.ecore</foreignModel>
- <genPackages prefix="Set" basePackage="org.eclipse.emf.teneo.samples.emf.annotations"
- resource="XML" disposableProviderFactory="true" ecorePackage="set.ecore#/">
- <genClasses ecoreClass="set.ecore#//ContainedItem">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute set.ecore#//ContainedItem/name"/>
- </genClasses>
- <genClasses ecoreClass="set.ecore#//Item">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute set.ecore#//Item/name"/>
- <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference set.ecore#//Item/itemList"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute set.ecore#//Item/number"/>
- </genClasses>
- <genClasses ecoreClass="set.ecore#//ItemList">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute set.ecore#//ItemList/name"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference set.ecore#//ItemList/containedItem"/>
- <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference set.ecore#//ItemList/item"/>
- <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference set.ecore#//ItemList/joinedItem"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/model/set.ecore b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/model/set.ecore
deleted file mode 100644
index e66209574..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/model/set.ecore
+++ /dev/null
@@ -1,83 +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="set"
- nsURI="http://www.eclipse.org/emf/teneo/samples/emf/annotations/set" nsPrefix="testSet">
- <eClassifiers xsi:type="ecore:EClass" name="ContainedItem">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="ContainedItem"/>
- <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>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Item">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Item"/>
- <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="itemList" lowerBound="1"
- eType="#//ItemList" resolveProxies="false" eOpposite="#//ItemList/item">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="itemList"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="number" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="ItemList">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="ItemList"/>
- <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="containedItem" lowerBound="1"
- upperBound="-1" eType="#//ContainedItem" containment="true" resolveProxies="false">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@OneToMany(indexed=false)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="containedItem"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="item" lowerBound="1" upperBound="-1"
- eType="#//Item" eOpposite="#//Item/itemList">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@OneToMany(indexed=false, fetch=EXTRA) @OrderBy(&quot;name desc&quot;)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="item"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="joinedItem" ordered="false"
- lowerBound="1" upperBound="-1" eType="#//Item">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@OrderBy(&quot;ABS(number)&quot;)"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="joinedItem"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/package.html b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/package.html
deleted file mode 100644
index d33ccf57f..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/package.html
+++ /dev/null
@@ -1 +0,0 @@
-Is used to test bag/set instead of list representation in the database. \ No newline at end of file
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetAdapterFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetAdapterFactory.java
deleted file mode 100644
index 33fd46ddd..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetAdapterFactory.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: SetAdapterFactory.java,v 1.3 2009/03/03 15:48:47 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set.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.set.*;
-
-/**
- * <!-- 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.set.SetPackage
- * @generated
- */
-public class SetAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static SetPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SetAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = SetPackage.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 that delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected SetSwitch<Adapter> modelSwitch =
- new SetSwitch<Adapter>() {
- @Override
- public Adapter caseContainedItem(ContainedItem object) {
- return createContainedItemAdapter();
- }
- @Override
- public Adapter caseItem(Item object) {
- return createItemAdapter();
- }
- @Override
- public Adapter caseItemList(ItemList object) {
- return createItemListAdapter();
- }
- @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.set.ContainedItem <em>Contained 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.set.ContainedItem
- * @generated
- */
- public Adapter createContainedItemAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.Item <em>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.set.Item
- * @generated
- */
- public Adapter createItemAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList <em>Item List</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.set.ItemList
- * @generated
- */
- public Adapter createItemListAdapter() {
- 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;
- }
-
-} //SetAdapterFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetResourceFactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetResourceFactoryImpl.java
deleted file mode 100644
index 6a51472da..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetResourceFactoryImpl.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: SetResourceFactoryImpl.java,v 1.3 2009/03/03 15:48:47 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set.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.set.util.SetResourceImpl
- * @generated
- */
-public class SetResourceFactoryImpl extends ResourceFactoryImpl {
- /**
- * Creates an instance of the resource factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SetResourceFactoryImpl() {
- super();
- }
-
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Resource createResource(URI uri) {
- XMLResource result = new SetResourceImpl(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;
- }
-
-} //SetResourceFactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetResourceImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetResourceImpl.java
deleted file mode 100644
index 3bf7c839b..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetResourceImpl.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: SetResourceImpl.java,v 1.3 2009/03/03 15:48:47 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set.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.set.util.SetResourceFactoryImpl
- * @generated
- */
-public class SetResourceImpl extends XMLResourceImpl {
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param uri the URI of the new resource.
- * @generated
- */
- public SetResourceImpl(URI uri) {
- super(uri);
- }
-
-} //SetResourceImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetSwitch.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetSwitch.java
deleted file mode 100644
index 01ae52d45..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetSwitch.java
+++ /dev/null
@@ -1,172 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: SetSwitch.java,v 1.3 2009/03/03 15:48:47 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set.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.set.*;
-
-/**
- * <!-- 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.set.SetPackage
- * @generated
- */
-public class SetSwitch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static SetPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SetSwitch() {
- if (modelPackage == null) {
- modelPackage = SetPackage.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 SetPackage.CONTAINED_ITEM: {
- ContainedItem containedItem = (ContainedItem)theEObject;
- T result = caseContainedItem(containedItem);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case SetPackage.ITEM: {
- Item item = (Item)theEObject;
- T result = caseItem(item);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case SetPackage.ITEM_LIST: {
- ItemList itemList = (ItemList)theEObject;
- T result = caseItemList(itemList);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Contained 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 interpreting the object as an instance of '<em>Contained Item</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseContainedItem(ContainedItem object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>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 interpreting the object as an instance of '<em>Item</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseItem(Item object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Item List</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Item List</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseItemList(ItemList object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public T defaultCase(EObject object) {
- return null;
- }
-
-} //SetSwitch
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetXMLProcessor.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetXMLProcessor.java
deleted file mode 100644
index de556725f..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/util/SetXMLProcessor.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: SetXMLProcessor.java,v 1.3 2009/03/03 15:48:47 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set.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.set.SetPackage;
-
-/**
- * This class contains helper methods to serialize and deserialize XML documents
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class SetXMLProcessor extends XMLProcessor {
- /**
- * Public constructor to instantiate the helper.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SetXMLProcessor() {
- super((EPackage.Registry.INSTANCE));
- SetPackage.eINSTANCE.eClass();
- }
-
- /**
- * Register for "*" and "xml" file extensions the SetResourceFactoryImpl 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 SetResourceFactoryImpl());
- registrations.put(STAR_EXTENSION, new SetResourceFactoryImpl());
- }
- return registrations;
- }
-
-} //SetXMLProcessor
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/validation/ContainedItemValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/validation/ContainedItemValidator.java
deleted file mode 100644
index 642872d97..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/validation/ContainedItemValidator.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: ContainedItemValidator.java,v 1.1 2007/02/08 23:09:23 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set.validation;
-
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.set.ContainedItem}.
- * 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 ContainedItemValidator {
- boolean validate();
-
- boolean validateName(String value);
-}
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/validation/ItemListValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/validation/ItemListValidator.java
deleted file mode 100644
index a0bf523ee..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/validation/ItemListValidator.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: ItemListValidator.java,v 1.1 2007/02/08 23:09:23 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set.validation;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.set.ContainedItem;
-import org.eclipse.emf.teneo.samples.emf.annotations.set.Item;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList}.
- * 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 ItemListValidator {
- boolean validate();
-
- boolean validateName(String value);
- boolean validateContainedItem(EList<ContainedItem> value);
- boolean validateItem(EList<Item> value);
- boolean validateJoinedItem(EList<Item> value);
-}
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/validation/ItemValidator.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/validation/ItemValidator.java
deleted file mode 100644
index d4b6c9408..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/set/validation/ItemValidator.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: ItemValidator.java,v 1.1 2007/02/08 23:09:23 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.annotations.set.validation;
-
-import org.eclipse.emf.teneo.samples.emf.annotations.set.ItemList;
-
-/**
- * A sample validator interface for {@link org.eclipse.emf.teneo.samples.emf.annotations.set.Item}.
- * 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 ItemValidator {
- boolean validate();
-
- boolean validateName(String value);
- boolean validateItemList(ItemList value);
-}

Back to the top