Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2010-11-04 05:22:18 +0000
committermtaal2010-11-04 05:22:18 +0000
commita90b6caf894695a17f71d5b81299a6db3074aae4 (patch)
tree07213a87d208116560ae1822a53f1a64f41257ed /examples/org.eclipse.emf.teneo.samples/src/org
parentaa877a6664f75fef55de35f8db90828d95eba437 (diff)
downloadorg.eclipse.emf.teneo-a90b6caf894695a17f71d5b81299a6db3074aae4.tar.gz
org.eclipse.emf.teneo-a90b6caf894695a17f71d5b81299a6db3074aae4.tar.xz
org.eclipse.emf.teneo-a90b6caf894695a17f71d5b81299a6db3074aae4.zip
[329275]
Diffstat (limited to 'examples/org.eclipse.emf.teneo.samples/src/org')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/Bz329275Factory.java46
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/Bz329275Package.java604
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/Item.java718
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/TestEnum.java212
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/impl/Bz329275FactoryImpl.java150
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/impl/Bz329275PackageImpl.java406
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/impl/ItemImpl.java1284
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/model/bz329275.ecore57
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/model/bz329275.genmodel33
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/util/Bz329275AdapterFactory.java124
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/util/Bz329275Switch.java130
11 files changed, 3764 insertions, 0 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/Bz329275Factory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/Bz329275Factory.java
new file mode 100644
index 000000000..8f2f76cca
--- /dev/null
+++ b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/Bz329275Factory.java
@@ -0,0 +1,46 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: Bz329275Factory.java,v 1.1 2010/11/04 05:22:18 mtaal Exp $
+ */
+package org.eclipse.emf.teneo.samples.issues.bz329275;
+
+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.issues.bz329275.Bz329275Package
+ * @generated
+ */
+public interface Bz329275Factory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ Bz329275Factory eINSTANCE = org.eclipse.emf.teneo.samples.issues.bz329275.impl.Bz329275FactoryImpl.init();
+
+ /**
+ * 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 the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ Bz329275Package getBz329275Package();
+
+} //Bz329275Factory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/Bz329275Package.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/Bz329275Package.java
new file mode 100644
index 000000000..8f975c930
--- /dev/null
+++ b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/Bz329275Package.java
@@ -0,0 +1,604 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: Bz329275Package.java,v 1.1 2010/11/04 05:22:18 mtaal Exp $
+ */
+package org.eclipse.emf.teneo.samples.issues.bz329275;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Factory
+ * @model kind="package"
+ * @generated
+ */
+public interface Bz329275Package extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "bz329275";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.eclipse.org/emf/teneo/samples/issues/bz329275";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "bz329275";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ Bz329275Package eINSTANCE = org.eclipse.emf.teneo.samples.issues.bz329275.impl.Bz329275PackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl <em>Item</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.impl.Bz329275PackageImpl#getItem()
+ * @generated
+ */
+ int ITEM = 0;
+
+ /**
+ * The feature id for the '<em><b>Id</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM__ID = 0;
+
+ /**
+ * The feature id for the '<em><b>Version</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM__VERSION = 1;
+
+ /**
+ * The feature id for the '<em><b>Un Settable String No Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM__UN_SETTABLE_STRING_NO_DEFAULT = 2;
+
+ /**
+ * The feature id for the '<em><b>Standard String No Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM__STANDARD_STRING_NO_DEFAULT = 3;
+
+ /**
+ * The feature id for the '<em><b>Un Settable String With Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM__UN_SETTABLE_STRING_WITH_DEFAULT = 4;
+
+ /**
+ * The feature id for the '<em><b>Standard String Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM__STANDARD_STRING_DEFAULT = 5;
+
+ /**
+ * The feature id for the '<em><b>Un Settable Enum</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM__UN_SETTABLE_ENUM = 6;
+
+ /**
+ * The feature id for the '<em><b>Standard Enum</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM__STANDARD_ENUM = 7;
+
+ /**
+ * The feature id for the '<em><b>Un Settable Primitive No Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM__UN_SETTABLE_PRIMITIVE_NO_DEFAULT = 8;
+
+ /**
+ * The feature id for the '<em><b>Standard Primitive No Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM__STANDARD_PRIMITIVE_NO_DEFAULT = 9;
+
+ /**
+ * The feature id for the '<em><b>Un Settable Primitive With Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM__UN_SETTABLE_PRIMITIVE_WITH_DEFAULT = 10;
+
+ /**
+ * The feature id for the '<em><b>Standard Primitive With Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM__STANDARD_PRIMITIVE_WITH_DEFAULT = 11;
+
+ /**
+ * The feature id for the '<em><b>Un Settable Object Primitive With Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_WITH_DEFAULT = 12;
+
+ /**
+ * The feature id for the '<em><b>Standard Object Primitive With Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM__STANDARD_OBJECT_PRIMITIVE_WITH_DEFAULT = 13;
+
+ /**
+ * The feature id for the '<em><b>Un Settable Object Primitive No Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_NO_DEFAULT = 14;
+
+ /**
+ * The feature id for the '<em><b>Standard Object Primitive No Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM__STANDARD_OBJECT_PRIMITIVE_NO_DEFAULT = 15;
+
+ /**
+ * The number of structural features of the '<em>Item</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ITEM_FEATURE_COUNT = 16;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum <em>Test Enum</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.impl.Bz329275PackageImpl#getTestEnum()
+ * @generated
+ */
+ int TEST_ENUM = 1;
+
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.teneo.samples.issues.bz329275.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.issues.bz329275.Item
+ * @generated
+ */
+ EClass getItem();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getId <em>Id</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Id</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Item#getId()
+ * @see #getItem()
+ * @generated
+ */
+ EAttribute getItem_Id();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getVersion <em>Version</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Version</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Item#getVersion()
+ * @see #getItem()
+ * @generated
+ */
+ EAttribute getItem_Version();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableStringNoDefault <em>Un Settable String No Default</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Un Settable String No Default</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableStringNoDefault()
+ * @see #getItem()
+ * @generated
+ */
+ EAttribute getItem_UnSettableStringNoDefault();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardStringNoDefault <em>Standard String No Default</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Standard String No Default</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardStringNoDefault()
+ * @see #getItem()
+ * @generated
+ */
+ EAttribute getItem_StandardStringNoDefault();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableStringWithDefault <em>Un Settable String With Default</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Un Settable String With Default</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableStringWithDefault()
+ * @see #getItem()
+ * @generated
+ */
+ EAttribute getItem_UnSettableStringWithDefault();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardStringDefault <em>Standard String Default</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Standard String Default</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardStringDefault()
+ * @see #getItem()
+ * @generated
+ */
+ EAttribute getItem_StandardStringDefault();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableEnum <em>Un Settable Enum</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Un Settable Enum</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableEnum()
+ * @see #getItem()
+ * @generated
+ */
+ EAttribute getItem_UnSettableEnum();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardEnum <em>Standard Enum</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Standard Enum</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardEnum()
+ * @see #getItem()
+ * @generated
+ */
+ EAttribute getItem_StandardEnum();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettablePrimitiveNoDefault <em>Un Settable Primitive No Default</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Un Settable Primitive No Default</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettablePrimitiveNoDefault()
+ * @see #getItem()
+ * @generated
+ */
+ EAttribute getItem_UnSettablePrimitiveNoDefault();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardPrimitiveNoDefault <em>Standard Primitive No Default</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Standard Primitive No Default</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardPrimitiveNoDefault()
+ * @see #getItem()
+ * @generated
+ */
+ EAttribute getItem_StandardPrimitiveNoDefault();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettablePrimitiveWithDefault <em>Un Settable Primitive With Default</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Un Settable Primitive With Default</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettablePrimitiveWithDefault()
+ * @see #getItem()
+ * @generated
+ */
+ EAttribute getItem_UnSettablePrimitiveWithDefault();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardPrimitiveWithDefault <em>Standard Primitive With Default</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Standard Primitive With Default</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardPrimitiveWithDefault()
+ * @see #getItem()
+ * @generated
+ */
+ EAttribute getItem_StandardPrimitiveWithDefault();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableObjectPrimitiveWithDefault <em>Un Settable Object Primitive With Default</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Un Settable Object Primitive With Default</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableObjectPrimitiveWithDefault()
+ * @see #getItem()
+ * @generated
+ */
+ EAttribute getItem_UnSettableObjectPrimitiveWithDefault();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardObjectPrimitiveWithDefault <em>Standard Object Primitive With Default</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Standard Object Primitive With Default</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardObjectPrimitiveWithDefault()
+ * @see #getItem()
+ * @generated
+ */
+ EAttribute getItem_StandardObjectPrimitiveWithDefault();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableObjectPrimitiveNoDefault <em>Un Settable Object Primitive No Default</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Un Settable Object Primitive No Default</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableObjectPrimitiveNoDefault()
+ * @see #getItem()
+ * @generated
+ */
+ EAttribute getItem_UnSettableObjectPrimitiveNoDefault();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardObjectPrimitiveNoDefault <em>Standard Object Primitive No Default</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Standard Object Primitive No Default</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardObjectPrimitiveNoDefault()
+ * @see #getItem()
+ * @generated
+ */
+ EAttribute getItem_StandardObjectPrimitiveNoDefault();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum <em>Test Enum</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Test Enum</em>'.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum
+ * @generated
+ */
+ EEnum getTestEnum();
+
+ /**
+ * 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
+ */
+ Bz329275Factory getBz329275Factory();
+
+ /**
+ * <!-- 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.issues.bz329275.impl.ItemImpl <em>Item</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.impl.Bz329275PackageImpl#getItem()
+ * @generated
+ */
+ EClass ITEM = eINSTANCE.getItem();
+
+ /**
+ * The meta object literal for the '<em><b>Id</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ITEM__ID = eINSTANCE.getItem_Id();
+
+ /**
+ * The meta object literal for the '<em><b>Version</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ITEM__VERSION = eINSTANCE.getItem_Version();
+
+ /**
+ * The meta object literal for the '<em><b>Un Settable String No Default</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ITEM__UN_SETTABLE_STRING_NO_DEFAULT = eINSTANCE.getItem_UnSettableStringNoDefault();
+
+ /**
+ * The meta object literal for the '<em><b>Standard String No Default</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ITEM__STANDARD_STRING_NO_DEFAULT = eINSTANCE.getItem_StandardStringNoDefault();
+
+ /**
+ * The meta object literal for the '<em><b>Un Settable String With Default</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ITEM__UN_SETTABLE_STRING_WITH_DEFAULT = eINSTANCE.getItem_UnSettableStringWithDefault();
+
+ /**
+ * The meta object literal for the '<em><b>Standard String Default</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ITEM__STANDARD_STRING_DEFAULT = eINSTANCE.getItem_StandardStringDefault();
+
+ /**
+ * The meta object literal for the '<em><b>Un Settable Enum</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ITEM__UN_SETTABLE_ENUM = eINSTANCE.getItem_UnSettableEnum();
+
+ /**
+ * The meta object literal for the '<em><b>Standard Enum</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ITEM__STANDARD_ENUM = eINSTANCE.getItem_StandardEnum();
+
+ /**
+ * The meta object literal for the '<em><b>Un Settable Primitive No Default</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ITEM__UN_SETTABLE_PRIMITIVE_NO_DEFAULT = eINSTANCE.getItem_UnSettablePrimitiveNoDefault();
+
+ /**
+ * The meta object literal for the '<em><b>Standard Primitive No Default</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ITEM__STANDARD_PRIMITIVE_NO_DEFAULT = eINSTANCE.getItem_StandardPrimitiveNoDefault();
+
+ /**
+ * The meta object literal for the '<em><b>Un Settable Primitive With Default</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ITEM__UN_SETTABLE_PRIMITIVE_WITH_DEFAULT = eINSTANCE.getItem_UnSettablePrimitiveWithDefault();
+
+ /**
+ * The meta object literal for the '<em><b>Standard Primitive With Default</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ITEM__STANDARD_PRIMITIVE_WITH_DEFAULT = eINSTANCE.getItem_StandardPrimitiveWithDefault();
+
+ /**
+ * The meta object literal for the '<em><b>Un Settable Object Primitive With Default</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_WITH_DEFAULT = eINSTANCE.getItem_UnSettableObjectPrimitiveWithDefault();
+
+ /**
+ * The meta object literal for the '<em><b>Standard Object Primitive With Default</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ITEM__STANDARD_OBJECT_PRIMITIVE_WITH_DEFAULT = eINSTANCE.getItem_StandardObjectPrimitiveWithDefault();
+
+ /**
+ * The meta object literal for the '<em><b>Un Settable Object Primitive No Default</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_NO_DEFAULT = eINSTANCE.getItem_UnSettableObjectPrimitiveNoDefault();
+
+ /**
+ * The meta object literal for the '<em><b>Standard Object Primitive No Default</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ITEM__STANDARD_OBJECT_PRIMITIVE_NO_DEFAULT = eINSTANCE.getItem_StandardObjectPrimitiveNoDefault();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum <em>Test Enum</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.impl.Bz329275PackageImpl#getTestEnum()
+ * @generated
+ */
+ EEnum TEST_ENUM = eINSTANCE.getTestEnum();
+
+ }
+
+} //Bz329275Package
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/Item.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/Item.java
new file mode 100644
index 000000000..fc6f02196
--- /dev/null
+++ b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/Item.java
@@ -0,0 +1,718 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: Item.java,v 1.1 2010/11/04 05:22:18 mtaal Exp $
+ */
+package org.eclipse.emf.teneo.samples.issues.bz329275;
+
+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.issues.bz329275.Item#getId <em>Id</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getVersion <em>Version</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableStringNoDefault <em>Un Settable String No Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardStringNoDefault <em>Standard String No Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableStringWithDefault <em>Un Settable String With Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardStringDefault <em>Standard String Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableEnum <em>Un Settable Enum</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardEnum <em>Standard Enum</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettablePrimitiveNoDefault <em>Un Settable Primitive No Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardPrimitiveNoDefault <em>Standard Primitive No Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettablePrimitiveWithDefault <em>Un Settable Primitive With Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardPrimitiveWithDefault <em>Standard Primitive With Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableObjectPrimitiveWithDefault <em>Un Settable Object Primitive With Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardObjectPrimitiveWithDefault <em>Standard Object Primitive With Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableObjectPrimitiveNoDefault <em>Un Settable Object Primitive No Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardObjectPrimitiveNoDefault <em>Standard Object Primitive No Default</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem()
+ * @model
+ * @generated
+ */
+public interface Item extends EObject {
+ /**
+ * Returns the value of the '<em><b>Id</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Id</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Id</em>' attribute.
+ * @see #isSetId()
+ * @see #unsetId()
+ * @see #setId(long)
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem_Id()
+ * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Long" required="true"
+ * annotation="teneo.jpa appinfo='@Id\n@GeneratedValue'"
+ * @generated
+ */
+ long getId();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getId <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Id</em>' attribute.
+ * @see #isSetId()
+ * @see #unsetId()
+ * @see #getId()
+ * @generated
+ */
+ void setId(long value);
+
+ /**
+ * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getId <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetId()
+ * @see #getId()
+ * @see #setId(long)
+ * @generated
+ */
+ void unsetId();
+
+ /**
+ * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getId <em>Id</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Id</em>' attribute is set.
+ * @see #unsetId()
+ * @see #getId()
+ * @see #setId(long)
+ * @generated
+ */
+ boolean isSetId();
+
+ /**
+ * Returns the value of the '<em><b>Version</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Version</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Version</em>' attribute.
+ * @see #isSetVersion()
+ * @see #unsetVersion()
+ * @see #setVersion(long)
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem_Version()
+ * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Long" required="true"
+ * annotation="teneo.jpa appinfo='@Version'"
+ * @generated
+ */
+ long getVersion();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getVersion <em>Version</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Version</em>' attribute.
+ * @see #isSetVersion()
+ * @see #unsetVersion()
+ * @see #getVersion()
+ * @generated
+ */
+ void setVersion(long value);
+
+ /**
+ * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getVersion <em>Version</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetVersion()
+ * @see #getVersion()
+ * @see #setVersion(long)
+ * @generated
+ */
+ void unsetVersion();
+
+ /**
+ * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getVersion <em>Version</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Version</em>' attribute is set.
+ * @see #unsetVersion()
+ * @see #getVersion()
+ * @see #setVersion(long)
+ * @generated
+ */
+ boolean isSetVersion();
+
+ /**
+ * Returns the value of the '<em><b>Un Settable String No Default</b></em>' attribute.
+ * The default value is <code>""</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Un Settable String No Default</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Un Settable String No Default</em>' attribute.
+ * @see #isSetUnSettableStringNoDefault()
+ * @see #unsetUnSettableStringNoDefault()
+ * @see #setUnSettableStringNoDefault(String)
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem_UnSettableStringNoDefault()
+ * @model default="" unsettable="true"
+ * @generated
+ */
+ String getUnSettableStringNoDefault();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableStringNoDefault <em>Un Settable String No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Un Settable String No Default</em>' attribute.
+ * @see #isSetUnSettableStringNoDefault()
+ * @see #unsetUnSettableStringNoDefault()
+ * @see #getUnSettableStringNoDefault()
+ * @generated
+ */
+ void setUnSettableStringNoDefault(String value);
+
+ /**
+ * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableStringNoDefault <em>Un Settable String No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetUnSettableStringNoDefault()
+ * @see #getUnSettableStringNoDefault()
+ * @see #setUnSettableStringNoDefault(String)
+ * @generated
+ */
+ void unsetUnSettableStringNoDefault();
+
+ /**
+ * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableStringNoDefault <em>Un Settable String No Default</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Un Settable String No Default</em>' attribute is set.
+ * @see #unsetUnSettableStringNoDefault()
+ * @see #getUnSettableStringNoDefault()
+ * @see #setUnSettableStringNoDefault(String)
+ * @generated
+ */
+ boolean isSetUnSettableStringNoDefault();
+
+ /**
+ * Returns the value of the '<em><b>Standard String No Default</b></em>' attribute.
+ * The default value is <code>""</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Standard String No Default</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Standard String No Default</em>' attribute.
+ * @see #setStandardStringNoDefault(String)
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem_StandardStringNoDefault()
+ * @model default=""
+ * @generated
+ */
+ String getStandardStringNoDefault();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardStringNoDefault <em>Standard String No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Standard String No Default</em>' attribute.
+ * @see #getStandardStringNoDefault()
+ * @generated
+ */
+ void setStandardStringNoDefault(String value);
+
+ /**
+ * Returns the value of the '<em><b>Un Settable String With Default</b></em>' attribute.
+ * The default value is <code>"default"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Un Settable String With Default</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Un Settable String With Default</em>' attribute.
+ * @see #isSetUnSettableStringWithDefault()
+ * @see #unsetUnSettableStringWithDefault()
+ * @see #setUnSettableStringWithDefault(String)
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem_UnSettableStringWithDefault()
+ * @model default="default" unsettable="true"
+ * @generated
+ */
+ String getUnSettableStringWithDefault();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableStringWithDefault <em>Un Settable String With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Un Settable String With Default</em>' attribute.
+ * @see #isSetUnSettableStringWithDefault()
+ * @see #unsetUnSettableStringWithDefault()
+ * @see #getUnSettableStringWithDefault()
+ * @generated
+ */
+ void setUnSettableStringWithDefault(String value);
+
+ /**
+ * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableStringWithDefault <em>Un Settable String With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetUnSettableStringWithDefault()
+ * @see #getUnSettableStringWithDefault()
+ * @see #setUnSettableStringWithDefault(String)
+ * @generated
+ */
+ void unsetUnSettableStringWithDefault();
+
+ /**
+ * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableStringWithDefault <em>Un Settable String With Default</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Un Settable String With Default</em>' attribute is set.
+ * @see #unsetUnSettableStringWithDefault()
+ * @see #getUnSettableStringWithDefault()
+ * @see #setUnSettableStringWithDefault(String)
+ * @generated
+ */
+ boolean isSetUnSettableStringWithDefault();
+
+ /**
+ * Returns the value of the '<em><b>Standard String Default</b></em>' attribute.
+ * The default value is <code>"default"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Standard String Default</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Standard String Default</em>' attribute.
+ * @see #setStandardStringDefault(String)
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem_StandardStringDefault()
+ * @model default="default"
+ * @generated
+ */
+ String getStandardStringDefault();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardStringDefault <em>Standard String Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Standard String Default</em>' attribute.
+ * @see #getStandardStringDefault()
+ * @generated
+ */
+ void setStandardStringDefault(String value);
+
+ /**
+ * Returns the value of the '<em><b>Un Settable Enum</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Un Settable Enum</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Un Settable Enum</em>' attribute.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum
+ * @see #isSetUnSettableEnum()
+ * @see #unsetUnSettableEnum()
+ * @see #setUnSettableEnum(TestEnum)
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem_UnSettableEnum()
+ * @model unsettable="true"
+ * @generated
+ */
+ TestEnum getUnSettableEnum();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableEnum <em>Un Settable Enum</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Un Settable Enum</em>' attribute.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum
+ * @see #isSetUnSettableEnum()
+ * @see #unsetUnSettableEnum()
+ * @see #getUnSettableEnum()
+ * @generated
+ */
+ void setUnSettableEnum(TestEnum value);
+
+ /**
+ * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableEnum <em>Un Settable Enum</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetUnSettableEnum()
+ * @see #getUnSettableEnum()
+ * @see #setUnSettableEnum(TestEnum)
+ * @generated
+ */
+ void unsetUnSettableEnum();
+
+ /**
+ * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableEnum <em>Un Settable Enum</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Un Settable Enum</em>' attribute is set.
+ * @see #unsetUnSettableEnum()
+ * @see #getUnSettableEnum()
+ * @see #setUnSettableEnum(TestEnum)
+ * @generated
+ */
+ boolean isSetUnSettableEnum();
+
+ /**
+ * Returns the value of the '<em><b>Standard Enum</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Standard Enum</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Standard Enum</em>' attribute.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum
+ * @see #setStandardEnum(TestEnum)
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem_StandardEnum()
+ * @model
+ * @generated
+ */
+ TestEnum getStandardEnum();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardEnum <em>Standard Enum</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Standard Enum</em>' attribute.
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum
+ * @see #getStandardEnum()
+ * @generated
+ */
+ void setStandardEnum(TestEnum value);
+
+ /**
+ * Returns the value of the '<em><b>Un Settable Primitive No Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Un Settable Primitive No Default</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Un Settable Primitive No Default</em>' attribute.
+ * @see #isSetUnSettablePrimitiveNoDefault()
+ * @see #unsetUnSettablePrimitiveNoDefault()
+ * @see #setUnSettablePrimitiveNoDefault(long)
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem_UnSettablePrimitiveNoDefault()
+ * @model unsettable="true"
+ * @generated
+ */
+ long getUnSettablePrimitiveNoDefault();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettablePrimitiveNoDefault <em>Un Settable Primitive No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Un Settable Primitive No Default</em>' attribute.
+ * @see #isSetUnSettablePrimitiveNoDefault()
+ * @see #unsetUnSettablePrimitiveNoDefault()
+ * @see #getUnSettablePrimitiveNoDefault()
+ * @generated
+ */
+ void setUnSettablePrimitiveNoDefault(long value);
+
+ /**
+ * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettablePrimitiveNoDefault <em>Un Settable Primitive No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetUnSettablePrimitiveNoDefault()
+ * @see #getUnSettablePrimitiveNoDefault()
+ * @see #setUnSettablePrimitiveNoDefault(long)
+ * @generated
+ */
+ void unsetUnSettablePrimitiveNoDefault();
+
+ /**
+ * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettablePrimitiveNoDefault <em>Un Settable Primitive No Default</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Un Settable Primitive No Default</em>' attribute is set.
+ * @see #unsetUnSettablePrimitiveNoDefault()
+ * @see #getUnSettablePrimitiveNoDefault()
+ * @see #setUnSettablePrimitiveNoDefault(long)
+ * @generated
+ */
+ boolean isSetUnSettablePrimitiveNoDefault();
+
+ /**
+ * Returns the value of the '<em><b>Standard Primitive No Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Standard Primitive No Default</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Standard Primitive No Default</em>' attribute.
+ * @see #setStandardPrimitiveNoDefault(long)
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem_StandardPrimitiveNoDefault()
+ * @model
+ * @generated
+ */
+ long getStandardPrimitiveNoDefault();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardPrimitiveNoDefault <em>Standard Primitive No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Standard Primitive No Default</em>' attribute.
+ * @see #getStandardPrimitiveNoDefault()
+ * @generated
+ */
+ void setStandardPrimitiveNoDefault(long value);
+
+ /**
+ * Returns the value of the '<em><b>Un Settable Primitive With Default</b></em>' attribute.
+ * The default value is <code>"155"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Un Settable Primitive With Default</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Un Settable Primitive With Default</em>' attribute.
+ * @see #isSetUnSettablePrimitiveWithDefault()
+ * @see #unsetUnSettablePrimitiveWithDefault()
+ * @see #setUnSettablePrimitiveWithDefault(long)
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem_UnSettablePrimitiveWithDefault()
+ * @model default="155" unsettable="true"
+ * @generated
+ */
+ long getUnSettablePrimitiveWithDefault();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettablePrimitiveWithDefault <em>Un Settable Primitive With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Un Settable Primitive With Default</em>' attribute.
+ * @see #isSetUnSettablePrimitiveWithDefault()
+ * @see #unsetUnSettablePrimitiveWithDefault()
+ * @see #getUnSettablePrimitiveWithDefault()
+ * @generated
+ */
+ void setUnSettablePrimitiveWithDefault(long value);
+
+ /**
+ * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettablePrimitiveWithDefault <em>Un Settable Primitive With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetUnSettablePrimitiveWithDefault()
+ * @see #getUnSettablePrimitiveWithDefault()
+ * @see #setUnSettablePrimitiveWithDefault(long)
+ * @generated
+ */
+ void unsetUnSettablePrimitiveWithDefault();
+
+ /**
+ * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettablePrimitiveWithDefault <em>Un Settable Primitive With Default</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Un Settable Primitive With Default</em>' attribute is set.
+ * @see #unsetUnSettablePrimitiveWithDefault()
+ * @see #getUnSettablePrimitiveWithDefault()
+ * @see #setUnSettablePrimitiveWithDefault(long)
+ * @generated
+ */
+ boolean isSetUnSettablePrimitiveWithDefault();
+
+ /**
+ * Returns the value of the '<em><b>Standard Primitive With Default</b></em>' attribute.
+ * The default value is <code>"155"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Standard Primitive With Default</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Standard Primitive With Default</em>' attribute.
+ * @see #setStandardPrimitiveWithDefault(long)
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem_StandardPrimitiveWithDefault()
+ * @model default="155"
+ * @generated
+ */
+ long getStandardPrimitiveWithDefault();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardPrimitiveWithDefault <em>Standard Primitive With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Standard Primitive With Default</em>' attribute.
+ * @see #getStandardPrimitiveWithDefault()
+ * @generated
+ */
+ void setStandardPrimitiveWithDefault(long value);
+
+ /**
+ * Returns the value of the '<em><b>Un Settable Object Primitive With Default</b></em>' attribute.
+ * The default value is <code>"155"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Un Settable Object Primitive With Default</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Un Settable Object Primitive With Default</em>' attribute.
+ * @see #isSetUnSettableObjectPrimitiveWithDefault()
+ * @see #unsetUnSettableObjectPrimitiveWithDefault()
+ * @see #setUnSettableObjectPrimitiveWithDefault(Long)
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem_UnSettableObjectPrimitiveWithDefault()
+ * @model default="155" unsettable="true"
+ * @generated
+ */
+ Long getUnSettableObjectPrimitiveWithDefault();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableObjectPrimitiveWithDefault <em>Un Settable Object Primitive With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Un Settable Object Primitive With Default</em>' attribute.
+ * @see #isSetUnSettableObjectPrimitiveWithDefault()
+ * @see #unsetUnSettableObjectPrimitiveWithDefault()
+ * @see #getUnSettableObjectPrimitiveWithDefault()
+ * @generated
+ */
+ void setUnSettableObjectPrimitiveWithDefault(Long value);
+
+ /**
+ * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableObjectPrimitiveWithDefault <em>Un Settable Object Primitive With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetUnSettableObjectPrimitiveWithDefault()
+ * @see #getUnSettableObjectPrimitiveWithDefault()
+ * @see #setUnSettableObjectPrimitiveWithDefault(Long)
+ * @generated
+ */
+ void unsetUnSettableObjectPrimitiveWithDefault();
+
+ /**
+ * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableObjectPrimitiveWithDefault <em>Un Settable Object Primitive With Default</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Un Settable Object Primitive With Default</em>' attribute is set.
+ * @see #unsetUnSettableObjectPrimitiveWithDefault()
+ * @see #getUnSettableObjectPrimitiveWithDefault()
+ * @see #setUnSettableObjectPrimitiveWithDefault(Long)
+ * @generated
+ */
+ boolean isSetUnSettableObjectPrimitiveWithDefault();
+
+ /**
+ * Returns the value of the '<em><b>Standard Object Primitive With Default</b></em>' attribute.
+ * The default value is <code>"155"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Standard Object Primitive With Default</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Standard Object Primitive With Default</em>' attribute.
+ * @see #setStandardObjectPrimitiveWithDefault(Long)
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem_StandardObjectPrimitiveWithDefault()
+ * @model default="155"
+ * @generated
+ */
+ Long getStandardObjectPrimitiveWithDefault();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardObjectPrimitiveWithDefault <em>Standard Object Primitive With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Standard Object Primitive With Default</em>' attribute.
+ * @see #getStandardObjectPrimitiveWithDefault()
+ * @generated
+ */
+ void setStandardObjectPrimitiveWithDefault(Long value);
+
+ /**
+ * Returns the value of the '<em><b>Un Settable Object Primitive No Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Un Settable Object Primitive No Default</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Un Settable Object Primitive No Default</em>' attribute.
+ * @see #isSetUnSettableObjectPrimitiveNoDefault()
+ * @see #unsetUnSettableObjectPrimitiveNoDefault()
+ * @see #setUnSettableObjectPrimitiveNoDefault(Long)
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem_UnSettableObjectPrimitiveNoDefault()
+ * @model unsettable="true"
+ * @generated
+ */
+ Long getUnSettableObjectPrimitiveNoDefault();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableObjectPrimitiveNoDefault <em>Un Settable Object Primitive No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Un Settable Object Primitive No Default</em>' attribute.
+ * @see #isSetUnSettableObjectPrimitiveNoDefault()
+ * @see #unsetUnSettableObjectPrimitiveNoDefault()
+ * @see #getUnSettableObjectPrimitiveNoDefault()
+ * @generated
+ */
+ void setUnSettableObjectPrimitiveNoDefault(Long value);
+
+ /**
+ * Unsets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableObjectPrimitiveNoDefault <em>Un Settable Object Primitive No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetUnSettableObjectPrimitiveNoDefault()
+ * @see #getUnSettableObjectPrimitiveNoDefault()
+ * @see #setUnSettableObjectPrimitiveNoDefault(Long)
+ * @generated
+ */
+ void unsetUnSettableObjectPrimitiveNoDefault();
+
+ /**
+ * Returns whether the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getUnSettableObjectPrimitiveNoDefault <em>Un Settable Object Primitive No Default</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Un Settable Object Primitive No Default</em>' attribute is set.
+ * @see #unsetUnSettableObjectPrimitiveNoDefault()
+ * @see #getUnSettableObjectPrimitiveNoDefault()
+ * @see #setUnSettableObjectPrimitiveNoDefault(Long)
+ * @generated
+ */
+ boolean isSetUnSettableObjectPrimitiveNoDefault();
+
+ /**
+ * Returns the value of the '<em><b>Standard Object Primitive No Default</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Standard Object Primitive No Default</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Standard Object Primitive No Default</em>' attribute.
+ * @see #setStandardObjectPrimitiveNoDefault(Long)
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getItem_StandardObjectPrimitiveNoDefault()
+ * @model
+ * @generated
+ */
+ Long getStandardObjectPrimitiveNoDefault();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.teneo.samples.issues.bz329275.Item#getStandardObjectPrimitiveNoDefault <em>Standard Object Primitive No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Standard Object Primitive No Default</em>' attribute.
+ * @see #getStandardObjectPrimitiveNoDefault()
+ * @generated
+ */
+ void setStandardObjectPrimitiveNoDefault(Long value);
+
+} // Item
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/TestEnum.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/TestEnum.java
new file mode 100644
index 000000000..822e4c0fe
--- /dev/null
+++ b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/TestEnum.java
@@ -0,0 +1,212 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: TestEnum.java,v 1.1 2010/11/04 05:22:18 mtaal Exp $
+ */
+package org.eclipse.emf.teneo.samples.issues.bz329275;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Test Enum</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package#getTestEnum()
+ * @model
+ * @generated
+ */
+public enum TestEnum implements Enumerator {
+ /**
+ * The '<em><b>Literal1</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #LITERAL1_VALUE
+ * @generated
+ * @ordered
+ */
+ LITERAL1(0, "Literal1", "Literal1"),
+
+ /**
+ * The '<em><b>Literal2</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #LITERAL2_VALUE
+ * @generated
+ * @ordered
+ */
+ LITERAL2(1, "Literal2", "Literal2");
+
+ /**
+ * The '<em><b>Literal1</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Literal1</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #LITERAL1
+ * @model name="Literal1"
+ * @generated
+ * @ordered
+ */
+ public static final int LITERAL1_VALUE = 0;
+
+ /**
+ * The '<em><b>Literal2</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Literal2</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #LITERAL2
+ * @model name="Literal2"
+ * @generated
+ * @ordered
+ */
+ public static final int LITERAL2_VALUE = 1;
+
+ /**
+ * An array of all the '<em><b>Test Enum</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final TestEnum[] VALUES_ARRAY =
+ new TestEnum[] {
+ LITERAL1,
+ LITERAL2,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Test Enum</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<TestEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Test Enum</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static TestEnum get(String literal) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ TestEnum result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Test Enum</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static TestEnum getByName(String name) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ TestEnum result = VALUES_ARRAY[i];
+ if (result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Test Enum</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static TestEnum get(int value) {
+ switch (value) {
+ case LITERAL1_VALUE: return LITERAL1;
+ case LITERAL2_VALUE: return LITERAL2;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private TestEnum(int value, String name, String literal) {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral() {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ return literal;
+ }
+
+} //TestEnum
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/impl/Bz329275FactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/impl/Bz329275FactoryImpl.java
new file mode 100644
index 000000000..2eb180e9e
--- /dev/null
+++ b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/impl/Bz329275FactoryImpl.java
@@ -0,0 +1,150 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: Bz329275FactoryImpl.java,v 1.1 2010/11/04 05:22:18 mtaal Exp $
+ */
+package org.eclipse.emf.teneo.samples.issues.bz329275.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+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.issues.bz329275.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class Bz329275FactoryImpl extends EFactoryImpl implements Bz329275Factory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static Bz329275Factory init() {
+ try {
+ Bz329275Factory theBz329275Factory = (Bz329275Factory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/teneo/samples/issues/bz329275");
+ if (theBz329275Factory != null) {
+ return theBz329275Factory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new Bz329275FactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Bz329275FactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case Bz329275Package.ITEM: return createItem();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object createFromString(EDataType eDataType, String initialValue) {
+ switch (eDataType.getClassifierID()) {
+ case Bz329275Package.TEST_ENUM:
+ return createTestEnumFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String convertToString(EDataType eDataType, Object instanceValue) {
+ switch (eDataType.getClassifierID()) {
+ case Bz329275Package.TEST_ENUM:
+ return convertTestEnumToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Item createItem() {
+ ItemImpl item = new ItemImpl();
+ return item;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public TestEnum createTestEnumFromString(EDataType eDataType, String initialValue) {
+ TestEnum result = TestEnum.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertTestEnumToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Bz329275Package getBz329275Package() {
+ return (Bz329275Package)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static Bz329275Package getPackage() {
+ return Bz329275Package.eINSTANCE;
+ }
+
+} //Bz329275FactoryImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/impl/Bz329275PackageImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/impl/Bz329275PackageImpl.java
new file mode 100644
index 000000000..6edcdc24d
--- /dev/null
+++ b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/impl/Bz329275PackageImpl.java
@@ -0,0 +1,406 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: Bz329275PackageImpl.java,v 1.1 2010/11/04 05:22:18 mtaal Exp $
+ */
+package org.eclipse.emf.teneo.samples.issues.bz329275.impl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
+
+import org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Factory;
+import org.eclipse.emf.teneo.samples.issues.bz329275.Bz329275Package;
+import org.eclipse.emf.teneo.samples.issues.bz329275.Item;
+import org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class Bz329275PackageImpl extends EPackageImpl implements Bz329275Package {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass itemEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum testEnumEEnum = 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.issues.bz329275.Bz329275Package#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private Bz329275PackageImpl() {
+ super(eNS_URI, Bz329275Factory.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 Bz329275Package#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 Bz329275Package init() {
+ if (isInited) return (Bz329275Package)EPackage.Registry.INSTANCE.getEPackage(Bz329275Package.eNS_URI);
+
+ // Obtain or create and register package
+ Bz329275PackageImpl theBz329275Package = (Bz329275PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Bz329275PackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new Bz329275PackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ XMLTypePackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ theBz329275Package.createPackageContents();
+
+ // Initialize created meta-data
+ theBz329275Package.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theBz329275Package.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(Bz329275Package.eNS_URI, theBz329275Package);
+ return theBz329275Package;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getItem() {
+ return itemEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getItem_Id() {
+ return (EAttribute)itemEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getItem_Version() {
+ return (EAttribute)itemEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getItem_UnSettableStringNoDefault() {
+ return (EAttribute)itemEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getItem_StandardStringNoDefault() {
+ return (EAttribute)itemEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getItem_UnSettableStringWithDefault() {
+ return (EAttribute)itemEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getItem_StandardStringDefault() {
+ return (EAttribute)itemEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getItem_UnSettableEnum() {
+ return (EAttribute)itemEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getItem_StandardEnum() {
+ return (EAttribute)itemEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getItem_UnSettablePrimitiveNoDefault() {
+ return (EAttribute)itemEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getItem_StandardPrimitiveNoDefault() {
+ return (EAttribute)itemEClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getItem_UnSettablePrimitiveWithDefault() {
+ return (EAttribute)itemEClass.getEStructuralFeatures().get(10);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getItem_StandardPrimitiveWithDefault() {
+ return (EAttribute)itemEClass.getEStructuralFeatures().get(11);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getItem_UnSettableObjectPrimitiveWithDefault() {
+ return (EAttribute)itemEClass.getEStructuralFeatures().get(12);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getItem_StandardObjectPrimitiveWithDefault() {
+ return (EAttribute)itemEClass.getEStructuralFeatures().get(13);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getItem_UnSettableObjectPrimitiveNoDefault() {
+ return (EAttribute)itemEClass.getEStructuralFeatures().get(14);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getItem_StandardObjectPrimitiveNoDefault() {
+ return (EAttribute)itemEClass.getEStructuralFeatures().get(15);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getTestEnum() {
+ return testEnumEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Bz329275Factory getBz329275Factory() {
+ return (Bz329275Factory)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
+ itemEClass = createEClass(ITEM);
+ createEAttribute(itemEClass, ITEM__ID);
+ createEAttribute(itemEClass, ITEM__VERSION);
+ createEAttribute(itemEClass, ITEM__UN_SETTABLE_STRING_NO_DEFAULT);
+ createEAttribute(itemEClass, ITEM__STANDARD_STRING_NO_DEFAULT);
+ createEAttribute(itemEClass, ITEM__UN_SETTABLE_STRING_WITH_DEFAULT);
+ createEAttribute(itemEClass, ITEM__STANDARD_STRING_DEFAULT);
+ createEAttribute(itemEClass, ITEM__UN_SETTABLE_ENUM);
+ createEAttribute(itemEClass, ITEM__STANDARD_ENUM);
+ createEAttribute(itemEClass, ITEM__UN_SETTABLE_PRIMITIVE_NO_DEFAULT);
+ createEAttribute(itemEClass, ITEM__STANDARD_PRIMITIVE_NO_DEFAULT);
+ createEAttribute(itemEClass, ITEM__UN_SETTABLE_PRIMITIVE_WITH_DEFAULT);
+ createEAttribute(itemEClass, ITEM__STANDARD_PRIMITIVE_WITH_DEFAULT);
+ createEAttribute(itemEClass, ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_WITH_DEFAULT);
+ createEAttribute(itemEClass, ITEM__STANDARD_OBJECT_PRIMITIVE_WITH_DEFAULT);
+ createEAttribute(itemEClass, ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_NO_DEFAULT);
+ createEAttribute(itemEClass, ITEM__STANDARD_OBJECT_PRIMITIVE_NO_DEFAULT);
+
+ // Create enums
+ testEnumEEnum = createEEnum(TEST_ENUM);
+ }
+
+ /**
+ * <!-- 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(itemEClass, Item.class, "Item", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getItem_Id(), theXMLTypePackage.getLong(), "id", null, 1, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getItem_Version(), theXMLTypePackage.getLong(), "version", null, 1, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getItem_UnSettableStringNoDefault(), ecorePackage.getEString(), "unSettableStringNoDefault", "", 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getItem_StandardStringNoDefault(), ecorePackage.getEString(), "standardStringNoDefault", "", 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getItem_UnSettableStringWithDefault(), ecorePackage.getEString(), "unSettableStringWithDefault", "default", 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getItem_StandardStringDefault(), ecorePackage.getEString(), "standardStringDefault", "default", 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getItem_UnSettableEnum(), this.getTestEnum(), "unSettableEnum", null, 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getItem_StandardEnum(), this.getTestEnum(), "standardEnum", null, 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getItem_UnSettablePrimitiveNoDefault(), ecorePackage.getELong(), "unSettablePrimitiveNoDefault", null, 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getItem_StandardPrimitiveNoDefault(), ecorePackage.getELong(), "standardPrimitiveNoDefault", null, 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getItem_UnSettablePrimitiveWithDefault(), ecorePackage.getELong(), "unSettablePrimitiveWithDefault", "155", 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getItem_StandardPrimitiveWithDefault(), ecorePackage.getELong(), "standardPrimitiveWithDefault", "155", 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getItem_UnSettableObjectPrimitiveWithDefault(), ecorePackage.getELongObject(), "unSettableObjectPrimitiveWithDefault", "155", 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getItem_StandardObjectPrimitiveWithDefault(), ecorePackage.getELongObject(), "standardObjectPrimitiveWithDefault", "155", 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getItem_UnSettableObjectPrimitiveNoDefault(), ecorePackage.getELongObject(), "unSettableObjectPrimitiveNoDefault", null, 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getItem_StandardObjectPrimitiveNoDefault(), ecorePackage.getELongObject(), "standardObjectPrimitiveNoDefault", null, 0, 1, Item.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Initialize enums and add enum literals
+ initEEnum(testEnumEEnum, TestEnum.class, "TestEnum");
+ addEEnumLiteral(testEnumEEnum, TestEnum.LITERAL1);
+ addEEnumLiteral(testEnumEEnum, TestEnum.LITERAL2);
+
+ // Create resource
+ createResource(eNS_URI);
+
+ // Create annotations
+ // teneo.jpa
+ createTeneoAnnotations();
+ }
+
+ /**
+ * Initializes the annotations for <b>teneo.jpa</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void createTeneoAnnotations() {
+ String source = "teneo.jpa";
+ addAnnotation
+ (getItem_Id(),
+ source,
+ new String[] {
+ "appinfo", "@Id\n@GeneratedValue"
+ });
+ addAnnotation
+ (getItem_Version(),
+ source,
+ new String[] {
+ "appinfo", "@Version"
+ });
+ }
+
+} //Bz329275PackageImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/impl/ItemImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/impl/ItemImpl.java
new file mode 100644
index 000000000..472285c64
--- /dev/null
+++ b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/impl/ItemImpl.java
@@ -0,0 +1,1284 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: ItemImpl.java,v 1.1 2010/11/04 05:22:18 mtaal Exp $
+ */
+package org.eclipse.emf.teneo.samples.issues.bz329275.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.issues.bz329275.Bz329275Package;
+import org.eclipse.emf.teneo.samples.issues.bz329275.Item;
+import org.eclipse.emf.teneo.samples.issues.bz329275.TestEnum;
+
+/**
+ * <!-- 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.issues.bz329275.impl.ItemImpl#getId <em>Id</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl#getVersion <em>Version</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl#getUnSettableStringNoDefault <em>Un Settable String No Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl#getStandardStringNoDefault <em>Standard String No Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl#getUnSettableStringWithDefault <em>Un Settable String With Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl#getStandardStringDefault <em>Standard String Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl#getUnSettableEnum <em>Un Settable Enum</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl#getStandardEnum <em>Standard Enum</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl#getUnSettablePrimitiveNoDefault <em>Un Settable Primitive No Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl#getStandardPrimitiveNoDefault <em>Standard Primitive No Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl#getUnSettablePrimitiveWithDefault <em>Un Settable Primitive With Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl#getStandardPrimitiveWithDefault <em>Standard Primitive With Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl#getUnSettableObjectPrimitiveWithDefault <em>Un Settable Object Primitive With Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl#getStandardObjectPrimitiveWithDefault <em>Standard Object Primitive With Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl#getUnSettableObjectPrimitiveNoDefault <em>Un Settable Object Primitive No Default</em>}</li>
+ * <li>{@link org.eclipse.emf.teneo.samples.issues.bz329275.impl.ItemImpl#getStandardObjectPrimitiveNoDefault <em>Standard Object Primitive No Default</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ItemImpl extends EObjectImpl implements Item {
+ /**
+ * The default value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected static final long ID_EDEFAULT = 0L;
+
+ /**
+ * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
+ protected long id = ID_EDEFAULT;
+
+ /**
+ * This is true if the Id attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean idESet;
+
+ /**
+ * The default value of the '{@link #getVersion() <em>Version</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected static final long VERSION_EDEFAULT = 0L;
+
+ /**
+ * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
+ protected long version = VERSION_EDEFAULT;
+
+ /**
+ * This is true if the Version attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean versionESet;
+
+ /**
+ * The default value of the '{@link #getUnSettableStringNoDefault() <em>Un Settable String No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUnSettableStringNoDefault()
+ * @generated
+ * @ordered
+ */
+ protected static final String UN_SETTABLE_STRING_NO_DEFAULT_EDEFAULT = "";
+
+ /**
+ * The cached value of the '{@link #getUnSettableStringNoDefault() <em>Un Settable String No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUnSettableStringNoDefault()
+ * @generated
+ * @ordered
+ */
+ protected String unSettableStringNoDefault = UN_SETTABLE_STRING_NO_DEFAULT_EDEFAULT;
+
+ /**
+ * This is true if the Un Settable String No Default attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean unSettableStringNoDefaultESet;
+
+ /**
+ * The default value of the '{@link #getStandardStringNoDefault() <em>Standard String No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStandardStringNoDefault()
+ * @generated
+ * @ordered
+ */
+ protected static final String STANDARD_STRING_NO_DEFAULT_EDEFAULT = "";
+
+ /**
+ * The cached value of the '{@link #getStandardStringNoDefault() <em>Standard String No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStandardStringNoDefault()
+ * @generated
+ * @ordered
+ */
+ protected String standardStringNoDefault = STANDARD_STRING_NO_DEFAULT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getUnSettableStringWithDefault() <em>Un Settable String With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUnSettableStringWithDefault()
+ * @generated
+ * @ordered
+ */
+ protected static final String UN_SETTABLE_STRING_WITH_DEFAULT_EDEFAULT = "default";
+
+ /**
+ * The cached value of the '{@link #getUnSettableStringWithDefault() <em>Un Settable String With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUnSettableStringWithDefault()
+ * @generated
+ * @ordered
+ */
+ protected String unSettableStringWithDefault = UN_SETTABLE_STRING_WITH_DEFAULT_EDEFAULT;
+
+ /**
+ * This is true if the Un Settable String With Default attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean unSettableStringWithDefaultESet;
+
+ /**
+ * The default value of the '{@link #getStandardStringDefault() <em>Standard String Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStandardStringDefault()
+ * @generated
+ * @ordered
+ */
+ protected static final String STANDARD_STRING_DEFAULT_EDEFAULT = "default";
+
+ /**
+ * The cached value of the '{@link #getStandardStringDefault() <em>Standard String Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStandardStringDefault()
+ * @generated
+ * @ordered
+ */
+ protected String standardStringDefault = STANDARD_STRING_DEFAULT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getUnSettableEnum() <em>Un Settable Enum</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUnSettableEnum()
+ * @generated
+ * @ordered
+ */
+ protected static final TestEnum UN_SETTABLE_ENUM_EDEFAULT = TestEnum.LITERAL1;
+
+ /**
+ * The cached value of the '{@link #getUnSettableEnum() <em>Un Settable Enum</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUnSettableEnum()
+ * @generated
+ * @ordered
+ */
+ protected TestEnum unSettableEnum = UN_SETTABLE_ENUM_EDEFAULT;
+
+ /**
+ * This is true if the Un Settable Enum attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean unSettableEnumESet;
+
+ /**
+ * The default value of the '{@link #getStandardEnum() <em>Standard Enum</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStandardEnum()
+ * @generated
+ * @ordered
+ */
+ protected static final TestEnum STANDARD_ENUM_EDEFAULT = TestEnum.LITERAL1;
+
+ /**
+ * The cached value of the '{@link #getStandardEnum() <em>Standard Enum</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStandardEnum()
+ * @generated
+ * @ordered
+ */
+ protected TestEnum standardEnum = STANDARD_ENUM_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getUnSettablePrimitiveNoDefault() <em>Un Settable Primitive No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUnSettablePrimitiveNoDefault()
+ * @generated
+ * @ordered
+ */
+ protected static final long UN_SETTABLE_PRIMITIVE_NO_DEFAULT_EDEFAULT = 0L;
+
+ /**
+ * The cached value of the '{@link #getUnSettablePrimitiveNoDefault() <em>Un Settable Primitive No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUnSettablePrimitiveNoDefault()
+ * @generated
+ * @ordered
+ */
+ protected long unSettablePrimitiveNoDefault = UN_SETTABLE_PRIMITIVE_NO_DEFAULT_EDEFAULT;
+
+ /**
+ * This is true if the Un Settable Primitive No Default attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean unSettablePrimitiveNoDefaultESet;
+
+ /**
+ * The default value of the '{@link #getStandardPrimitiveNoDefault() <em>Standard Primitive No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStandardPrimitiveNoDefault()
+ * @generated
+ * @ordered
+ */
+ protected static final long STANDARD_PRIMITIVE_NO_DEFAULT_EDEFAULT = 0L;
+
+ /**
+ * The cached value of the '{@link #getStandardPrimitiveNoDefault() <em>Standard Primitive No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStandardPrimitiveNoDefault()
+ * @generated
+ * @ordered
+ */
+ protected long standardPrimitiveNoDefault = STANDARD_PRIMITIVE_NO_DEFAULT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getUnSettablePrimitiveWithDefault() <em>Un Settable Primitive With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUnSettablePrimitiveWithDefault()
+ * @generated
+ * @ordered
+ */
+ protected static final long UN_SETTABLE_PRIMITIVE_WITH_DEFAULT_EDEFAULT = 155L;
+
+ /**
+ * The cached value of the '{@link #getUnSettablePrimitiveWithDefault() <em>Un Settable Primitive With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUnSettablePrimitiveWithDefault()
+ * @generated
+ * @ordered
+ */
+ protected long unSettablePrimitiveWithDefault = UN_SETTABLE_PRIMITIVE_WITH_DEFAULT_EDEFAULT;
+
+ /**
+ * This is true if the Un Settable Primitive With Default attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean unSettablePrimitiveWithDefaultESet;
+
+ /**
+ * The default value of the '{@link #getStandardPrimitiveWithDefault() <em>Standard Primitive With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStandardPrimitiveWithDefault()
+ * @generated
+ * @ordered
+ */
+ protected static final long STANDARD_PRIMITIVE_WITH_DEFAULT_EDEFAULT = 155L;
+
+ /**
+ * The cached value of the '{@link #getStandardPrimitiveWithDefault() <em>Standard Primitive With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStandardPrimitiveWithDefault()
+ * @generated
+ * @ordered
+ */
+ protected long standardPrimitiveWithDefault = STANDARD_PRIMITIVE_WITH_DEFAULT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getUnSettableObjectPrimitiveWithDefault() <em>Un Settable Object Primitive With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUnSettableObjectPrimitiveWithDefault()
+ * @generated
+ * @ordered
+ */
+ protected static final Long UN_SETTABLE_OBJECT_PRIMITIVE_WITH_DEFAULT_EDEFAULT = new Long(155L);
+
+ /**
+ * The cached value of the '{@link #getUnSettableObjectPrimitiveWithDefault() <em>Un Settable Object Primitive With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUnSettableObjectPrimitiveWithDefault()
+ * @generated
+ * @ordered
+ */
+ protected Long unSettableObjectPrimitiveWithDefault = UN_SETTABLE_OBJECT_PRIMITIVE_WITH_DEFAULT_EDEFAULT;
+
+ /**
+ * This is true if the Un Settable Object Primitive With Default attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean unSettableObjectPrimitiveWithDefaultESet;
+
+ /**
+ * The default value of the '{@link #getStandardObjectPrimitiveWithDefault() <em>Standard Object Primitive With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStandardObjectPrimitiveWithDefault()
+ * @generated
+ * @ordered
+ */
+ protected static final Long STANDARD_OBJECT_PRIMITIVE_WITH_DEFAULT_EDEFAULT = new Long(155L);
+
+ /**
+ * The cached value of the '{@link #getStandardObjectPrimitiveWithDefault() <em>Standard Object Primitive With Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStandardObjectPrimitiveWithDefault()
+ * @generated
+ * @ordered
+ */
+ protected Long standardObjectPrimitiveWithDefault = STANDARD_OBJECT_PRIMITIVE_WITH_DEFAULT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getUnSettableObjectPrimitiveNoDefault() <em>Un Settable Object Primitive No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUnSettableObjectPrimitiveNoDefault()
+ * @generated
+ * @ordered
+ */
+ protected static final Long UN_SETTABLE_OBJECT_PRIMITIVE_NO_DEFAULT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getUnSettableObjectPrimitiveNoDefault() <em>Un Settable Object Primitive No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUnSettableObjectPrimitiveNoDefault()
+ * @generated
+ * @ordered
+ */
+ protected Long unSettableObjectPrimitiveNoDefault = UN_SETTABLE_OBJECT_PRIMITIVE_NO_DEFAULT_EDEFAULT;
+
+ /**
+ * This is true if the Un Settable Object Primitive No Default attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean unSettableObjectPrimitiveNoDefaultESet;
+
+ /**
+ * The default value of the '{@link #getStandardObjectPrimitiveNoDefault() <em>Standard Object Primitive No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStandardObjectPrimitiveNoDefault()
+ * @generated
+ * @ordered
+ */
+ protected static final Long STANDARD_OBJECT_PRIMITIVE_NO_DEFAULT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getStandardObjectPrimitiveNoDefault() <em>Standard Object Primitive No Default</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStandardObjectPrimitiveNoDefault()
+ * @generated
+ * @ordered
+ */
+ protected Long standardObjectPrimitiveNoDefault = STANDARD_OBJECT_PRIMITIVE_NO_DEFAULT_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ItemImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return Bz329275Package.Literals.ITEM;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public long getId() {
+ return id;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setId(long newId) {
+ long oldId = id;
+ id = newId;
+ boolean oldIdESet = idESet;
+ idESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Bz329275Package.ITEM__ID, oldId, id, !oldIdESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetId() {
+ long oldId = id;
+ boolean oldIdESet = idESet;
+ id = ID_EDEFAULT;
+ idESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, Bz329275Package.ITEM__ID, oldId, ID_EDEFAULT, oldIdESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetId() {
+ return idESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public long getVersion() {
+ return version;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setVersion(long newVersion) {
+ long oldVersion = version;
+ version = newVersion;
+ boolean oldVersionESet = versionESet;
+ versionESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Bz329275Package.ITEM__VERSION, oldVersion, version, !oldVersionESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetVersion() {
+ long oldVersion = version;
+ boolean oldVersionESet = versionESet;
+ version = VERSION_EDEFAULT;
+ versionESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, Bz329275Package.ITEM__VERSION, oldVersion, VERSION_EDEFAULT, oldVersionESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetVersion() {
+ return versionESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getUnSettableStringNoDefault() {
+ return unSettableStringNoDefault;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setUnSettableStringNoDefault(String newUnSettableStringNoDefault) {
+ String oldUnSettableStringNoDefault = unSettableStringNoDefault;
+ unSettableStringNoDefault = newUnSettableStringNoDefault;
+ boolean oldUnSettableStringNoDefaultESet = unSettableStringNoDefaultESet;
+ unSettableStringNoDefaultESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Bz329275Package.ITEM__UN_SETTABLE_STRING_NO_DEFAULT, oldUnSettableStringNoDefault, unSettableStringNoDefault, !oldUnSettableStringNoDefaultESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetUnSettableStringNoDefault() {
+ String oldUnSettableStringNoDefault = unSettableStringNoDefault;
+ boolean oldUnSettableStringNoDefaultESet = unSettableStringNoDefaultESet;
+ unSettableStringNoDefault = UN_SETTABLE_STRING_NO_DEFAULT_EDEFAULT;
+ unSettableStringNoDefaultESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, Bz329275Package.ITEM__UN_SETTABLE_STRING_NO_DEFAULT, oldUnSettableStringNoDefault, UN_SETTABLE_STRING_NO_DEFAULT_EDEFAULT, oldUnSettableStringNoDefaultESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetUnSettableStringNoDefault() {
+ return unSettableStringNoDefaultESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getStandardStringNoDefault() {
+ return standardStringNoDefault;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStandardStringNoDefault(String newStandardStringNoDefault) {
+ String oldStandardStringNoDefault = standardStringNoDefault;
+ standardStringNoDefault = newStandardStringNoDefault;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Bz329275Package.ITEM__STANDARD_STRING_NO_DEFAULT, oldStandardStringNoDefault, standardStringNoDefault));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getUnSettableStringWithDefault() {
+ return unSettableStringWithDefault;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setUnSettableStringWithDefault(String newUnSettableStringWithDefault) {
+ String oldUnSettableStringWithDefault = unSettableStringWithDefault;
+ unSettableStringWithDefault = newUnSettableStringWithDefault;
+ boolean oldUnSettableStringWithDefaultESet = unSettableStringWithDefaultESet;
+ unSettableStringWithDefaultESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Bz329275Package.ITEM__UN_SETTABLE_STRING_WITH_DEFAULT, oldUnSettableStringWithDefault, unSettableStringWithDefault, !oldUnSettableStringWithDefaultESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetUnSettableStringWithDefault() {
+ String oldUnSettableStringWithDefault = unSettableStringWithDefault;
+ boolean oldUnSettableStringWithDefaultESet = unSettableStringWithDefaultESet;
+ unSettableStringWithDefault = UN_SETTABLE_STRING_WITH_DEFAULT_EDEFAULT;
+ unSettableStringWithDefaultESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, Bz329275Package.ITEM__UN_SETTABLE_STRING_WITH_DEFAULT, oldUnSettableStringWithDefault, UN_SETTABLE_STRING_WITH_DEFAULT_EDEFAULT, oldUnSettableStringWithDefaultESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetUnSettableStringWithDefault() {
+ return unSettableStringWithDefaultESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getStandardStringDefault() {
+ return standardStringDefault;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStandardStringDefault(String newStandardStringDefault) {
+ String oldStandardStringDefault = standardStringDefault;
+ standardStringDefault = newStandardStringDefault;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Bz329275Package.ITEM__STANDARD_STRING_DEFAULT, oldStandardStringDefault, standardStringDefault));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public TestEnum getUnSettableEnum() {
+ return unSettableEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setUnSettableEnum(TestEnum newUnSettableEnum) {
+ TestEnum oldUnSettableEnum = unSettableEnum;
+ unSettableEnum = newUnSettableEnum == null ? UN_SETTABLE_ENUM_EDEFAULT : newUnSettableEnum;
+ boolean oldUnSettableEnumESet = unSettableEnumESet;
+ unSettableEnumESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Bz329275Package.ITEM__UN_SETTABLE_ENUM, oldUnSettableEnum, unSettableEnum, !oldUnSettableEnumESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetUnSettableEnum() {
+ TestEnum oldUnSettableEnum = unSettableEnum;
+ boolean oldUnSettableEnumESet = unSettableEnumESet;
+ unSettableEnum = UN_SETTABLE_ENUM_EDEFAULT;
+ unSettableEnumESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, Bz329275Package.ITEM__UN_SETTABLE_ENUM, oldUnSettableEnum, UN_SETTABLE_ENUM_EDEFAULT, oldUnSettableEnumESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetUnSettableEnum() {
+ return unSettableEnumESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public TestEnum getStandardEnum() {
+ return standardEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStandardEnum(TestEnum newStandardEnum) {
+ TestEnum oldStandardEnum = standardEnum;
+ standardEnum = newStandardEnum == null ? STANDARD_ENUM_EDEFAULT : newStandardEnum;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Bz329275Package.ITEM__STANDARD_ENUM, oldStandardEnum, standardEnum));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public long getUnSettablePrimitiveNoDefault() {
+ return unSettablePrimitiveNoDefault;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setUnSettablePrimitiveNoDefault(long newUnSettablePrimitiveNoDefault) {
+ long oldUnSettablePrimitiveNoDefault = unSettablePrimitiveNoDefault;
+ unSettablePrimitiveNoDefault = newUnSettablePrimitiveNoDefault;
+ boolean oldUnSettablePrimitiveNoDefaultESet = unSettablePrimitiveNoDefaultESet;
+ unSettablePrimitiveNoDefaultESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Bz329275Package.ITEM__UN_SETTABLE_PRIMITIVE_NO_DEFAULT, oldUnSettablePrimitiveNoDefault, unSettablePrimitiveNoDefault, !oldUnSettablePrimitiveNoDefaultESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetUnSettablePrimitiveNoDefault() {
+ long oldUnSettablePrimitiveNoDefault = unSettablePrimitiveNoDefault;
+ boolean oldUnSettablePrimitiveNoDefaultESet = unSettablePrimitiveNoDefaultESet;
+ unSettablePrimitiveNoDefault = UN_SETTABLE_PRIMITIVE_NO_DEFAULT_EDEFAULT;
+ unSettablePrimitiveNoDefaultESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, Bz329275Package.ITEM__UN_SETTABLE_PRIMITIVE_NO_DEFAULT, oldUnSettablePrimitiveNoDefault, UN_SETTABLE_PRIMITIVE_NO_DEFAULT_EDEFAULT, oldUnSettablePrimitiveNoDefaultESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetUnSettablePrimitiveNoDefault() {
+ return unSettablePrimitiveNoDefaultESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public long getStandardPrimitiveNoDefault() {
+ return standardPrimitiveNoDefault;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStandardPrimitiveNoDefault(long newStandardPrimitiveNoDefault) {
+ long oldStandardPrimitiveNoDefault = standardPrimitiveNoDefault;
+ standardPrimitiveNoDefault = newStandardPrimitiveNoDefault;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Bz329275Package.ITEM__STANDARD_PRIMITIVE_NO_DEFAULT, oldStandardPrimitiveNoDefault, standardPrimitiveNoDefault));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public long getUnSettablePrimitiveWithDefault() {
+ return unSettablePrimitiveWithDefault;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setUnSettablePrimitiveWithDefault(long newUnSettablePrimitiveWithDefault) {
+ long oldUnSettablePrimitiveWithDefault = unSettablePrimitiveWithDefault;
+ unSettablePrimitiveWithDefault = newUnSettablePrimitiveWithDefault;
+ boolean oldUnSettablePrimitiveWithDefaultESet = unSettablePrimitiveWithDefaultESet;
+ unSettablePrimitiveWithDefaultESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Bz329275Package.ITEM__UN_SETTABLE_PRIMITIVE_WITH_DEFAULT, oldUnSettablePrimitiveWithDefault, unSettablePrimitiveWithDefault, !oldUnSettablePrimitiveWithDefaultESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetUnSettablePrimitiveWithDefault() {
+ long oldUnSettablePrimitiveWithDefault = unSettablePrimitiveWithDefault;
+ boolean oldUnSettablePrimitiveWithDefaultESet = unSettablePrimitiveWithDefaultESet;
+ unSettablePrimitiveWithDefault = UN_SETTABLE_PRIMITIVE_WITH_DEFAULT_EDEFAULT;
+ unSettablePrimitiveWithDefaultESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, Bz329275Package.ITEM__UN_SETTABLE_PRIMITIVE_WITH_DEFAULT, oldUnSettablePrimitiveWithDefault, UN_SETTABLE_PRIMITIVE_WITH_DEFAULT_EDEFAULT, oldUnSettablePrimitiveWithDefaultESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetUnSettablePrimitiveWithDefault() {
+ return unSettablePrimitiveWithDefaultESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public long getStandardPrimitiveWithDefault() {
+ return standardPrimitiveWithDefault;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStandardPrimitiveWithDefault(long newStandardPrimitiveWithDefault) {
+ long oldStandardPrimitiveWithDefault = standardPrimitiveWithDefault;
+ standardPrimitiveWithDefault = newStandardPrimitiveWithDefault;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Bz329275Package.ITEM__STANDARD_PRIMITIVE_WITH_DEFAULT, oldStandardPrimitiveWithDefault, standardPrimitiveWithDefault));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Long getUnSettableObjectPrimitiveWithDefault() {
+ return unSettableObjectPrimitiveWithDefault;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setUnSettableObjectPrimitiveWithDefault(Long newUnSettableObjectPrimitiveWithDefault) {
+ Long oldUnSettableObjectPrimitiveWithDefault = unSettableObjectPrimitiveWithDefault;
+ unSettableObjectPrimitiveWithDefault = newUnSettableObjectPrimitiveWithDefault;
+ boolean oldUnSettableObjectPrimitiveWithDefaultESet = unSettableObjectPrimitiveWithDefaultESet;
+ unSettableObjectPrimitiveWithDefaultESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Bz329275Package.ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_WITH_DEFAULT, oldUnSettableObjectPrimitiveWithDefault, unSettableObjectPrimitiveWithDefault, !oldUnSettableObjectPrimitiveWithDefaultESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetUnSettableObjectPrimitiveWithDefault() {
+ Long oldUnSettableObjectPrimitiveWithDefault = unSettableObjectPrimitiveWithDefault;
+ boolean oldUnSettableObjectPrimitiveWithDefaultESet = unSettableObjectPrimitiveWithDefaultESet;
+ unSettableObjectPrimitiveWithDefault = UN_SETTABLE_OBJECT_PRIMITIVE_WITH_DEFAULT_EDEFAULT;
+ unSettableObjectPrimitiveWithDefaultESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, Bz329275Package.ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_WITH_DEFAULT, oldUnSettableObjectPrimitiveWithDefault, UN_SETTABLE_OBJECT_PRIMITIVE_WITH_DEFAULT_EDEFAULT, oldUnSettableObjectPrimitiveWithDefaultESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetUnSettableObjectPrimitiveWithDefault() {
+ return unSettableObjectPrimitiveWithDefaultESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Long getStandardObjectPrimitiveWithDefault() {
+ return standardObjectPrimitiveWithDefault;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStandardObjectPrimitiveWithDefault(Long newStandardObjectPrimitiveWithDefault) {
+ Long oldStandardObjectPrimitiveWithDefault = standardObjectPrimitiveWithDefault;
+ standardObjectPrimitiveWithDefault = newStandardObjectPrimitiveWithDefault;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Bz329275Package.ITEM__STANDARD_OBJECT_PRIMITIVE_WITH_DEFAULT, oldStandardObjectPrimitiveWithDefault, standardObjectPrimitiveWithDefault));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Long getUnSettableObjectPrimitiveNoDefault() {
+ return unSettableObjectPrimitiveNoDefault;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setUnSettableObjectPrimitiveNoDefault(Long newUnSettableObjectPrimitiveNoDefault) {
+ Long oldUnSettableObjectPrimitiveNoDefault = unSettableObjectPrimitiveNoDefault;
+ unSettableObjectPrimitiveNoDefault = newUnSettableObjectPrimitiveNoDefault;
+ boolean oldUnSettableObjectPrimitiveNoDefaultESet = unSettableObjectPrimitiveNoDefaultESet;
+ unSettableObjectPrimitiveNoDefaultESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Bz329275Package.ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_NO_DEFAULT, oldUnSettableObjectPrimitiveNoDefault, unSettableObjectPrimitiveNoDefault, !oldUnSettableObjectPrimitiveNoDefaultESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetUnSettableObjectPrimitiveNoDefault() {
+ Long oldUnSettableObjectPrimitiveNoDefault = unSettableObjectPrimitiveNoDefault;
+ boolean oldUnSettableObjectPrimitiveNoDefaultESet = unSettableObjectPrimitiveNoDefaultESet;
+ unSettableObjectPrimitiveNoDefault = UN_SETTABLE_OBJECT_PRIMITIVE_NO_DEFAULT_EDEFAULT;
+ unSettableObjectPrimitiveNoDefaultESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, Bz329275Package.ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_NO_DEFAULT, oldUnSettableObjectPrimitiveNoDefault, UN_SETTABLE_OBJECT_PRIMITIVE_NO_DEFAULT_EDEFAULT, oldUnSettableObjectPrimitiveNoDefaultESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetUnSettableObjectPrimitiveNoDefault() {
+ return unSettableObjectPrimitiveNoDefaultESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Long getStandardObjectPrimitiveNoDefault() {
+ return standardObjectPrimitiveNoDefault;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStandardObjectPrimitiveNoDefault(Long newStandardObjectPrimitiveNoDefault) {
+ Long oldStandardObjectPrimitiveNoDefault = standardObjectPrimitiveNoDefault;
+ standardObjectPrimitiveNoDefault = newStandardObjectPrimitiveNoDefault;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Bz329275Package.ITEM__STANDARD_OBJECT_PRIMITIVE_NO_DEFAULT, oldStandardObjectPrimitiveNoDefault, standardObjectPrimitiveNoDefault));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case Bz329275Package.ITEM__ID:
+ return getId();
+ case Bz329275Package.ITEM__VERSION:
+ return getVersion();
+ case Bz329275Package.ITEM__UN_SETTABLE_STRING_NO_DEFAULT:
+ return getUnSettableStringNoDefault();
+ case Bz329275Package.ITEM__STANDARD_STRING_NO_DEFAULT:
+ return getStandardStringNoDefault();
+ case Bz329275Package.ITEM__UN_SETTABLE_STRING_WITH_DEFAULT:
+ return getUnSettableStringWithDefault();
+ case Bz329275Package.ITEM__STANDARD_STRING_DEFAULT:
+ return getStandardStringDefault();
+ case Bz329275Package.ITEM__UN_SETTABLE_ENUM:
+ return getUnSettableEnum();
+ case Bz329275Package.ITEM__STANDARD_ENUM:
+ return getStandardEnum();
+ case Bz329275Package.ITEM__UN_SETTABLE_PRIMITIVE_NO_DEFAULT:
+ return getUnSettablePrimitiveNoDefault();
+ case Bz329275Package.ITEM__STANDARD_PRIMITIVE_NO_DEFAULT:
+ return getStandardPrimitiveNoDefault();
+ case Bz329275Package.ITEM__UN_SETTABLE_PRIMITIVE_WITH_DEFAULT:
+ return getUnSettablePrimitiveWithDefault();
+ case Bz329275Package.ITEM__STANDARD_PRIMITIVE_WITH_DEFAULT:
+ return getStandardPrimitiveWithDefault();
+ case Bz329275Package.ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_WITH_DEFAULT:
+ return getUnSettableObjectPrimitiveWithDefault();
+ case Bz329275Package.ITEM__STANDARD_OBJECT_PRIMITIVE_WITH_DEFAULT:
+ return getStandardObjectPrimitiveWithDefault();
+ case Bz329275Package.ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_NO_DEFAULT:
+ return getUnSettableObjectPrimitiveNoDefault();
+ case Bz329275Package.ITEM__STANDARD_OBJECT_PRIMITIVE_NO_DEFAULT:
+ return getStandardObjectPrimitiveNoDefault();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case Bz329275Package.ITEM__ID:
+ setId((Long)newValue);
+ return;
+ case Bz329275Package.ITEM__VERSION:
+ setVersion((Long)newValue);
+ return;
+ case Bz329275Package.ITEM__UN_SETTABLE_STRING_NO_DEFAULT:
+ setUnSettableStringNoDefault((String)newValue);
+ return;
+ case Bz329275Package.ITEM__STANDARD_STRING_NO_DEFAULT:
+ setStandardStringNoDefault((String)newValue);
+ return;
+ case Bz329275Package.ITEM__UN_SETTABLE_STRING_WITH_DEFAULT:
+ setUnSettableStringWithDefault((String)newValue);
+ return;
+ case Bz329275Package.ITEM__STANDARD_STRING_DEFAULT:
+ setStandardStringDefault((String)newValue);
+ return;
+ case Bz329275Package.ITEM__UN_SETTABLE_ENUM:
+ setUnSettableEnum((TestEnum)newValue);
+ return;
+ case Bz329275Package.ITEM__STANDARD_ENUM:
+ setStandardEnum((TestEnum)newValue);
+ return;
+ case Bz329275Package.ITEM__UN_SETTABLE_PRIMITIVE_NO_DEFAULT:
+ setUnSettablePrimitiveNoDefault((Long)newValue);
+ return;
+ case Bz329275Package.ITEM__STANDARD_PRIMITIVE_NO_DEFAULT:
+ setStandardPrimitiveNoDefault((Long)newValue);
+ return;
+ case Bz329275Package.ITEM__UN_SETTABLE_PRIMITIVE_WITH_DEFAULT:
+ setUnSettablePrimitiveWithDefault((Long)newValue);
+ return;
+ case Bz329275Package.ITEM__STANDARD_PRIMITIVE_WITH_DEFAULT:
+ setStandardPrimitiveWithDefault((Long)newValue);
+ return;
+ case Bz329275Package.ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_WITH_DEFAULT:
+ setUnSettableObjectPrimitiveWithDefault((Long)newValue);
+ return;
+ case Bz329275Package.ITEM__STANDARD_OBJECT_PRIMITIVE_WITH_DEFAULT:
+ setStandardObjectPrimitiveWithDefault((Long)newValue);
+ return;
+ case Bz329275Package.ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_NO_DEFAULT:
+ setUnSettableObjectPrimitiveNoDefault((Long)newValue);
+ return;
+ case Bz329275Package.ITEM__STANDARD_OBJECT_PRIMITIVE_NO_DEFAULT:
+ setStandardObjectPrimitiveNoDefault((Long)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case Bz329275Package.ITEM__ID:
+ unsetId();
+ return;
+ case Bz329275Package.ITEM__VERSION:
+ unsetVersion();
+ return;
+ case Bz329275Package.ITEM__UN_SETTABLE_STRING_NO_DEFAULT:
+ unsetUnSettableStringNoDefault();
+ return;
+ case Bz329275Package.ITEM__STANDARD_STRING_NO_DEFAULT:
+ setStandardStringNoDefault(STANDARD_STRING_NO_DEFAULT_EDEFAULT);
+ return;
+ case Bz329275Package.ITEM__UN_SETTABLE_STRING_WITH_DEFAULT:
+ unsetUnSettableStringWithDefault();
+ return;
+ case Bz329275Package.ITEM__STANDARD_STRING_DEFAULT:
+ setStandardStringDefault(STANDARD_STRING_DEFAULT_EDEFAULT);
+ return;
+ case Bz329275Package.ITEM__UN_SETTABLE_ENUM:
+ unsetUnSettableEnum();
+ return;
+ case Bz329275Package.ITEM__STANDARD_ENUM:
+ setStandardEnum(STANDARD_ENUM_EDEFAULT);
+ return;
+ case Bz329275Package.ITEM__UN_SETTABLE_PRIMITIVE_NO_DEFAULT:
+ unsetUnSettablePrimitiveNoDefault();
+ return;
+ case Bz329275Package.ITEM__STANDARD_PRIMITIVE_NO_DEFAULT:
+ setStandardPrimitiveNoDefault(STANDARD_PRIMITIVE_NO_DEFAULT_EDEFAULT);
+ return;
+ case Bz329275Package.ITEM__UN_SETTABLE_PRIMITIVE_WITH_DEFAULT:
+ unsetUnSettablePrimitiveWithDefault();
+ return;
+ case Bz329275Package.ITEM__STANDARD_PRIMITIVE_WITH_DEFAULT:
+ setStandardPrimitiveWithDefault(STANDARD_PRIMITIVE_WITH_DEFAULT_EDEFAULT);
+ return;
+ case Bz329275Package.ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_WITH_DEFAULT:
+ unsetUnSettableObjectPrimitiveWithDefault();
+ return;
+ case Bz329275Package.ITEM__STANDARD_OBJECT_PRIMITIVE_WITH_DEFAULT:
+ setStandardObjectPrimitiveWithDefault(STANDARD_OBJECT_PRIMITIVE_WITH_DEFAULT_EDEFAULT);
+ return;
+ case Bz329275Package.ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_NO_DEFAULT:
+ unsetUnSettableObjectPrimitiveNoDefault();
+ return;
+ case Bz329275Package.ITEM__STANDARD_OBJECT_PRIMITIVE_NO_DEFAULT:
+ setStandardObjectPrimitiveNoDefault(STANDARD_OBJECT_PRIMITIVE_NO_DEFAULT_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case Bz329275Package.ITEM__ID:
+ return isSetId();
+ case Bz329275Package.ITEM__VERSION:
+ return isSetVersion();
+ case Bz329275Package.ITEM__UN_SETTABLE_STRING_NO_DEFAULT:
+ return isSetUnSettableStringNoDefault();
+ case Bz329275Package.ITEM__STANDARD_STRING_NO_DEFAULT:
+ return STANDARD_STRING_NO_DEFAULT_EDEFAULT == null ? standardStringNoDefault != null : !STANDARD_STRING_NO_DEFAULT_EDEFAULT.equals(standardStringNoDefault);
+ case Bz329275Package.ITEM__UN_SETTABLE_STRING_WITH_DEFAULT:
+ return isSetUnSettableStringWithDefault();
+ case Bz329275Package.ITEM__STANDARD_STRING_DEFAULT:
+ return STANDARD_STRING_DEFAULT_EDEFAULT == null ? standardStringDefault != null : !STANDARD_STRING_DEFAULT_EDEFAULT.equals(standardStringDefault);
+ case Bz329275Package.ITEM__UN_SETTABLE_ENUM:
+ return isSetUnSettableEnum();
+ case Bz329275Package.ITEM__STANDARD_ENUM:
+ return standardEnum != STANDARD_ENUM_EDEFAULT;
+ case Bz329275Package.ITEM__UN_SETTABLE_PRIMITIVE_NO_DEFAULT:
+ return isSetUnSettablePrimitiveNoDefault();
+ case Bz329275Package.ITEM__STANDARD_PRIMITIVE_NO_DEFAULT:
+ return standardPrimitiveNoDefault != STANDARD_PRIMITIVE_NO_DEFAULT_EDEFAULT;
+ case Bz329275Package.ITEM__UN_SETTABLE_PRIMITIVE_WITH_DEFAULT:
+ return isSetUnSettablePrimitiveWithDefault();
+ case Bz329275Package.ITEM__STANDARD_PRIMITIVE_WITH_DEFAULT:
+ return standardPrimitiveWithDefault != STANDARD_PRIMITIVE_WITH_DEFAULT_EDEFAULT;
+ case Bz329275Package.ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_WITH_DEFAULT:
+ return isSetUnSettableObjectPrimitiveWithDefault();
+ case Bz329275Package.ITEM__STANDARD_OBJECT_PRIMITIVE_WITH_DEFAULT:
+ return STANDARD_OBJECT_PRIMITIVE_WITH_DEFAULT_EDEFAULT == null ? standardObjectPrimitiveWithDefault != null : !STANDARD_OBJECT_PRIMITIVE_WITH_DEFAULT_EDEFAULT.equals(standardObjectPrimitiveWithDefault);
+ case Bz329275Package.ITEM__UN_SETTABLE_OBJECT_PRIMITIVE_NO_DEFAULT:
+ return isSetUnSettableObjectPrimitiveNoDefault();
+ case Bz329275Package.ITEM__STANDARD_OBJECT_PRIMITIVE_NO_DEFAULT:
+ return STANDARD_OBJECT_PRIMITIVE_NO_DEFAULT_EDEFAULT == null ? standardObjectPrimitiveNoDefault != null : !STANDARD_OBJECT_PRIMITIVE_NO_DEFAULT_EDEFAULT.equals(standardObjectPrimitiveNoDefault);
+ }
+ 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(" (id: ");
+ if (idESet) result.append(id); else result.append("<unset>");
+ result.append(", version: ");
+ if (versionESet) result.append(version); else result.append("<unset>");
+ result.append(", unSettableStringNoDefault: ");
+ if (unSettableStringNoDefaultESet) result.append(unSettableStringNoDefault); else result.append("<unset>");
+ result.append(", standardStringNoDefault: ");
+ result.append(standardStringNoDefault);
+ result.append(", unSettableStringWithDefault: ");
+ if (unSettableStringWithDefaultESet) result.append(unSettableStringWithDefault); else result.append("<unset>");
+ result.append(", standardStringDefault: ");
+ result.append(standardStringDefault);
+ result.append(", unSettableEnum: ");
+ if (unSettableEnumESet) result.append(unSettableEnum); else result.append("<unset>");
+ result.append(", standardEnum: ");
+ result.append(standardEnum);
+ result.append(", unSettablePrimitiveNoDefault: ");
+ if (unSettablePrimitiveNoDefaultESet) result.append(unSettablePrimitiveNoDefault); else result.append("<unset>");
+ result.append(", standardPrimitiveNoDefault: ");
+ result.append(standardPrimitiveNoDefault);
+ result.append(", unSettablePrimitiveWithDefault: ");
+ if (unSettablePrimitiveWithDefaultESet) result.append(unSettablePrimitiveWithDefault); else result.append("<unset>");
+ result.append(", standardPrimitiveWithDefault: ");
+ result.append(standardPrimitiveWithDefault);
+ result.append(", unSettableObjectPrimitiveWithDefault: ");
+ if (unSettableObjectPrimitiveWithDefaultESet) result.append(unSettableObjectPrimitiveWithDefault); else result.append("<unset>");
+ result.append(", standardObjectPrimitiveWithDefault: ");
+ result.append(standardObjectPrimitiveWithDefault);
+ result.append(", unSettableObjectPrimitiveNoDefault: ");
+ if (unSettableObjectPrimitiveNoDefaultESet) result.append(unSettableObjectPrimitiveNoDefault); else result.append("<unset>");
+ result.append(", standardObjectPrimitiveNoDefault: ");
+ result.append(standardObjectPrimitiveNoDefault);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ItemImpl
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/model/bz329275.ecore b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/model/bz329275.ecore
new file mode 100644
index 000000000..ff590602e
--- /dev/null
+++ b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/model/bz329275.ecore
@@ -0,0 +1,57 @@
+<?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="bz329275"
+ nsURI="http://www.eclipse.org/emf/teneo/samples/issues/bz329275" nsPrefix="bz329275">
+ <eClassifiers xsi:type="ecore:EClass" name="Item">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long"
+ unsettable="true">
+ <eAnnotations source="teneo.jpa">
+ <details key="appinfo" value="@Id&#xA;@GeneratedValue"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="version" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long" unsettable="true">
+ <eAnnotations source="teneo.jpa">
+ <details key="appinfo" value="@Version"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="unSettableStringNoDefault"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral=""
+ unsettable="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="standardStringNoDefault"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral=""/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="unSettableStringWithDefault"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral="default"
+ unsettable="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="standardStringDefault"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral="default"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="unSettableEnum" eType="#//TestEnum"
+ unsettable="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="standardEnum" eType="#//TestEnum"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="unSettablePrimitiveNoDefault"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong" unsettable="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="standardPrimitiveNoDefault"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="unSettablePrimitiveWithDefault"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong" defaultValueLiteral="155"
+ unsettable="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="standardPrimitiveWithDefault"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong" defaultValueLiteral="155"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="unSettableObjectPrimitiveWithDefault"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELongObject"
+ defaultValueLiteral="155" unsettable="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="standardObjectPrimitiveWithDefault"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELongObject"
+ defaultValueLiteral="155"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="unSettableObjectPrimitiveNoDefault"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELongObject"
+ unsettable="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="standardObjectPrimitiveNoDefault"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELongObject"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="TestEnum">
+ <eLiterals name="Literal1"/>
+ <eLiterals name="Literal2" value="1"/>
+ </eClassifiers>
+</ecore:EPackage>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/model/bz329275.genmodel b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/model/bz329275.genmodel
new file mode 100644
index 000000000..8d707e246
--- /dev/null
+++ b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/model/bz329275.genmodel
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.teneo.samples/src"
+ modelPluginID="org.eclipse.emf.teneo.samples" modelName="Bz329275" importerID="org.eclipse.emf.importer.ecore"
+ complianceLevel="5.0" copyrightFields="false">
+ <foreignModel>bz329275.ecore</foreignModel>
+ <genPackages prefix="Bz329275" basePackage="org.eclipse.emf.teneo.samples.issues"
+ disposableProviderFactory="true" ecorePackage="bz329275.ecore#/">
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="bz329275.ecore#//TestEnum">
+ <genEnumLiterals ecoreEnumLiteral="bz329275.ecore#//TestEnum/Literal1"/>
+ <genEnumLiterals ecoreEnumLiteral="bz329275.ecore#//TestEnum/Literal2"/>
+ </genEnums>
+ <genClasses ecoreClass="bz329275.ecore#//Item">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute bz329275.ecore#//Item/id"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute bz329275.ecore#//Item/version"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute bz329275.ecore#//Item/unSettableStringNoDefault"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute bz329275.ecore#//Item/standardStringNoDefault"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute bz329275.ecore#//Item/unSettableStringWithDefault"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute bz329275.ecore#//Item/standardStringDefault"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute bz329275.ecore#//Item/unSettableEnum"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute bz329275.ecore#//Item/standardEnum"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute bz329275.ecore#//Item/unSettablePrimitiveNoDefault"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute bz329275.ecore#//Item/standardPrimitiveNoDefault"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute bz329275.ecore#//Item/unSettablePrimitiveWithDefault"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute bz329275.ecore#//Item/standardPrimitiveWithDefault"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute bz329275.ecore#//Item/unSettableObjectPrimitiveWithDefault"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute bz329275.ecore#//Item/standardObjectPrimitiveWithDefault"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute bz329275.ecore#//Item/unSettableObjectPrimitiveNoDefault"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute bz329275.ecore#//Item/standardObjectPrimitiveNoDefault"/>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/util/Bz329275AdapterFactory.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/util/Bz329275AdapterFactory.java
new file mode 100644
index 000000000..efef4b0cd
--- /dev/null
+++ b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/util/Bz329275AdapterFactory.java
@@ -0,0 +1,124 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: Bz329275AdapterFactory.java,v 1.1 2010/11/04 05:22:18 mtaal Exp $
+ */
+package org.eclipse.emf.teneo.samples.issues.bz329275.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.issues.bz329275.*;
+
+/**
+ * <!-- 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.issues.bz329275.Bz329275Package
+ * @generated
+ */
+public class Bz329275AdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static Bz329275Package modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Bz329275AdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = Bz329275Package.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 Bz329275Switch<Adapter> modelSwitch =
+ new Bz329275Switch<Adapter>() {
+ @Override
+ public Adapter caseItem(Item object) {
+ return createItemAdapter();
+ }
+ @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.issues.bz329275.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.issues.bz329275.Item
+ * @generated
+ */
+ public Adapter createItemAdapter() {
+ 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;
+ }
+
+} //Bz329275AdapterFactory
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/util/Bz329275Switch.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/util/Bz329275Switch.java
new file mode 100644
index 000000000..a324744bf
--- /dev/null
+++ b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/issues/bz329275/util/Bz329275Switch.java
@@ -0,0 +1,130 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: Bz329275Switch.java,v 1.1 2010/11/04 05:22:18 mtaal Exp $
+ */
+package org.eclipse.emf.teneo.samples.issues.bz329275.util;
+
+import java.util.List;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.emf.teneo.samples.issues.bz329275.*;
+
+/**
+ * <!-- 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.issues.bz329275.Bz329275Package
+ * @generated
+ */
+public class Bz329275Switch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static Bz329275Package modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Bz329275Switch() {
+ if (modelPackage == null) {
+ modelPackage = Bz329275Package.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 Bz329275Package.ITEM: {
+ Item item = (Item)theEObject;
+ T result = caseItem(item);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * 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>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;
+ }
+
+} //Bz329275Switch

Back to the top