From 7540847c6f32cc15d20d2dd2af03d2b2eee57e2b Mon Sep 17 00:00:00 2001 From: Eike Stepper Date: Sun, 6 Jan 2013 18:10:00 +0100 Subject: model2 --- .../.settings/org.eclipse.core.resources.prefs | 3 +- .../META-INF/MANIFEST.MF | 13 +- .../model/model2.legacy-genmodel | 321 --- .../model/model2.legacy.genmodel | 139 ++ .../emf/cdo/tests/legacy/model2/Model2Factory.java | 137 -- .../emf/cdo/tests/legacy/model2/Model2Package.java | 2379 -------------------- .../impl/EObjectToEObjectBothContainedMapImpl.java | 377 ---- .../impl/EObjectToEObjectKeyContainedMapImpl.java | 366 --- .../model2/impl/EObjectToEObjectMapImpl.java | 337 --- .../EObjectToEObjectValueContainedMapImpl.java | 366 --- .../legacy/model2/impl/EnumListHolderImpl.java | 169 -- .../legacy/model2/impl/IntegerToStringMapImpl.java | 329 --- .../tests/legacy/model2/impl/MapHolderImpl.java | 515 ----- .../legacy/model2/impl/Model2FactoryImpl.java | 374 --- .../legacy/model2/impl/Model2PackageImpl.java | 1785 --------------- .../legacy/model2/impl/NotUnsettableImpl.java | 771 ------- .../model2/impl/NotUnsettableWithDefaultImpl.java | 776 ------- .../model2/impl/PersistentContainmentImpl.java | 321 --- .../model2/impl/SpecialPurchaseOrderImpl.java | 282 --- .../impl/StringToAddressContainmentMapImpl.java | 371 --- .../impl/StringToAddressReferenceMapImpl.java | 345 --- .../legacy/model2/impl/StringToStringMapImpl.java | 329 --- .../legacy/model2/impl/StringToVATMapImpl.java | 330 --- .../legacy/model2/impl/TaskContainerImpl.java | 187 -- .../emf/cdo/tests/legacy/model2/impl/TaskImpl.java | 352 --- .../legacy/model2/impl/TransientContainerImpl.java | 357 --- .../tests/legacy/model2/impl/Unsettable1Impl.java | 1190 ---------- .../model2/impl/Unsettable2WithDefaultImpl.java | 1203 ---------- .../emf/cdo/tests/model2/EnumListHolder.java | 10 +- .../eclipse/emf/cdo/tests/model2/MapHolder.java | 64 +- .../emf/cdo/tests/model2/Model2Factory.java | 53 +- .../emf/cdo/tests/model2/Model2Package.java | 765 +++---- .../emf/cdo/tests/model2/NotUnsettable.java | 183 +- .../cdo/tests/model2/NotUnsettableWithDefault.java | 205 +- .../cdo/tests/model2/PersistentContainment.java | 49 +- .../emf/cdo/tests/model2/SpecialPurchaseOrder.java | 37 +- .../src/org/eclipse/emf/cdo/tests/model2/Task.java | 47 +- .../emf/cdo/tests/model2/TaskContainer.java | 17 +- .../emf/cdo/tests/model2/TransientContainer.java | 44 +- .../eclipse/emf/cdo/tests/model2/Unsettable1.java | 293 +-- .../cdo/tests/model2/Unsettable2WithDefault.java | 279 +-- .../impl/EObjectToEObjectBothContainedMapImpl.java | 21 +- .../impl/EObjectToEObjectKeyContainedMapImpl.java | 21 +- .../tests/model2/impl/EObjectToEObjectMapImpl.java | 21 +- .../EObjectToEObjectValueContainedMapImpl.java | 21 +- .../cdo/tests/model2/impl/EnumListHolderImpl.java | 4 - .../tests/model2/impl/IntegerToStringMapImpl.java | 21 +- .../emf/cdo/tests/model2/impl/MapHolderImpl.java | 38 +- .../cdo/tests/model2/impl/Model2FactoryImpl.java | 32 +- .../cdo/tests/model2/impl/Model2PackageImpl.java | 149 +- .../cdo/tests/model2/impl/NotUnsettableImpl.java | 58 +- .../model2/impl/NotUnsettableWithDefaultImpl.java | 60 +- .../model2/impl/PersistentContainmentImpl.java | 16 +- .../model2/impl/SpecialPurchaseOrderImpl.java | 13 +- .../impl/StringToAddressContainmentMapImpl.java | 21 +- .../impl/StringToAddressReferenceMapImpl.java | 21 +- .../tests/model2/impl/StringToStringMapImpl.java | 21 +- .../cdo/tests/model2/impl/StringToVATMapImpl.java | 15 - .../cdo/tests/model2/impl/TaskContainerImpl.java | 8 +- .../emf/cdo/tests/model2/impl/TaskImpl.java | 17 +- .../tests/model2/impl/TransientContainerImpl.java | 17 +- .../emf/cdo/tests/model2/impl/Unsettable1Impl.java | 71 +- .../model2/impl/Unsettable2WithDefaultImpl.java | 82 +- .../emf/cdo/tests/model2/legacy/Model2Factory.java | 140 ++ .../emf/cdo/tests/model2/legacy/Model2Package.java | 2259 +++++++++++++++++++ .../impl/EObjectToEObjectBothContainedMapImpl.java | 354 +++ .../impl/EObjectToEObjectKeyContainedMapImpl.java | 343 +++ .../legacy/impl/EObjectToEObjectMapImpl.java | 317 +++ .../EObjectToEObjectValueContainedMapImpl.java | 343 +++ .../model2/legacy/impl/EnumListHolderImpl.java | 161 ++ .../model2/legacy/impl/IntegerToStringMapImpl.java | 310 +++ .../tests/model2/legacy/impl/MapHolderImpl.java | 486 ++++ .../model2/legacy/impl/Model2FactoryImpl.java | 350 +++ .../model2/legacy/impl/Model2PackageImpl.java | 1656 ++++++++++++++ .../model2/legacy/impl/NotUnsettableImpl.java | 731 ++++++ .../legacy/impl/NotUnsettableWithDefaultImpl.java | 736 ++++++ .../legacy/impl/PersistentContainmentImpl.java | 306 +++ .../legacy/impl/SpecialPurchaseOrderImpl.java | 267 +++ .../impl/StringToAddressContainmentMapImpl.java | 349 +++ .../impl/StringToAddressReferenceMapImpl.java | 324 +++ .../model2/legacy/impl/StringToStringMapImpl.java | 310 +++ .../model2/legacy/impl/StringToVATMapImpl.java | 311 +++ .../model2/legacy/impl/TaskContainerImpl.java | 178 ++ .../emf/cdo/tests/model2/legacy/impl/TaskImpl.java | 335 +++ .../model2/legacy/impl/TransientContainerImpl.java | 340 +++ .../tests/model2/legacy/impl/Unsettable1Impl.java | 1134 ++++++++++ .../legacy/impl/Unsettable2WithDefaultImpl.java | 1141 ++++++++++ .../model2/legacy/util/Model2AdapterFactory.java | 595 +++++ .../cdo/tests/model2/legacy/util/Model2Switch.java | 646 ++++++ .../tests/model2/util/Model2AdapterFactory.java | 108 +- .../emf/cdo/tests/model2/util/Model2Switch.java | 141 +- 91 files changed, 15678 insertions(+), 16211 deletions(-) delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy-genmodel create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy.genmodel delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/Model2Factory.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/Model2Package.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EObjectToEObjectBothContainedMapImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EObjectToEObjectKeyContainedMapImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EObjectToEObjectMapImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EObjectToEObjectValueContainedMapImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EnumListHolderImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/IntegerToStringMapImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/MapHolderImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Model2FactoryImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Model2PackageImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/NotUnsettableImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/NotUnsettableWithDefaultImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/PersistentContainmentImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/SpecialPurchaseOrderImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/StringToAddressContainmentMapImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/StringToAddressReferenceMapImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/StringToStringMapImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/StringToVATMapImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/TaskContainerImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/TaskImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/TransientContainerImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Unsettable1Impl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Unsettable2WithDefaultImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/Model2Factory.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/Model2Package.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EObjectToEObjectBothContainedMapImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EObjectToEObjectKeyContainedMapImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EObjectToEObjectMapImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EObjectToEObjectValueContainedMapImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EnumListHolderImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/IntegerToStringMapImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/MapHolderImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Model2FactoryImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Model2PackageImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/NotUnsettableImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/NotUnsettableWithDefaultImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/PersistentContainmentImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/SpecialPurchaseOrderImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/StringToAddressContainmentMapImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/StringToAddressReferenceMapImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/StringToStringMapImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/StringToVATMapImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/TaskContainerImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/TaskImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/TransientContainerImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Unsettable1Impl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Unsettable2WithDefaultImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/util/Model2AdapterFactory.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/util/Model2Switch.java (limited to 'plugins/org.eclipse.emf.cdo.tests.model2') diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.emf.cdo.tests.model2/.settings/org.eclipse.core.resources.prefs index 6feac219db..d6987a77a9 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/.settings/org.eclipse.core.resources.prefs +++ b/plugins/org.eclipse.emf.cdo.tests.model2/.settings/org.eclipse.core.resources.prefs @@ -1,3 +1,2 @@ -#Mon Jul 04 12:59:15 CEST 2011 eclipse.preferences.version=1 - +encoding//model/model2.legacy.genmodel=UTF-8 diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.tests.model2/META-INF/MANIFEST.MF index a8ac9a5d40..e4c3cf05aa 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.emf.cdo.tests.model2/META-INF/MANIFEST.MF @@ -1,7 +1,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-SymbolicName: org.eclipse.emf.cdo.tests.model2; singleton:=true -Bundle-Version: 3.0.200.qualifier +Bundle-Version: 3.0.300.qualifier Bundle-Name: %pluginName Bundle-Vendor: %providerName Bundle-Localization: plugin @@ -11,8 +11,9 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)", org.eclipse.emf.ecore;bundle-version="[2.4.0,3.0.0)";visibility:=reexport, org.eclipse.emf.cdo;bundle-version="[4.0.0,5.0.0)";visibility:=reexport, org.eclipse.emf.cdo.tests.model1;bundle-version="[3.0.0,4.0.0)";visibility:=reexport -Export-Package: org.eclipse.emf.cdo.tests.legacy.model2;version="3.0.200", - org.eclipse.emf.cdo.tests.legacy.model2.impl;version="3.0.200", - org.eclipse.emf.cdo.tests.model2;version="3.0.200", - org.eclipse.emf.cdo.tests.model2.impl;version="3.0.200", - org.eclipse.emf.cdo.tests.model2.util;version="3.0.200" +Export-Package: org.eclipse.emf.cdo.tests.model2;version="3.0.300", + org.eclipse.emf.cdo.tests.model2.impl;version="3.0.300", + org.eclipse.emf.cdo.tests.model2.legacy;version="3.0.300", + org.eclipse.emf.cdo.tests.model2.legacy.impl;version="3.0.300", + org.eclipse.emf.cdo.tests.model2.legacy.util;version="3.0.300", + org.eclipse.emf.cdo.tests.model2.util;version="3.0.300" diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy-genmodel b/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy-genmodel deleted file mode 100644 index d3496b455e..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy-genmodel +++ /dev/null @@ -1,321 +0,0 @@ - - - model2.ecore - CDO=org.eclipse.emf.cdo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy.genmodel b/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy.genmodel new file mode 100644 index 0000000000..2a8b6981f8 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy.genmodel @@ -0,0 +1,139 @@ + + + model2.ecore + CDO=org.eclipse.emf.cdo + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/Model2Factory.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/Model2Factory.java deleted file mode 100644 index b0d17970d9..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/Model2Factory.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.emf.cdo.tests.legacy.model2; - -import org.eclipse.emf.cdo.tests.model2.EnumListHolder; -import org.eclipse.emf.cdo.tests.model2.MapHolder; -import org.eclipse.emf.cdo.tests.model2.NotUnsettable; -import org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault; -import org.eclipse.emf.cdo.tests.model2.PersistentContainment; -import org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder; -import org.eclipse.emf.cdo.tests.model2.Task; -import org.eclipse.emf.cdo.tests.model2.TaskContainer; -import org.eclipse.emf.cdo.tests.model2.TransientContainer; -import org.eclipse.emf.cdo.tests.model2.Unsettable1; -import org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault; - -/** - * The Factory for the model. It provides a create method for each non-abstract class of - * the model. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.Model2Package - * @generated - */ -public interface Model2Factory extends org.eclipse.emf.cdo.tests.model2.Model2Factory -{ - /** - * The singleton instance of the factory. - * - * @generated - */ - Model2Factory eINSTANCE = org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2FactoryImpl.init(); - - /** - * Returns a new object of class 'Special Purchase Order'. - * - * @return a new object of class 'Special Purchase Order'. - * @generated - */ - SpecialPurchaseOrder createSpecialPurchaseOrder(); - - /** - * Returns a new object of class 'Task Container'. - * - * @return a new object of class 'Task Container'. - * @generated - */ - TaskContainer createTaskContainer(); - - /** - * Returns a new object of class 'Task'. - * - * @return a new object of class 'Task'. - * @generated - */ - Task createTask(); - - /** - * Returns a new object of class 'Unsettable1'. - * - * @return a new object of class 'Unsettable1'. - * @generated - */ - Unsettable1 createUnsettable1(); - - /** - * Returns a new object of class 'Unsettable2 With Default'. - * - * @return a new object of class 'Unsettable2 With Default'. - * @generated - */ - Unsettable2WithDefault createUnsettable2WithDefault(); - - /** - * Returns a new object of class 'Persistent Containment'. - * - * @return a new object of class 'Persistent Containment'. - * @generated - */ - PersistentContainment createPersistentContainment(); - - /** - * Returns a new object of class 'Transient Container'. - * - * @return a new object of class 'Transient Container'. - * @generated - */ - TransientContainer createTransientContainer(); - - /** - * Returns a new object of class 'Not Unsettable'. - * - * @return a new object of class 'Not Unsettable'. - * @generated - */ - NotUnsettable createNotUnsettable(); - - /** - * Returns a new object of class 'Not Unsettable With Default'. - * - * @return a new object of class 'Not Unsettable With Default'. - * @generated - */ - NotUnsettableWithDefault createNotUnsettableWithDefault(); - - /** - * Returns a new object of class 'Map Holder'. - * - * @return a new object of class 'Map Holder'. - * @generated - */ - MapHolder createMapHolder(); - - /** - * Returns a new object of class 'Enum List Holder'. - * - * @return a new object of class 'Enum List Holder'. - * @generated - */ - EnumListHolder createEnumListHolder(); - - /** - * Returns the package supported by this factory. - * - * @return the package supported by this factory. - * @generated - */ - Model2Package getModel2Package(); - -} // Model2Factory diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/Model2Package.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/Model2Package.java deleted file mode 100644 index 30956bce8a..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/Model2Package.java +++ /dev/null @@ -1,2379 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.emf.cdo.tests.legacy.model2; - -import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EReference; - -/** - * The Package for the model. It contains accessors for the meta objects to represent - * - * - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.Model2Factory - * @model kind="package" - * @generated - */ -public interface Model2Package extends org.eclipse.emf.cdo.tests.model2.Model2Package -{ - /** - * The package name. - * - * @generated - */ - String eNAME = "model2"; - - /** - * The package namespace URI. - * - * @generated NOT - */ - String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/legacy/model2/1.0.0"; - - /** - * The package namespace name. - * - * @generated - */ - String eNS_PREFIX = "model2"; - - /** - * The singleton instance of the package. - * - * @generated - */ - Model2Package eINSTANCE = org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.SpecialPurchaseOrderImpl - * Special Purchase Order}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.SpecialPurchaseOrderImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getSpecialPurchaseOrder() - * @generated - */ - int SPECIAL_PURCHASE_ORDER = 0; - - /** - * The feature id for the 'Order Details' containment reference list. - * - * @generated - * @ordered - */ - int SPECIAL_PURCHASE_ORDER__ORDER_DETAILS = Model1Package.PURCHASE_ORDER__ORDER_DETAILS; - - /** - * The feature id for the 'Date' attribute. - * - * @generated - * @ordered - */ - int SPECIAL_PURCHASE_ORDER__DATE = Model1Package.PURCHASE_ORDER__DATE; - - /** - * The feature id for the 'Supplier' reference. - * - * @generated - * @ordered - */ - int SPECIAL_PURCHASE_ORDER__SUPPLIER = Model1Package.PURCHASE_ORDER__SUPPLIER; - - /** - * The feature id for the 'Discount Code' attribute. - * - * @generated - * @ordered - */ - int SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE = Model1Package.PURCHASE_ORDER_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Shipping Address' containment reference. - * - * @generated - * @ordered - */ - int SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS = Model1Package.PURCHASE_ORDER_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Special Purchase Order' class. - * - * @generated - * @ordered - */ - int SPECIAL_PURCHASE_ORDER_FEATURE_COUNT = Model1Package.PURCHASE_ORDER_FEATURE_COUNT + 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.TaskContainerImpl - * Task Container}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.TaskContainerImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getTaskContainer() - * @generated - */ - int TASK_CONTAINER = 1; - - /** - * The feature id for the 'Tasks' containment reference list. - * - * @generated - * @ordered - */ - int TASK_CONTAINER__TASKS = 0; - - /** - * The number of structural features of the 'Task Container' class. - * - * @generated - * @ordered - */ - int TASK_CONTAINER_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.TaskImpl Task}' class. - * - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.TaskImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getTask() - * @generated - */ - int TASK = 2; - - /** - * The feature id for the 'Task Container' container reference. - * - * @generated - * @ordered - */ - int TASK__TASK_CONTAINER = 0; - - /** - * The feature id for the 'Description' attribute. - * - * @generated - * @ordered - */ - int TASK__DESCRIPTION = 1; - - /** - * The feature id for the 'Done' attribute. - * - * @generated - * @ordered - */ - int TASK__DONE = 2; - - /** - * The number of structural features of the 'Task' class. - * - * @generated - * @ordered - */ - int TASK_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl - * Unsettable1}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getUnsettable1() - * @generated - */ - int UNSETTABLE1 = 3; - - /** - * The feature id for the 'Unsettable Boolean' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE1__UNSETTABLE_BOOLEAN = 0; - - /** - * The feature id for the 'Unsettable Byte' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE1__UNSETTABLE_BYTE = 1; - - /** - * The feature id for the 'Unsettable Char' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE1__UNSETTABLE_CHAR = 2; - - /** - * The feature id for the 'Unsettable Date' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE1__UNSETTABLE_DATE = 3; - - /** - * The feature id for the 'Unsettable Double' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE1__UNSETTABLE_DOUBLE = 4; - - /** - * The feature id for the 'Unsettable Float' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE1__UNSETTABLE_FLOAT = 5; - - /** - * The feature id for the 'Unsettable Int' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE1__UNSETTABLE_INT = 6; - - /** - * The feature id for the 'Unsettable Long' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE1__UNSETTABLE_LONG = 7; - - /** - * The feature id for the 'Unsettable Short' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE1__UNSETTABLE_SHORT = 8; - - /** - * The feature id for the 'Unsettable String' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE1__UNSETTABLE_STRING = 9; - - /** - * The feature id for the 'Unsettable VAT' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE1__UNSETTABLE_VAT = 10; - - /** - * The number of structural features of the 'Unsettable1' class. - * - * @generated - * @ordered - */ - int UNSETTABLE1_FEATURE_COUNT = 11; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl - * Unsettable2 With Default}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getUnsettable2WithDefault() - * @generated - */ - int UNSETTABLE2_WITH_DEFAULT = 4; - - /** - * The feature id for the 'Unsettable Boolean' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN = 0; - - /** - * The feature id for the 'Unsettable Byte' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE = 1; - - /** - * The feature id for the 'Unsettable Char' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR = 2; - - /** - * The feature id for the 'Unsettable Date' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE = 3; - - /** - * The feature id for the 'Unsettable Double' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE = 4; - - /** - * The feature id for the 'Unsettable Float' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT = 5; - - /** - * The feature id for the 'Unsettable Int' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT = 6; - - /** - * The feature id for the 'Unsettable Long' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG = 7; - - /** - * The feature id for the 'Unsettable Short' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT = 8; - - /** - * The feature id for the 'Unsettable String' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING = 9; - - /** - * The feature id for the 'Unsettable VAT' attribute. - * - * @generated - * @ordered - */ - int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT = 10; - - /** - * The number of structural features of the 'Unsettable2 With Default' class. - * - * @generated - * @ordered - */ - int UNSETTABLE2_WITH_DEFAULT_FEATURE_COUNT = 11; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.PersistentContainmentImpl - * Persistent Containment}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.PersistentContainmentImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getPersistentContainment() - * @generated - */ - int PERSISTENT_CONTAINMENT = 5; - - /** - * The feature id for the 'Attr Before' attribute. - * - * @generated - * @ordered - */ - int PERSISTENT_CONTAINMENT__ATTR_BEFORE = 0; - - /** - * The feature id for the 'Children' containment reference list. - * - * @generated - * @ordered - */ - int PERSISTENT_CONTAINMENT__CHILDREN = 1; - - /** - * The feature id for the 'Attr After' attribute. - * - * @generated - * @ordered - */ - int PERSISTENT_CONTAINMENT__ATTR_AFTER = 2; - - /** - * The number of structural features of the 'Persistent Containment' class. - * - * @generated - * @ordered - */ - int PERSISTENT_CONTAINMENT_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.TransientContainerImpl - * Transient Container}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.TransientContainerImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getTransientContainer() - * @generated - */ - int TRANSIENT_CONTAINER = 6; - - /** - * The feature id for the 'Attr Before' attribute. - * - * @generated - * @ordered - */ - int TRANSIENT_CONTAINER__ATTR_BEFORE = 0; - - /** - * The feature id for the 'Parent' container reference. - * - * @generated - * @ordered - */ - int TRANSIENT_CONTAINER__PARENT = 1; - - /** - * The feature id for the 'Attr After' attribute. - * - * @generated - * @ordered - */ - int TRANSIENT_CONTAINER__ATTR_AFTER = 2; - - /** - * The number of structural features of the 'Transient Container' class. - * - * @generated - * @ordered - */ - int TRANSIENT_CONTAINER_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableImpl - * Not Unsettable}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getNotUnsettable() - * @generated - */ - int NOT_UNSETTABLE = 7; - - /** - * The feature id for the 'Not Unsettable Boolean' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN = 0; - - /** - * The feature id for the 'Not Unsettable Byte' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE = 1; - - /** - * The feature id for the 'Not Unsettable Char' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR = 2; - - /** - * The feature id for the 'Not Unsettable Date' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE__NOT_UNSETTABLE_DATE = 3; - - /** - * The feature id for the 'Not Unsettable Double' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE = 4; - - /** - * The feature id for the 'Not Unsettable Float' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT = 5; - - /** - * The feature id for the 'Not Unsettable Int' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE__NOT_UNSETTABLE_INT = 6; - - /** - * The feature id for the 'Not Unsettable Long' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE__NOT_UNSETTABLE_LONG = 7; - - /** - * The feature id for the 'Not Unsettable Short' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT = 8; - - /** - * The feature id for the 'Not Unsettable String' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE__NOT_UNSETTABLE_STRING = 9; - - /** - * The feature id for the 'Not Unsettable VAT' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE__NOT_UNSETTABLE_VAT = 10; - - /** - * The number of structural features of the 'Not Unsettable' class. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE_FEATURE_COUNT = 11; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableWithDefaultImpl - * Not Unsettable With Default}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableWithDefaultImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getNotUnsettableWithDefault() - * @generated - */ - int NOT_UNSETTABLE_WITH_DEFAULT = 8; - - /** - * The feature id for the 'Not Unsettable Boolean' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BOOLEAN = 0; - - /** - * The feature id for the 'Not Unsettable Byte' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BYTE = 1; - - /** - * The feature id for the 'Not Unsettable Char' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_CHAR = 2; - - /** - * The feature id for the 'Not Unsettable Date' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DATE = 3; - - /** - * The feature id for the 'Not Unsettable Double' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DOUBLE = 4; - - /** - * The feature id for the 'Not Unsettable Float' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_FLOAT = 5; - - /** - * The feature id for the 'Not Unsettable Int' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_INT = 6; - - /** - * The feature id for the 'Not Unsettable Long' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_LONG = 7; - - /** - * The feature id for the 'Not Unsettable Short' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_SHORT = 8; - - /** - * The feature id for the 'Not Unsettable String' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_STRING = 9; - - /** - * The feature id for the 'Not Unsettable VAT' attribute. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_VAT = 10; - - /** - * The number of structural features of the 'Not Unsettable With Default' class. - * - * @generated - * @ordered - */ - int NOT_UNSETTABLE_WITH_DEFAULT_FEATURE_COUNT = 11; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.MapHolderImpl Map Holder}' - * class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.MapHolderImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getMapHolder() - * @generated - */ - int MAP_HOLDER = 9; - - /** - * The feature id for the 'Integer To String Map' map. - * - * @generated - * @ordered - */ - int MAP_HOLDER__INTEGER_TO_STRING_MAP = 0; - - /** - * The feature id for the 'String To String Map' map. - * - * @generated - * @ordered - */ - int MAP_HOLDER__STRING_TO_STRING_MAP = 1; - - /** - * The feature id for the 'String To VAT Map' map. - * - * @generated - * @ordered - */ - int MAP_HOLDER__STRING_TO_VAT_MAP = 2; - - /** - * The feature id for the 'String To Address Containment Map' map. - * - * @generated - * @ordered - */ - int MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP = 3; - - /** - * The feature id for the 'String To Address Reference Map' map. - * - * @generated - * @ordered - */ - int MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP = 4; - - /** - * The feature id for the 'EObject To EObject Map' map. - * - * @generated - * @ordered - */ - int MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP = 5; - - /** - * The feature id for the 'EObject To EObject Key Contained Map' map. - * - * @generated - * @ordered - */ - int MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP = 6; - - /** - * The feature id for the 'EObject To EObject Both Contained Map' map. - * - * @generated - * @ordered - */ - int MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP = 7; - - /** - * The feature id for the 'EObject To EObject Value Contained Map' map. - * - * @generated - * @ordered - */ - int MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP = 8; - - /** - * The number of structural features of the 'Map Holder' class. - * - * @generated - * @ordered - */ - int MAP_HOLDER_FEATURE_COUNT = 9; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToStringMapImpl - * String To String Map}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToStringMapImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getStringToStringMap() - * @generated - */ - int STRING_TO_STRING_MAP = 10; - - /** - * The feature id for the 'Key' attribute. - * - * @generated - * @ordered - */ - int STRING_TO_STRING_MAP__KEY = 0; - - /** - * The feature id for the 'Value' attribute. - * - * @generated - * @ordered - */ - int STRING_TO_STRING_MAP__VALUE = 1; - - /** - * The number of structural features of the 'String To String Map' class. - * - * @generated - * @ordered - */ - int STRING_TO_STRING_MAP_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.IntegerToStringMapImpl - * Integer To String Map}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.IntegerToStringMapImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getIntegerToStringMap() - * @generated - */ - int INTEGER_TO_STRING_MAP = 11; - - /** - * The feature id for the 'Key' attribute. - * - * @generated - * @ordered - */ - int INTEGER_TO_STRING_MAP__KEY = 0; - - /** - * The feature id for the 'Value' attribute. - * - * @generated - * @ordered - */ - int INTEGER_TO_STRING_MAP__VALUE = 1; - - /** - * The number of structural features of the 'Integer To String Map' class. - * - * @generated - * @ordered - */ - int INTEGER_TO_STRING_MAP_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToVATMapImpl - * String To VAT Map}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToVATMapImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getStringToVATMap() - * @generated - */ - int STRING_TO_VAT_MAP = 12; - - /** - * The feature id for the 'Key' attribute. - * - * @generated - * @ordered - */ - int STRING_TO_VAT_MAP__KEY = 0; - - /** - * The feature id for the 'Value' attribute. - * - * @generated - * @ordered - */ - int STRING_TO_VAT_MAP__VALUE = 1; - - /** - * The number of structural features of the 'String To VAT Map' class. - * - * @generated - * @ordered - */ - int STRING_TO_VAT_MAP_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToAddressContainmentMapImpl - * String To Address Containment Map}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToAddressContainmentMapImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getStringToAddressContainmentMap() - * @generated - */ - int STRING_TO_ADDRESS_CONTAINMENT_MAP = 13; - - /** - * The feature id for the 'Key' attribute. - * - * @generated - * @ordered - */ - int STRING_TO_ADDRESS_CONTAINMENT_MAP__KEY = 0; - - /** - * The feature id for the 'Value' containment reference. - * - * @generated - * @ordered - */ - int STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE = 1; - - /** - * The number of structural features of the 'String To Address Containment Map' class. - * - * @generated - * @ordered - */ - int STRING_TO_ADDRESS_CONTAINMENT_MAP_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToAddressReferenceMapImpl - * String To Address Reference Map}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToAddressReferenceMapImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getStringToAddressReferenceMap() - * @generated - */ - int STRING_TO_ADDRESS_REFERENCE_MAP = 14; - - /** - * The feature id for the 'Key' attribute. - * - * @generated - * @ordered - */ - int STRING_TO_ADDRESS_REFERENCE_MAP__KEY = 0; - - /** - * The feature id for the 'Value' reference. - * - * @generated - * @ordered - */ - int STRING_TO_ADDRESS_REFERENCE_MAP__VALUE = 1; - - /** - * The number of structural features of the 'String To Address Reference Map' class. - * - * - * @generated - * @ordered - */ - int STRING_TO_ADDRESS_REFERENCE_MAP_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.EObjectToEObjectMapImpl - * EObject To EObject Map}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.EObjectToEObjectMapImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getEObjectToEObjectMap() - * @generated - */ - int EOBJECT_TO_EOBJECT_MAP = 15; - - /** - * The feature id for the 'Key' reference. - * - * @generated - * @ordered - */ - int EOBJECT_TO_EOBJECT_MAP__KEY = 0; - - /** - * The feature id for the 'Value' reference. - * - * @generated - * @ordered - */ - int EOBJECT_TO_EOBJECT_MAP__VALUE = 1; - - /** - * The number of structural features of the 'EObject To EObject Map' class. - * - * @generated - * @ordered - */ - int EOBJECT_TO_EOBJECT_MAP_FEATURE_COUNT = 2; - - /** - * The meta object id for the ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.EObjectToEObjectKeyContainedMapImpl - * EObject To EObject Key Contained Map}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.EObjectToEObjectKeyContainedMapImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getEObjectToEObjectKeyContainedMap() - * @generated - */ - int EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP = 16; - - /** - * The feature id for the 'Key' containment reference. - * - * @generated - * @ordered - */ - int EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY = 0; - - /** - * The feature id for the 'Value' reference. - * - * @generated - * @ordered - */ - int EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE = 1; - - /** - * The number of structural features of the 'EObject To EObject Key Contained Map' class. - * - * @generated - * @ordered - */ - int EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP_FEATURE_COUNT = 2; - - /** - * The meta object id for the ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.EObjectToEObjectBothContainedMapImpl - * EObject To EObject Both Contained Map}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.EObjectToEObjectBothContainedMapImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getEObjectToEObjectBothContainedMap() - * @generated - */ - int EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP = 17; - - /** - * The feature id for the 'Key' containment reference. - * - * @generated - * @ordered - */ - int EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY = 0; - - /** - * The feature id for the 'Value' containment reference. - * - * @generated - * @ordered - */ - int EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE = 1; - - /** - * The number of structural features of the 'EObject To EObject Both Contained Map' class. - * - * @generated - * @ordered - */ - int EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP_FEATURE_COUNT = 2; - - /** - * The meta object id for the ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.EObjectToEObjectValueContainedMapImpl - * EObject To EObject Value Contained Map}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.EObjectToEObjectValueContainedMapImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getEObjectToEObjectValueContainedMap() - * @generated - */ - int EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP = 18; - - /** - * The feature id for the 'Key' reference. - * - * @generated - * @ordered - */ - int EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY = 0; - - /** - * The feature id for the 'Value' containment reference. - * - * @generated - * @ordered - */ - int EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE = 1; - - /** - * The number of structural features of the 'EObject To EObject Value Contained Map' class. - * - * @generated - * @ordered - */ - int EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.EnumListHolderImpl - * Enum List Holder}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.EnumListHolderImpl - * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getEnumListHolder() - * @generated - */ - int ENUM_LIST_HOLDER = 19; - - /** - * The feature id for the 'Enum List' attribute list. - * - * @generated - * @ordered - */ - int ENUM_LIST_HOLDER__ENUM_LIST = 0; - - /** - * The number of structural features of the 'Enum List Holder' class. - * - * @generated - * @ordered - */ - int ENUM_LIST_HOLDER_FEATURE_COUNT = 1; - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.SpecialPurchaseOrder - * Special Purchase Order}'. - * - * @return the meta object for class 'Special Purchase Order'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.SpecialPurchaseOrder - * @generated - */ - EClass getSpecialPurchaseOrder(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.SpecialPurchaseOrder#getDiscountCode Discount Code}'. - * - * @return the meta object for the attribute 'Discount Code'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.SpecialPurchaseOrder#getDiscountCode() - * @see #getSpecialPurchaseOrder() - * @generated - */ - EAttribute getSpecialPurchaseOrder_DiscountCode(); - - /** - * Returns the meta object for the containment reference ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.SpecialPurchaseOrder#getShippingAddress Shipping Address}'. - * - * - * @return the meta object for the containment reference 'Shipping Address'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.SpecialPurchaseOrder#getShippingAddress() - * @see #getSpecialPurchaseOrder() - * @generated - */ - EReference getSpecialPurchaseOrder_ShippingAddress(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.TaskContainer - * Task Container}'. - * - * @return the meta object for class 'Task Container'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.TaskContainer - * @generated - */ - EClass getTaskContainer(); - - /** - * Returns the meta object for the containment reference list ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.TaskContainer#getTasks Tasks}'. - * - * - * @return the meta object for the containment reference list 'Tasks'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.TaskContainer#getTasks() - * @see #getTaskContainer() - * @generated - */ - EReference getTaskContainer_Tasks(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.Task Task}'. - * - * @return the meta object for class 'Task'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Task - * @generated - */ - EClass getTask(); - - /** - * Returns the meta object for the container reference ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Task#getTaskContainer Task Container}'. - * - * @return the meta object for the container reference 'Task Container'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Task#getTaskContainer() - * @see #getTask() - * @generated - */ - EReference getTask_TaskContainer(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.legacy.model2.Task#getDescription - * Description}'. - * - * @return the meta object for the attribute 'Description'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Task#getDescription() - * @see #getTask() - * @generated - */ - EAttribute getTask_Description(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.legacy.model2.Task#isDone - * Done}'. - * - * @return the meta object for the attribute 'Done'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Task#isDone() - * @see #getTask() - * @generated - */ - EAttribute getTask_Done(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1 Unsettable1} - * '. - * - * @return the meta object for class 'Unsettable1'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1 - * @generated - */ - EClass getUnsettable1(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#isUnsettableBoolean Unsettable Boolean}'. - * - * @return the meta object for the attribute 'Unsettable Boolean'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#isUnsettableBoolean() - * @see #getUnsettable1() - * @generated - */ - EAttribute getUnsettable1_UnsettableBoolean(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableByte Unsettable Byte}'. - * - * @return the meta object for the attribute 'Unsettable Byte'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableByte() - * @see #getUnsettable1() - * @generated - */ - EAttribute getUnsettable1_UnsettableByte(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableChar Unsettable Char}'. - * - * @return the meta object for the attribute 'Unsettable Char'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableChar() - * @see #getUnsettable1() - * @generated - */ - EAttribute getUnsettable1_UnsettableChar(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableDate Unsettable Date}'. - * - * @return the meta object for the attribute 'Unsettable Date'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableDate() - * @see #getUnsettable1() - * @generated - */ - EAttribute getUnsettable1_UnsettableDate(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableDouble Unsettable Double}'. - * - * @return the meta object for the attribute 'Unsettable Double'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableDouble() - * @see #getUnsettable1() - * @generated - */ - EAttribute getUnsettable1_UnsettableDouble(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableFloat Unsettable Float}'. - * - * @return the meta object for the attribute 'Unsettable Float'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableFloat() - * @see #getUnsettable1() - * @generated - */ - EAttribute getUnsettable1_UnsettableFloat(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableInt Unsettable Int}'. - * - * @return the meta object for the attribute 'Unsettable Int'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableInt() - * @see #getUnsettable1() - * @generated - */ - EAttribute getUnsettable1_UnsettableInt(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableLong Unsettable Long}'. - * - * @return the meta object for the attribute 'Unsettable Long'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableLong() - * @see #getUnsettable1() - * @generated - */ - EAttribute getUnsettable1_UnsettableLong(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableShort Unsettable Short}'. - * - * @return the meta object for the attribute 'Unsettable Short'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableShort() - * @see #getUnsettable1() - * @generated - */ - EAttribute getUnsettable1_UnsettableShort(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableString Unsettable String}'. - * - * @return the meta object for the attribute 'Unsettable String'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableString() - * @see #getUnsettable1() - * @generated - */ - EAttribute getUnsettable1_UnsettableString(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableVAT Unsettable VAT}'. - * - * @return the meta object for the attribute 'Unsettable VAT'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableVAT() - * @see #getUnsettable1() - * @generated - */ - EAttribute getUnsettable1_UnsettableVAT(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault - * Unsettable2 With Default}'. - * - * @return the meta object for class 'Unsettable2 With Default'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault - * @generated - */ - EClass getUnsettable2WithDefault(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#isUnsettableBoolean - * Unsettable Boolean}'. - * - * @return the meta object for the attribute 'Unsettable Boolean'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#isUnsettableBoolean() - * @see #getUnsettable2WithDefault() - * @generated - */ - EAttribute getUnsettable2WithDefault_UnsettableBoolean(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableByte Unsettable Byte}'. - * - * - * @return the meta object for the attribute 'Unsettable Byte'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableByte() - * @see #getUnsettable2WithDefault() - * @generated - */ - EAttribute getUnsettable2WithDefault_UnsettableByte(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableChar Unsettable Char}'. - * - * - * @return the meta object for the attribute 'Unsettable Char'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableChar() - * @see #getUnsettable2WithDefault() - * @generated - */ - EAttribute getUnsettable2WithDefault_UnsettableChar(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableDate Unsettable Date}'. - * - * - * @return the meta object for the attribute 'Unsettable Date'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableDate() - * @see #getUnsettable2WithDefault() - * @generated - */ - EAttribute getUnsettable2WithDefault_UnsettableDate(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableDouble - * Unsettable Double}'. - * - * @return the meta object for the attribute 'Unsettable Double'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableDouble() - * @see #getUnsettable2WithDefault() - * @generated - */ - EAttribute getUnsettable2WithDefault_UnsettableDouble(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableFloat Unsettable Float} - * '. - * - * @return the meta object for the attribute 'Unsettable Float'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableFloat() - * @see #getUnsettable2WithDefault() - * @generated - */ - EAttribute getUnsettable2WithDefault_UnsettableFloat(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableInt Unsettable Int}'. - * - * - * @return the meta object for the attribute 'Unsettable Int'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableInt() - * @see #getUnsettable2WithDefault() - * @generated - */ - EAttribute getUnsettable2WithDefault_UnsettableInt(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableLong Unsettable Long}'. - * - * - * @return the meta object for the attribute 'Unsettable Long'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableLong() - * @see #getUnsettable2WithDefault() - * @generated - */ - EAttribute getUnsettable2WithDefault_UnsettableLong(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableShort Unsettable Short} - * '. - * - * @return the meta object for the attribute 'Unsettable Short'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableShort() - * @see #getUnsettable2WithDefault() - * @generated - */ - EAttribute getUnsettable2WithDefault_UnsettableShort(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableString - * Unsettable String}'. - * - * @return the meta object for the attribute 'Unsettable String'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableString() - * @see #getUnsettable2WithDefault() - * @generated - */ - EAttribute getUnsettable2WithDefault_UnsettableString(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableVAT Unsettable VAT}'. - * - * - * @return the meta object for the attribute 'Unsettable VAT'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableVAT() - * @see #getUnsettable2WithDefault() - * @generated - */ - EAttribute getUnsettable2WithDefault_UnsettableVAT(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment - * Persistent Containment}'. - * - * @return the meta object for class 'Persistent Containment'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment - * @generated - */ - EClass getPersistentContainment(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getAttrBefore Attr Before}'. - * - * @return the meta object for the attribute 'Attr Before'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getAttrBefore() - * @see #getPersistentContainment() - * @generated - */ - EAttribute getPersistentContainment_AttrBefore(); - - /** - * Returns the meta object for the containment reference list ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getChildren Children}'. - * - * @return the meta object for the containment reference list 'Children'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getChildren() - * @see #getPersistentContainment() - * @generated - */ - EReference getPersistentContainment_Children(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getAttrAfter Attr After}'. - * - * @return the meta object for the attribute 'Attr After'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getAttrAfter() - * @see #getPersistentContainment() - * @generated - */ - EAttribute getPersistentContainment_AttrAfter(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer - * Transient Container}'. - * - * @return the meta object for class 'Transient Container'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer - * @generated - */ - EClass getTransientContainer(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer#getAttrBefore Attr Before}'. - * - * @return the meta object for the attribute 'Attr Before'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer#getAttrBefore() - * @see #getTransientContainer() - * @generated - */ - EAttribute getTransientContainer_AttrBefore(); - - /** - * Returns the meta object for the container reference ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer#getParent Parent}'. - * - * @return the meta object for the container reference 'Parent'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer#getParent() - * @see #getTransientContainer() - * @generated - */ - EReference getTransientContainer_Parent(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer#getAttrAfter Attr After}'. - * - * @return the meta object for the attribute 'Attr After'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer#getAttrAfter() - * @see #getTransientContainer() - * @generated - */ - EAttribute getTransientContainer_AttrAfter(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable - * Not Unsettable}'. - * - * @return the meta object for class 'Not Unsettable'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable - * @generated - */ - EClass getNotUnsettable(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#isNotUnsettableBoolean - * Not Unsettable Boolean}'. - * - * @return the meta object for the attribute 'Not Unsettable Boolean'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#isNotUnsettableBoolean() - * @see #getNotUnsettable() - * @generated - */ - EAttribute getNotUnsettable_NotUnsettableBoolean(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableByte Not Unsettable Byte}'. - * - * - * @return the meta object for the attribute 'Not Unsettable Byte'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableByte() - * @see #getNotUnsettable() - * @generated - */ - EAttribute getNotUnsettable_NotUnsettableByte(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableChar Not Unsettable Char}'. - * - * - * @return the meta object for the attribute 'Not Unsettable Char'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableChar() - * @see #getNotUnsettable() - * @generated - */ - EAttribute getNotUnsettable_NotUnsettableChar(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableDate Not Unsettable Date}'. - * - * - * @return the meta object for the attribute 'Not Unsettable Date'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableDate() - * @see #getNotUnsettable() - * @generated - */ - EAttribute getNotUnsettable_NotUnsettableDate(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableDouble Not Unsettable Double} - * '. - * - * @return the meta object for the attribute 'Not Unsettable Double'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableDouble() - * @see #getNotUnsettable() - * @generated - */ - EAttribute getNotUnsettable_NotUnsettableDouble(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableFloat Not Unsettable Float}'. - * - * - * @return the meta object for the attribute 'Not Unsettable Float'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableFloat() - * @see #getNotUnsettable() - * @generated - */ - EAttribute getNotUnsettable_NotUnsettableFloat(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableInt Not Unsettable Int}'. - * - * - * @return the meta object for the attribute 'Not Unsettable Int'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableInt() - * @see #getNotUnsettable() - * @generated - */ - EAttribute getNotUnsettable_NotUnsettableInt(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableLong Not Unsettable Long}'. - * - * - * @return the meta object for the attribute 'Not Unsettable Long'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableLong() - * @see #getNotUnsettable() - * @generated - */ - EAttribute getNotUnsettable_NotUnsettableLong(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableShort Not Unsettable Short}'. - * - * - * @return the meta object for the attribute 'Not Unsettable Short'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableShort() - * @see #getNotUnsettable() - * @generated - */ - EAttribute getNotUnsettable_NotUnsettableShort(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableString Not Unsettable String} - * '. - * - * @return the meta object for the attribute 'Not Unsettable String'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableString() - * @see #getNotUnsettable() - * @generated - */ - EAttribute getNotUnsettable_NotUnsettableString(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableVAT Not Unsettable VAT}'. - * - * - * @return the meta object for the attribute 'Not Unsettable VAT'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettable#getNotUnsettableVAT() - * @see #getNotUnsettable() - * @generated - */ - EAttribute getNotUnsettable_NotUnsettableVAT(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault - * Not Unsettable With Default}'. - * - * @return the meta object for class 'Not Unsettable With Default'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault - * @generated - */ - EClass getNotUnsettableWithDefault(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#isNotUnsettableBoolean - * Not Unsettable Boolean}'. - * - * @return the meta object for the attribute 'Not Unsettable Boolean'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#isNotUnsettableBoolean() - * @see #getNotUnsettableWithDefault() - * @generated - */ - EAttribute getNotUnsettableWithDefault_NotUnsettableBoolean(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableByte - * Not Unsettable Byte}'. - * - * @return the meta object for the attribute 'Not Unsettable Byte'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableByte() - * @see #getNotUnsettableWithDefault() - * @generated - */ - EAttribute getNotUnsettableWithDefault_NotUnsettableByte(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableChar - * Not Unsettable Char}'. - * - * @return the meta object for the attribute 'Not Unsettable Char'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableChar() - * @see #getNotUnsettableWithDefault() - * @generated - */ - EAttribute getNotUnsettableWithDefault_NotUnsettableChar(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableDate - * Not Unsettable Date}'. - * - * @return the meta object for the attribute 'Not Unsettable Date'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableDate() - * @see #getNotUnsettableWithDefault() - * @generated - */ - EAttribute getNotUnsettableWithDefault_NotUnsettableDate(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableDouble - * Not Unsettable Double}'. - * - * @return the meta object for the attribute 'Not Unsettable Double'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableDouble() - * @see #getNotUnsettableWithDefault() - * @generated - */ - EAttribute getNotUnsettableWithDefault_NotUnsettableDouble(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableFloat - * Not Unsettable Float}'. - * - * @return the meta object for the attribute 'Not Unsettable Float'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableFloat() - * @see #getNotUnsettableWithDefault() - * @generated - */ - EAttribute getNotUnsettableWithDefault_NotUnsettableFloat(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableInt - * Not Unsettable Int}'. - * - * @return the meta object for the attribute 'Not Unsettable Int'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableInt() - * @see #getNotUnsettableWithDefault() - * @generated - */ - EAttribute getNotUnsettableWithDefault_NotUnsettableInt(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableLong - * Not Unsettable Long}'. - * - * @return the meta object for the attribute 'Not Unsettable Long'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableLong() - * @see #getNotUnsettableWithDefault() - * @generated - */ - EAttribute getNotUnsettableWithDefault_NotUnsettableLong(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableShort - * Not Unsettable Short}'. - * - * @return the meta object for the attribute 'Not Unsettable Short'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableShort() - * @see #getNotUnsettableWithDefault() - * @generated - */ - EAttribute getNotUnsettableWithDefault_NotUnsettableShort(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableString - * Not Unsettable String}'. - * - * @return the meta object for the attribute 'Not Unsettable String'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableString() - * @see #getNotUnsettableWithDefault() - * @generated - */ - EAttribute getNotUnsettableWithDefault_NotUnsettableString(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableVAT - * Not Unsettable VAT}'. - * - * @return the meta object for the attribute 'Not Unsettable VAT'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.NotUnsettableWithDefault#getNotUnsettableVAT() - * @see #getNotUnsettableWithDefault() - * @generated - */ - EAttribute getNotUnsettableWithDefault_NotUnsettableVAT(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.MapHolder Map Holder}'. - * - * - * @return the meta object for class 'Map Holder'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.MapHolder - * @generated - */ - EClass getMapHolder(); - - /** - * Returns the meta object for the map ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getIntegerToStringMap Integer To String Map}'. - * - * - * @return the meta object for the map 'Integer To String Map'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getIntegerToStringMap() - * @see #getMapHolder() - * @generated - */ - EReference getMapHolder_IntegerToStringMap(); - - /** - * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getStringToStringMap - * String To String Map}'. - * - * @return the meta object for the map 'String To String Map'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getStringToStringMap() - * @see #getMapHolder() - * @generated - */ - EReference getMapHolder_StringToStringMap(); - - /** - * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getStringToVATMap - * String To VAT Map}'. - * - * @return the meta object for the map 'String To VAT Map'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getStringToVATMap() - * @see #getMapHolder() - * @generated - */ - EReference getMapHolder_StringToVATMap(); - - /** - * Returns the meta object for the map ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getStringToAddressContainmentMap - * String To Address Containment Map}'. - * - * @return the meta object for the map 'String To Address Containment Map'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getStringToAddressContainmentMap() - * @see #getMapHolder() - * @generated - */ - EReference getMapHolder_StringToAddressContainmentMap(); - - /** - * Returns the meta object for the map ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getStringToAddressReferenceMap - * String To Address Reference Map}'. - * - * @return the meta object for the map 'String To Address Reference Map'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getStringToAddressReferenceMap() - * @see #getMapHolder() - * @generated - */ - EReference getMapHolder_StringToAddressReferenceMap(); - - /** - * Returns the meta object for the map ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getEObjectToEObjectMap EObject To EObject Map}'. - * - * - * @return the meta object for the map 'EObject To EObject Map'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getEObjectToEObjectMap() - * @see #getMapHolder() - * @generated - */ - EReference getMapHolder_EObjectToEObjectMap(); - - /** - * Returns the meta object for the map ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getEObjectToEObjectKeyContainedMap - * EObject To EObject Key Contained Map}'. - * - * @return the meta object for the map 'EObject To EObject Key Contained Map'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getEObjectToEObjectKeyContainedMap() - * @see #getMapHolder() - * @generated - */ - EReference getMapHolder_EObjectToEObjectKeyContainedMap(); - - /** - * Returns the meta object for the map ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getEObjectToEObjectBothContainedMap - * EObject To EObject Both Contained Map}'. - * - * @return the meta object for the map 'EObject To EObject Both Contained Map'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getEObjectToEObjectBothContainedMap() - * @see #getMapHolder() - * @generated - */ - EReference getMapHolder_EObjectToEObjectBothContainedMap(); - - /** - * Returns the meta object for the map ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getEObjectToEObjectValueContainedMap - * EObject To EObject Value Contained Map}'. - * - * @return the meta object for the map 'EObject To EObject Value Contained Map'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.MapHolder#getEObjectToEObjectValueContainedMap() - * @see #getMapHolder() - * @generated - */ - EReference getMapHolder_EObjectToEObjectValueContainedMap(); - - /** - * Returns the meta object for class '{@link java.util.Map.Entry String To String Map}'. - * - * @return the meta object for class 'String To String Map'. - * @see java.util.Map.Entry - * @model keyDataType="org.eclipse.emf.ecore.EString" valueDataType="org.eclipse.emf.ecore.EString" - * @generated - */ - EClass getStringToStringMap(); - - /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry Key}'. - * - * @return the meta object for the attribute 'Key'. - * @see java.util.Map.Entry - * @see #getStringToStringMap() - * @generated - */ - EAttribute getStringToStringMap_Key(); - - /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry Value}'. - * - * - * @return the meta object for the attribute 'Value'. - * @see java.util.Map.Entry - * @see #getStringToStringMap() - * @generated - */ - EAttribute getStringToStringMap_Value(); - - /** - * Returns the meta object for class '{@link java.util.Map.Entry Integer To String Map}'. - * - * @return the meta object for class 'Integer To String Map'. - * @see java.util.Map.Entry - * @model keyDataType="org.eclipse.emf.ecore.EIntegerObject" valueDataType="org.eclipse.emf.ecore.EString" - * @generated - */ - EClass getIntegerToStringMap(); - - /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry Key}'. - * - * @return the meta object for the attribute 'Key'. - * @see java.util.Map.Entry - * @see #getIntegerToStringMap() - * @generated - */ - EAttribute getIntegerToStringMap_Key(); - - /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry Value}'. - * - * - * @return the meta object for the attribute 'Value'. - * @see java.util.Map.Entry - * @see #getIntegerToStringMap() - * @generated - */ - EAttribute getIntegerToStringMap_Value(); - - /** - * Returns the meta object for class '{@link java.util.Map.Entry String To VAT Map}'. - * - * - * @return the meta object for class 'String To VAT Map'. - * @see java.util.Map.Entry - * @model keyDataType="org.eclipse.emf.ecore.EString" valueDataType="org.eclipse.emf.cdo.tests.legacy.model1.VAT" - * @generated - */ - EClass getStringToVATMap(); - - /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry Key}'. - * - * @return the meta object for the attribute 'Key'. - * @see java.util.Map.Entry - * @see #getStringToVATMap() - * @generated - */ - EAttribute getStringToVATMap_Key(); - - /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry Value}'. - * - * - * @return the meta object for the attribute 'Value'. - * @see java.util.Map.Entry - * @see #getStringToVATMap() - * @generated - */ - EAttribute getStringToVATMap_Value(); - - /** - * Returns the meta object for class '{@link java.util.Map.Entry String To Address Containment Map}'. - * - * @return the meta object for class 'String To Address Containment Map'. - * @see java.util.Map.Entry - * @model keyDataType="org.eclipse.emf.ecore.EString" valueType="org.eclipse.emf.cdo.tests.legacy.model1.Address" - * valueContainment="true" - * @generated - */ - EClass getStringToAddressContainmentMap(); - - /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry Key}'. - * - * @return the meta object for the attribute 'Key'. - * @see java.util.Map.Entry - * @see #getStringToAddressContainmentMap() - * @generated - */ - EAttribute getStringToAddressContainmentMap_Key(); - - /** - * Returns the meta object for the containment reference '{@link java.util.Map.Entry Value}'. - * - * @return the meta object for the containment reference 'Value'. - * @see java.util.Map.Entry - * @see #getStringToAddressContainmentMap() - * @generated - */ - EReference getStringToAddressContainmentMap_Value(); - - /** - * Returns the meta object for class '{@link java.util.Map.Entry String To Address Reference Map}'. - * - * @return the meta object for class 'String To Address Reference Map'. - * @see java.util.Map.Entry - * @model keyDataType="org.eclipse.emf.ecore.EString" valueType="org.eclipse.emf.cdo.tests.legacy.model1.Address" - * @generated - */ - EClass getStringToAddressReferenceMap(); - - /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry Key}'. - * - * @return the meta object for the attribute 'Key'. - * @see java.util.Map.Entry - * @see #getStringToAddressReferenceMap() - * @generated - */ - EAttribute getStringToAddressReferenceMap_Key(); - - /** - * Returns the meta object for the reference '{@link java.util.Map.Entry Value}'. - * - * - * @return the meta object for the reference 'Value'. - * @see java.util.Map.Entry - * @see #getStringToAddressReferenceMap() - * @generated - */ - EReference getStringToAddressReferenceMap_Value(); - - /** - * Returns the meta object for class '{@link java.util.Map.Entry EObject To EObject Map}'. - * - * @return the meta object for class 'EObject To EObject Map'. - * @see java.util.Map.Entry - * @model keyType="org.eclipse.emf.ecore.EObject" valueType="org.eclipse.emf.ecore.EObject" - * @generated - */ - EClass getEObjectToEObjectMap(); - - /** - * Returns the meta object for the reference '{@link java.util.Map.Entry Key}'. - * - * @return the meta object for the reference 'Key'. - * @see java.util.Map.Entry - * @see #getEObjectToEObjectMap() - * @generated - */ - EReference getEObjectToEObjectMap_Key(); - - /** - * Returns the meta object for the reference '{@link java.util.Map.Entry Value}'. - * - * - * @return the meta object for the reference 'Value'. - * @see java.util.Map.Entry - * @see #getEObjectToEObjectMap() - * @generated - */ - EReference getEObjectToEObjectMap_Value(); - - /** - * Returns the meta object for class '{@link java.util.Map.Entry EObject To EObject Key Contained Map}'. - * - * @return the meta object for class 'EObject To EObject Key Contained Map'. - * @see java.util.Map.Entry - * @model keyType="org.eclipse.emf.ecore.EObject" keyContainment="true" valueType="org.eclipse.emf.ecore.EObject" - * @generated - */ - EClass getEObjectToEObjectKeyContainedMap(); - - /** - * Returns the meta object for the containment reference '{@link java.util.Map.Entry Key}'. - * - * @return the meta object for the containment reference 'Key'. - * @see java.util.Map.Entry - * @see #getEObjectToEObjectKeyContainedMap() - * @generated - */ - EReference getEObjectToEObjectKeyContainedMap_Key(); - - /** - * Returns the meta object for the reference '{@link java.util.Map.Entry Value}'. - * - * - * @return the meta object for the reference 'Value'. - * @see java.util.Map.Entry - * @see #getEObjectToEObjectKeyContainedMap() - * @generated - */ - EReference getEObjectToEObjectKeyContainedMap_Value(); - - /** - * Returns the meta object for class '{@link java.util.Map.Entry EObject To EObject Both Contained Map}'. - * - * - * @return the meta object for class 'EObject To EObject Both Contained Map'. - * @see java.util.Map.Entry - * @model keyType="org.eclipse.emf.ecore.EObject" keyContainment="true" valueType="org.eclipse.emf.ecore.EObject" - * valueContainment="true" - * @generated - */ - EClass getEObjectToEObjectBothContainedMap(); - - /** - * Returns the meta object for the containment reference '{@link java.util.Map.Entry Key}'. - * - * @return the meta object for the containment reference 'Key'. - * @see java.util.Map.Entry - * @see #getEObjectToEObjectBothContainedMap() - * @generated - */ - EReference getEObjectToEObjectBothContainedMap_Key(); - - /** - * Returns the meta object for the containment reference '{@link java.util.Map.Entry Value}'. - * - * @return the meta object for the containment reference 'Value'. - * @see java.util.Map.Entry - * @see #getEObjectToEObjectBothContainedMap() - * @generated - */ - EReference getEObjectToEObjectBothContainedMap_Value(); - - /** - * Returns the meta object for class '{@link java.util.Map.Entry EObject To EObject Value Contained Map}'. - * - * - * @return the meta object for class 'EObject To EObject Value Contained Map'. - * @see java.util.Map.Entry - * @model keyType="org.eclipse.emf.ecore.EObject" valueType="org.eclipse.emf.ecore.EObject" valueContainment="true" - * @generated - */ - EClass getEObjectToEObjectValueContainedMap(); - - /** - * Returns the meta object for the reference '{@link java.util.Map.Entry Key}'. - * - * @return the meta object for the reference 'Key'. - * @see java.util.Map.Entry - * @see #getEObjectToEObjectValueContainedMap() - * @generated - */ - EReference getEObjectToEObjectValueContainedMap_Key(); - - /** - * Returns the meta object for the containment reference '{@link java.util.Map.Entry Value}'. - * - * @return the meta object for the containment reference 'Value'. - * @see java.util.Map.Entry - * @see #getEObjectToEObjectValueContainedMap() - * @generated - */ - EReference getEObjectToEObjectValueContainedMap_Value(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.EnumListHolder - * Enum List Holder}'. - * - * @return the meta object for class 'Enum List Holder'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.EnumListHolder - * @generated - */ - EClass getEnumListHolder(); - - /** - * Returns the meta object for the attribute list ' - * {@link org.eclipse.emf.cdo.tests.legacy.model2.EnumListHolder#getEnumList Enum List}'. - * - * @return the meta object for the attribute list 'Enum List'. - * @see org.eclipse.emf.cdo.tests.legacy.model2.EnumListHolder#getEnumList() - * @see #getEnumListHolder() - * @generated - */ - EAttribute getEnumListHolder_EnumList(); - - /** - * Returns the factory that creates the instances of the model. - * - * @return the factory that creates the instances of the model. - * @generated - */ - Model2Factory getModel2Factory(); - -} // Model2Package diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EObjectToEObjectBothContainedMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EObjectToEObjectBothContainedMapImpl.java deleted file mode 100644 index 37b5a3919a..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EObjectToEObjectBothContainedMapImpl.java +++ /dev/null @@ -1,377 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - * - * $Id: EObjectToEObjectBothContainedMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.BasicEMap; -import org.eclipse.emf.common.util.EMap; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -/** - * An implementation of the model object 'EObject To EObject Both Contained Map - * '. - *

- * The following features are implemented: - *

- *

- * - * @generated - */ -public class EObjectToEObjectBothContainedMapImpl extends EObjectImpl implements BasicEMap.Entry -{ - /** - * The cached value of the '{@link #getTypedKey() Key}' containment reference. - * - * @see #getTypedKey() - * @generated - * @ordered - */ - protected EObject key; - - /** - * The cached value of the '{@link #getTypedValue() Value}' containment reference. - * - * - * @see #getTypedValue() - * @generated - * @ordered - */ - protected EObject value; - - /** - * - * - * @generated - */ - protected EObjectToEObjectBothContainedMapImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getEObjectToEObjectBothContainedMap(); - } - - /** - * - * - * @generated - */ - public EObject getTypedKey() - { - return key; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetTypedKey(EObject newKey, NotificationChain msgs) - { - EObject oldKey = key; - key = newKey; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY, oldKey, newKey); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setTypedKey(EObject newKey) - { - if (newKey != key) - { - NotificationChain msgs = null; - if (key != null) - msgs = ((InternalEObject)key).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY, null, msgs); - if (newKey != null) - msgs = ((InternalEObject)newKey).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - - Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY, null, msgs); - msgs = basicSetTypedKey(newKey, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY, - newKey, newKey)); - } - - /** - * - * - * @generated - */ - public EObject getTypedValue() - { - return value; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetTypedValue(EObject newValue, NotificationChain msgs) - { - EObject oldValue = value; - value = newValue; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE, oldValue, newValue); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setTypedValue(EObject newValue) - { - if (newValue != value) - { - NotificationChain msgs = null; - if (value != null) - msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE, null, msgs); - if (newValue != null) - msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - - Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE, null, msgs); - msgs = basicSetTypedValue(newValue, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE, - newValue, newValue)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY: - return basicSetTypedKey(null, msgs); - case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE: - return basicSetTypedValue(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY: - return getTypedKey(); - case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE: - return getTypedValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY: - setTypedKey((EObject)newValue); - return; - case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE: - setTypedValue((EObject)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY: - setTypedKey((EObject)null); - return; - case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE: - setTypedValue((EObject)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY: - return key != null; - case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE: - return value != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - protected int hash = -1; - - /** - * - * - * @generated - */ - public int getHash() - { - if (hash == -1) - { - Object theKey = getKey(); - hash = (theKey == null ? 0 : theKey.hashCode()); - } - return hash; - } - - /** - * - * - * @generated - */ - public void setHash(int hash) - { - this.hash = hash; - } - - /** - * - * - * @generated - */ - public EObject getKey() - { - return getTypedKey(); - } - - /** - * - * - * @generated - */ - public void setKey(EObject key) - { - setTypedKey(key); - } - - /** - * - * - * @generated - */ - public EObject getValue() - { - return getTypedValue(); - } - - /** - * - * - * @generated - */ - public EObject setValue(EObject value) - { - EObject oldValue = getValue(); - setTypedValue(value); - return oldValue; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - public EMap getEMap() - { - EObject container = eContainer(); - return container == null ? null : (EMap)container.eGet(eContainmentFeature()); - } - -} // EObjectToEObjectBothContainedMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EObjectToEObjectKeyContainedMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EObjectToEObjectKeyContainedMapImpl.java deleted file mode 100644 index 6edc500e65..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EObjectToEObjectKeyContainedMapImpl.java +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - * - * $Id: EObjectToEObjectKeyContainedMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.BasicEMap; -import org.eclipse.emf.common.util.EMap; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -/** - * An implementation of the model object 'EObject To EObject Key Contained Map'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.EObjectToEObjectKeyContainedMapImpl#getTypedKey Key} - *
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.EObjectToEObjectKeyContainedMapImpl#getTypedValue Value - * }
  • - *
- *

- * - * @generated - */ -public class EObjectToEObjectKeyContainedMapImpl extends EObjectImpl implements BasicEMap.Entry -{ - /** - * The cached value of the '{@link #getTypedKey() Key}' containment reference. - * - * @see #getTypedKey() - * @generated - * @ordered - */ - protected EObject key; - - /** - * The cached value of the '{@link #getTypedValue() Value}' reference. - * - * @see #getTypedValue() - * @generated - * @ordered - */ - protected EObject value; - - /** - * - * - * @generated - */ - protected EObjectToEObjectKeyContainedMapImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getEObjectToEObjectKeyContainedMap(); - } - - /** - * - * - * @generated - */ - public EObject getTypedKey() - { - return key; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetTypedKey(EObject newKey, NotificationChain msgs) - { - EObject oldKey = key; - key = newKey; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY, oldKey, newKey); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setTypedKey(EObject newKey) - { - if (newKey != key) - { - NotificationChain msgs = null; - if (key != null) - msgs = ((InternalEObject)key).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY, null, msgs); - if (newKey != null) - msgs = ((InternalEObject)newKey).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - - Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY, null, msgs); - msgs = basicSetTypedKey(newKey, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY, - newKey, newKey)); - } - - /** - * - * - * @generated - */ - public EObject getTypedValue() - { - if (value != null && value.eIsProxy()) - { - InternalEObject oldValue = (InternalEObject)value; - value = eResolveProxy(oldValue); - if (value != oldValue) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, - Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE, oldValue, value)); - } - } - return value; - } - - /** - * - * - * @generated - */ - public EObject basicGetTypedValue() - { - return value; - } - - /** - * - * - * @generated - */ - public void setTypedValue(EObject newValue) - { - EObject oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE, - oldValue, value)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY: - return basicSetTypedKey(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY: - return getTypedKey(); - case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE: - if (resolve) - return getTypedValue(); - return basicGetTypedValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY: - setTypedKey((EObject)newValue); - return; - case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE: - setTypedValue((EObject)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY: - setTypedKey((EObject)null); - return; - case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE: - setTypedValue((EObject)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY: - return key != null; - case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE: - return value != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - protected int hash = -1; - - /** - * - * - * @generated - */ - public int getHash() - { - if (hash == -1) - { - Object theKey = getKey(); - hash = (theKey == null ? 0 : theKey.hashCode()); - } - return hash; - } - - /** - * - * - * @generated - */ - public void setHash(int hash) - { - this.hash = hash; - } - - /** - * - * - * @generated - */ - public EObject getKey() - { - return getTypedKey(); - } - - /** - * - * - * @generated - */ - public void setKey(EObject key) - { - setTypedKey(key); - } - - /** - * - * - * @generated - */ - public EObject getValue() - { - return getTypedValue(); - } - - /** - * - * - * @generated - */ - public EObject setValue(EObject value) - { - EObject oldValue = getValue(); - setTypedValue(value); - return oldValue; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - public EMap getEMap() - { - EObject container = eContainer(); - return container == null ? null : (EMap)container.eGet(eContainmentFeature()); - } - -} // EObjectToEObjectKeyContainedMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EObjectToEObjectMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EObjectToEObjectMapImpl.java deleted file mode 100644 index 1e3af0fa41..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EObjectToEObjectMapImpl.java +++ /dev/null @@ -1,337 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - * - * $Id: EObjectToEObjectMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.BasicEMap; -import org.eclipse.emf.common.util.EMap; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -/** - * An implementation of the model object 'EObject To EObject Map'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.EObjectToEObjectMapImpl#getTypedKey Key}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.EObjectToEObjectMapImpl#getTypedValue Value}
  • - *
- *

- * - * @generated - */ -public class EObjectToEObjectMapImpl extends EObjectImpl implements BasicEMap.Entry -{ - /** - * The cached value of the '{@link #getTypedKey() Key}' reference. - * - * @see #getTypedKey() - * @generated - * @ordered - */ - protected EObject key; - - /** - * The cached value of the '{@link #getTypedValue() Value}' reference. - * - * @see #getTypedValue() - * @generated - * @ordered - */ - protected EObject value; - - /** - * - * - * @generated - */ - protected EObjectToEObjectMapImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getEObjectToEObjectMap(); - } - - /** - * - * - * @generated - */ - public EObject getTypedKey() - { - if (key != null && key.eIsProxy()) - { - InternalEObject oldKey = (InternalEObject)key; - key = eResolveProxy(oldKey); - if (key != oldKey) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model2Package.EOBJECT_TO_EOBJECT_MAP__KEY, oldKey, - key)); - } - } - return key; - } - - /** - * - * - * @generated - */ - public EObject basicGetTypedKey() - { - return key; - } - - /** - * - * - * @generated - */ - public void setTypedKey(EObject newKey) - { - EObject oldKey = key; - key = newKey; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.EOBJECT_TO_EOBJECT_MAP__KEY, oldKey, key)); - } - - /** - * - * - * @generated - */ - public EObject getTypedValue() - { - if (value != null && value.eIsProxy()) - { - InternalEObject oldValue = (InternalEObject)value; - value = eResolveProxy(oldValue); - if (value != oldValue) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model2Package.EOBJECT_TO_EOBJECT_MAP__VALUE, - oldValue, value)); - } - } - return value; - } - - /** - * - * - * @generated - */ - public EObject basicGetTypedValue() - { - return value; - } - - /** - * - * - * @generated - */ - public void setTypedValue(EObject newValue) - { - EObject oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.EOBJECT_TO_EOBJECT_MAP__VALUE, oldValue, - value)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_MAP__KEY: - if (resolve) - return getTypedKey(); - return basicGetTypedKey(); - case Model2Package.EOBJECT_TO_EOBJECT_MAP__VALUE: - if (resolve) - return getTypedValue(); - return basicGetTypedValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_MAP__KEY: - setTypedKey((EObject)newValue); - return; - case Model2Package.EOBJECT_TO_EOBJECT_MAP__VALUE: - setTypedValue((EObject)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_MAP__KEY: - setTypedKey((EObject)null); - return; - case Model2Package.EOBJECT_TO_EOBJECT_MAP__VALUE: - setTypedValue((EObject)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_MAP__KEY: - return key != null; - case Model2Package.EOBJECT_TO_EOBJECT_MAP__VALUE: - return value != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - protected int hash = -1; - - /** - * - * - * @generated - */ - public int getHash() - { - if (hash == -1) - { - Object theKey = getKey(); - hash = (theKey == null ? 0 : theKey.hashCode()); - } - return hash; - } - - /** - * - * - * @generated - */ - public void setHash(int hash) - { - this.hash = hash; - } - - /** - * - * - * @generated - */ - public EObject getKey() - { - return getTypedKey(); - } - - /** - * - * - * @generated - */ - public void setKey(EObject key) - { - setTypedKey(key); - } - - /** - * - * - * @generated - */ - public EObject getValue() - { - return getTypedValue(); - } - - /** - * - * - * @generated - */ - public EObject setValue(EObject value) - { - EObject oldValue = getValue(); - setTypedValue(value); - return oldValue; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - public EMap getEMap() - { - EObject container = eContainer(); - return container == null ? null : (EMap)container.eGet(eContainmentFeature()); - } - -} // EObjectToEObjectMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EObjectToEObjectValueContainedMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EObjectToEObjectValueContainedMapImpl.java deleted file mode 100644 index 5bbec5e681..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EObjectToEObjectValueContainedMapImpl.java +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - * - * $Id: EObjectToEObjectValueContainedMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.BasicEMap; -import org.eclipse.emf.common.util.EMap; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -/** - * An implementation of the model object 'EObject To EObject Value Contained Map - * '. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.EObjectToEObjectValueContainedMapImpl#getTypedKey Key - * }
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.EObjectToEObjectValueContainedMapImpl#getTypedValue Value - * }
  • - *
- *

- * - * @generated - */ -public class EObjectToEObjectValueContainedMapImpl extends EObjectImpl implements BasicEMap.Entry -{ - /** - * The cached value of the '{@link #getTypedKey() Key}' reference. - * - * @see #getTypedKey() - * @generated - * @ordered - */ - protected EObject key; - - /** - * The cached value of the '{@link #getTypedValue() Value}' containment reference. - * - * - * @see #getTypedValue() - * @generated - * @ordered - */ - protected EObject value; - - /** - * - * - * @generated - */ - protected EObjectToEObjectValueContainedMapImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getEObjectToEObjectValueContainedMap(); - } - - /** - * - * - * @generated - */ - public EObject getTypedKey() - { - if (key != null && key.eIsProxy()) - { - InternalEObject oldKey = (InternalEObject)key; - key = eResolveProxy(oldKey); - if (key != oldKey) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, - Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY, oldKey, key)); - } - } - return key; - } - - /** - * - * - * @generated - */ - public EObject basicGetTypedKey() - { - return key; - } - - /** - * - * - * @generated - */ - public void setTypedKey(EObject newKey) - { - EObject oldKey = key; - key = newKey; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY, - oldKey, key)); - } - - /** - * - * - * @generated - */ - public EObject getTypedValue() - { - return value; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetTypedValue(EObject newValue, NotificationChain msgs) - { - EObject oldValue = value; - value = newValue; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE, oldValue, newValue); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setTypedValue(EObject newValue) - { - if (newValue != value) - { - NotificationChain msgs = null; - if (value != null) - msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE, null, msgs); - if (newValue != null) - msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - - Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE, null, msgs); - msgs = basicSetTypedValue(newValue, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE, newValue, newValue)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE: - return basicSetTypedValue(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY: - if (resolve) - return getTypedKey(); - return basicGetTypedKey(); - case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE: - return getTypedValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY: - setTypedKey((EObject)newValue); - return; - case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE: - setTypedValue((EObject)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY: - setTypedKey((EObject)null); - return; - case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE: - setTypedValue((EObject)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY: - return key != null; - case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE: - return value != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - protected int hash = -1; - - /** - * - * - * @generated - */ - public int getHash() - { - if (hash == -1) - { - Object theKey = getKey(); - hash = (theKey == null ? 0 : theKey.hashCode()); - } - return hash; - } - - /** - * - * - * @generated - */ - public void setHash(int hash) - { - this.hash = hash; - } - - /** - * - * - * @generated - */ - public EObject getKey() - { - return getTypedKey(); - } - - /** - * - * - * @generated - */ - public void setKey(EObject key) - { - setTypedKey(key); - } - - /** - * - * - * @generated - */ - public EObject getValue() - { - return getTypedValue(); - } - - /** - * - * - * @generated - */ - public EObject setValue(EObject value) - { - EObject oldValue = getValue(); - setTypedValue(value); - return oldValue; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - public EMap getEMap() - { - EObject container = eContainer(); - return container == null ? null : (EMap)container.eGet(eContainmentFeature()); - } - -} // EObjectToEObjectValueContainedMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EnumListHolderImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EnumListHolderImpl.java deleted file mode 100644 index 4cd2582fad..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/EnumListHolderImpl.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; -import org.eclipse.emf.cdo.tests.model1.VAT; -import org.eclipse.emf.cdo.tests.model2.EnumListHolder; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; - -import java.util.Collection; - -/** - * An implementation of the model object 'Enum List Holder'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.EnumListHolderImpl#getEnumList Enum List}
  • - *
- *

- * - * @generated - */ -public class EnumListHolderImpl extends EObjectImpl implements EnumListHolder -{ - /** - * The cached value of the '{@link #getEnumList() Enum List}' attribute list. - * - * @see #getEnumList() - * @generated - * @ordered - */ - protected EList enumList; - - /** - * - * - * @generated - */ - protected EnumListHolderImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getEnumListHolder(); - } - - /** - * - * - * @generated - */ - public EList getEnumList() - { - if (enumList == null) - { - enumList = new EDataTypeUniqueEList(VAT.class, this, Model2Package.ENUM_LIST_HOLDER__ENUM_LIST); - } - return enumList; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.ENUM_LIST_HOLDER__ENUM_LIST: - return getEnumList(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.ENUM_LIST_HOLDER__ENUM_LIST: - getEnumList().clear(); - getEnumList().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.ENUM_LIST_HOLDER__ENUM_LIST: - getEnumList().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.ENUM_LIST_HOLDER__ENUM_LIST: - return enumList != null && !enumList.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (enumList: "); - result.append(enumList); - result.append(')'); - return result.toString(); - } - -} // EnumListHolderImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/IntegerToStringMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/IntegerToStringMapImpl.java deleted file mode 100644 index 71fbeb248a..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/IntegerToStringMapImpl.java +++ /dev/null @@ -1,329 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - * - * $Id: IntegerToStringMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.BasicEMap; -import org.eclipse.emf.common.util.EMap; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -/** - * An implementation of the model object 'Integer To String Map'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.IntegerToStringMapImpl#getTypedKey Key}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.IntegerToStringMapImpl#getTypedValue Value}
  • - *
- *

- * - * @generated - */ -public class IntegerToStringMapImpl extends EObjectImpl implements BasicEMap.Entry -{ - /** - * The default value of the '{@link #getTypedKey() Key}' attribute. - * - * @see #getTypedKey() - * @generated - * @ordered - */ - protected static final Integer KEY_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTypedKey() Key}' attribute. - * - * @see #getTypedKey() - * @generated - * @ordered - */ - protected Integer key = KEY_EDEFAULT; - - /** - * The default value of the '{@link #getTypedValue() Value}' attribute. - * - * @see #getTypedValue() - * @generated - * @ordered - */ - protected static final String VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTypedValue() Value}' attribute. - * - * @see #getTypedValue() - * @generated - * @ordered - */ - protected String value = VALUE_EDEFAULT; - - /** - * - * - * @generated - */ - protected IntegerToStringMapImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getIntegerToStringMap(); - } - - /** - * - * - * @generated - */ - public Integer getTypedKey() - { - return key; - } - - /** - * - * - * @generated - */ - public void setTypedKey(Integer newKey) - { - Integer oldKey = key; - key = newKey; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.INTEGER_TO_STRING_MAP__KEY, oldKey, key)); - } - - /** - * - * - * @generated - */ - public String getTypedValue() - { - return value; - } - - /** - * - * - * @generated - */ - public void setTypedValue(String newValue) - { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.INTEGER_TO_STRING_MAP__VALUE, oldValue, value)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.INTEGER_TO_STRING_MAP__KEY: - return getTypedKey(); - case Model2Package.INTEGER_TO_STRING_MAP__VALUE: - return getTypedValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.INTEGER_TO_STRING_MAP__KEY: - setTypedKey((Integer)newValue); - return; - case Model2Package.INTEGER_TO_STRING_MAP__VALUE: - setTypedValue((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.INTEGER_TO_STRING_MAP__KEY: - setTypedKey(KEY_EDEFAULT); - return; - case Model2Package.INTEGER_TO_STRING_MAP__VALUE: - setTypedValue(VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.INTEGER_TO_STRING_MAP__KEY: - return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); - case Model2Package.INTEGER_TO_STRING_MAP__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (key: "); - result.append(key); - result.append(", value: "); - result.append(value); - result.append(')'); - return result.toString(); - } - - /** - * - * - * @generated - */ - protected int hash = -1; - - /** - * - * - * @generated - */ - public int getHash() - { - if (hash == -1) - { - Object theKey = getKey(); - hash = (theKey == null ? 0 : theKey.hashCode()); - } - return hash; - } - - /** - * - * - * @generated - */ - public void setHash(int hash) - { - this.hash = hash; - } - - /** - * - * - * @generated - */ - public Integer getKey() - { - return getTypedKey(); - } - - /** - * - * - * @generated - */ - public void setKey(Integer key) - { - setTypedKey(key); - } - - /** - * - * - * @generated - */ - public String getValue() - { - return getTypedValue(); - } - - /** - * - * - * @generated - */ - public String setValue(String value) - { - String oldValue = getValue(); - setTypedValue(value); - return oldValue; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - public EMap getEMap() - { - EObject container = eContainer(); - return container == null ? null : (EMap)container.eGet(eContainmentFeature()); - } - -} // IntegerToStringMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/MapHolderImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/MapHolderImpl.java deleted file mode 100644 index 511d3f3cbe..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/MapHolderImpl.java +++ /dev/null @@ -1,515 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - * - * $Id: MapHolderImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; -import org.eclipse.emf.cdo.tests.model1.Address; -import org.eclipse.emf.cdo.tests.model1.VAT; -import org.eclipse.emf.cdo.tests.model2.MapHolder; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EMap; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreEMap; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * An implementation of the model object 'Map Holder'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.MapHolderImpl#getIntegerToStringMap Integer To String Map - * }
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.MapHolderImpl#getStringToStringMap String To String Map - * }
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.MapHolderImpl#getStringToVATMap String To VAT Map}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.MapHolderImpl#getStringToAddressContainmentMap String To - * Address Containment Map}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.MapHolderImpl#getStringToAddressReferenceMap String To - * Address Reference Map}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.MapHolderImpl#getEObjectToEObjectMap EObject To EObject - * Map}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.MapHolderImpl#getEObjectToEObjectKeyContainedMap EObject - * To EObject Key Contained Map}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.MapHolderImpl#getEObjectToEObjectBothContainedMap EObject - * To EObject Both Contained Map}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.MapHolderImpl#getEObjectToEObjectValueContainedMap - * EObject To EObject Value Contained Map}
  • - *
- *

- * - * @generated - */ -public class MapHolderImpl extends EObjectImpl implements MapHolder -{ - /** - * The cached value of the '{@link #getIntegerToStringMap() Integer To String Map}' map. - * - * @see #getIntegerToStringMap() - * @generated - * @ordered - */ - protected EMap integerToStringMap; - - /** - * The cached value of the '{@link #getStringToStringMap() String To String Map}' map. - * - * @see #getStringToStringMap() - * @generated - * @ordered - */ - protected EMap stringToStringMap; - - /** - * The cached value of the '{@link #getStringToVATMap() String To VAT Map}' map. - * - * @see #getStringToVATMap() - * @generated - * @ordered - */ - protected EMap stringToVATMap; - - /** - * The cached value of the '{@link #getStringToAddressContainmentMap() String To Address Containment Map}' - * map. - * - * @see #getStringToAddressContainmentMap() - * @generated - * @ordered - */ - protected EMap stringToAddressContainmentMap; - - /** - * The cached value of the '{@link #getStringToAddressReferenceMap() String To Address Reference Map}' map. - * - * - * @see #getStringToAddressReferenceMap() - * @generated - * @ordered - */ - protected EMap stringToAddressReferenceMap; - - /** - * The cached value of the '{@link #getEObjectToEObjectMap() EObject To EObject Map}' map. - * - * @see #getEObjectToEObjectMap() - * @generated - * @ordered - */ - protected EMap eObjectToEObjectMap; - - /** - * The cached value of the '{@link #getEObjectToEObjectKeyContainedMap() - * EObject To EObject Key Contained Map}' map. - * - * @see #getEObjectToEObjectKeyContainedMap() - * @generated - * @ordered - */ - protected EMap eObjectToEObjectKeyContainedMap; - - /** - * The cached value of the '{@link #getEObjectToEObjectBothContainedMap() - * EObject To EObject Both Contained Map}' map. - * - * @see #getEObjectToEObjectBothContainedMap() - * @generated - * @ordered - */ - protected EMap eObjectToEObjectBothContainedMap; - - /** - * The cached value of the '{@link #getEObjectToEObjectValueContainedMap() - * EObject To EObject Value Contained Map}' map. - * - * @see #getEObjectToEObjectValueContainedMap() - * @generated - * @ordered - */ - protected EMap eObjectToEObjectValueContainedMap; - - /** - * - * - * @generated - */ - protected MapHolderImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getMapHolder(); - } - - /** - * - * - * @generated - */ - public EMap getIntegerToStringMap() - { - if (integerToStringMap == null) - { - integerToStringMap = new EcoreEMap(Model2Package.eINSTANCE.getIntegerToStringMap(), - IntegerToStringMapImpl.class, this, Model2Package.MAP_HOLDER__INTEGER_TO_STRING_MAP); - } - return integerToStringMap; - } - - /** - * - * - * @generated - */ - public EMap getStringToStringMap() - { - if (stringToStringMap == null) - { - stringToStringMap = new EcoreEMap(Model2Package.eINSTANCE.getStringToStringMap(), - StringToStringMapImpl.class, this, Model2Package.MAP_HOLDER__STRING_TO_STRING_MAP); - } - return stringToStringMap; - } - - /** - * - * - * @generated - */ - public EMap getStringToVATMap() - { - if (stringToVATMap == null) - { - stringToVATMap = new EcoreEMap(Model2Package.eINSTANCE.getStringToVATMap(), - StringToVATMapImpl.class, this, Model2Package.MAP_HOLDER__STRING_TO_VAT_MAP); - } - return stringToVATMap; - } - - /** - * - * - * @generated - */ - public EMap getStringToAddressContainmentMap() - { - if (stringToAddressContainmentMap == null) - { - stringToAddressContainmentMap = new EcoreEMap( - Model2Package.eINSTANCE.getStringToAddressContainmentMap(), StringToAddressContainmentMapImpl.class, this, - Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP); - } - return stringToAddressContainmentMap; - } - - /** - * - * - * @generated - */ - public EMap getStringToAddressReferenceMap() - { - if (stringToAddressReferenceMap == null) - { - stringToAddressReferenceMap = new EcoreEMap( - Model2Package.eINSTANCE.getStringToAddressReferenceMap(), StringToAddressReferenceMapImpl.class, this, - Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP); - } - return stringToAddressReferenceMap; - } - - /** - * - * - * @generated - */ - public EMap getEObjectToEObjectMap() - { - if (eObjectToEObjectMap == null) - { - eObjectToEObjectMap = new EcoreEMap(Model2Package.eINSTANCE.getEObjectToEObjectMap(), - EObjectToEObjectMapImpl.class, this, Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP); - } - return eObjectToEObjectMap; - } - - /** - * - * - * @generated - */ - public EMap getEObjectToEObjectKeyContainedMap() - { - if (eObjectToEObjectKeyContainedMap == null) - { - eObjectToEObjectKeyContainedMap = new EcoreEMap( - Model2Package.eINSTANCE.getEObjectToEObjectKeyContainedMap(), EObjectToEObjectKeyContainedMapImpl.class, - this, Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP); - } - return eObjectToEObjectKeyContainedMap; - } - - /** - * - * - * @generated - */ - public EMap getEObjectToEObjectBothContainedMap() - { - if (eObjectToEObjectBothContainedMap == null) - { - eObjectToEObjectBothContainedMap = new EcoreEMap( - Model2Package.eINSTANCE.getEObjectToEObjectBothContainedMap(), EObjectToEObjectBothContainedMapImpl.class, - this, Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP); - } - return eObjectToEObjectBothContainedMap; - } - - /** - * - * - * @generated - */ - public EMap getEObjectToEObjectValueContainedMap() - { - if (eObjectToEObjectValueContainedMap == null) - { - eObjectToEObjectValueContainedMap = new EcoreEMap( - Model2Package.eINSTANCE.getEObjectToEObjectValueContainedMap(), EObjectToEObjectValueContainedMapImpl.class, - this, Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP); - } - return eObjectToEObjectValueContainedMap; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model2Package.MAP_HOLDER__INTEGER_TO_STRING_MAP: - return ((InternalEList)getIntegerToStringMap()).basicRemove(otherEnd, msgs); - case Model2Package.MAP_HOLDER__STRING_TO_STRING_MAP: - return ((InternalEList)getStringToStringMap()).basicRemove(otherEnd, msgs); - case Model2Package.MAP_HOLDER__STRING_TO_VAT_MAP: - return ((InternalEList)getStringToVATMap()).basicRemove(otherEnd, msgs); - case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP: - return ((InternalEList)getStringToAddressContainmentMap()).basicRemove(otherEnd, msgs); - case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP: - return ((InternalEList)getStringToAddressReferenceMap()).basicRemove(otherEnd, msgs); - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP: - return ((InternalEList)getEObjectToEObjectMap()).basicRemove(otherEnd, msgs); - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP: - return ((InternalEList)getEObjectToEObjectKeyContainedMap()).basicRemove(otherEnd, msgs); - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP: - return ((InternalEList)getEObjectToEObjectBothContainedMap()).basicRemove(otherEnd, msgs); - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP: - return ((InternalEList)getEObjectToEObjectValueContainedMap()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.MAP_HOLDER__INTEGER_TO_STRING_MAP: - if (coreType) - return getIntegerToStringMap(); - else - return getIntegerToStringMap().map(); - case Model2Package.MAP_HOLDER__STRING_TO_STRING_MAP: - if (coreType) - return getStringToStringMap(); - else - return getStringToStringMap().map(); - case Model2Package.MAP_HOLDER__STRING_TO_VAT_MAP: - if (coreType) - return getStringToVATMap(); - else - return getStringToVATMap().map(); - case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP: - if (coreType) - return getStringToAddressContainmentMap(); - else - return getStringToAddressContainmentMap().map(); - case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP: - if (coreType) - return getStringToAddressReferenceMap(); - else - return getStringToAddressReferenceMap().map(); - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP: - if (coreType) - return getEObjectToEObjectMap(); - else - return getEObjectToEObjectMap().map(); - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP: - if (coreType) - return getEObjectToEObjectKeyContainedMap(); - else - return getEObjectToEObjectKeyContainedMap().map(); - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP: - if (coreType) - return getEObjectToEObjectBothContainedMap(); - else - return getEObjectToEObjectBothContainedMap().map(); - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP: - if (coreType) - return getEObjectToEObjectValueContainedMap(); - else - return getEObjectToEObjectValueContainedMap().map(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.MAP_HOLDER__INTEGER_TO_STRING_MAP: - ((EStructuralFeature.Setting)getIntegerToStringMap()).set(newValue); - return; - case Model2Package.MAP_HOLDER__STRING_TO_STRING_MAP: - ((EStructuralFeature.Setting)getStringToStringMap()).set(newValue); - return; - case Model2Package.MAP_HOLDER__STRING_TO_VAT_MAP: - ((EStructuralFeature.Setting)getStringToVATMap()).set(newValue); - return; - case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP: - ((EStructuralFeature.Setting)getStringToAddressContainmentMap()).set(newValue); - return; - case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP: - ((EStructuralFeature.Setting)getStringToAddressReferenceMap()).set(newValue); - return; - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP: - ((EStructuralFeature.Setting)getEObjectToEObjectMap()).set(newValue); - return; - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP: - ((EStructuralFeature.Setting)getEObjectToEObjectKeyContainedMap()).set(newValue); - return; - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP: - ((EStructuralFeature.Setting)getEObjectToEObjectBothContainedMap()).set(newValue); - return; - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP: - ((EStructuralFeature.Setting)getEObjectToEObjectValueContainedMap()).set(newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.MAP_HOLDER__INTEGER_TO_STRING_MAP: - getIntegerToStringMap().clear(); - return; - case Model2Package.MAP_HOLDER__STRING_TO_STRING_MAP: - getStringToStringMap().clear(); - return; - case Model2Package.MAP_HOLDER__STRING_TO_VAT_MAP: - getStringToVATMap().clear(); - return; - case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP: - getStringToAddressContainmentMap().clear(); - return; - case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP: - getStringToAddressReferenceMap().clear(); - return; - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP: - getEObjectToEObjectMap().clear(); - return; - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP: - getEObjectToEObjectKeyContainedMap().clear(); - return; - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP: - getEObjectToEObjectBothContainedMap().clear(); - return; - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP: - getEObjectToEObjectValueContainedMap().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.MAP_HOLDER__INTEGER_TO_STRING_MAP: - return integerToStringMap != null && !integerToStringMap.isEmpty(); - case Model2Package.MAP_HOLDER__STRING_TO_STRING_MAP: - return stringToStringMap != null && !stringToStringMap.isEmpty(); - case Model2Package.MAP_HOLDER__STRING_TO_VAT_MAP: - return stringToVATMap != null && !stringToVATMap.isEmpty(); - case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP: - return stringToAddressContainmentMap != null && !stringToAddressContainmentMap.isEmpty(); - case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP: - return stringToAddressReferenceMap != null && !stringToAddressReferenceMap.isEmpty(); - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP: - return eObjectToEObjectMap != null && !eObjectToEObjectMap.isEmpty(); - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP: - return eObjectToEObjectKeyContainedMap != null && !eObjectToEObjectKeyContainedMap.isEmpty(); - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP: - return eObjectToEObjectBothContainedMap != null && !eObjectToEObjectBothContainedMap.isEmpty(); - case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP: - return eObjectToEObjectValueContainedMap != null && !eObjectToEObjectValueContainedMap.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // MapHolderImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Model2FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Model2FactoryImpl.java deleted file mode 100644 index 9e252411ef..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Model2FactoryImpl.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Factory; -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; -import org.eclipse.emf.cdo.tests.model1.Address; -import org.eclipse.emf.cdo.tests.model1.VAT; -import org.eclipse.emf.cdo.tests.model2.EnumListHolder; -import org.eclipse.emf.cdo.tests.model2.MapHolder; -import org.eclipse.emf.cdo.tests.model2.NotUnsettable; -import org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault; -import org.eclipse.emf.cdo.tests.model2.PersistentContainment; -import org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder; -import org.eclipse.emf.cdo.tests.model2.Task; -import org.eclipse.emf.cdo.tests.model2.TaskContainer; -import org.eclipse.emf.cdo.tests.model2.TransientContainer; -import org.eclipse.emf.cdo.tests.model2.Unsettable1; -import org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -import java.util.Map; - -/** - * An implementation of the model Factory. - * - * @generated - */ -public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory -{ - /** - * Creates the default factory implementation. - * - * @generated NOT - */ - public static Model2Factory init() - { - try - { - Model2Factory theModel2Factory = (Model2Factory)EPackage.Registry.INSTANCE - .getEFactory("http://www.eclipse.org/emf/CDO/tests/legacy/model2/1.0.0"); - if (theModel2Factory != null) - { - return theModel2Factory; - } - } - catch (Exception exception) - { - EcorePlugin.INSTANCE.log(exception); - } - return new Model2FactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * @generated - */ - public Model2FactoryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) - { - switch (eClass.getClassifierID()) - { - case Model2Package.SPECIAL_PURCHASE_ORDER: - return createSpecialPurchaseOrder(); - case Model2Package.TASK_CONTAINER: - return createTaskContainer(); - case Model2Package.TASK: - return createTask(); - case Model2Package.UNSETTABLE1: - return createUnsettable1(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT: - return createUnsettable2WithDefault(); - case Model2Package.PERSISTENT_CONTAINMENT: - return createPersistentContainment(); - case Model2Package.TRANSIENT_CONTAINER: - return createTransientContainer(); - case Model2Package.NOT_UNSETTABLE: - return createNotUnsettable(); - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT: - return createNotUnsettableWithDefault(); - case Model2Package.MAP_HOLDER: - return createMapHolder(); - case Model2Package.STRING_TO_STRING_MAP: - return (EObject)createStringToStringMap(); - case Model2Package.INTEGER_TO_STRING_MAP: - return (EObject)createIntegerToStringMap(); - case Model2Package.STRING_TO_VAT_MAP: - return (EObject)createStringToVATMap(); - case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP: - return (EObject)createStringToAddressContainmentMap(); - case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP: - return (EObject)createStringToAddressReferenceMap(); - case Model2Package.EOBJECT_TO_EOBJECT_MAP: - return (EObject)createEObjectToEObjectMap(); - case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP: - return (EObject)createEObjectToEObjectKeyContainedMap(); - case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP: - return (EObject)createEObjectToEObjectBothContainedMap(); - case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP: - return (EObject)createEObjectToEObjectValueContainedMap(); - case Model2Package.ENUM_LIST_HOLDER: - return createEnumListHolder(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - public SpecialPurchaseOrder createSpecialPurchaseOrder() - { - SpecialPurchaseOrderImpl specialPurchaseOrder = new SpecialPurchaseOrderImpl(); - return specialPurchaseOrder; - } - - /** - * - * - * @generated - */ - public TaskContainer createTaskContainer() - { - TaskContainerImpl taskContainer = new TaskContainerImpl(); - return taskContainer; - } - - /** - * - * - * @generated - */ - public Task createTask() - { - TaskImpl task = new TaskImpl(); - return task; - } - - /** - * - * - * @generated - */ - public Unsettable1 createUnsettable1() - { - Unsettable1Impl unsettable1 = new Unsettable1Impl(); - return unsettable1; - } - - /** - * - * - * @generated - */ - public Unsettable2WithDefault createUnsettable2WithDefault() - { - Unsettable2WithDefaultImpl unsettable2WithDefault = new Unsettable2WithDefaultImpl(); - return unsettable2WithDefault; - } - - /** - * - * - * @generated - */ - public PersistentContainment createPersistentContainment() - { - PersistentContainmentImpl persistentContainment = new PersistentContainmentImpl(); - return persistentContainment; - } - - /** - * - * - * @generated - */ - public TransientContainer createTransientContainer() - { - TransientContainerImpl transientContainer = new TransientContainerImpl(); - return transientContainer; - } - - /** - * - * - * @generated - */ - public NotUnsettable createNotUnsettable() - { - NotUnsettableImpl notUnsettable = new NotUnsettableImpl(); - return notUnsettable; - } - - /** - * - * - * @generated - */ - public NotUnsettableWithDefault createNotUnsettableWithDefault() - { - NotUnsettableWithDefaultImpl notUnsettableWithDefault = new NotUnsettableWithDefaultImpl(); - return notUnsettableWithDefault; - } - - /** - * - * - * @generated - */ - public MapHolder createMapHolder() - { - MapHolderImpl mapHolder = new MapHolderImpl(); - return mapHolder; - } - - /** - * - * - * @generated - */ - public Map.Entry createStringToStringMap() - { - StringToStringMapImpl stringToStringMap = new StringToStringMapImpl(); - return stringToStringMap; - } - - /** - * - * - * @generated - */ - public Map.Entry createIntegerToStringMap() - { - IntegerToStringMapImpl integerToStringMap = new IntegerToStringMapImpl(); - return integerToStringMap; - } - - /** - * - * - * @generated - */ - public Map.Entry createStringToVATMap() - { - StringToVATMapImpl stringToVATMap = new StringToVATMapImpl(); - return stringToVATMap; - } - - /** - * - * - * @generated - */ - public Map.Entry createStringToAddressContainmentMap() - { - StringToAddressContainmentMapImpl stringToAddressContainmentMap = new StringToAddressContainmentMapImpl(); - return stringToAddressContainmentMap; - } - - /** - * - * - * @generated - */ - public Map.Entry createStringToAddressReferenceMap() - { - StringToAddressReferenceMapImpl stringToAddressReferenceMap = new StringToAddressReferenceMapImpl(); - return stringToAddressReferenceMap; - } - - /** - * - * - * @generated - */ - public Map.Entry createEObjectToEObjectMap() - { - EObjectToEObjectMapImpl eObjectToEObjectMap = new EObjectToEObjectMapImpl(); - return eObjectToEObjectMap; - } - - /** - * - * - * @generated - */ - public Map.Entry createEObjectToEObjectKeyContainedMap() - { - EObjectToEObjectKeyContainedMapImpl eObjectToEObjectKeyContainedMap = new EObjectToEObjectKeyContainedMapImpl(); - return eObjectToEObjectKeyContainedMap; - } - - /** - * - * - * @generated - */ - public Map.Entry createEObjectToEObjectBothContainedMap() - { - EObjectToEObjectBothContainedMapImpl eObjectToEObjectBothContainedMap = new EObjectToEObjectBothContainedMapImpl(); - return eObjectToEObjectBothContainedMap; - } - - /** - * - * - * @generated - */ - public Map.Entry createEObjectToEObjectValueContainedMap() - { - EObjectToEObjectValueContainedMapImpl eObjectToEObjectValueContainedMap = new EObjectToEObjectValueContainedMapImpl(); - return eObjectToEObjectValueContainedMap; - } - - /** - * - * - * @generated - */ - public EnumListHolder createEnumListHolder() - { - EnumListHolderImpl enumListHolder = new EnumListHolderImpl(); - return enumListHolder; - } - - /** - * - * - * @generated - */ - public Model2Package getModel2Package() - { - return (Model2Package)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static Model2Package getPackage() - { - return Model2Package.eINSTANCE; - } - -} // Model2FactoryImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Model2PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Model2PackageImpl.java deleted file mode 100644 index 7d20f15671..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Model2PackageImpl.java +++ /dev/null @@ -1,1785 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package; -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Factory; -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; -import org.eclipse.emf.cdo.tests.model2.EnumListHolder; -import org.eclipse.emf.cdo.tests.model2.MapHolder; -import org.eclipse.emf.cdo.tests.model2.NotUnsettable; -import org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault; -import org.eclipse.emf.cdo.tests.model2.PersistentContainment; -import org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder; -import org.eclipse.emf.cdo.tests.model2.Task; -import org.eclipse.emf.cdo.tests.model2.TaskContainer; -import org.eclipse.emf.cdo.tests.model2.TransientContainer; -import org.eclipse.emf.cdo.tests.model2.Unsettable1; -import org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; - -import java.util.Map; - -/** - * An implementation of the model Package. - * - * @generated - */ -public class Model2PackageImpl extends EPackageImpl implements Model2Package -{ - /** - * - * - * @generated - */ - private EClass specialPurchaseOrderEClass = null; - - /** - * - * - * @generated - */ - private EClass taskContainerEClass = null; - - /** - * - * - * @generated - */ - private EClass taskEClass = null; - - /** - * - * - * @generated - */ - private EClass unsettable1EClass = null; - - /** - * - * - * @generated - */ - private EClass unsettable2WithDefaultEClass = null; - - /** - * - * - * @generated - */ - private EClass persistentContainmentEClass = null; - - /** - * - * - * @generated - */ - private EClass transientContainerEClass = null; - - /** - * - * - * @generated - */ - private EClass notUnsettableEClass = null; - - /** - * - * - * @generated - */ - private EClass notUnsettableWithDefaultEClass = null; - - /** - * - * - * @generated - */ - private EClass mapHolderEClass = null; - - /** - * - * - * @generated - */ - private EClass stringToStringMapEClass = null; - - /** - * - * - * @generated - */ - private EClass integerToStringMapEClass = null; - - /** - * - * - * @generated - */ - private EClass stringToVATMapEClass = null; - - /** - * - * - * @generated - */ - private EClass stringToAddressContainmentMapEClass = null; - - /** - * - * - * @generated - */ - private EClass stringToAddressReferenceMapEClass = null; - - /** - * - * - * @generated - */ - private EClass eObjectToEObjectMapEClass = null; - - /** - * - * - * @generated - */ - private EClass eObjectToEObjectKeyContainedMapEClass = null; - - /** - * - * - * @generated - */ - private EClass eObjectToEObjectBothContainedMapEClass = null; - - /** - * - * - * @generated - */ - private EClass eObjectToEObjectValueContainedMapEClass = null; - - /** - * - * - * @generated - */ - private EClass enumListHolderEClass = null; - - /** - * Creates an instance of the model Package, registered with {@link org.eclipse.emf.ecore.EPackage.Registry - * EPackage.Registry} by the package package URI value. - *

- * 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. - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.emf.cdo.tests.legacy.model2.Model2Package#eNS_URI - * @see #init() - * @generated - */ - private Model2PackageImpl() - { - super(eNS_URI, Model2Factory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - *

- * This method is used to initialize {@link Model2Package#eINSTANCE} when that field is accessed. Clients should not - * invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static Model2Package init() - { - if (isInited) - return (Model2Package)EPackage.Registry.INSTANCE.getEPackage(Model2Package.eNS_URI); - - // Obtain or create and register package - Model2PackageImpl theModel2Package = (Model2PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Model2PackageImpl ? EPackage.Registry.INSTANCE - .get(eNS_URI) : new Model2PackageImpl()); - - isInited = true; - - // Initialize simple dependencies - Model1Package.eINSTANCE.eClass(); - - // Create package meta-data objects - theModel2Package.createPackageContents(); - - // Initialize created meta-data - theModel2Package.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theModel2Package.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(Model2Package.eNS_URI, theModel2Package); - return theModel2Package; - } - - /** - * - * - * @generated - */ - public EClass getSpecialPurchaseOrder() - { - return specialPurchaseOrderEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getSpecialPurchaseOrder_DiscountCode() - { - return (EAttribute)specialPurchaseOrderEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getSpecialPurchaseOrder_ShippingAddress() - { - return (EReference)specialPurchaseOrderEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getTaskContainer() - { - return taskContainerEClass; - } - - /** - * - * - * @generated - */ - public EReference getTaskContainer_Tasks() - { - return (EReference)taskContainerEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getTask() - { - return taskEClass; - } - - /** - * - * - * @generated - */ - public EReference getTask_TaskContainer() - { - return (EReference)taskEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getTask_Description() - { - return (EAttribute)taskEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getTask_Done() - { - return (EAttribute)taskEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getUnsettable1() - { - return unsettable1EClass; - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable1_UnsettableBoolean() - { - return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable1_UnsettableByte() - { - return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable1_UnsettableChar() - { - return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable1_UnsettableDate() - { - return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable1_UnsettableDouble() - { - return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable1_UnsettableFloat() - { - return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable1_UnsettableInt() - { - return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(6); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable1_UnsettableLong() - { - return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(7); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable1_UnsettableShort() - { - return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(8); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable1_UnsettableString() - { - return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(9); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable1_UnsettableVAT() - { - return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(10); - } - - /** - * - * - * @generated - */ - public EClass getUnsettable2WithDefault() - { - return unsettable2WithDefaultEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable2WithDefault_UnsettableBoolean() - { - return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable2WithDefault_UnsettableByte() - { - return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable2WithDefault_UnsettableChar() - { - return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable2WithDefault_UnsettableDate() - { - return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable2WithDefault_UnsettableDouble() - { - return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable2WithDefault_UnsettableFloat() - { - return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable2WithDefault_UnsettableInt() - { - return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(6); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable2WithDefault_UnsettableLong() - { - return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(7); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable2WithDefault_UnsettableShort() - { - return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(8); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable2WithDefault_UnsettableString() - { - return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(9); - } - - /** - * - * - * @generated - */ - public EAttribute getUnsettable2WithDefault_UnsettableVAT() - { - return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(10); - } - - /** - * - * - * @generated - */ - public EClass getPersistentContainment() - { - return persistentContainmentEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getPersistentContainment_AttrBefore() - { - return (EAttribute)persistentContainmentEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getPersistentContainment_Children() - { - return (EReference)persistentContainmentEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getPersistentContainment_AttrAfter() - { - return (EAttribute)persistentContainmentEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getTransientContainer() - { - return transientContainerEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getTransientContainer_AttrBefore() - { - return (EAttribute)transientContainerEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getTransientContainer_Parent() - { - return (EReference)transientContainerEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getTransientContainer_AttrAfter() - { - return (EAttribute)transientContainerEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getNotUnsettable() - { - return notUnsettableEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettable_NotUnsettableBoolean() - { - return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettable_NotUnsettableByte() - { - return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettable_NotUnsettableChar() - { - return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettable_NotUnsettableDate() - { - return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettable_NotUnsettableDouble() - { - return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettable_NotUnsettableFloat() - { - return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettable_NotUnsettableInt() - { - return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(6); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettable_NotUnsettableLong() - { - return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(7); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettable_NotUnsettableShort() - { - return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(8); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettable_NotUnsettableString() - { - return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(9); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettable_NotUnsettableVAT() - { - return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(10); - } - - /** - * - * - * @generated - */ - public EClass getNotUnsettableWithDefault() - { - return notUnsettableWithDefaultEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettableWithDefault_NotUnsettableBoolean() - { - return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettableWithDefault_NotUnsettableByte() - { - return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettableWithDefault_NotUnsettableChar() - { - return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettableWithDefault_NotUnsettableDate() - { - return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettableWithDefault_NotUnsettableDouble() - { - return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettableWithDefault_NotUnsettableFloat() - { - return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettableWithDefault_NotUnsettableInt() - { - return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(6); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettableWithDefault_NotUnsettableLong() - { - return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(7); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettableWithDefault_NotUnsettableShort() - { - return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(8); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettableWithDefault_NotUnsettableString() - { - return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(9); - } - - /** - * - * - * @generated - */ - public EAttribute getNotUnsettableWithDefault_NotUnsettableVAT() - { - return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(10); - } - - /** - * - * - * @generated - */ - public EClass getMapHolder() - { - return mapHolderEClass; - } - - /** - * - * - * @generated - */ - public EReference getMapHolder_IntegerToStringMap() - { - return (EReference)mapHolderEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getMapHolder_StringToStringMap() - { - return (EReference)mapHolderEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getMapHolder_StringToVATMap() - { - return (EReference)mapHolderEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EReference getMapHolder_StringToAddressContainmentMap() - { - return (EReference)mapHolderEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - public EReference getMapHolder_StringToAddressReferenceMap() - { - return (EReference)mapHolderEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - public EReference getMapHolder_EObjectToEObjectMap() - { - return (EReference)mapHolderEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - public EReference getMapHolder_EObjectToEObjectKeyContainedMap() - { - return (EReference)mapHolderEClass.getEStructuralFeatures().get(6); - } - - /** - * - * - * @generated - */ - public EReference getMapHolder_EObjectToEObjectBothContainedMap() - { - return (EReference)mapHolderEClass.getEStructuralFeatures().get(7); - } - - /** - * - * - * @generated - */ - public EReference getMapHolder_EObjectToEObjectValueContainedMap() - { - return (EReference)mapHolderEClass.getEStructuralFeatures().get(8); - } - - /** - * - * - * @generated - */ - public EClass getStringToStringMap() - { - return stringToStringMapEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getStringToStringMap_Key() - { - return (EAttribute)stringToStringMapEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getStringToStringMap_Value() - { - return (EAttribute)stringToStringMapEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getIntegerToStringMap() - { - return integerToStringMapEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getIntegerToStringMap_Key() - { - return (EAttribute)integerToStringMapEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getIntegerToStringMap_Value() - { - return (EAttribute)integerToStringMapEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getStringToVATMap() - { - return stringToVATMapEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getStringToVATMap_Key() - { - return (EAttribute)stringToVATMapEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getStringToVATMap_Value() - { - return (EAttribute)stringToVATMapEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getStringToAddressContainmentMap() - { - return stringToAddressContainmentMapEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getStringToAddressContainmentMap_Key() - { - return (EAttribute)stringToAddressContainmentMapEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getStringToAddressContainmentMap_Value() - { - return (EReference)stringToAddressContainmentMapEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getStringToAddressReferenceMap() - { - return stringToAddressReferenceMapEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getStringToAddressReferenceMap_Key() - { - return (EAttribute)stringToAddressReferenceMapEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getStringToAddressReferenceMap_Value() - { - return (EReference)stringToAddressReferenceMapEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getEObjectToEObjectMap() - { - return eObjectToEObjectMapEClass; - } - - /** - * - * - * @generated - */ - public EReference getEObjectToEObjectMap_Key() - { - return (EReference)eObjectToEObjectMapEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getEObjectToEObjectMap_Value() - { - return (EReference)eObjectToEObjectMapEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getEObjectToEObjectKeyContainedMap() - { - return eObjectToEObjectKeyContainedMapEClass; - } - - /** - * - * - * @generated - */ - public EReference getEObjectToEObjectKeyContainedMap_Key() - { - return (EReference)eObjectToEObjectKeyContainedMapEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getEObjectToEObjectKeyContainedMap_Value() - { - return (EReference)eObjectToEObjectKeyContainedMapEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getEObjectToEObjectBothContainedMap() - { - return eObjectToEObjectBothContainedMapEClass; - } - - /** - * - * - * @generated - */ - public EReference getEObjectToEObjectBothContainedMap_Key() - { - return (EReference)eObjectToEObjectBothContainedMapEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getEObjectToEObjectBothContainedMap_Value() - { - return (EReference)eObjectToEObjectBothContainedMapEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getEObjectToEObjectValueContainedMap() - { - return eObjectToEObjectValueContainedMapEClass; - } - - /** - * - * - * @generated - */ - public EReference getEObjectToEObjectValueContainedMap_Key() - { - return (EReference)eObjectToEObjectValueContainedMapEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getEObjectToEObjectValueContainedMap_Value() - { - return (EReference)eObjectToEObjectValueContainedMapEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getEnumListHolder() - { - return enumListHolderEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getEnumListHolder_EnumList() - { - return (EAttribute)enumListHolderEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public Model2Factory getModel2Factory() - { - return (Model2Factory)getEFactoryInstance(); - } - - /** - * - * - * @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. - * - * @generated - */ - public void createPackageContents() - { - if (isCreated) - return; - isCreated = true; - - // Create classes and their features - specialPurchaseOrderEClass = createEClass(SPECIAL_PURCHASE_ORDER); - createEAttribute(specialPurchaseOrderEClass, SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE); - createEReference(specialPurchaseOrderEClass, SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS); - - taskContainerEClass = createEClass(TASK_CONTAINER); - createEReference(taskContainerEClass, TASK_CONTAINER__TASKS); - - taskEClass = createEClass(TASK); - createEReference(taskEClass, TASK__TASK_CONTAINER); - createEAttribute(taskEClass, TASK__DESCRIPTION); - createEAttribute(taskEClass, TASK__DONE); - - unsettable1EClass = createEClass(UNSETTABLE1); - createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_BOOLEAN); - createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_BYTE); - createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_CHAR); - createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_DATE); - createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_DOUBLE); - createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_FLOAT); - createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_INT); - createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_LONG); - createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_SHORT); - createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_STRING); - createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_VAT); - - unsettable2WithDefaultEClass = createEClass(UNSETTABLE2_WITH_DEFAULT); - createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN); - createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE); - createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR); - createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE); - createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE); - createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT); - createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT); - createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG); - createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT); - createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING); - createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT); - - persistentContainmentEClass = createEClass(PERSISTENT_CONTAINMENT); - createEAttribute(persistentContainmentEClass, PERSISTENT_CONTAINMENT__ATTR_BEFORE); - createEReference(persistentContainmentEClass, PERSISTENT_CONTAINMENT__CHILDREN); - createEAttribute(persistentContainmentEClass, PERSISTENT_CONTAINMENT__ATTR_AFTER); - - transientContainerEClass = createEClass(TRANSIENT_CONTAINER); - createEAttribute(transientContainerEClass, TRANSIENT_CONTAINER__ATTR_BEFORE); - createEReference(transientContainerEClass, TRANSIENT_CONTAINER__PARENT); - createEAttribute(transientContainerEClass, TRANSIENT_CONTAINER__ATTR_AFTER); - - notUnsettableEClass = createEClass(NOT_UNSETTABLE); - createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN); - createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE); - createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR); - createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_DATE); - createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE); - createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT); - createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_INT); - createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_LONG); - createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT); - createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_STRING); - createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_VAT); - - notUnsettableWithDefaultEClass = createEClass(NOT_UNSETTABLE_WITH_DEFAULT); - createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BOOLEAN); - createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BYTE); - createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_CHAR); - createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DATE); - createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DOUBLE); - createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_FLOAT); - createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_INT); - createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_LONG); - createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_SHORT); - createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_STRING); - createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_VAT); - - mapHolderEClass = createEClass(MAP_HOLDER); - createEReference(mapHolderEClass, MAP_HOLDER__INTEGER_TO_STRING_MAP); - createEReference(mapHolderEClass, MAP_HOLDER__STRING_TO_STRING_MAP); - createEReference(mapHolderEClass, MAP_HOLDER__STRING_TO_VAT_MAP); - createEReference(mapHolderEClass, MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP); - createEReference(mapHolderEClass, MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP); - createEReference(mapHolderEClass, MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP); - createEReference(mapHolderEClass, MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP); - createEReference(mapHolderEClass, MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP); - createEReference(mapHolderEClass, MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP); - - stringToStringMapEClass = createEClass(STRING_TO_STRING_MAP); - createEAttribute(stringToStringMapEClass, STRING_TO_STRING_MAP__KEY); - createEAttribute(stringToStringMapEClass, STRING_TO_STRING_MAP__VALUE); - - integerToStringMapEClass = createEClass(INTEGER_TO_STRING_MAP); - createEAttribute(integerToStringMapEClass, INTEGER_TO_STRING_MAP__KEY); - createEAttribute(integerToStringMapEClass, INTEGER_TO_STRING_MAP__VALUE); - - stringToVATMapEClass = createEClass(STRING_TO_VAT_MAP); - createEAttribute(stringToVATMapEClass, STRING_TO_VAT_MAP__KEY); - createEAttribute(stringToVATMapEClass, STRING_TO_VAT_MAP__VALUE); - - stringToAddressContainmentMapEClass = createEClass(STRING_TO_ADDRESS_CONTAINMENT_MAP); - createEAttribute(stringToAddressContainmentMapEClass, STRING_TO_ADDRESS_CONTAINMENT_MAP__KEY); - createEReference(stringToAddressContainmentMapEClass, STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE); - - stringToAddressReferenceMapEClass = createEClass(STRING_TO_ADDRESS_REFERENCE_MAP); - createEAttribute(stringToAddressReferenceMapEClass, STRING_TO_ADDRESS_REFERENCE_MAP__KEY); - createEReference(stringToAddressReferenceMapEClass, STRING_TO_ADDRESS_REFERENCE_MAP__VALUE); - - eObjectToEObjectMapEClass = createEClass(EOBJECT_TO_EOBJECT_MAP); - createEReference(eObjectToEObjectMapEClass, EOBJECT_TO_EOBJECT_MAP__KEY); - createEReference(eObjectToEObjectMapEClass, EOBJECT_TO_EOBJECT_MAP__VALUE); - - eObjectToEObjectKeyContainedMapEClass = createEClass(EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP); - createEReference(eObjectToEObjectKeyContainedMapEClass, EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY); - createEReference(eObjectToEObjectKeyContainedMapEClass, EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE); - - eObjectToEObjectBothContainedMapEClass = createEClass(EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP); - createEReference(eObjectToEObjectBothContainedMapEClass, EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY); - createEReference(eObjectToEObjectBothContainedMapEClass, EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE); - - eObjectToEObjectValueContainedMapEClass = createEClass(EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP); - createEReference(eObjectToEObjectValueContainedMapEClass, EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY); - createEReference(eObjectToEObjectValueContainedMapEClass, EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE); - - enumListHolderEClass = createEClass(ENUM_LIST_HOLDER); - createEAttribute(enumListHolderEClass, ENUM_LIST_HOLDER__ENUM_LIST); - } - - /** - * - * - * @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. - * - * @generated - */ - public void initializePackageContents() - { - if (isInitialized) - return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - Model1Package theModel1Package = (Model1Package)EPackage.Registry.INSTANCE.getEPackage(Model1Package.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - specialPurchaseOrderEClass.getESuperTypes().add(theModel1Package.getPurchaseOrder()); - - // Initialize classes and features; add operations and parameters - initEClass(specialPurchaseOrderEClass, SpecialPurchaseOrder.class, "SpecialPurchaseOrder", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSpecialPurchaseOrder_DiscountCode(), ecorePackage.getEString(), "discountCode", null, 0, 1, - SpecialPurchaseOrder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getSpecialPurchaseOrder_ShippingAddress(), theModel1Package.getAddress(), null, "shippingAddress", - null, 0, 1, SpecialPurchaseOrder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(taskContainerEClass, TaskContainer.class, "TaskContainer", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getTaskContainer_Tasks(), this.getTask(), this.getTask_TaskContainer(), "tasks", null, 0, -1, - TaskContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(taskEClass, Task.class, "Task", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getTask_TaskContainer(), this.getTaskContainer(), this.getTaskContainer_Tasks(), "taskContainer", - null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTask_Description(), ecorePackage.getEString(), "description", null, 0, 1, Task.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTask_Done(), ecorePackage.getEBoolean(), "done", null, 0, 1, Task.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(unsettable1EClass, Unsettable1.class, "Unsettable1", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getUnsettable1_UnsettableBoolean(), ecorePackage.getEBoolean(), "unsettableBoolean", null, 0, 1, - Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getUnsettable1_UnsettableByte(), ecorePackage.getEByte(), "unsettableByte", null, 0, 1, - Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getUnsettable1_UnsettableChar(), ecorePackage.getEChar(), "unsettableChar", null, 0, 1, - Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getUnsettable1_UnsettableDate(), ecorePackage.getEDate(), "unsettableDate", null, 0, 1, - Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getUnsettable1_UnsettableDouble(), ecorePackage.getEDouble(), "unsettableDouble", null, 0, 1, - Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getUnsettable1_UnsettableFloat(), ecorePackage.getEFloat(), "unsettableFloat", null, 0, 1, - Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getUnsettable1_UnsettableInt(), ecorePackage.getEInt(), "unsettableInt", null, 0, 1, - Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getUnsettable1_UnsettableLong(), ecorePackage.getELong(), "unsettableLong", null, 0, 1, - Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getUnsettable1_UnsettableShort(), ecorePackage.getEShort(), "unsettableShort", null, 0, 1, - Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getUnsettable1_UnsettableString(), ecorePackage.getEString(), "unsettableString", null, 0, 1, - Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getUnsettable1_UnsettableVAT(), theModel1Package.getVAT(), "unsettableVAT", null, 0, 1, - Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(unsettable2WithDefaultEClass, Unsettable2WithDefault.class, "Unsettable2WithDefault", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getUnsettable2WithDefault_UnsettableBoolean(), ecorePackage.getEBoolean(), "unsettableBoolean", - "true", 0, 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getUnsettable2WithDefault_UnsettableByte(), ecorePackage.getEByte(), "unsettableByte", "3", 0, 1, - Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getUnsettable2WithDefault_UnsettableChar(), ecorePackage.getEChar(), "unsettableChar", "\'x\'", 0, - 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getUnsettable2WithDefault_UnsettableDate(), ecorePackage.getEDate(), "unsettableDate", - "2009-12-21T15:12:59", 0, 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getUnsettable2WithDefault_UnsettableDouble(), ecorePackage.getEDouble(), "unsettableDouble", "3.3", - 0, 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getUnsettable2WithDefault_UnsettableFloat(), ecorePackage.getEFloat(), "unsettableFloat", "4.4", 0, - 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getUnsettable2WithDefault_UnsettableInt(), ecorePackage.getEInt(), "unsettableInt", "5", 0, 1, - Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getUnsettable2WithDefault_UnsettableLong(), ecorePackage.getELong(), "unsettableLong", "6", 0, 1, - Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getUnsettable2WithDefault_UnsettableShort(), ecorePackage.getEShort(), "unsettableShort", "7", 0, 1, - Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getUnsettable2WithDefault_UnsettableString(), ecorePackage.getEString(), "unsettableString", - "\"eike\"", 0, 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, - !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getUnsettable2WithDefault_UnsettableVAT(), theModel1Package.getVAT(), "unsettableVAT", "vat15", 0, - 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(persistentContainmentEClass, PersistentContainment.class, "PersistentContainment", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPersistentContainment_AttrBefore(), ecorePackage.getEString(), "attrBefore", null, 0, 1, - PersistentContainment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getPersistentContainment_Children(), this.getTransientContainer(), - this.getTransientContainer_Parent(), "children", null, 0, -1, PersistentContainment.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - !IS_ORDERED); - initEAttribute(getPersistentContainment_AttrAfter(), ecorePackage.getEString(), "attrAfter", null, 0, 1, - PersistentContainment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(transientContainerEClass, TransientContainer.class, "TransientContainer", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getTransientContainer_AttrBefore(), ecorePackage.getEString(), "attrBefore", null, 0, 1, - TransientContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getTransientContainer_Parent(), this.getPersistentContainment(), - this.getPersistentContainment_Children(), "parent", null, 0, 1, TransientContainer.class, IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getTransientContainer_AttrAfter(), ecorePackage.getEString(), "attrAfter", null, 0, 1, - TransientContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(notUnsettableEClass, NotUnsettable.class, "NotUnsettable", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getNotUnsettable_NotUnsettableBoolean(), ecorePackage.getEBoolean(), "notUnsettableBoolean", null, - 0, 1, NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettable_NotUnsettableByte(), ecorePackage.getEByte(), "notUnsettableByte", null, 0, 1, - NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettable_NotUnsettableChar(), ecorePackage.getEChar(), "notUnsettableChar", null, 0, 1, - NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettable_NotUnsettableDate(), ecorePackage.getEDate(), "notUnsettableDate", null, 0, 1, - NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettable_NotUnsettableDouble(), ecorePackage.getEDouble(), "notUnsettableDouble", null, 0, - 1, NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettable_NotUnsettableFloat(), ecorePackage.getEFloat(), "notUnsettableFloat", null, 0, 1, - NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettable_NotUnsettableInt(), ecorePackage.getEInt(), "notUnsettableInt", null, 0, 1, - NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettable_NotUnsettableLong(), ecorePackage.getELong(), "notUnsettableLong", null, 0, 1, - NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettable_NotUnsettableShort(), ecorePackage.getEShort(), "notUnsettableShort", null, 0, 1, - NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettable_NotUnsettableString(), ecorePackage.getEString(), "notUnsettableString", null, 0, - 1, NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettable_NotUnsettableVAT(), theModel1Package.getVAT(), "notUnsettableVAT", null, 0, 1, - NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(notUnsettableWithDefaultEClass, NotUnsettableWithDefault.class, "NotUnsettableWithDefault", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getNotUnsettableWithDefault_NotUnsettableBoolean(), ecorePackage.getEBoolean(), - "notUnsettableBoolean", "true", 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettableWithDefault_NotUnsettableByte(), ecorePackage.getEByte(), "notUnsettableByte", "3", - 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettableWithDefault_NotUnsettableChar(), ecorePackage.getEChar(), "notUnsettableChar", - "\'x\'", 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, - !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettableWithDefault_NotUnsettableDate(), ecorePackage.getEDate(), "notUnsettableDate", - "1979-03-15T07:12:59", 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettableWithDefault_NotUnsettableDouble(), ecorePackage.getEDouble(), "notUnsettableDouble", - "3.3", 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, - !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettableWithDefault_NotUnsettableFloat(), ecorePackage.getEFloat(), "notUnsettableFloat", - "4.4", 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, - !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettableWithDefault_NotUnsettableInt(), ecorePackage.getEInt(), "notUnsettableInt", "5", 0, - 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettableWithDefault_NotUnsettableLong(), ecorePackage.getELong(), "notUnsettableLong", "6", - 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettableWithDefault_NotUnsettableShort(), ecorePackage.getEShort(), "notUnsettableShort", - "7", 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettableWithDefault_NotUnsettableString(), ecorePackage.getEString(), "notUnsettableString", - "\"eike\"", 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, - !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getNotUnsettableWithDefault_NotUnsettableVAT(), theModel1Package.getVAT(), "notUnsettableVAT", - "vat15", 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, - !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(mapHolderEClass, MapHolder.class, "MapHolder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getMapHolder_IntegerToStringMap(), this.getIntegerToStringMap(), null, "integerToStringMap", null, - 0, -1, MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMapHolder_StringToStringMap(), this.getStringToStringMap(), null, "stringToStringMap", null, 0, - -1, MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMapHolder_StringToVATMap(), this.getStringToVATMap(), null, "stringToVATMap", null, 0, -1, - MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMapHolder_StringToAddressContainmentMap(), this.getStringToAddressContainmentMap(), null, - "stringToAddressContainmentMap", null, 0, -1, MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMapHolder_StringToAddressReferenceMap(), this.getStringToAddressReferenceMap(), null, - "stringToAddressReferenceMap", null, 0, -1, MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMapHolder_EObjectToEObjectMap(), this.getEObjectToEObjectMap(), null, "eObjectToEObjectMap", - null, 0, -1, MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMapHolder_EObjectToEObjectKeyContainedMap(), this.getEObjectToEObjectKeyContainedMap(), null, - "eObjectToEObjectKeyContainedMap", null, 0, -1, MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMapHolder_EObjectToEObjectBothContainedMap(), this.getEObjectToEObjectBothContainedMap(), null, - "eObjectToEObjectBothContainedMap", null, 0, -1, MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMapHolder_EObjectToEObjectValueContainedMap(), this.getEObjectToEObjectValueContainedMap(), null, - "eObjectToEObjectValueContainedMap", null, 0, -1, MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(stringToStringMapEClass, Map.Entry.class, "StringToStringMap", !IS_ABSTRACT, !IS_INTERFACE, - !IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getStringToStringMap_Key(), ecorePackage.getEString(), "key", null, 0, 1, Map.Entry.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getStringToStringMap_Value(), ecorePackage.getEString(), "value", null, 0, 1, Map.Entry.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(integerToStringMapEClass, Map.Entry.class, "IntegerToStringMap", !IS_ABSTRACT, !IS_INTERFACE, - !IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getIntegerToStringMap_Key(), ecorePackage.getEIntegerObject(), "key", null, 0, 1, Map.Entry.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getIntegerToStringMap_Value(), ecorePackage.getEString(), "value", null, 0, 1, Map.Entry.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(stringToVATMapEClass, Map.Entry.class, "StringToVATMap", !IS_ABSTRACT, !IS_INTERFACE, - !IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getStringToVATMap_Key(), ecorePackage.getEString(), "key", null, 0, 1, Map.Entry.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getStringToVATMap_Value(), theModel1Package.getVAT(), "value", null, 0, 1, Map.Entry.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(stringToAddressContainmentMapEClass, Map.Entry.class, "StringToAddressContainmentMap", !IS_ABSTRACT, - !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getStringToAddressContainmentMap_Key(), ecorePackage.getEString(), "key", null, 0, 1, - Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getStringToAddressContainmentMap_Value(), theModel1Package.getAddress(), null, "value", null, 0, 1, - Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(stringToAddressReferenceMapEClass, Map.Entry.class, "StringToAddressReferenceMap", !IS_ABSTRACT, - !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getStringToAddressReferenceMap_Key(), ecorePackage.getEString(), "key", null, 0, 1, Map.Entry.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getStringToAddressReferenceMap_Value(), theModel1Package.getAddress(), null, "value", null, 0, 1, - Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(eObjectToEObjectMapEClass, Map.Entry.class, "EObjectToEObjectMap", !IS_ABSTRACT, !IS_INTERFACE, - !IS_GENERATED_INSTANCE_CLASS); - initEReference(getEObjectToEObjectMap_Key(), ecorePackage.getEObject(), null, "key", null, 0, 1, Map.Entry.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getEObjectToEObjectMap_Value(), ecorePackage.getEObject(), null, "value", null, 0, 1, - Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(eObjectToEObjectKeyContainedMapEClass, Map.Entry.class, "EObjectToEObjectKeyContainedMap", !IS_ABSTRACT, - !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); - initEReference(getEObjectToEObjectKeyContainedMap_Key(), ecorePackage.getEObject(), null, "key", null, 0, 1, - Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEObjectToEObjectKeyContainedMap_Value(), ecorePackage.getEObject(), null, "value", null, 0, 1, - Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(eObjectToEObjectBothContainedMapEClass, Map.Entry.class, "EObjectToEObjectBothContainedMap", - !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); - initEReference(getEObjectToEObjectBothContainedMap_Key(), ecorePackage.getEObject(), null, "key", null, 0, 1, - Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEObjectToEObjectBothContainedMap_Value(), ecorePackage.getEObject(), null, "value", null, 0, 1, - Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(eObjectToEObjectValueContainedMapEClass, Map.Entry.class, "EObjectToEObjectValueContainedMap", - !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); - initEReference(getEObjectToEObjectValueContainedMap_Key(), ecorePackage.getEObject(), null, "key", null, 0, 1, - Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEObjectToEObjectValueContainedMap_Value(), ecorePackage.getEObject(), null, "value", null, 0, 1, - Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(enumListHolderEClass, EnumListHolder.class, "EnumListHolder", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getEnumListHolder_EnumList(), theModel1Package.getVAT(), "enumList", null, 0, -1, - EnumListHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} // Model2PackageImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/NotUnsettableImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/NotUnsettableImpl.java deleted file mode 100644 index c36361b212..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/NotUnsettableImpl.java +++ /dev/null @@ -1,771 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - * - * $Id: NotUnsettableImpl.java,v 1.3 2011-01-01 11:01:57 estepper Exp $ - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; -import org.eclipse.emf.cdo.tests.model1.VAT; -import org.eclipse.emf.cdo.tests.model2.NotUnsettable; - -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 java.util.Date; - -/** - * An implementation of the model object 'Not Unsettable'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableImpl#isNotUnsettableBoolean Not Unsettable - * Boolean}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableImpl#getNotUnsettableByte Not Unsettable - * Byte}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableImpl#getNotUnsettableChar Not Unsettable - * Char}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableImpl#getNotUnsettableDate Not Unsettable - * Date}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableImpl#getNotUnsettableDouble Not Unsettable - * Double}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableImpl#getNotUnsettableFloat Not Unsettable - * Float}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableImpl#getNotUnsettableInt Not Unsettable Int - * }
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableImpl#getNotUnsettableLong Not Unsettable - * Long}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableImpl#getNotUnsettableShort Not Unsettable - * Short}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableImpl#getNotUnsettableString Not Unsettable - * String}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableImpl#getNotUnsettableVAT Not Unsettable VAT - * }
  • - *
- *

- * - * @generated - */ -public class NotUnsettableImpl extends EObjectImpl implements NotUnsettable -{ - /** - * The default value of the '{@link #isNotUnsettableBoolean() Not Unsettable Boolean}' attribute. - * - * @see #isNotUnsettableBoolean() - * @generated - * @ordered - */ - protected static final boolean NOT_UNSETTABLE_BOOLEAN_EDEFAULT = false; - - /** - * The cached value of the '{@link #isNotUnsettableBoolean() Not Unsettable Boolean}' attribute. - * - * @see #isNotUnsettableBoolean() - * @generated - * @ordered - */ - protected boolean notUnsettableBoolean = NOT_UNSETTABLE_BOOLEAN_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableByte() Not Unsettable Byte}' attribute. - * - * @see #getNotUnsettableByte() - * @generated - * @ordered - */ - protected static final byte NOT_UNSETTABLE_BYTE_EDEFAULT = 0x00; - - /** - * The cached value of the '{@link #getNotUnsettableByte() Not Unsettable Byte}' attribute. - * - * @see #getNotUnsettableByte() - * @generated - * @ordered - */ - protected byte notUnsettableByte = NOT_UNSETTABLE_BYTE_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableChar() Not Unsettable Char}' attribute. - * - * @see #getNotUnsettableChar() - * @generated - * @ordered - */ - protected static final char NOT_UNSETTABLE_CHAR_EDEFAULT = '\u0000'; - - /** - * The cached value of the '{@link #getNotUnsettableChar() Not Unsettable Char}' attribute. - * - * @see #getNotUnsettableChar() - * @generated - * @ordered - */ - protected char notUnsettableChar = NOT_UNSETTABLE_CHAR_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableDate() Not Unsettable Date}' attribute. - * - * @see #getNotUnsettableDate() - * @generated - * @ordered - */ - protected static final Date NOT_UNSETTABLE_DATE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getNotUnsettableDate() Not Unsettable Date}' attribute. - * - * @see #getNotUnsettableDate() - * @generated - * @ordered - */ - protected Date notUnsettableDate = NOT_UNSETTABLE_DATE_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableDouble() Not Unsettable Double}' attribute. - * - * @see #getNotUnsettableDouble() - * @generated - * @ordered - */ - protected static final double NOT_UNSETTABLE_DOUBLE_EDEFAULT = 0.0; - - /** - * The cached value of the '{@link #getNotUnsettableDouble() Not Unsettable Double}' attribute. - * - * @see #getNotUnsettableDouble() - * @generated - * @ordered - */ - protected double notUnsettableDouble = NOT_UNSETTABLE_DOUBLE_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableFloat() Not Unsettable Float}' attribute. - * - * @see #getNotUnsettableFloat() - * @generated - * @ordered - */ - protected static final float NOT_UNSETTABLE_FLOAT_EDEFAULT = 0.0F; - - /** - * The cached value of the '{@link #getNotUnsettableFloat() Not Unsettable Float}' attribute. - * - * @see #getNotUnsettableFloat() - * @generated - * @ordered - */ - protected float notUnsettableFloat = NOT_UNSETTABLE_FLOAT_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableInt() Not Unsettable Int}' attribute. - * - * @see #getNotUnsettableInt() - * @generated - * @ordered - */ - protected static final int NOT_UNSETTABLE_INT_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getNotUnsettableInt() Not Unsettable Int}' attribute. - * - * @see #getNotUnsettableInt() - * @generated - * @ordered - */ - protected int notUnsettableInt = NOT_UNSETTABLE_INT_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableLong() Not Unsettable Long}' attribute. - * - * @see #getNotUnsettableLong() - * @generated - * @ordered - */ - protected static final long NOT_UNSETTABLE_LONG_EDEFAULT = 0L; - - /** - * The cached value of the '{@link #getNotUnsettableLong() Not Unsettable Long}' attribute. - * - * @see #getNotUnsettableLong() - * @generated - * @ordered - */ - protected long notUnsettableLong = NOT_UNSETTABLE_LONG_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableShort() Not Unsettable Short}' attribute. - * - * @see #getNotUnsettableShort() - * @generated - * @ordered - */ - protected static final short NOT_UNSETTABLE_SHORT_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getNotUnsettableShort() Not Unsettable Short}' attribute. - * - * @see #getNotUnsettableShort() - * @generated - * @ordered - */ - protected short notUnsettableShort = NOT_UNSETTABLE_SHORT_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableString() Not Unsettable String}' attribute. - * - * @see #getNotUnsettableString() - * @generated - * @ordered - */ - protected static final String NOT_UNSETTABLE_STRING_EDEFAULT = null; - - /** - * The cached value of the '{@link #getNotUnsettableString() Not Unsettable String}' attribute. - * - * @see #getNotUnsettableString() - * @generated - * @ordered - */ - protected String notUnsettableString = NOT_UNSETTABLE_STRING_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableVAT() Not Unsettable VAT}' attribute. - * - * @see #getNotUnsettableVAT() - * @generated - * @ordered - */ - protected static final VAT NOT_UNSETTABLE_VAT_EDEFAULT = VAT.VAT0; - - /** - * The cached value of the '{@link #getNotUnsettableVAT() Not Unsettable VAT}' attribute. - * - * @see #getNotUnsettableVAT() - * @generated - * @ordered - */ - protected VAT notUnsettableVAT = NOT_UNSETTABLE_VAT_EDEFAULT; - - /** - * - * - * @generated - */ - protected NotUnsettableImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getNotUnsettable(); - } - - /** - * - * - * @generated - */ - public boolean isNotUnsettableBoolean() - { - return notUnsettableBoolean; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableBoolean(boolean newNotUnsettableBoolean) - { - boolean oldNotUnsettableBoolean = notUnsettableBoolean; - notUnsettableBoolean = newNotUnsettableBoolean; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN, - oldNotUnsettableBoolean, notUnsettableBoolean)); - } - - /** - * - * - * @generated - */ - public byte getNotUnsettableByte() - { - return notUnsettableByte; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableByte(byte newNotUnsettableByte) - { - byte oldNotUnsettableByte = notUnsettableByte; - notUnsettableByte = newNotUnsettableByte; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE, - oldNotUnsettableByte, notUnsettableByte)); - } - - /** - * - * - * @generated - */ - public char getNotUnsettableChar() - { - return notUnsettableChar; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableChar(char newNotUnsettableChar) - { - char oldNotUnsettableChar = notUnsettableChar; - notUnsettableChar = newNotUnsettableChar; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR, - oldNotUnsettableChar, notUnsettableChar)); - } - - /** - * - * - * @generated - */ - public Date getNotUnsettableDate() - { - return notUnsettableDate; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableDate(Date newNotUnsettableDate) - { - Date oldNotUnsettableDate = notUnsettableDate; - notUnsettableDate = newNotUnsettableDate; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DATE, - oldNotUnsettableDate, notUnsettableDate)); - } - - /** - * - * - * @generated - */ - public double getNotUnsettableDouble() - { - return notUnsettableDouble; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableDouble(double newNotUnsettableDouble) - { - double oldNotUnsettableDouble = notUnsettableDouble; - notUnsettableDouble = newNotUnsettableDouble; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE, - oldNotUnsettableDouble, notUnsettableDouble)); - } - - /** - * - * - * @generated - */ - public float getNotUnsettableFloat() - { - return notUnsettableFloat; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableFloat(float newNotUnsettableFloat) - { - float oldNotUnsettableFloat = notUnsettableFloat; - notUnsettableFloat = newNotUnsettableFloat; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT, - oldNotUnsettableFloat, notUnsettableFloat)); - } - - /** - * - * - * @generated - */ - public int getNotUnsettableInt() - { - return notUnsettableInt; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableInt(int newNotUnsettableInt) - { - int oldNotUnsettableInt = notUnsettableInt; - notUnsettableInt = newNotUnsettableInt; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_INT, - oldNotUnsettableInt, notUnsettableInt)); - } - - /** - * - * - * @generated - */ - public long getNotUnsettableLong() - { - return notUnsettableLong; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableLong(long newNotUnsettableLong) - { - long oldNotUnsettableLong = notUnsettableLong; - notUnsettableLong = newNotUnsettableLong; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_LONG, - oldNotUnsettableLong, notUnsettableLong)); - } - - /** - * - * - * @generated - */ - public short getNotUnsettableShort() - { - return notUnsettableShort; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableShort(short newNotUnsettableShort) - { - short oldNotUnsettableShort = notUnsettableShort; - notUnsettableShort = newNotUnsettableShort; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT, - oldNotUnsettableShort, notUnsettableShort)); - } - - /** - * - * - * @generated - */ - public String getNotUnsettableString() - { - return notUnsettableString; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableString(String newNotUnsettableString) - { - String oldNotUnsettableString = notUnsettableString; - notUnsettableString = newNotUnsettableString; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_STRING, - oldNotUnsettableString, notUnsettableString)); - } - - /** - * - * - * @generated - */ - public VAT getNotUnsettableVAT() - { - return notUnsettableVAT; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableVAT(VAT newNotUnsettableVAT) - { - VAT oldNotUnsettableVAT = notUnsettableVAT; - notUnsettableVAT = newNotUnsettableVAT == null ? NOT_UNSETTABLE_VAT_EDEFAULT : newNotUnsettableVAT; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_VAT, - oldNotUnsettableVAT, notUnsettableVAT)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN: - return isNotUnsettableBoolean(); - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE: - return getNotUnsettableByte(); - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR: - return getNotUnsettableChar(); - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DATE: - return getNotUnsettableDate(); - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE: - return getNotUnsettableDouble(); - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT: - return getNotUnsettableFloat(); - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_INT: - return getNotUnsettableInt(); - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_LONG: - return getNotUnsettableLong(); - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT: - return getNotUnsettableShort(); - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_STRING: - return getNotUnsettableString(); - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_VAT: - return getNotUnsettableVAT(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN: - setNotUnsettableBoolean((Boolean)newValue); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE: - setNotUnsettableByte((Byte)newValue); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR: - setNotUnsettableChar((Character)newValue); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DATE: - setNotUnsettableDate((Date)newValue); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE: - setNotUnsettableDouble((Double)newValue); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT: - setNotUnsettableFloat((Float)newValue); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_INT: - setNotUnsettableInt((Integer)newValue); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_LONG: - setNotUnsettableLong((Long)newValue); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT: - setNotUnsettableShort((Short)newValue); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_STRING: - setNotUnsettableString((String)newValue); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_VAT: - setNotUnsettableVAT((VAT)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN: - setNotUnsettableBoolean(NOT_UNSETTABLE_BOOLEAN_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE: - setNotUnsettableByte(NOT_UNSETTABLE_BYTE_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR: - setNotUnsettableChar(NOT_UNSETTABLE_CHAR_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DATE: - setNotUnsettableDate(NOT_UNSETTABLE_DATE_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE: - setNotUnsettableDouble(NOT_UNSETTABLE_DOUBLE_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT: - setNotUnsettableFloat(NOT_UNSETTABLE_FLOAT_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_INT: - setNotUnsettableInt(NOT_UNSETTABLE_INT_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_LONG: - setNotUnsettableLong(NOT_UNSETTABLE_LONG_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT: - setNotUnsettableShort(NOT_UNSETTABLE_SHORT_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_STRING: - setNotUnsettableString(NOT_UNSETTABLE_STRING_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_VAT: - setNotUnsettableVAT(NOT_UNSETTABLE_VAT_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN: - return notUnsettableBoolean != NOT_UNSETTABLE_BOOLEAN_EDEFAULT; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE: - return notUnsettableByte != NOT_UNSETTABLE_BYTE_EDEFAULT; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR: - return notUnsettableChar != NOT_UNSETTABLE_CHAR_EDEFAULT; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DATE: - return NOT_UNSETTABLE_DATE_EDEFAULT == null ? notUnsettableDate != null : !NOT_UNSETTABLE_DATE_EDEFAULT - .equals(notUnsettableDate); - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE: - return notUnsettableDouble != NOT_UNSETTABLE_DOUBLE_EDEFAULT; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT: - return notUnsettableFloat != NOT_UNSETTABLE_FLOAT_EDEFAULT; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_INT: - return notUnsettableInt != NOT_UNSETTABLE_INT_EDEFAULT; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_LONG: - return notUnsettableLong != NOT_UNSETTABLE_LONG_EDEFAULT; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT: - return notUnsettableShort != NOT_UNSETTABLE_SHORT_EDEFAULT; - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_STRING: - return NOT_UNSETTABLE_STRING_EDEFAULT == null ? notUnsettableString != null : !NOT_UNSETTABLE_STRING_EDEFAULT - .equals(notUnsettableString); - case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_VAT: - return notUnsettableVAT != NOT_UNSETTABLE_VAT_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (notUnsettableBoolean: "); - result.append(notUnsettableBoolean); - result.append(", notUnsettableByte: "); - result.append(notUnsettableByte); - result.append(", notUnsettableChar: "); - result.append(notUnsettableChar); - result.append(", notUnsettableDate: "); - result.append(notUnsettableDate); - result.append(", notUnsettableDouble: "); - result.append(notUnsettableDouble); - result.append(", notUnsettableFloat: "); - result.append(notUnsettableFloat); - result.append(", notUnsettableInt: "); - result.append(notUnsettableInt); - result.append(", notUnsettableLong: "); - result.append(notUnsettableLong); - result.append(", notUnsettableShort: "); - result.append(notUnsettableShort); - result.append(", notUnsettableString: "); - result.append(notUnsettableString); - result.append(", notUnsettableVAT: "); - result.append(notUnsettableVAT); - result.append(')'); - return result.toString(); - } - -} // NotUnsettableImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/NotUnsettableWithDefaultImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/NotUnsettableWithDefaultImpl.java deleted file mode 100644 index 31e3d6c5f3..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/NotUnsettableWithDefaultImpl.java +++ /dev/null @@ -1,776 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - * - * $Id: NotUnsettableWithDefaultImpl.java,v 1.3 2011-01-01 11:01:57 estepper Exp $ - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; -import org.eclipse.emf.cdo.tests.model1.VAT; -import org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EcoreFactory; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import java.util.Date; - -/** - * An implementation of the model object 'Not Unsettable With Default'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableWithDefaultImpl#isNotUnsettableBoolean Not - * Unsettable Boolean}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableByte Not - * Unsettable Byte}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableChar Not - * Unsettable Char}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableDate Not - * Unsettable Date}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableDouble Not - * Unsettable Double}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableFloat Not - * Unsettable Float}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableInt Not - * Unsettable Int}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableLong Not - * Unsettable Long}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableShort Not - * Unsettable Short}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableString Not - * Unsettable String}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableVAT Not - * Unsettable VAT}
  • - *
- *

- * - * @generated - */ -public class NotUnsettableWithDefaultImpl extends EObjectImpl implements NotUnsettableWithDefault -{ - /** - * The default value of the '{@link #isNotUnsettableBoolean() Not Unsettable Boolean}' attribute. - * - * @see #isNotUnsettableBoolean() - * @generated - * @ordered - */ - protected static final boolean NOT_UNSETTABLE_BOOLEAN_EDEFAULT = true; - - /** - * The cached value of the '{@link #isNotUnsettableBoolean() Not Unsettable Boolean}' attribute. - * - * @see #isNotUnsettableBoolean() - * @generated - * @ordered - */ - protected boolean notUnsettableBoolean = NOT_UNSETTABLE_BOOLEAN_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableByte() Not Unsettable Byte}' attribute. - * - * @see #getNotUnsettableByte() - * @generated - * @ordered - */ - protected static final byte NOT_UNSETTABLE_BYTE_EDEFAULT = 0x03; - - /** - * The cached value of the '{@link #getNotUnsettableByte() Not Unsettable Byte}' attribute. - * - * @see #getNotUnsettableByte() - * @generated - * @ordered - */ - protected byte notUnsettableByte = NOT_UNSETTABLE_BYTE_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableChar() Not Unsettable Char}' attribute. - * - * @see #getNotUnsettableChar() - * @generated - * @ordered - */ - protected static final char NOT_UNSETTABLE_CHAR_EDEFAULT = '\''; - - /** - * The cached value of the '{@link #getNotUnsettableChar() Not Unsettable Char}' attribute. - * - * @see #getNotUnsettableChar() - * @generated - * @ordered - */ - protected char notUnsettableChar = NOT_UNSETTABLE_CHAR_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableDate() Not Unsettable Date}' attribute. - * - * @see #getNotUnsettableDate() - * @generated - * @ordered - */ - protected static final Date NOT_UNSETTABLE_DATE_EDEFAULT = (Date)EcoreFactory.eINSTANCE.createFromString( - EcorePackage.eINSTANCE.getEDate(), "1979-03-15T07:12:59"); - - /** - * The cached value of the '{@link #getNotUnsettableDate() Not Unsettable Date}' attribute. - * - * @see #getNotUnsettableDate() - * @generated - * @ordered - */ - protected Date notUnsettableDate = NOT_UNSETTABLE_DATE_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableDouble() Not Unsettable Double}' attribute. - * - * @see #getNotUnsettableDouble() - * @generated - * @ordered - */ - protected static final double NOT_UNSETTABLE_DOUBLE_EDEFAULT = 3.3; - - /** - * The cached value of the '{@link #getNotUnsettableDouble() Not Unsettable Double}' attribute. - * - * @see #getNotUnsettableDouble() - * @generated - * @ordered - */ - protected double notUnsettableDouble = NOT_UNSETTABLE_DOUBLE_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableFloat() Not Unsettable Float}' attribute. - * - * @see #getNotUnsettableFloat() - * @generated - * @ordered - */ - protected static final float NOT_UNSETTABLE_FLOAT_EDEFAULT = 4.4F; - - /** - * The cached value of the '{@link #getNotUnsettableFloat() Not Unsettable Float}' attribute. - * - * @see #getNotUnsettableFloat() - * @generated - * @ordered - */ - protected float notUnsettableFloat = NOT_UNSETTABLE_FLOAT_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableInt() Not Unsettable Int}' attribute. - * - * @see #getNotUnsettableInt() - * @generated - * @ordered - */ - protected static final int NOT_UNSETTABLE_INT_EDEFAULT = 5; - - /** - * The cached value of the '{@link #getNotUnsettableInt() Not Unsettable Int}' attribute. - * - * @see #getNotUnsettableInt() - * @generated - * @ordered - */ - protected int notUnsettableInt = NOT_UNSETTABLE_INT_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableLong() Not Unsettable Long}' attribute. - * - * @see #getNotUnsettableLong() - * @generated - * @ordered - */ - protected static final long NOT_UNSETTABLE_LONG_EDEFAULT = 6L; - - /** - * The cached value of the '{@link #getNotUnsettableLong() Not Unsettable Long}' attribute. - * - * @see #getNotUnsettableLong() - * @generated - * @ordered - */ - protected long notUnsettableLong = NOT_UNSETTABLE_LONG_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableShort() Not Unsettable Short}' attribute. - * - * @see #getNotUnsettableShort() - * @generated - * @ordered - */ - protected static final short NOT_UNSETTABLE_SHORT_EDEFAULT = 7; - - /** - * The cached value of the '{@link #getNotUnsettableShort() Not Unsettable Short}' attribute. - * - * @see #getNotUnsettableShort() - * @generated - * @ordered - */ - protected short notUnsettableShort = NOT_UNSETTABLE_SHORT_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableString() Not Unsettable String}' attribute. - * - * @see #getNotUnsettableString() - * @generated - * @ordered - */ - protected static final String NOT_UNSETTABLE_STRING_EDEFAULT = "\"eike\""; - - /** - * The cached value of the '{@link #getNotUnsettableString() Not Unsettable String}' attribute. - * - * @see #getNotUnsettableString() - * @generated - * @ordered - */ - protected String notUnsettableString = NOT_UNSETTABLE_STRING_EDEFAULT; - - /** - * The default value of the '{@link #getNotUnsettableVAT() Not Unsettable VAT}' attribute. - * - * @see #getNotUnsettableVAT() - * @generated - * @ordered - */ - protected static final VAT NOT_UNSETTABLE_VAT_EDEFAULT = VAT.VAT15; - - /** - * The cached value of the '{@link #getNotUnsettableVAT() Not Unsettable VAT}' attribute. - * - * @see #getNotUnsettableVAT() - * @generated - * @ordered - */ - protected VAT notUnsettableVAT = NOT_UNSETTABLE_VAT_EDEFAULT; - - /** - * - * - * @generated - */ - protected NotUnsettableWithDefaultImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getNotUnsettableWithDefault(); - } - - /** - * - * - * @generated - */ - public boolean isNotUnsettableBoolean() - { - return notUnsettableBoolean; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableBoolean(boolean newNotUnsettableBoolean) - { - boolean oldNotUnsettableBoolean = notUnsettableBoolean; - notUnsettableBoolean = newNotUnsettableBoolean; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BOOLEAN, oldNotUnsettableBoolean, - notUnsettableBoolean)); - } - - /** - * - * - * @generated - */ - public byte getNotUnsettableByte() - { - return notUnsettableByte; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableByte(byte newNotUnsettableByte) - { - byte oldNotUnsettableByte = notUnsettableByte; - notUnsettableByte = newNotUnsettableByte; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BYTE, oldNotUnsettableByte, notUnsettableByte)); - } - - /** - * - * - * @generated - */ - public char getNotUnsettableChar() - { - return notUnsettableChar; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableChar(char newNotUnsettableChar) - { - char oldNotUnsettableChar = notUnsettableChar; - notUnsettableChar = newNotUnsettableChar; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_CHAR, oldNotUnsettableChar, notUnsettableChar)); - } - - /** - * - * - * @generated - */ - public Date getNotUnsettableDate() - { - return notUnsettableDate; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableDate(Date newNotUnsettableDate) - { - Date oldNotUnsettableDate = notUnsettableDate; - notUnsettableDate = newNotUnsettableDate; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DATE, oldNotUnsettableDate, notUnsettableDate)); - } - - /** - * - * - * @generated - */ - public double getNotUnsettableDouble() - { - return notUnsettableDouble; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableDouble(double newNotUnsettableDouble) - { - double oldNotUnsettableDouble = notUnsettableDouble; - notUnsettableDouble = newNotUnsettableDouble; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DOUBLE, oldNotUnsettableDouble, notUnsettableDouble)); - } - - /** - * - * - * @generated - */ - public float getNotUnsettableFloat() - { - return notUnsettableFloat; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableFloat(float newNotUnsettableFloat) - { - float oldNotUnsettableFloat = notUnsettableFloat; - notUnsettableFloat = newNotUnsettableFloat; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_FLOAT, oldNotUnsettableFloat, notUnsettableFloat)); - } - - /** - * - * - * @generated - */ - public int getNotUnsettableInt() - { - return notUnsettableInt; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableInt(int newNotUnsettableInt) - { - int oldNotUnsettableInt = notUnsettableInt; - notUnsettableInt = newNotUnsettableInt; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_INT, oldNotUnsettableInt, notUnsettableInt)); - } - - /** - * - * - * @generated - */ - public long getNotUnsettableLong() - { - return notUnsettableLong; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableLong(long newNotUnsettableLong) - { - long oldNotUnsettableLong = notUnsettableLong; - notUnsettableLong = newNotUnsettableLong; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_LONG, oldNotUnsettableLong, notUnsettableLong)); - } - - /** - * - * - * @generated - */ - public short getNotUnsettableShort() - { - return notUnsettableShort; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableShort(short newNotUnsettableShort) - { - short oldNotUnsettableShort = notUnsettableShort; - notUnsettableShort = newNotUnsettableShort; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_SHORT, oldNotUnsettableShort, notUnsettableShort)); - } - - /** - * - * - * @generated - */ - public String getNotUnsettableString() - { - return notUnsettableString; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableString(String newNotUnsettableString) - { - String oldNotUnsettableString = notUnsettableString; - notUnsettableString = newNotUnsettableString; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_STRING, oldNotUnsettableString, notUnsettableString)); - } - - /** - * - * - * @generated - */ - public VAT getNotUnsettableVAT() - { - return notUnsettableVAT; - } - - /** - * - * - * @generated - */ - public void setNotUnsettableVAT(VAT newNotUnsettableVAT) - { - VAT oldNotUnsettableVAT = notUnsettableVAT; - notUnsettableVAT = newNotUnsettableVAT == null ? NOT_UNSETTABLE_VAT_EDEFAULT : newNotUnsettableVAT; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_VAT, oldNotUnsettableVAT, notUnsettableVAT)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BOOLEAN: - return isNotUnsettableBoolean(); - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BYTE: - return getNotUnsettableByte(); - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_CHAR: - return getNotUnsettableChar(); - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DATE: - return getNotUnsettableDate(); - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DOUBLE: - return getNotUnsettableDouble(); - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_FLOAT: - return getNotUnsettableFloat(); - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_INT: - return getNotUnsettableInt(); - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_LONG: - return getNotUnsettableLong(); - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_SHORT: - return getNotUnsettableShort(); - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_STRING: - return getNotUnsettableString(); - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_VAT: - return getNotUnsettableVAT(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BOOLEAN: - setNotUnsettableBoolean((Boolean)newValue); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BYTE: - setNotUnsettableByte((Byte)newValue); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_CHAR: - setNotUnsettableChar((Character)newValue); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DATE: - setNotUnsettableDate((Date)newValue); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DOUBLE: - setNotUnsettableDouble((Double)newValue); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_FLOAT: - setNotUnsettableFloat((Float)newValue); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_INT: - setNotUnsettableInt((Integer)newValue); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_LONG: - setNotUnsettableLong((Long)newValue); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_SHORT: - setNotUnsettableShort((Short)newValue); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_STRING: - setNotUnsettableString((String)newValue); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_VAT: - setNotUnsettableVAT((VAT)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BOOLEAN: - setNotUnsettableBoolean(NOT_UNSETTABLE_BOOLEAN_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BYTE: - setNotUnsettableByte(NOT_UNSETTABLE_BYTE_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_CHAR: - setNotUnsettableChar(NOT_UNSETTABLE_CHAR_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DATE: - setNotUnsettableDate(NOT_UNSETTABLE_DATE_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DOUBLE: - setNotUnsettableDouble(NOT_UNSETTABLE_DOUBLE_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_FLOAT: - setNotUnsettableFloat(NOT_UNSETTABLE_FLOAT_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_INT: - setNotUnsettableInt(NOT_UNSETTABLE_INT_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_LONG: - setNotUnsettableLong(NOT_UNSETTABLE_LONG_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_SHORT: - setNotUnsettableShort(NOT_UNSETTABLE_SHORT_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_STRING: - setNotUnsettableString(NOT_UNSETTABLE_STRING_EDEFAULT); - return; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_VAT: - setNotUnsettableVAT(NOT_UNSETTABLE_VAT_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BOOLEAN: - return notUnsettableBoolean != NOT_UNSETTABLE_BOOLEAN_EDEFAULT; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BYTE: - return notUnsettableByte != NOT_UNSETTABLE_BYTE_EDEFAULT; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_CHAR: - return notUnsettableChar != NOT_UNSETTABLE_CHAR_EDEFAULT; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DATE: - return NOT_UNSETTABLE_DATE_EDEFAULT == null ? notUnsettableDate != null : !NOT_UNSETTABLE_DATE_EDEFAULT - .equals(notUnsettableDate); - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DOUBLE: - return notUnsettableDouble != NOT_UNSETTABLE_DOUBLE_EDEFAULT; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_FLOAT: - return notUnsettableFloat != NOT_UNSETTABLE_FLOAT_EDEFAULT; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_INT: - return notUnsettableInt != NOT_UNSETTABLE_INT_EDEFAULT; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_LONG: - return notUnsettableLong != NOT_UNSETTABLE_LONG_EDEFAULT; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_SHORT: - return notUnsettableShort != NOT_UNSETTABLE_SHORT_EDEFAULT; - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_STRING: - return NOT_UNSETTABLE_STRING_EDEFAULT == null ? notUnsettableString != null : !NOT_UNSETTABLE_STRING_EDEFAULT - .equals(notUnsettableString); - case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_VAT: - return notUnsettableVAT != NOT_UNSETTABLE_VAT_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (notUnsettableBoolean: "); - result.append(notUnsettableBoolean); - result.append(", notUnsettableByte: "); - result.append(notUnsettableByte); - result.append(", notUnsettableChar: "); - result.append(notUnsettableChar); - result.append(", notUnsettableDate: "); - result.append(notUnsettableDate); - result.append(", notUnsettableDouble: "); - result.append(notUnsettableDouble); - result.append(", notUnsettableFloat: "); - result.append(notUnsettableFloat); - result.append(", notUnsettableInt: "); - result.append(notUnsettableInt); - result.append(", notUnsettableLong: "); - result.append(notUnsettableLong); - result.append(", notUnsettableShort: "); - result.append(notUnsettableShort); - result.append(", notUnsettableString: "); - result.append(notUnsettableString); - result.append(", notUnsettableVAT: "); - result.append(notUnsettableVAT); - result.append(')'); - return result.toString(); - } - -} // NotUnsettableWithDefaultImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/PersistentContainmentImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/PersistentContainmentImpl.java deleted file mode 100644 index 5ee0a9f8f1..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/PersistentContainmentImpl.java +++ /dev/null @@ -1,321 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; -import org.eclipse.emf.cdo.tests.model2.PersistentContainment; -import org.eclipse.emf.cdo.tests.model2.TransientContainer; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object 'Persistent Containment'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.PersistentContainmentImpl#getAttrBefore Attr Before} - *
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.PersistentContainmentImpl#getChildren Children}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.PersistentContainmentImpl#getAttrAfter Attr After}
  • - *
- *

- * - * @generated - */ -public class PersistentContainmentImpl extends EObjectImpl implements PersistentContainment -{ - /** - * The default value of the '{@link #getAttrBefore() Attr Before}' attribute. - * - * @see #getAttrBefore() - * @generated - * @ordered - */ - protected static final String ATTR_BEFORE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAttrBefore() Attr Before}' attribute. - * - * @see #getAttrBefore() - * @generated - * @ordered - */ - protected String attrBefore = ATTR_BEFORE_EDEFAULT; - - /** - * The cached value of the '{@link #getChildren() Children}' containment reference list. - * - * @see #getChildren() - * @generated - * @ordered - */ - protected EList children; - - /** - * The default value of the '{@link #getAttrAfter() Attr After}' attribute. - * - * @see #getAttrAfter() - * @generated - * @ordered - */ - protected static final String ATTR_AFTER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAttrAfter() Attr After}' attribute. - * - * @see #getAttrAfter() - * @generated - * @ordered - */ - protected String attrAfter = ATTR_AFTER_EDEFAULT; - - /** - * - * - * @generated - */ - protected PersistentContainmentImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getPersistentContainment(); - } - - /** - * - * - * @generated - */ - public String getAttrBefore() - { - return attrBefore; - } - - /** - * - * - * @generated - */ - public void setAttrBefore(String newAttrBefore) - { - String oldAttrBefore = attrBefore; - attrBefore = newAttrBefore; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.PERSISTENT_CONTAINMENT__ATTR_BEFORE, - oldAttrBefore, attrBefore)); - } - - /** - * - * - * @generated - */ - public EList getChildren() - { - if (children == null) - { - children = new EObjectContainmentWithInverseEList(TransientContainer.class, this, - Model2Package.PERSISTENT_CONTAINMENT__CHILDREN, Model2Package.TRANSIENT_CONTAINER__PARENT); - } - return children; - } - - /** - * - * - * @generated - */ - public String getAttrAfter() - { - return attrAfter; - } - - /** - * - * - * @generated - */ - public void setAttrAfter(String newAttrAfter) - { - String oldAttrAfter = attrAfter; - attrAfter = newAttrAfter; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.PERSISTENT_CONTAINMENT__ATTR_AFTER, - oldAttrAfter, attrAfter)); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model2Package.PERSISTENT_CONTAINMENT__CHILDREN: - return ((InternalEList)(InternalEList)getChildren()).basicAdd(otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model2Package.PERSISTENT_CONTAINMENT__CHILDREN: - return ((InternalEList)getChildren()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.PERSISTENT_CONTAINMENT__ATTR_BEFORE: - return getAttrBefore(); - case Model2Package.PERSISTENT_CONTAINMENT__CHILDREN: - return getChildren(); - case Model2Package.PERSISTENT_CONTAINMENT__ATTR_AFTER: - return getAttrAfter(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.PERSISTENT_CONTAINMENT__ATTR_BEFORE: - setAttrBefore((String)newValue); - return; - case Model2Package.PERSISTENT_CONTAINMENT__CHILDREN: - getChildren().clear(); - getChildren().addAll((Collection)newValue); - return; - case Model2Package.PERSISTENT_CONTAINMENT__ATTR_AFTER: - setAttrAfter((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.PERSISTENT_CONTAINMENT__ATTR_BEFORE: - setAttrBefore(ATTR_BEFORE_EDEFAULT); - return; - case Model2Package.PERSISTENT_CONTAINMENT__CHILDREN: - getChildren().clear(); - return; - case Model2Package.PERSISTENT_CONTAINMENT__ATTR_AFTER: - setAttrAfter(ATTR_AFTER_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.PERSISTENT_CONTAINMENT__ATTR_BEFORE: - return ATTR_BEFORE_EDEFAULT == null ? attrBefore != null : !ATTR_BEFORE_EDEFAULT.equals(attrBefore); - case Model2Package.PERSISTENT_CONTAINMENT__CHILDREN: - return children != null && !children.isEmpty(); - case Model2Package.PERSISTENT_CONTAINMENT__ATTR_AFTER: - return ATTR_AFTER_EDEFAULT == null ? attrAfter != null : !ATTR_AFTER_EDEFAULT.equals(attrAfter); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (attrBefore: "); - result.append(attrBefore); - result.append(", attrAfter: "); - result.append(attrAfter); - result.append(')'); - return result.toString(); - } - -} // PersistentContainmentImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/SpecialPurchaseOrderImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/SpecialPurchaseOrderImpl.java deleted file mode 100644 index 28ab13b840..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/SpecialPurchaseOrderImpl.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model1.impl.PurchaseOrderImpl; -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; -import org.eclipse.emf.cdo.tests.model1.Address; -import org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * An implementation of the model object 'Special Purchase Order'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.SpecialPurchaseOrderImpl#getDiscountCode Discount Code - * }
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.SpecialPurchaseOrderImpl#getShippingAddress Shipping - * Address}
  • - *
- *

- * - * @generated - */ -public class SpecialPurchaseOrderImpl extends PurchaseOrderImpl implements SpecialPurchaseOrder -{ - /** - * The default value of the '{@link #getDiscountCode() Discount Code}' attribute. - * - * - * @see #getDiscountCode() - * @generated - * @ordered - */ - protected static final String DISCOUNT_CODE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDiscountCode() Discount Code}' attribute. - * - * @see #getDiscountCode() - * @generated - * @ordered - */ - protected String discountCode = DISCOUNT_CODE_EDEFAULT; - - /** - * The cached value of the '{@link #getShippingAddress() Shipping Address}' containment reference. - * - * @see #getShippingAddress() - * @generated - * @ordered - */ - protected Address shippingAddress; - - /** - * - * - * @generated - */ - protected SpecialPurchaseOrderImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getSpecialPurchaseOrder(); - } - - /** - * - * - * @generated - */ - public String getDiscountCode() - { - return discountCode; - } - - /** - * - * - * @generated - */ - public void setDiscountCode(String newDiscountCode) - { - String oldDiscountCode = discountCode; - discountCode = newDiscountCode; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE, - oldDiscountCode, discountCode)); - } - - /** - * - * - * @generated - */ - public Address getShippingAddress() - { - return shippingAddress; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetShippingAddress(Address newShippingAddress, NotificationChain msgs) - { - Address oldShippingAddress = shippingAddress; - shippingAddress = newShippingAddress; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS, oldShippingAddress, newShippingAddress); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setShippingAddress(Address newShippingAddress) - { - if (newShippingAddress != shippingAddress) - { - NotificationChain msgs = null; - if (shippingAddress != null) - msgs = ((InternalEObject)shippingAddress).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS, null, msgs); - if (newShippingAddress != null) - msgs = ((InternalEObject)newShippingAddress).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - - Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS, null, msgs); - msgs = basicSetShippingAddress(newShippingAddress, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS, - newShippingAddress, newShippingAddress)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS: - return basicSetShippingAddress(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE: - return getDiscountCode(); - case Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS: - return getShippingAddress(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE: - setDiscountCode((String)newValue); - return; - case Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS: - setShippingAddress((Address)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE: - setDiscountCode(DISCOUNT_CODE_EDEFAULT); - return; - case Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS: - setShippingAddress((Address)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE: - return DISCOUNT_CODE_EDEFAULT == null ? discountCode != null : !DISCOUNT_CODE_EDEFAULT.equals(discountCode); - case Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS: - return shippingAddress != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (discountCode: "); - result.append(discountCode); - result.append(')'); - return result.toString(); - } - -} // SpecialPurchaseOrderImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/StringToAddressContainmentMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/StringToAddressContainmentMapImpl.java deleted file mode 100644 index e8e1ae6ec1..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/StringToAddressContainmentMapImpl.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - * - * $Id: StringToAddressContainmentMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; -import org.eclipse.emf.cdo.tests.model1.Address; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.BasicEMap; -import org.eclipse.emf.common.util.EMap; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -/** - * An implementation of the model object 'String To Address Containment Map'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToAddressContainmentMapImpl#getTypedKey Key}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToAddressContainmentMapImpl#getTypedValue Value - * }
  • - *
- *

- * - * @generated - */ -public class StringToAddressContainmentMapImpl extends EObjectImpl implements BasicEMap.Entry -{ - /** - * The default value of the '{@link #getTypedKey() Key}' attribute. - * - * @see #getTypedKey() - * @generated - * @ordered - */ - protected static final String KEY_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTypedKey() Key}' attribute. - * - * @see #getTypedKey() - * @generated - * @ordered - */ - protected String key = KEY_EDEFAULT; - - /** - * The cached value of the '{@link #getTypedValue() Value}' containment reference. - * - * - * @see #getTypedValue() - * @generated - * @ordered - */ - protected Address value; - - /** - * - * - * @generated - */ - protected StringToAddressContainmentMapImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getStringToAddressContainmentMap(); - } - - /** - * - * - * @generated - */ - public String getTypedKey() - { - return key; - } - - /** - * - * - * @generated - */ - public void setTypedKey(String newKey) - { - String oldKey = key; - key = newKey; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__KEY, - oldKey, key)); - } - - /** - * - * - * @generated - */ - public Address getTypedValue() - { - return value; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetTypedValue(Address newValue, NotificationChain msgs) - { - Address oldValue = value; - value = newValue; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE, oldValue, newValue); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setTypedValue(Address newValue) - { - if (newValue != value) - { - NotificationChain msgs = null; - if (value != null) - msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE, null, msgs); - if (newValue != null) - msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - - Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE, null, msgs); - msgs = basicSetTypedValue(newValue, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE, - newValue, newValue)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE: - return basicSetTypedValue(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__KEY: - return getTypedKey(); - case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE: - return getTypedValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__KEY: - setTypedKey((String)newValue); - return; - case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE: - setTypedValue((Address)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__KEY: - setTypedKey(KEY_EDEFAULT); - return; - case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE: - setTypedValue((Address)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__KEY: - return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); - case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE: - return value != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (key: "); - result.append(key); - result.append(')'); - return result.toString(); - } - - /** - * - * - * @generated - */ - protected int hash = -1; - - /** - * - * - * @generated - */ - public int getHash() - { - if (hash == -1) - { - Object theKey = getKey(); - hash = (theKey == null ? 0 : theKey.hashCode()); - } - return hash; - } - - /** - * - * - * @generated - */ - public void setHash(int hash) - { - this.hash = hash; - } - - /** - * - * - * @generated - */ - public String getKey() - { - return getTypedKey(); - } - - /** - * - * - * @generated - */ - public void setKey(String key) - { - setTypedKey(key); - } - - /** - * - * - * @generated - */ - public Address getValue() - { - return getTypedValue(); - } - - /** - * - * - * @generated - */ - public Address setValue(Address value) - { - Address oldValue = getValue(); - setTypedValue(value); - return oldValue; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - public EMap getEMap() - { - EObject container = eContainer(); - return container == null ? null : (EMap)container.eGet(eContainmentFeature()); - } - -} // StringToAddressContainmentMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/StringToAddressReferenceMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/StringToAddressReferenceMapImpl.java deleted file mode 100644 index 92f24318c4..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/StringToAddressReferenceMapImpl.java +++ /dev/null @@ -1,345 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - * - * $Id: StringToAddressReferenceMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; -import org.eclipse.emf.cdo.tests.model1.Address; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.BasicEMap; -import org.eclipse.emf.common.util.EMap; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -/** - * An implementation of the model object 'String To Address Reference Map'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToAddressReferenceMapImpl#getTypedKey Key}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToAddressReferenceMapImpl#getTypedValue Value} - *
  • - *
- *

- * - * @generated - */ -public class StringToAddressReferenceMapImpl extends EObjectImpl implements BasicEMap.Entry -{ - /** - * The default value of the '{@link #getTypedKey() Key}' attribute. - * - * @see #getTypedKey() - * @generated - * @ordered - */ - protected static final String KEY_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTypedKey() Key}' attribute. - * - * @see #getTypedKey() - * @generated - * @ordered - */ - protected String key = KEY_EDEFAULT; - - /** - * The cached value of the '{@link #getTypedValue() Value}' reference. - * - * @see #getTypedValue() - * @generated - * @ordered - */ - protected Address value; - - /** - * - * - * @generated - */ - protected StringToAddressReferenceMapImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getStringToAddressReferenceMap(); - } - - /** - * - * - * @generated - */ - public String getTypedKey() - { - return key; - } - - /** - * - * - * @generated - */ - public void setTypedKey(String newKey) - { - String oldKey = key; - key = newKey; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__KEY, oldKey, - key)); - } - - /** - * - * - * @generated - */ - public Address getTypedValue() - { - if (value != null && value.eIsProxy()) - { - InternalEObject oldValue = (InternalEObject)value; - value = (Address)eResolveProxy(oldValue); - if (value != oldValue) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, - Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__VALUE, oldValue, value)); - } - } - return value; - } - - /** - * - * - * @generated - */ - public Address basicGetTypedValue() - { - return value; - } - - /** - * - * - * @generated - */ - public void setTypedValue(Address newValue) - { - Address oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__VALUE, - oldValue, value)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__KEY: - return getTypedKey(); - case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__VALUE: - if (resolve) - return getTypedValue(); - return basicGetTypedValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__KEY: - setTypedKey((String)newValue); - return; - case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__VALUE: - setTypedValue((Address)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__KEY: - setTypedKey(KEY_EDEFAULT); - return; - case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__VALUE: - setTypedValue((Address)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__KEY: - return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); - case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__VALUE: - return value != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (key: "); - result.append(key); - result.append(')'); - return result.toString(); - } - - /** - * - * - * @generated - */ - protected int hash = -1; - - /** - * - * - * @generated - */ - public int getHash() - { - if (hash == -1) - { - Object theKey = getKey(); - hash = (theKey == null ? 0 : theKey.hashCode()); - } - return hash; - } - - /** - * - * - * @generated - */ - public void setHash(int hash) - { - this.hash = hash; - } - - /** - * - * - * @generated - */ - public String getKey() - { - return getTypedKey(); - } - - /** - * - * - * @generated - */ - public void setKey(String key) - { - setTypedKey(key); - } - - /** - * - * - * @generated - */ - public Address getValue() - { - return getTypedValue(); - } - - /** - * - * - * @generated - */ - public Address setValue(Address value) - { - Address oldValue = getValue(); - setTypedValue(value); - return oldValue; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - public EMap getEMap() - { - EObject container = eContainer(); - return container == null ? null : (EMap)container.eGet(eContainmentFeature()); - } - -} // StringToAddressReferenceMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/StringToStringMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/StringToStringMapImpl.java deleted file mode 100644 index 233fa1a194..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/StringToStringMapImpl.java +++ /dev/null @@ -1,329 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - * - * $Id: StringToStringMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.BasicEMap; -import org.eclipse.emf.common.util.EMap; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -/** - * An implementation of the model object 'String To String Map'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToStringMapImpl#getTypedKey Key}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToStringMapImpl#getTypedValue Value}
  • - *
- *

- * - * @generated - */ -public class StringToStringMapImpl extends EObjectImpl implements BasicEMap.Entry -{ - /** - * The default value of the '{@link #getTypedKey() Key}' attribute. - * - * @see #getTypedKey() - * @generated - * @ordered - */ - protected static final String KEY_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTypedKey() Key}' attribute. - * - * @see #getTypedKey() - * @generated - * @ordered - */ - protected String key = KEY_EDEFAULT; - - /** - * The default value of the '{@link #getTypedValue() Value}' attribute. - * - * @see #getTypedValue() - * @generated - * @ordered - */ - protected static final String VALUE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTypedValue() Value}' attribute. - * - * @see #getTypedValue() - * @generated - * @ordered - */ - protected String value = VALUE_EDEFAULT; - - /** - * - * - * @generated - */ - protected StringToStringMapImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getStringToStringMap(); - } - - /** - * - * - * @generated - */ - public String getTypedKey() - { - return key; - } - - /** - * - * - * @generated - */ - public void setTypedKey(String newKey) - { - String oldKey = key; - key = newKey; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.STRING_TO_STRING_MAP__KEY, oldKey, key)); - } - - /** - * - * - * @generated - */ - public String getTypedValue() - { - return value; - } - - /** - * - * - * @generated - */ - public void setTypedValue(String newValue) - { - String oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.STRING_TO_STRING_MAP__VALUE, oldValue, value)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.STRING_TO_STRING_MAP__KEY: - return getTypedKey(); - case Model2Package.STRING_TO_STRING_MAP__VALUE: - return getTypedValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.STRING_TO_STRING_MAP__KEY: - setTypedKey((String)newValue); - return; - case Model2Package.STRING_TO_STRING_MAP__VALUE: - setTypedValue((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.STRING_TO_STRING_MAP__KEY: - setTypedKey(KEY_EDEFAULT); - return; - case Model2Package.STRING_TO_STRING_MAP__VALUE: - setTypedValue(VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.STRING_TO_STRING_MAP__KEY: - return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); - case Model2Package.STRING_TO_STRING_MAP__VALUE: - return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (key: "); - result.append(key); - result.append(", value: "); - result.append(value); - result.append(')'); - return result.toString(); - } - - /** - * - * - * @generated - */ - protected int hash = -1; - - /** - * - * - * @generated - */ - public int getHash() - { - if (hash == -1) - { - Object theKey = getKey(); - hash = (theKey == null ? 0 : theKey.hashCode()); - } - return hash; - } - - /** - * - * - * @generated - */ - public void setHash(int hash) - { - this.hash = hash; - } - - /** - * - * - * @generated - */ - public String getKey() - { - return getTypedKey(); - } - - /** - * - * - * @generated - */ - public void setKey(String key) - { - setTypedKey(key); - } - - /** - * - * - * @generated - */ - public String getValue() - { - return getTypedValue(); - } - - /** - * - * - * @generated - */ - public String setValue(String value) - { - String oldValue = getValue(); - setTypedValue(value); - return oldValue; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - public EMap getEMap() - { - EObject container = eContainer(); - return container == null ? null : (EMap)container.eGet(eContainmentFeature()); - } - -} // StringToStringMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/StringToVATMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/StringToVATMapImpl.java deleted file mode 100644 index c4a6a358d2..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/StringToVATMapImpl.java +++ /dev/null @@ -1,330 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - * - * $Id: StringToVATMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; -import org.eclipse.emf.cdo.tests.model1.VAT; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.BasicEMap; -import org.eclipse.emf.common.util.EMap; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -/** - * An implementation of the model object 'String To VAT Map'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToVATMapImpl#getTypedKey Key}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToVATMapImpl#getTypedValue Value}
  • - *
- *

- * - * @generated - */ -public class StringToVATMapImpl extends EObjectImpl implements BasicEMap.Entry -{ - /** - * The default value of the '{@link #getTypedKey() Key}' attribute. - * - * @see #getTypedKey() - * @generated - * @ordered - */ - protected static final String KEY_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTypedKey() Key}' attribute. - * - * @see #getTypedKey() - * @generated - * @ordered - */ - protected String key = KEY_EDEFAULT; - - /** - * The default value of the '{@link #getTypedValue() Value}' attribute. - * - * @see #getTypedValue() - * @generated - * @ordered - */ - protected static final VAT VALUE_EDEFAULT = VAT.VAT0; - - /** - * The cached value of the '{@link #getTypedValue() Value}' attribute. - * - * @see #getTypedValue() - * @generated - * @ordered - */ - protected VAT value = VALUE_EDEFAULT; - - /** - * - * - * @generated - */ - protected StringToVATMapImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getStringToVATMap(); - } - - /** - * - * - * @generated - */ - public String getTypedKey() - { - return key; - } - - /** - * - * - * @generated - */ - public void setTypedKey(String newKey) - { - String oldKey = key; - key = newKey; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.STRING_TO_VAT_MAP__KEY, oldKey, key)); - } - - /** - * - * - * @generated - */ - public VAT getTypedValue() - { - return value; - } - - /** - * - * - * @generated - */ - public void setTypedValue(VAT newValue) - { - VAT oldValue = value; - value = newValue == null ? VALUE_EDEFAULT : newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.STRING_TO_VAT_MAP__VALUE, oldValue, value)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.STRING_TO_VAT_MAP__KEY: - return getTypedKey(); - case Model2Package.STRING_TO_VAT_MAP__VALUE: - return getTypedValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.STRING_TO_VAT_MAP__KEY: - setTypedKey((String)newValue); - return; - case Model2Package.STRING_TO_VAT_MAP__VALUE: - setTypedValue((VAT)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.STRING_TO_VAT_MAP__KEY: - setTypedKey(KEY_EDEFAULT); - return; - case Model2Package.STRING_TO_VAT_MAP__VALUE: - setTypedValue(VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.STRING_TO_VAT_MAP__KEY: - return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); - case Model2Package.STRING_TO_VAT_MAP__VALUE: - return value != VALUE_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (key: "); - result.append(key); - result.append(", value: "); - result.append(value); - result.append(')'); - return result.toString(); - } - - /** - * - * - * @generated - */ - protected int hash = -1; - - /** - * - * - * @generated - */ - public int getHash() - { - if (hash == -1) - { - Object theKey = getKey(); - hash = (theKey == null ? 0 : theKey.hashCode()); - } - return hash; - } - - /** - * - * - * @generated - */ - public void setHash(int hash) - { - this.hash = hash; - } - - /** - * - * - * @generated - */ - public String getKey() - { - return getTypedKey(); - } - - /** - * - * - * @generated - */ - public void setKey(String key) - { - setTypedKey(key); - } - - /** - * - * - * @generated - */ - public VAT getValue() - { - return getTypedValue(); - } - - /** - * - * - * @generated - */ - public VAT setValue(VAT value) - { - VAT oldValue = getValue(); - setTypedValue(value); - return oldValue; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - public EMap getEMap() - { - EObject container = eContainer(); - return container == null ? null : (EMap)container.eGet(eContainmentFeature()); - } - -} // StringToVATMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/TaskContainerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/TaskContainerImpl.java deleted file mode 100644 index a50d748758..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/TaskContainerImpl.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; -import org.eclipse.emf.cdo.tests.model2.Task; -import org.eclipse.emf.cdo.tests.model2.TaskContainer; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object 'Task Container'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.TaskContainerImpl#getTasks Tasks}
  • - *
- *

- * - * @generated - */ -public class TaskContainerImpl extends EObjectImpl implements TaskContainer -{ - /** - * The cached value of the '{@link #getTasks() Tasks}' containment reference list. - * - * - * @see #getTasks() - * @generated - * @ordered - */ - protected EList tasks; - - /** - * - * - * @generated - */ - protected TaskContainerImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getTaskContainer(); - } - - /** - * - * - * @generated - */ - public EList getTasks() - { - if (tasks == null) - { - tasks = new EObjectContainmentWithInverseEList(Task.class, this, Model2Package.TASK_CONTAINER__TASKS, - Model2Package.TASK__TASK_CONTAINER); - } - return tasks; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model2Package.TASK_CONTAINER__TASKS: - return ((InternalEList)(InternalEList)getTasks()).basicAdd(otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model2Package.TASK_CONTAINER__TASKS: - return ((InternalEList)getTasks()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.TASK_CONTAINER__TASKS: - return getTasks(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.TASK_CONTAINER__TASKS: - getTasks().clear(); - getTasks().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.TASK_CONTAINER__TASKS: - getTasks().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.TASK_CONTAINER__TASKS: - return tasks != null && !tasks.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // TaskContainerImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/TaskImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/TaskImpl.java deleted file mode 100644 index c175fae3ea..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/TaskImpl.java +++ /dev/null @@ -1,352 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; -import org.eclipse.emf.cdo.tests.model2.Task; -import org.eclipse.emf.cdo.tests.model2.TaskContainer; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; - -/** - * An implementation of the model object 'Task'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.TaskImpl#getTaskContainer Task Container}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.TaskImpl#getDescription Description}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.TaskImpl#isDone Done}
  • - *
- *

- * - * @generated - */ -public class TaskImpl extends EObjectImpl implements Task -{ - /** - * The default value of the '{@link #getDescription() Description}' attribute. - * - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() Description}' attribute. - * - * @see #getDescription() - * @generated - * @ordered - */ - protected String description = DESCRIPTION_EDEFAULT; - - /** - * The default value of the '{@link #isDone() Done}' attribute. - * - * @see #isDone() - * @generated - * @ordered - */ - protected static final boolean DONE_EDEFAULT = false; - - /** - * The cached value of the '{@link #isDone() Done}' attribute. - * - * @see #isDone() - * @generated - * @ordered - */ - protected boolean done = DONE_EDEFAULT; - - /** - * - * - * @generated - */ - protected TaskImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getTask(); - } - - /** - * - * - * @generated - */ - public TaskContainer getTaskContainer() - { - if (eContainerFeatureID() != Model2Package.TASK__TASK_CONTAINER) - return null; - return (TaskContainer)eContainer(); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetTaskContainer(TaskContainer newTaskContainer, NotificationChain msgs) - { - msgs = eBasicSetContainer((InternalEObject)newTaskContainer, Model2Package.TASK__TASK_CONTAINER, msgs); - return msgs; - } - - /** - * - * - * @generated - */ - public void setTaskContainer(TaskContainer newTaskContainer) - { - if (newTaskContainer != eInternalContainer() - || (eContainerFeatureID() != Model2Package.TASK__TASK_CONTAINER && newTaskContainer != null)) - { - if (EcoreUtil.isAncestor(this, newTaskContainer)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newTaskContainer != null) - msgs = ((InternalEObject)newTaskContainer).eInverseAdd(this, Model2Package.TASK_CONTAINER__TASKS, - TaskContainer.class, msgs); - msgs = basicSetTaskContainer(newTaskContainer, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.TASK__TASK_CONTAINER, newTaskContainer, - newTaskContainer)); - } - - /** - * - * - * @generated - */ - public String getDescription() - { - return description; - } - - /** - * - * - * @generated - */ - public void setDescription(String newDescription) - { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.TASK__DESCRIPTION, oldDescription, - description)); - } - - /** - * - * - * @generated - */ - public boolean isDone() - { - return done; - } - - /** - * - * - * @generated - */ - public void setDone(boolean newDone) - { - boolean oldDone = done; - done = newDone; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.TASK__DONE, oldDone, done)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model2Package.TASK__TASK_CONTAINER: - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - return basicSetTaskContainer((TaskContainer)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model2Package.TASK__TASK_CONTAINER: - return basicSetTaskContainer(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) - { - switch (eContainerFeatureID()) - { - case Model2Package.TASK__TASK_CONTAINER: - return eInternalContainer().eInverseRemove(this, Model2Package.TASK_CONTAINER__TASKS, TaskContainer.class, msgs); - } - return super.eBasicRemoveFromContainerFeature(msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.TASK__TASK_CONTAINER: - return getTaskContainer(); - case Model2Package.TASK__DESCRIPTION: - return getDescription(); - case Model2Package.TASK__DONE: - return isDone(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.TASK__TASK_CONTAINER: - setTaskContainer((TaskContainer)newValue); - return; - case Model2Package.TASK__DESCRIPTION: - setDescription((String)newValue); - return; - case Model2Package.TASK__DONE: - setDone((Boolean)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.TASK__TASK_CONTAINER: - setTaskContainer((TaskContainer)null); - return; - case Model2Package.TASK__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case Model2Package.TASK__DONE: - setDone(DONE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.TASK__TASK_CONTAINER: - return getTaskContainer() != null; - case Model2Package.TASK__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case Model2Package.TASK__DONE: - return done != DONE_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (description: "); - result.append(description); - result.append(", done: "); - result.append(done); - result.append(')'); - return result.toString(); - } - -} // TaskImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/TransientContainerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/TransientContainerImpl.java deleted file mode 100644 index 404dc5dfe1..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/TransientContainerImpl.java +++ /dev/null @@ -1,357 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; -import org.eclipse.emf.cdo.tests.model2.PersistentContainment; -import org.eclipse.emf.cdo.tests.model2.TransientContainer; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreUtil; - -/** - * An implementation of the model object 'Transient Container'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.TransientContainerImpl#getAttrBefore Attr Before}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.TransientContainerImpl#getParent Parent}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.TransientContainerImpl#getAttrAfter Attr After}
  • - *
- *

- * - * @generated - */ -public class TransientContainerImpl extends EObjectImpl implements TransientContainer -{ - /** - * The default value of the '{@link #getAttrBefore() Attr Before}' attribute. - * - * @see #getAttrBefore() - * @generated - * @ordered - */ - protected static final String ATTR_BEFORE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAttrBefore() Attr Before}' attribute. - * - * @see #getAttrBefore() - * @generated - * @ordered - */ - protected String attrBefore = ATTR_BEFORE_EDEFAULT; - - /** - * The default value of the '{@link #getAttrAfter() Attr After}' attribute. - * - * @see #getAttrAfter() - * @generated - * @ordered - */ - protected static final String ATTR_AFTER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAttrAfter() Attr After}' attribute. - * - * @see #getAttrAfter() - * @generated - * @ordered - */ - protected String attrAfter = ATTR_AFTER_EDEFAULT; - - /** - * - * - * @generated - */ - protected TransientContainerImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getTransientContainer(); - } - - /** - * - * - * @generated - */ - public String getAttrBefore() - { - return attrBefore; - } - - /** - * - * - * @generated - */ - public void setAttrBefore(String newAttrBefore) - { - String oldAttrBefore = attrBefore; - attrBefore = newAttrBefore; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.TRANSIENT_CONTAINER__ATTR_BEFORE, - oldAttrBefore, attrBefore)); - } - - /** - * - * - * @generated - */ - public PersistentContainment getParent() - { - if (eContainerFeatureID() != Model2Package.TRANSIENT_CONTAINER__PARENT) - return null; - return (PersistentContainment)eContainer(); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetParent(PersistentContainment newParent, NotificationChain msgs) - { - msgs = eBasicSetContainer((InternalEObject)newParent, Model2Package.TRANSIENT_CONTAINER__PARENT, msgs); - return msgs; - } - - /** - * - * - * @generated - */ - public void setParent(PersistentContainment newParent) - { - if (newParent != eInternalContainer() - || (eContainerFeatureID() != Model2Package.TRANSIENT_CONTAINER__PARENT && newParent != null)) - { - if (EcoreUtil.isAncestor(this, newParent)) - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); - NotificationChain msgs = null; - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - if (newParent != null) - msgs = ((InternalEObject)newParent).eInverseAdd(this, Model2Package.PERSISTENT_CONTAINMENT__CHILDREN, - PersistentContainment.class, msgs); - msgs = basicSetParent(newParent, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.TRANSIENT_CONTAINER__PARENT, newParent, - newParent)); - } - - /** - * - * - * @generated - */ - public String getAttrAfter() - { - return attrAfter; - } - - /** - * - * - * @generated - */ - public void setAttrAfter(String newAttrAfter) - { - String oldAttrAfter = attrAfter; - attrAfter = newAttrAfter; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.TRANSIENT_CONTAINER__ATTR_AFTER, - oldAttrAfter, attrAfter)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model2Package.TRANSIENT_CONTAINER__PARENT: - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - return basicSetParent((PersistentContainment)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model2Package.TRANSIENT_CONTAINER__PARENT: - return basicSetParent(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) - { - switch (eContainerFeatureID()) - { - case Model2Package.TRANSIENT_CONTAINER__PARENT: - return eInternalContainer().eInverseRemove(this, Model2Package.PERSISTENT_CONTAINMENT__CHILDREN, - PersistentContainment.class, msgs); - } - return super.eBasicRemoveFromContainerFeature(msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.TRANSIENT_CONTAINER__ATTR_BEFORE: - return getAttrBefore(); - case Model2Package.TRANSIENT_CONTAINER__PARENT: - return getParent(); - case Model2Package.TRANSIENT_CONTAINER__ATTR_AFTER: - return getAttrAfter(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.TRANSIENT_CONTAINER__ATTR_BEFORE: - setAttrBefore((String)newValue); - return; - case Model2Package.TRANSIENT_CONTAINER__PARENT: - setParent((PersistentContainment)newValue); - return; - case Model2Package.TRANSIENT_CONTAINER__ATTR_AFTER: - setAttrAfter((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.TRANSIENT_CONTAINER__ATTR_BEFORE: - setAttrBefore(ATTR_BEFORE_EDEFAULT); - return; - case Model2Package.TRANSIENT_CONTAINER__PARENT: - setParent((PersistentContainment)null); - return; - case Model2Package.TRANSIENT_CONTAINER__ATTR_AFTER: - setAttrAfter(ATTR_AFTER_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.TRANSIENT_CONTAINER__ATTR_BEFORE: - return ATTR_BEFORE_EDEFAULT == null ? attrBefore != null : !ATTR_BEFORE_EDEFAULT.equals(attrBefore); - case Model2Package.TRANSIENT_CONTAINER__PARENT: - return getParent() != null; - case Model2Package.TRANSIENT_CONTAINER__ATTR_AFTER: - return ATTR_AFTER_EDEFAULT == null ? attrAfter != null : !ATTR_AFTER_EDEFAULT.equals(attrAfter); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (attrBefore: "); - result.append(attrBefore); - result.append(", attrAfter: "); - result.append(attrAfter); - result.append(')'); - return result.toString(); - } - -} // TransientContainerImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Unsettable1Impl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Unsettable1Impl.java deleted file mode 100644 index 785176daba..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Unsettable1Impl.java +++ /dev/null @@ -1,1190 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; -import org.eclipse.emf.cdo.tests.model1.VAT; -import org.eclipse.emf.cdo.tests.model2.Unsettable1; - -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 java.util.Date; - -/** - * An implementation of the model object 'Unsettable1'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl#isUnsettableBoolean Unsettable Boolean - * }
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl#getUnsettableByte Unsettable Byte}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl#getUnsettableChar Unsettable Char}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl#getUnsettableDate Unsettable Date}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl#getUnsettableDouble Unsettable Double - * }
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl#getUnsettableFloat Unsettable Float} - *
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl#getUnsettableInt Unsettable Int}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl#getUnsettableLong Unsettable Long}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl#getUnsettableShort Unsettable Short} - *
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl#getUnsettableString Unsettable String - * }
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl#getUnsettableVAT Unsettable VAT}
  • - *
- *

- * - * @generated - */ -public class Unsettable1Impl extends EObjectImpl implements Unsettable1 -{ - /** - * The default value of the '{@link #isUnsettableBoolean() Unsettable Boolean}' attribute. - * - * @see #isUnsettableBoolean() - * @generated - * @ordered - */ - protected static final boolean UNSETTABLE_BOOLEAN_EDEFAULT = false; - - /** - * The cached value of the '{@link #isUnsettableBoolean() Unsettable Boolean}' attribute. - * - * @see #isUnsettableBoolean() - * @generated - * @ordered - */ - protected boolean unsettableBoolean = UNSETTABLE_BOOLEAN_EDEFAULT; - - /** - * This is true if the Unsettable Boolean attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableBooleanESet; - - /** - * The default value of the '{@link #getUnsettableByte() Unsettable Byte}' attribute. - * - * - * @see #getUnsettableByte() - * @generated - * @ordered - */ - protected static final byte UNSETTABLE_BYTE_EDEFAULT = 0x00; - - /** - * The cached value of the '{@link #getUnsettableByte() Unsettable Byte}' attribute. - * - * - * @see #getUnsettableByte() - * @generated - * @ordered - */ - protected byte unsettableByte = UNSETTABLE_BYTE_EDEFAULT; - - /** - * This is true if the Unsettable Byte attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableByteESet; - - /** - * The default value of the '{@link #getUnsettableChar() Unsettable Char}' attribute. - * - * - * @see #getUnsettableChar() - * @generated - * @ordered - */ - protected static final char UNSETTABLE_CHAR_EDEFAULT = '\u0000'; - - /** - * The cached value of the '{@link #getUnsettableChar() Unsettable Char}' attribute. - * - * - * @see #getUnsettableChar() - * @generated - * @ordered - */ - protected char unsettableChar = UNSETTABLE_CHAR_EDEFAULT; - - /** - * This is true if the Unsettable Char attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableCharESet; - - /** - * The default value of the '{@link #getUnsettableDate() Unsettable Date}' attribute. - * - * - * @see #getUnsettableDate() - * @generated - * @ordered - */ - protected static final Date UNSETTABLE_DATE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getUnsettableDate() Unsettable Date}' attribute. - * - * - * @see #getUnsettableDate() - * @generated - * @ordered - */ - protected Date unsettableDate = UNSETTABLE_DATE_EDEFAULT; - - /** - * This is true if the Unsettable Date attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableDateESet; - - /** - * The default value of the '{@link #getUnsettableDouble() Unsettable Double}' attribute. - * - * @see #getUnsettableDouble() - * @generated - * @ordered - */ - protected static final double UNSETTABLE_DOUBLE_EDEFAULT = 0.0; - - /** - * The cached value of the '{@link #getUnsettableDouble() Unsettable Double}' attribute. - * - * @see #getUnsettableDouble() - * @generated - * @ordered - */ - protected double unsettableDouble = UNSETTABLE_DOUBLE_EDEFAULT; - - /** - * This is true if the Unsettable Double attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableDoubleESet; - - /** - * The default value of the '{@link #getUnsettableFloat() Unsettable Float}' attribute. - * - * @see #getUnsettableFloat() - * @generated - * @ordered - */ - protected static final float UNSETTABLE_FLOAT_EDEFAULT = 0.0F; - - /** - * The cached value of the '{@link #getUnsettableFloat() Unsettable Float}' attribute. - * - * @see #getUnsettableFloat() - * @generated - * @ordered - */ - protected float unsettableFloat = UNSETTABLE_FLOAT_EDEFAULT; - - /** - * This is true if the Unsettable Float attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableFloatESet; - - /** - * The default value of the '{@link #getUnsettableInt() Unsettable Int}' attribute. - * - * - * @see #getUnsettableInt() - * @generated - * @ordered - */ - protected static final int UNSETTABLE_INT_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getUnsettableInt() Unsettable Int}' attribute. - * - * - * @see #getUnsettableInt() - * @generated - * @ordered - */ - protected int unsettableInt = UNSETTABLE_INT_EDEFAULT; - - /** - * This is true if the Unsettable Int attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableIntESet; - - /** - * The default value of the '{@link #getUnsettableLong() Unsettable Long}' attribute. - * - * - * @see #getUnsettableLong() - * @generated - * @ordered - */ - protected static final long UNSETTABLE_LONG_EDEFAULT = 0L; - - /** - * The cached value of the '{@link #getUnsettableLong() Unsettable Long}' attribute. - * - * - * @see #getUnsettableLong() - * @generated - * @ordered - */ - protected long unsettableLong = UNSETTABLE_LONG_EDEFAULT; - - /** - * This is true if the Unsettable Long attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableLongESet; - - /** - * The default value of the '{@link #getUnsettableShort() Unsettable Short}' attribute. - * - * @see #getUnsettableShort() - * @generated - * @ordered - */ - protected static final short UNSETTABLE_SHORT_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getUnsettableShort() Unsettable Short}' attribute. - * - * @see #getUnsettableShort() - * @generated - * @ordered - */ - protected short unsettableShort = UNSETTABLE_SHORT_EDEFAULT; - - /** - * This is true if the Unsettable Short attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableShortESet; - - /** - * The default value of the '{@link #getUnsettableString() Unsettable String}' attribute. - * - * @see #getUnsettableString() - * @generated - * @ordered - */ - protected static final String UNSETTABLE_STRING_EDEFAULT = null; - - /** - * The cached value of the '{@link #getUnsettableString() Unsettable String}' attribute. - * - * @see #getUnsettableString() - * @generated - * @ordered - */ - protected String unsettableString = UNSETTABLE_STRING_EDEFAULT; - - /** - * This is true if the Unsettable String attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableStringESet; - - /** - * The default value of the '{@link #getUnsettableVAT() Unsettable VAT}' attribute. - * - * - * @see #getUnsettableVAT() - * @generated - * @ordered - */ - protected static final VAT UNSETTABLE_VAT_EDEFAULT = VAT.VAT0; - - /** - * The cached value of the '{@link #getUnsettableVAT() Unsettable VAT}' attribute. - * - * - * @see #getUnsettableVAT() - * @generated - * @ordered - */ - protected VAT unsettableVAT = UNSETTABLE_VAT_EDEFAULT; - - /** - * This is true if the Unsettable VAT attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableVATESet; - - /** - * - * - * @generated - */ - protected Unsettable1Impl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getUnsettable1(); - } - - /** - * - * - * @generated - */ - public boolean isUnsettableBoolean() - { - return unsettableBoolean; - } - - /** - * - * - * @generated - */ - public void setUnsettableBoolean(boolean newUnsettableBoolean) - { - boolean oldUnsettableBoolean = unsettableBoolean; - unsettableBoolean = newUnsettableBoolean; - boolean oldUnsettableBooleanESet = unsettableBooleanESet; - unsettableBooleanESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_BOOLEAN, - oldUnsettableBoolean, unsettableBoolean, !oldUnsettableBooleanESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableBoolean() - { - boolean oldUnsettableBoolean = unsettableBoolean; - boolean oldUnsettableBooleanESet = unsettableBooleanESet; - unsettableBoolean = UNSETTABLE_BOOLEAN_EDEFAULT; - unsettableBooleanESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_BOOLEAN, - oldUnsettableBoolean, UNSETTABLE_BOOLEAN_EDEFAULT, oldUnsettableBooleanESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableBoolean() - { - return unsettableBooleanESet; - } - - /** - * - * - * @generated - */ - public byte getUnsettableByte() - { - return unsettableByte; - } - - /** - * - * - * @generated - */ - public void setUnsettableByte(byte newUnsettableByte) - { - byte oldUnsettableByte = unsettableByte; - unsettableByte = newUnsettableByte; - boolean oldUnsettableByteESet = unsettableByteESet; - unsettableByteESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_BYTE, - oldUnsettableByte, unsettableByte, !oldUnsettableByteESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableByte() - { - byte oldUnsettableByte = unsettableByte; - boolean oldUnsettableByteESet = unsettableByteESet; - unsettableByte = UNSETTABLE_BYTE_EDEFAULT; - unsettableByteESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_BYTE, - oldUnsettableByte, UNSETTABLE_BYTE_EDEFAULT, oldUnsettableByteESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableByte() - { - return unsettableByteESet; - } - - /** - * - * - * @generated - */ - public char getUnsettableChar() - { - return unsettableChar; - } - - /** - * - * - * @generated - */ - public void setUnsettableChar(char newUnsettableChar) - { - char oldUnsettableChar = unsettableChar; - unsettableChar = newUnsettableChar; - boolean oldUnsettableCharESet = unsettableCharESet; - unsettableCharESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_CHAR, - oldUnsettableChar, unsettableChar, !oldUnsettableCharESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableChar() - { - char oldUnsettableChar = unsettableChar; - boolean oldUnsettableCharESet = unsettableCharESet; - unsettableChar = UNSETTABLE_CHAR_EDEFAULT; - unsettableCharESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_CHAR, - oldUnsettableChar, UNSETTABLE_CHAR_EDEFAULT, oldUnsettableCharESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableChar() - { - return unsettableCharESet; - } - - /** - * - * - * @generated - */ - public Date getUnsettableDate() - { - return unsettableDate; - } - - /** - * - * - * @generated - */ - public void setUnsettableDate(Date newUnsettableDate) - { - Date oldUnsettableDate = unsettableDate; - unsettableDate = newUnsettableDate; - boolean oldUnsettableDateESet = unsettableDateESet; - unsettableDateESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_DATE, - oldUnsettableDate, unsettableDate, !oldUnsettableDateESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableDate() - { - Date oldUnsettableDate = unsettableDate; - boolean oldUnsettableDateESet = unsettableDateESet; - unsettableDate = UNSETTABLE_DATE_EDEFAULT; - unsettableDateESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_DATE, - oldUnsettableDate, UNSETTABLE_DATE_EDEFAULT, oldUnsettableDateESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableDate() - { - return unsettableDateESet; - } - - /** - * - * - * @generated - */ - public double getUnsettableDouble() - { - return unsettableDouble; - } - - /** - * - * - * @generated - */ - public void setUnsettableDouble(double newUnsettableDouble) - { - double oldUnsettableDouble = unsettableDouble; - unsettableDouble = newUnsettableDouble; - boolean oldUnsettableDoubleESet = unsettableDoubleESet; - unsettableDoubleESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_DOUBLE, - oldUnsettableDouble, unsettableDouble, !oldUnsettableDoubleESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableDouble() - { - double oldUnsettableDouble = unsettableDouble; - boolean oldUnsettableDoubleESet = unsettableDoubleESet; - unsettableDouble = UNSETTABLE_DOUBLE_EDEFAULT; - unsettableDoubleESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_DOUBLE, - oldUnsettableDouble, UNSETTABLE_DOUBLE_EDEFAULT, oldUnsettableDoubleESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableDouble() - { - return unsettableDoubleESet; - } - - /** - * - * - * @generated - */ - public float getUnsettableFloat() - { - return unsettableFloat; - } - - /** - * - * - * @generated - */ - public void setUnsettableFloat(float newUnsettableFloat) - { - float oldUnsettableFloat = unsettableFloat; - unsettableFloat = newUnsettableFloat; - boolean oldUnsettableFloatESet = unsettableFloatESet; - unsettableFloatESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_FLOAT, - oldUnsettableFloat, unsettableFloat, !oldUnsettableFloatESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableFloat() - { - float oldUnsettableFloat = unsettableFloat; - boolean oldUnsettableFloatESet = unsettableFloatESet; - unsettableFloat = UNSETTABLE_FLOAT_EDEFAULT; - unsettableFloatESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_FLOAT, - oldUnsettableFloat, UNSETTABLE_FLOAT_EDEFAULT, oldUnsettableFloatESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableFloat() - { - return unsettableFloatESet; - } - - /** - * - * - * @generated - */ - public int getUnsettableInt() - { - return unsettableInt; - } - - /** - * - * - * @generated - */ - public void setUnsettableInt(int newUnsettableInt) - { - int oldUnsettableInt = unsettableInt; - unsettableInt = newUnsettableInt; - boolean oldUnsettableIntESet = unsettableIntESet; - unsettableIntESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_INT, - oldUnsettableInt, unsettableInt, !oldUnsettableIntESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableInt() - { - int oldUnsettableInt = unsettableInt; - boolean oldUnsettableIntESet = unsettableIntESet; - unsettableInt = UNSETTABLE_INT_EDEFAULT; - unsettableIntESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_INT, - oldUnsettableInt, UNSETTABLE_INT_EDEFAULT, oldUnsettableIntESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableInt() - { - return unsettableIntESet; - } - - /** - * - * - * @generated - */ - public long getUnsettableLong() - { - return unsettableLong; - } - - /** - * - * - * @generated - */ - public void setUnsettableLong(long newUnsettableLong) - { - long oldUnsettableLong = unsettableLong; - unsettableLong = newUnsettableLong; - boolean oldUnsettableLongESet = unsettableLongESet; - unsettableLongESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_LONG, - oldUnsettableLong, unsettableLong, !oldUnsettableLongESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableLong() - { - long oldUnsettableLong = unsettableLong; - boolean oldUnsettableLongESet = unsettableLongESet; - unsettableLong = UNSETTABLE_LONG_EDEFAULT; - unsettableLongESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_LONG, - oldUnsettableLong, UNSETTABLE_LONG_EDEFAULT, oldUnsettableLongESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableLong() - { - return unsettableLongESet; - } - - /** - * - * - * @generated - */ - public short getUnsettableShort() - { - return unsettableShort; - } - - /** - * - * - * @generated - */ - public void setUnsettableShort(short newUnsettableShort) - { - short oldUnsettableShort = unsettableShort; - unsettableShort = newUnsettableShort; - boolean oldUnsettableShortESet = unsettableShortESet; - unsettableShortESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_SHORT, - oldUnsettableShort, unsettableShort, !oldUnsettableShortESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableShort() - { - short oldUnsettableShort = unsettableShort; - boolean oldUnsettableShortESet = unsettableShortESet; - unsettableShort = UNSETTABLE_SHORT_EDEFAULT; - unsettableShortESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_SHORT, - oldUnsettableShort, UNSETTABLE_SHORT_EDEFAULT, oldUnsettableShortESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableShort() - { - return unsettableShortESet; - } - - /** - * - * - * @generated - */ - public String getUnsettableString() - { - return unsettableString; - } - - /** - * - * - * @generated - */ - public void setUnsettableString(String newUnsettableString) - { - String oldUnsettableString = unsettableString; - unsettableString = newUnsettableString; - boolean oldUnsettableStringESet = unsettableStringESet; - unsettableStringESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_STRING, - oldUnsettableString, unsettableString, !oldUnsettableStringESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableString() - { - String oldUnsettableString = unsettableString; - boolean oldUnsettableStringESet = unsettableStringESet; - unsettableString = UNSETTABLE_STRING_EDEFAULT; - unsettableStringESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_STRING, - oldUnsettableString, UNSETTABLE_STRING_EDEFAULT, oldUnsettableStringESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableString() - { - return unsettableStringESet; - } - - /** - * - * - * @generated - */ - public VAT getUnsettableVAT() - { - return unsettableVAT; - } - - /** - * - * - * @generated - */ - public void setUnsettableVAT(VAT newUnsettableVAT) - { - VAT oldUnsettableVAT = unsettableVAT; - unsettableVAT = newUnsettableVAT == null ? UNSETTABLE_VAT_EDEFAULT : newUnsettableVAT; - boolean oldUnsettableVATESet = unsettableVATESet; - unsettableVATESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_VAT, - oldUnsettableVAT, unsettableVAT, !oldUnsettableVATESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableVAT() - { - VAT oldUnsettableVAT = unsettableVAT; - boolean oldUnsettableVATESet = unsettableVATESet; - unsettableVAT = UNSETTABLE_VAT_EDEFAULT; - unsettableVATESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_VAT, - oldUnsettableVAT, UNSETTABLE_VAT_EDEFAULT, oldUnsettableVATESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableVAT() - { - return unsettableVATESet; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.UNSETTABLE1__UNSETTABLE_BOOLEAN: - return isUnsettableBoolean(); - case Model2Package.UNSETTABLE1__UNSETTABLE_BYTE: - return getUnsettableByte(); - case Model2Package.UNSETTABLE1__UNSETTABLE_CHAR: - return getUnsettableChar(); - case Model2Package.UNSETTABLE1__UNSETTABLE_DATE: - return getUnsettableDate(); - case Model2Package.UNSETTABLE1__UNSETTABLE_DOUBLE: - return getUnsettableDouble(); - case Model2Package.UNSETTABLE1__UNSETTABLE_FLOAT: - return getUnsettableFloat(); - case Model2Package.UNSETTABLE1__UNSETTABLE_INT: - return getUnsettableInt(); - case Model2Package.UNSETTABLE1__UNSETTABLE_LONG: - return getUnsettableLong(); - case Model2Package.UNSETTABLE1__UNSETTABLE_SHORT: - return getUnsettableShort(); - case Model2Package.UNSETTABLE1__UNSETTABLE_STRING: - return getUnsettableString(); - case Model2Package.UNSETTABLE1__UNSETTABLE_VAT: - return getUnsettableVAT(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.UNSETTABLE1__UNSETTABLE_BOOLEAN: - setUnsettableBoolean((Boolean)newValue); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_BYTE: - setUnsettableByte((Byte)newValue); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_CHAR: - setUnsettableChar((Character)newValue); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_DATE: - setUnsettableDate((Date)newValue); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_DOUBLE: - setUnsettableDouble((Double)newValue); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_FLOAT: - setUnsettableFloat((Float)newValue); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_INT: - setUnsettableInt((Integer)newValue); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_LONG: - setUnsettableLong((Long)newValue); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_SHORT: - setUnsettableShort((Short)newValue); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_STRING: - setUnsettableString((String)newValue); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_VAT: - setUnsettableVAT((VAT)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.UNSETTABLE1__UNSETTABLE_BOOLEAN: - unsetUnsettableBoolean(); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_BYTE: - unsetUnsettableByte(); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_CHAR: - unsetUnsettableChar(); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_DATE: - unsetUnsettableDate(); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_DOUBLE: - unsetUnsettableDouble(); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_FLOAT: - unsetUnsettableFloat(); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_INT: - unsetUnsettableInt(); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_LONG: - unsetUnsettableLong(); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_SHORT: - unsetUnsettableShort(); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_STRING: - unsetUnsettableString(); - return; - case Model2Package.UNSETTABLE1__UNSETTABLE_VAT: - unsetUnsettableVAT(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.UNSETTABLE1__UNSETTABLE_BOOLEAN: - return isSetUnsettableBoolean(); - case Model2Package.UNSETTABLE1__UNSETTABLE_BYTE: - return isSetUnsettableByte(); - case Model2Package.UNSETTABLE1__UNSETTABLE_CHAR: - return isSetUnsettableChar(); - case Model2Package.UNSETTABLE1__UNSETTABLE_DATE: - return isSetUnsettableDate(); - case Model2Package.UNSETTABLE1__UNSETTABLE_DOUBLE: - return isSetUnsettableDouble(); - case Model2Package.UNSETTABLE1__UNSETTABLE_FLOAT: - return isSetUnsettableFloat(); - case Model2Package.UNSETTABLE1__UNSETTABLE_INT: - return isSetUnsettableInt(); - case Model2Package.UNSETTABLE1__UNSETTABLE_LONG: - return isSetUnsettableLong(); - case Model2Package.UNSETTABLE1__UNSETTABLE_SHORT: - return isSetUnsettableShort(); - case Model2Package.UNSETTABLE1__UNSETTABLE_STRING: - return isSetUnsettableString(); - case Model2Package.UNSETTABLE1__UNSETTABLE_VAT: - return isSetUnsettableVAT(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (unsettableBoolean: "); - if (unsettableBooleanESet) - result.append(unsettableBoolean); - else - result.append(""); - result.append(", unsettableByte: "); - if (unsettableByteESet) - result.append(unsettableByte); - else - result.append(""); - result.append(", unsettableChar: "); - if (unsettableCharESet) - result.append(unsettableChar); - else - result.append(""); - result.append(", unsettableDate: "); - if (unsettableDateESet) - result.append(unsettableDate); - else - result.append(""); - result.append(", unsettableDouble: "); - if (unsettableDoubleESet) - result.append(unsettableDouble); - else - result.append(""); - result.append(", unsettableFloat: "); - if (unsettableFloatESet) - result.append(unsettableFloat); - else - result.append(""); - result.append(", unsettableInt: "); - if (unsettableIntESet) - result.append(unsettableInt); - else - result.append(""); - result.append(", unsettableLong: "); - if (unsettableLongESet) - result.append(unsettableLong); - else - result.append(""); - result.append(", unsettableShort: "); - if (unsettableShortESet) - result.append(unsettableShort); - else - result.append(""); - result.append(", unsettableString: "); - if (unsettableStringESet) - result.append(unsettableString); - else - result.append(""); - result.append(", unsettableVAT: "); - if (unsettableVATESet) - result.append(unsettableVAT); - else - result.append(""); - result.append(')'); - return result.toString(); - } - -} // Unsettable1Impl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Unsettable2WithDefaultImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Unsettable2WithDefaultImpl.java deleted file mode 100644 index 5f176625d7..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Unsettable2WithDefaultImpl.java +++ /dev/null @@ -1,1203 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.emf.cdo.tests.legacy.model2.impl; - -import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package; -import org.eclipse.emf.cdo.tests.model1.VAT; -import org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EcoreFactory; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import java.util.Date; - -/** - * An implementation of the model object 'Unsettable2 With Default'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl#isUnsettableBoolean Unsettable - * Boolean}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl#getUnsettableByte Unsettable - * Byte}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl#getUnsettableChar Unsettable - * Char}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl#getUnsettableDate Unsettable - * Date}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl#getUnsettableDouble Unsettable - * Double}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl#getUnsettableFloat Unsettable - * Float}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl#getUnsettableInt Unsettable - * Int}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl#getUnsettableLong Unsettable - * Long}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl#getUnsettableShort Unsettable - * Short}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl#getUnsettableString Unsettable - * String}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl#getUnsettableVAT Unsettable - * VAT}
  • - *
- *

- * - * @generated - */ -public class Unsettable2WithDefaultImpl extends EObjectImpl implements Unsettable2WithDefault -{ - /** - * The default value of the '{@link #isUnsettableBoolean() Unsettable Boolean}' attribute. - * - * @see #isUnsettableBoolean() - * @generated - * @ordered - */ - protected static final boolean UNSETTABLE_BOOLEAN_EDEFAULT = true; - - /** - * The cached value of the '{@link #isUnsettableBoolean() Unsettable Boolean}' attribute. - * - * @see #isUnsettableBoolean() - * @generated - * @ordered - */ - protected boolean unsettableBoolean = UNSETTABLE_BOOLEAN_EDEFAULT; - - /** - * This is true if the Unsettable Boolean attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableBooleanESet; - - /** - * The default value of the '{@link #getUnsettableByte() Unsettable Byte}' attribute. - * - * - * @see #getUnsettableByte() - * @generated - * @ordered - */ - protected static final byte UNSETTABLE_BYTE_EDEFAULT = 0x03; - - /** - * The cached value of the '{@link #getUnsettableByte() Unsettable Byte}' attribute. - * - * - * @see #getUnsettableByte() - * @generated - * @ordered - */ - protected byte unsettableByte = UNSETTABLE_BYTE_EDEFAULT; - - /** - * This is true if the Unsettable Byte attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableByteESet; - - /** - * The default value of the '{@link #getUnsettableChar() Unsettable Char}' attribute. - * - * - * @see #getUnsettableChar() - * @generated - * @ordered - */ - protected static final char UNSETTABLE_CHAR_EDEFAULT = '\''; - - /** - * The cached value of the '{@link #getUnsettableChar() Unsettable Char}' attribute. - * - * - * @see #getUnsettableChar() - * @generated - * @ordered - */ - protected char unsettableChar = UNSETTABLE_CHAR_EDEFAULT; - - /** - * This is true if the Unsettable Char attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableCharESet; - - /** - * The default value of the '{@link #getUnsettableDate() Unsettable Date}' attribute. - * - * - * @see #getUnsettableDate() - * @generated - * @ordered - */ - protected static final Date UNSETTABLE_DATE_EDEFAULT = (Date)EcoreFactory.eINSTANCE.createFromString( - EcorePackage.eINSTANCE.getEDate(), "2009-12-21T15:12:59"); - - /** - * The cached value of the '{@link #getUnsettableDate() Unsettable Date}' attribute. - * - * - * @see #getUnsettableDate() - * @generated - * @ordered - */ - protected Date unsettableDate = UNSETTABLE_DATE_EDEFAULT; - - /** - * This is true if the Unsettable Date attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableDateESet; - - /** - * The default value of the '{@link #getUnsettableDouble() Unsettable Double}' attribute. - * - * @see #getUnsettableDouble() - * @generated - * @ordered - */ - protected static final double UNSETTABLE_DOUBLE_EDEFAULT = 3.3; - - /** - * The cached value of the '{@link #getUnsettableDouble() Unsettable Double}' attribute. - * - * @see #getUnsettableDouble() - * @generated - * @ordered - */ - protected double unsettableDouble = UNSETTABLE_DOUBLE_EDEFAULT; - - /** - * This is true if the Unsettable Double attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableDoubleESet; - - /** - * The default value of the '{@link #getUnsettableFloat() Unsettable Float}' attribute. - * - * @see #getUnsettableFloat() - * @generated - * @ordered - */ - protected static final float UNSETTABLE_FLOAT_EDEFAULT = 4.4F; - - /** - * The cached value of the '{@link #getUnsettableFloat() Unsettable Float}' attribute. - * - * @see #getUnsettableFloat() - * @generated - * @ordered - */ - protected float unsettableFloat = UNSETTABLE_FLOAT_EDEFAULT; - - /** - * This is true if the Unsettable Float attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableFloatESet; - - /** - * The default value of the '{@link #getUnsettableInt() Unsettable Int}' attribute. - * - * - * @see #getUnsettableInt() - * @generated - * @ordered - */ - protected static final int UNSETTABLE_INT_EDEFAULT = 5; - - /** - * The cached value of the '{@link #getUnsettableInt() Unsettable Int}' attribute. - * - * - * @see #getUnsettableInt() - * @generated - * @ordered - */ - protected int unsettableInt = UNSETTABLE_INT_EDEFAULT; - - /** - * This is true if the Unsettable Int attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableIntESet; - - /** - * The default value of the '{@link #getUnsettableLong() Unsettable Long}' attribute. - * - * - * @see #getUnsettableLong() - * @generated - * @ordered - */ - protected static final long UNSETTABLE_LONG_EDEFAULT = 6L; - - /** - * The cached value of the '{@link #getUnsettableLong() Unsettable Long}' attribute. - * - * - * @see #getUnsettableLong() - * @generated - * @ordered - */ - protected long unsettableLong = UNSETTABLE_LONG_EDEFAULT; - - /** - * This is true if the Unsettable Long attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableLongESet; - - /** - * The default value of the '{@link #getUnsettableShort() Unsettable Short}' attribute. - * - * @see #getUnsettableShort() - * @generated - * @ordered - */ - protected static final short UNSETTABLE_SHORT_EDEFAULT = 7; - - /** - * The cached value of the '{@link #getUnsettableShort() Unsettable Short}' attribute. - * - * @see #getUnsettableShort() - * @generated - * @ordered - */ - protected short unsettableShort = UNSETTABLE_SHORT_EDEFAULT; - - /** - * This is true if the Unsettable Short attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableShortESet; - - /** - * The default value of the '{@link #getUnsettableString() Unsettable String}' attribute. - * - * @see #getUnsettableString() - * @generated - * @ordered - */ - protected static final String UNSETTABLE_STRING_EDEFAULT = "\"eike\""; - - /** - * The cached value of the '{@link #getUnsettableString() Unsettable String}' attribute. - * - * @see #getUnsettableString() - * @generated - * @ordered - */ - protected String unsettableString = UNSETTABLE_STRING_EDEFAULT; - - /** - * This is true if the Unsettable String attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableStringESet; - - /** - * The default value of the '{@link #getUnsettableVAT() Unsettable VAT}' attribute. - * - * - * @see #getUnsettableVAT() - * @generated - * @ordered - */ - protected static final VAT UNSETTABLE_VAT_EDEFAULT = VAT.VAT15; - - /** - * The cached value of the '{@link #getUnsettableVAT() Unsettable VAT}' attribute. - * - * - * @see #getUnsettableVAT() - * @generated - * @ordered - */ - protected VAT unsettableVAT = UNSETTABLE_VAT_EDEFAULT; - - /** - * This is true if the Unsettable VAT attribute has been set. - * - * @generated - * @ordered - */ - protected boolean unsettableVATESet; - - /** - * - * - * @generated - */ - protected Unsettable2WithDefaultImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model2Package.eINSTANCE.getUnsettable2WithDefault(); - } - - /** - * - * - * @generated - */ - public boolean isUnsettableBoolean() - { - return unsettableBoolean; - } - - /** - * - * - * @generated - */ - public void setUnsettableBoolean(boolean newUnsettableBoolean) - { - boolean oldUnsettableBoolean = unsettableBoolean; - unsettableBoolean = newUnsettableBoolean; - boolean oldUnsettableBooleanESet = unsettableBooleanESet; - unsettableBooleanESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN, - oldUnsettableBoolean, unsettableBoolean, !oldUnsettableBooleanESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableBoolean() - { - boolean oldUnsettableBoolean = unsettableBoolean; - boolean oldUnsettableBooleanESet = unsettableBooleanESet; - unsettableBoolean = UNSETTABLE_BOOLEAN_EDEFAULT; - unsettableBooleanESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, - Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN, oldUnsettableBoolean, - UNSETTABLE_BOOLEAN_EDEFAULT, oldUnsettableBooleanESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableBoolean() - { - return unsettableBooleanESet; - } - - /** - * - * - * @generated - */ - public byte getUnsettableByte() - { - return unsettableByte; - } - - /** - * - * - * @generated - */ - public void setUnsettableByte(byte newUnsettableByte) - { - byte oldUnsettableByte = unsettableByte; - unsettableByte = newUnsettableByte; - boolean oldUnsettableByteESet = unsettableByteESet; - unsettableByteESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE, - oldUnsettableByte, unsettableByte, !oldUnsettableByteESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableByte() - { - byte oldUnsettableByte = unsettableByte; - boolean oldUnsettableByteESet = unsettableByteESet; - unsettableByte = UNSETTABLE_BYTE_EDEFAULT; - unsettableByteESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE, - oldUnsettableByte, UNSETTABLE_BYTE_EDEFAULT, oldUnsettableByteESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableByte() - { - return unsettableByteESet; - } - - /** - * - * - * @generated - */ - public char getUnsettableChar() - { - return unsettableChar; - } - - /** - * - * - * @generated - */ - public void setUnsettableChar(char newUnsettableChar) - { - char oldUnsettableChar = unsettableChar; - unsettableChar = newUnsettableChar; - boolean oldUnsettableCharESet = unsettableCharESet; - unsettableCharESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR, - oldUnsettableChar, unsettableChar, !oldUnsettableCharESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableChar() - { - char oldUnsettableChar = unsettableChar; - boolean oldUnsettableCharESet = unsettableCharESet; - unsettableChar = UNSETTABLE_CHAR_EDEFAULT; - unsettableCharESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR, - oldUnsettableChar, UNSETTABLE_CHAR_EDEFAULT, oldUnsettableCharESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableChar() - { - return unsettableCharESet; - } - - /** - * - * - * @generated - */ - public Date getUnsettableDate() - { - return unsettableDate; - } - - /** - * - * - * @generated - */ - public void setUnsettableDate(Date newUnsettableDate) - { - Date oldUnsettableDate = unsettableDate; - unsettableDate = newUnsettableDate; - boolean oldUnsettableDateESet = unsettableDateESet; - unsettableDateESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE, - oldUnsettableDate, unsettableDate, !oldUnsettableDateESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableDate() - { - Date oldUnsettableDate = unsettableDate; - boolean oldUnsettableDateESet = unsettableDateESet; - unsettableDate = UNSETTABLE_DATE_EDEFAULT; - unsettableDateESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE, - oldUnsettableDate, UNSETTABLE_DATE_EDEFAULT, oldUnsettableDateESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableDate() - { - return unsettableDateESet; - } - - /** - * - * - * @generated - */ - public double getUnsettableDouble() - { - return unsettableDouble; - } - - /** - * - * - * @generated - */ - public void setUnsettableDouble(double newUnsettableDouble) - { - double oldUnsettableDouble = unsettableDouble; - unsettableDouble = newUnsettableDouble; - boolean oldUnsettableDoubleESet = unsettableDoubleESet; - unsettableDoubleESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE, - oldUnsettableDouble, unsettableDouble, !oldUnsettableDoubleESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableDouble() - { - double oldUnsettableDouble = unsettableDouble; - boolean oldUnsettableDoubleESet = unsettableDoubleESet; - unsettableDouble = UNSETTABLE_DOUBLE_EDEFAULT; - unsettableDoubleESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, - Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE, oldUnsettableDouble, UNSETTABLE_DOUBLE_EDEFAULT, - oldUnsettableDoubleESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableDouble() - { - return unsettableDoubleESet; - } - - /** - * - * - * @generated - */ - public float getUnsettableFloat() - { - return unsettableFloat; - } - - /** - * - * - * @generated - */ - public void setUnsettableFloat(float newUnsettableFloat) - { - float oldUnsettableFloat = unsettableFloat; - unsettableFloat = newUnsettableFloat; - boolean oldUnsettableFloatESet = unsettableFloatESet; - unsettableFloatESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT, - oldUnsettableFloat, unsettableFloat, !oldUnsettableFloatESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableFloat() - { - float oldUnsettableFloat = unsettableFloat; - boolean oldUnsettableFloatESet = unsettableFloatESet; - unsettableFloat = UNSETTABLE_FLOAT_EDEFAULT; - unsettableFloatESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT, - oldUnsettableFloat, UNSETTABLE_FLOAT_EDEFAULT, oldUnsettableFloatESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableFloat() - { - return unsettableFloatESet; - } - - /** - * - * - * @generated - */ - public int getUnsettableInt() - { - return unsettableInt; - } - - /** - * - * - * @generated - */ - public void setUnsettableInt(int newUnsettableInt) - { - int oldUnsettableInt = unsettableInt; - unsettableInt = newUnsettableInt; - boolean oldUnsettableIntESet = unsettableIntESet; - unsettableIntESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT, - oldUnsettableInt, unsettableInt, !oldUnsettableIntESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableInt() - { - int oldUnsettableInt = unsettableInt; - boolean oldUnsettableIntESet = unsettableIntESet; - unsettableInt = UNSETTABLE_INT_EDEFAULT; - unsettableIntESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT, - oldUnsettableInt, UNSETTABLE_INT_EDEFAULT, oldUnsettableIntESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableInt() - { - return unsettableIntESet; - } - - /** - * - * - * @generated - */ - public long getUnsettableLong() - { - return unsettableLong; - } - - /** - * - * - * @generated - */ - public void setUnsettableLong(long newUnsettableLong) - { - long oldUnsettableLong = unsettableLong; - unsettableLong = newUnsettableLong; - boolean oldUnsettableLongESet = unsettableLongESet; - unsettableLongESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG, - oldUnsettableLong, unsettableLong, !oldUnsettableLongESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableLong() - { - long oldUnsettableLong = unsettableLong; - boolean oldUnsettableLongESet = unsettableLongESet; - unsettableLong = UNSETTABLE_LONG_EDEFAULT; - unsettableLongESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG, - oldUnsettableLong, UNSETTABLE_LONG_EDEFAULT, oldUnsettableLongESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableLong() - { - return unsettableLongESet; - } - - /** - * - * - * @generated - */ - public short getUnsettableShort() - { - return unsettableShort; - } - - /** - * - * - * @generated - */ - public void setUnsettableShort(short newUnsettableShort) - { - short oldUnsettableShort = unsettableShort; - unsettableShort = newUnsettableShort; - boolean oldUnsettableShortESet = unsettableShortESet; - unsettableShortESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT, - oldUnsettableShort, unsettableShort, !oldUnsettableShortESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableShort() - { - short oldUnsettableShort = unsettableShort; - boolean oldUnsettableShortESet = unsettableShortESet; - unsettableShort = UNSETTABLE_SHORT_EDEFAULT; - unsettableShortESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT, - oldUnsettableShort, UNSETTABLE_SHORT_EDEFAULT, oldUnsettableShortESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableShort() - { - return unsettableShortESet; - } - - /** - * - * - * @generated - */ - public String getUnsettableString() - { - return unsettableString; - } - - /** - * - * - * @generated - */ - public void setUnsettableString(String newUnsettableString) - { - String oldUnsettableString = unsettableString; - unsettableString = newUnsettableString; - boolean oldUnsettableStringESet = unsettableStringESet; - unsettableStringESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING, - oldUnsettableString, unsettableString, !oldUnsettableStringESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableString() - { - String oldUnsettableString = unsettableString; - boolean oldUnsettableStringESet = unsettableStringESet; - unsettableString = UNSETTABLE_STRING_EDEFAULT; - unsettableStringESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, - Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING, oldUnsettableString, UNSETTABLE_STRING_EDEFAULT, - oldUnsettableStringESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableString() - { - return unsettableStringESet; - } - - /** - * - * - * @generated - */ - public VAT getUnsettableVAT() - { - return unsettableVAT; - } - - /** - * - * - * @generated - */ - public void setUnsettableVAT(VAT newUnsettableVAT) - { - VAT oldUnsettableVAT = unsettableVAT; - unsettableVAT = newUnsettableVAT == null ? UNSETTABLE_VAT_EDEFAULT : newUnsettableVAT; - boolean oldUnsettableVATESet = unsettableVATESet; - unsettableVATESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT, - oldUnsettableVAT, unsettableVAT, !oldUnsettableVATESet)); - } - - /** - * - * - * @generated - */ - public void unsetUnsettableVAT() - { - VAT oldUnsettableVAT = unsettableVAT; - boolean oldUnsettableVATESet = unsettableVATESet; - unsettableVAT = UNSETTABLE_VAT_EDEFAULT; - unsettableVATESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT, - oldUnsettableVAT, UNSETTABLE_VAT_EDEFAULT, oldUnsettableVATESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetUnsettableVAT() - { - return unsettableVATESet; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN: - return isUnsettableBoolean(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE: - return getUnsettableByte(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR: - return getUnsettableChar(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE: - return getUnsettableDate(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE: - return getUnsettableDouble(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT: - return getUnsettableFloat(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT: - return getUnsettableInt(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG: - return getUnsettableLong(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT: - return getUnsettableShort(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING: - return getUnsettableString(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT: - return getUnsettableVAT(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN: - setUnsettableBoolean((Boolean)newValue); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE: - setUnsettableByte((Byte)newValue); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR: - setUnsettableChar((Character)newValue); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE: - setUnsettableDate((Date)newValue); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE: - setUnsettableDouble((Double)newValue); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT: - setUnsettableFloat((Float)newValue); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT: - setUnsettableInt((Integer)newValue); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG: - setUnsettableLong((Long)newValue); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT: - setUnsettableShort((Short)newValue); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING: - setUnsettableString((String)newValue); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT: - setUnsettableVAT((VAT)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN: - unsetUnsettableBoolean(); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE: - unsetUnsettableByte(); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR: - unsetUnsettableChar(); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE: - unsetUnsettableDate(); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE: - unsetUnsettableDouble(); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT: - unsetUnsettableFloat(); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT: - unsetUnsettableInt(); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG: - unsetUnsettableLong(); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT: - unsetUnsettableShort(); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING: - unsetUnsettableString(); - return; - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT: - unsetUnsettableVAT(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN: - return isSetUnsettableBoolean(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE: - return isSetUnsettableByte(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR: - return isSetUnsettableChar(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE: - return isSetUnsettableDate(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE: - return isSetUnsettableDouble(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT: - return isSetUnsettableFloat(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT: - return isSetUnsettableInt(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG: - return isSetUnsettableLong(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT: - return isSetUnsettableShort(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING: - return isSetUnsettableString(); - case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT: - return isSetUnsettableVAT(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (unsettableBoolean: "); - if (unsettableBooleanESet) - result.append(unsettableBoolean); - else - result.append(""); - result.append(", unsettableByte: "); - if (unsettableByteESet) - result.append(unsettableByte); - else - result.append(""); - result.append(", unsettableChar: "); - if (unsettableCharESet) - result.append(unsettableChar); - else - result.append(""); - result.append(", unsettableDate: "); - if (unsettableDateESet) - result.append(unsettableDate); - else - result.append(""); - result.append(", unsettableDouble: "); - if (unsettableDoubleESet) - result.append(unsettableDouble); - else - result.append(""); - result.append(", unsettableFloat: "); - if (unsettableFloatESet) - result.append(unsettableFloat); - else - result.append(""); - result.append(", unsettableInt: "); - if (unsettableIntESet) - result.append(unsettableInt); - else - result.append(""); - result.append(", unsettableLong: "); - if (unsettableLongESet) - result.append(unsettableLong); - else - result.append(""); - result.append(", unsettableShort: "); - if (unsettableShortESet) - result.append(unsettableShort); - else - result.append(""); - result.append(", unsettableString: "); - if (unsettableStringESet) - result.append(unsettableString); - else - result.append(""); - result.append(", unsettableVAT: "); - if (unsettableVATESet) - result.append(unsettableVAT); - else - result.append(""); - result.append(')'); - return result.toString(); - } - -} // Unsettable2WithDefaultImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/EnumListHolder.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/EnumListHolder.java index f6cfaaaab2..09b0ed128d 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/EnumListHolder.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/EnumListHolder.java @@ -32,18 +32,18 @@ import org.eclipse.emf.ecore.EObject; public interface EnumListHolder extends EObject { /** - * Returns the value of the 'Enum List' attribute list. The list contents are of type - * {@link org.eclipse.emf.cdo.tests.model1.VAT}. The literals are from the enumeration - * {@link org.eclipse.emf.cdo.tests.model1.VAT}. + * Returns the value of the 'Enum List' attribute list. + * The list contents are of type {@link org.eclipse.emf.cdo.tests.model1.VAT}. + * The literals are from the enumeration {@link org.eclipse.emf.cdo.tests.model1.VAT}. + * *

* If the meaning of the 'Enum List' attribute list isn't clear, there really should be more of a description * here... *

* - * * @return the value of the 'Enum List' attribute list. * @see org.eclipse.emf.cdo.tests.model1.VAT - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getEnumListHolder_EnumList() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getEnumListHolder_EnumList() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/MapHolder.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/MapHolder.java index b69a4eeaf5..96c4766049 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/MapHolder.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/MapHolder.java @@ -20,79 +20,75 @@ import org.eclipse.emf.ecore.EObject; /** * A representation of the model object 'Map Holder'. + * *

* The following features are supported: *

    - *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getIntegerToStringMap Integer To String Map}
  • - *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToStringMap String To String Map}
  • - *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToVATMap String To VAT Map}
  • - *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToAddressContainmentMap String To Address - * Containment Map}
  • - *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToAddressReferenceMap String To Address Reference - * Map}
  • - *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectMap EObject To EObject Map}
  • - *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectKeyContainedMap EObject To EObject Key - * Contained Map}
  • - *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectBothContainedMap EObject To EObject Both - * Contained Map}
  • - *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectValueContainedMap EObject To EObject - * Value Contained Map}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getIntegerToStringMap Integer To String Map}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToStringMap String To String Map}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToVATMap String To VAT Map}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToAddressContainmentMap String To Address Containment Map}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToAddressReferenceMap String To Address Reference Map}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectMap EObject To EObject Map}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectKeyContainedMap EObject To EObject Key Contained Map}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectBothContainedMap EObject To EObject Both Contained Map}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectValueContainedMap EObject To EObject Value Contained Map}
  • *
*

- * - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getMapHolder() + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getMapHolder() * @model * @generated */ public interface MapHolder extends EObject { /** - * Returns the value of the 'Integer To String Map' map. The key is of type {@link java.lang.Integer}, - * and the value is of type {@link java.lang.String}, + * Returns the value of the 'Integer To String Map' map. + * The key is of type {@link java.lang.Integer}, + * and the value is of type {@link java.lang.String}, + * *

* If the meaning of the 'Integer To String Map' map isn't clear, there really should be more of a * description here... *

* - * * @return the value of the 'Integer To String Map' map. - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getMapHolder_IntegerToStringMap() - * @model mapType= - * "org.eclipse.emf.cdo.tests.model2.IntegerToStringMap" + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getMapHolder_IntegerToStringMap() + * @model mapType="org.eclipse.emf.cdo.tests.model2.IntegerToStringMap" * @generated */ EMap getIntegerToStringMap(); /** - * Returns the value of the 'String To String Map' map. The key is of type {@link java.lang.String}, - * and the value is of type {@link java.lang.String}, + * Returns the value of the 'String To String Map' map. + * The key is of type {@link java.lang.String}, + * and the value is of type {@link java.lang.String}, + * *

* If the meaning of the 'String To String Map' map isn't clear, there really should be more of a description * here... *

* - * * @return the value of the 'String To String Map' map. - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getMapHolder_StringToStringMap() - * @model mapType= - * "org.eclipse.emf.cdo.tests.model2.StringToStringMap" + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getMapHolder_StringToStringMap() + * @model mapType="org.eclipse.emf.cdo.tests.model2.StringToStringMap" * @generated */ EMap getStringToStringMap(); /** - * Returns the value of the 'String To VAT Map' map. The key is of type {@link java.lang.String}, and - * the value is of type {@link org.eclipse.emf.cdo.tests.model1.VAT}, + * Returns the value of the 'String To VAT Map' map. + * The key is of type {@link java.lang.String}, + * and the value is of type {@link org.eclipse.emf.cdo.tests.model1.VAT}, + * *

* If the meaning of the 'String To VAT Map' map isn't clear, there really should be more of a description * here... *

* - * * @return the value of the 'String To VAT Map' map. - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getMapHolder_StringToVATMap() - * @model mapType= - * "org.eclipse.emf.cdo.tests.model2.StringToVATMap" + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getMapHolder_StringToVATMap() + * @model mapType="org.eclipse.emf.cdo.tests.model2.StringToVATMap" * @generated */ EMap getStringToVATMap(); diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Model2Factory.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Model2Factory.java index 8417537e5c..dcae005d1f 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Model2Factory.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Model2Factory.java @@ -15,110 +15,109 @@ import org.eclipse.emf.ecore.EFactory; /** * The Factory for the model. It provides a create method for each non-abstract class of * the model. - * * @see org.eclipse.emf.cdo.tests.model2.Model2Package * @generated */ public interface Model2Factory extends EFactory { /** - * The singleton instance of the factory. - * + * The singleton instance of the factory. + * * @generated */ Model2Factory eINSTANCE = org.eclipse.emf.cdo.tests.model2.impl.Model2FactoryImpl.init(); /** - * Returns a new object of class 'Special Purchase Order'. - * + * Returns a new object of class 'Special Purchase Order'. + * * @return a new object of class 'Special Purchase Order'. * @generated */ SpecialPurchaseOrder createSpecialPurchaseOrder(); /** - * Returns a new object of class 'Task Container'. - * + * Returns a new object of class 'Task Container'. + * * @return a new object of class 'Task Container'. * @generated */ TaskContainer createTaskContainer(); /** - * Returns a new object of class 'Task'. - * + * Returns a new object of class 'Task'. + * * @return a new object of class 'Task'. * @generated */ Task createTask(); /** - * Returns a new object of class 'Unsettable1'. - * + * Returns a new object of class 'Unsettable1'. + * * @return a new object of class 'Unsettable1'. * @generated */ Unsettable1 createUnsettable1(); /** - * Returns a new object of class 'Unsettable2 With Default'. - * + * Returns a new object of class 'Unsettable2 With Default'. + * * @return a new object of class 'Unsettable2 With Default'. * @generated */ Unsettable2WithDefault createUnsettable2WithDefault(); /** - * Returns a new object of class 'Persistent Containment'. - * + * Returns a new object of class 'Persistent Containment'. + * * @return a new object of class 'Persistent Containment'. * @generated */ PersistentContainment createPersistentContainment(); /** - * Returns a new object of class 'Transient Container'. - * + * Returns a new object of class 'Transient Container'. + * * @return a new object of class 'Transient Container'. * @generated */ TransientContainer createTransientContainer(); /** - * Returns a new object of class 'Not Unsettable'. - * + * Returns a new object of class 'Not Unsettable'. + * * @return a new object of class 'Not Unsettable'. * @generated */ NotUnsettable createNotUnsettable(); /** - * Returns a new object of class 'Not Unsettable With Default'. - * + * Returns a new object of class 'Not Unsettable With Default'. + * * @return a new object of class 'Not Unsettable With Default'. * @generated */ NotUnsettableWithDefault createNotUnsettableWithDefault(); /** - * Returns a new object of class 'Map Holder'. - * + * Returns a new object of class 'Map Holder'. + * * @return a new object of class 'Map Holder'. * @generated */ MapHolder createMapHolder(); /** - * Returns a new object of class 'Enum List Holder'. - * + * Returns a new object of class 'Enum List Holder'. + * * @return a new object of class 'Enum List Holder'. * @generated */ EnumListHolder createEnumListHolder(); /** - * Returns the package supported by this factory. - * + * Returns the package supported by this factory. + * * @return the package supported by this factory. * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Model2Package.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Model2Package.java index ba16d1d433..55bf8d8dba 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Model2Package.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Model2Package.java @@ -26,7 +26,6 @@ import org.eclipse.emf.ecore.EReference; *
  • and each data type
  • * * - * * @see org.eclipse.emf.cdo.tests.model2.Model2Factory * @model kind="package" * @generated @@ -34,37 +33,36 @@ import org.eclipse.emf.ecore.EReference; public interface Model2Package extends EPackage { /** - * The package name. - * + * The package name. + * * @generated */ String eNAME = "model2"; /** - * The package namespace URI. - * + * The package namespace URI. + * * @generated */ String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/model2/1.0.0"; /** - * The package namespace name. - * + * The package namespace name. + * * @generated */ String eNS_PREFIX = "model2"; /** - * The singleton instance of the package. - * + * The singleton instance of the package. + * * @generated */ Model2Package eINSTANCE = org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl.init(); /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.SpecialPurchaseOrderImpl - * Special Purchase Order}' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.SpecialPurchaseOrderImpl Special Purchase Order}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.SpecialPurchaseOrderImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getSpecialPurchaseOrder() * @generated @@ -72,60 +70,59 @@ public interface Model2Package extends EPackage int SPECIAL_PURCHASE_ORDER = 0; /** - * The feature id for the 'Order Details' containment reference list. - * * @generated * @ordered */ int SPECIAL_PURCHASE_ORDER__ORDER_DETAILS = Model1Package.PURCHASE_ORDER__ORDER_DETAILS; /** - * The feature id for the 'Date' attribute. - * + * The feature id for the 'Date' attribute. + * * @generated * @ordered */ int SPECIAL_PURCHASE_ORDER__DATE = Model1Package.PURCHASE_ORDER__DATE; /** - * The feature id for the 'Supplier' reference. - * + * The feature id for the 'Supplier' reference. + * * @generated * @ordered */ int SPECIAL_PURCHASE_ORDER__SUPPLIER = Model1Package.PURCHASE_ORDER__SUPPLIER; /** - * The feature id for the 'Discount Code' attribute. - * + * The feature id for the 'Discount Code' attribute. + * * @generated * @ordered */ int SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE = Model1Package.PURCHASE_ORDER_FEATURE_COUNT + 0; /** - * The feature id for the 'Shipping Address' containment reference. - * * @generated * @ordered */ int SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS = Model1Package.PURCHASE_ORDER_FEATURE_COUNT + 1; /** - * The number of structural features of the 'Special Purchase Order' class. - * * @generated * @ordered */ int SPECIAL_PURCHASE_ORDER_FEATURE_COUNT = Model1Package.PURCHASE_ORDER_FEATURE_COUNT + 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.TaskContainerImpl Task Container} - * ' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.TaskContainerImpl Task Container}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.TaskContainerImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getTaskContainer() * @generated @@ -133,9 +130,9 @@ public interface Model2Package extends EPackage int TASK_CONTAINER = 1; /** - * The feature id for the 'Tasks' containment reference list. - * * @generated * @ordered */ @@ -161,42 +158,41 @@ public interface Model2Package extends EPackage int TASK = 2; /** - * The feature id for the 'Task Container' container reference. - * * @generated * @ordered */ int TASK__TASK_CONTAINER = 0; /** - * The feature id for the 'Description' attribute. - * + * The feature id for the 'Description' attribute. + * * @generated * @ordered */ int TASK__DESCRIPTION = 1; /** - * The feature id for the 'Done' attribute. - * + * The feature id for the 'Done' attribute. + * * @generated * @ordered */ int TASK__DONE = 2; /** - * The number of structural features of the 'Task' class. - * + * The number of structural features of the 'Task' class. + * * @generated * @ordered */ int TASK_FEATURE_COUNT = 3; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl Unsettable1}' - * class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl Unsettable1}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getUnsettable1() * @generated @@ -213,80 +209,80 @@ public interface Model2Package extends EPackage int UNSETTABLE1__UNSETTABLE_BOOLEAN = 0; /** - * The feature id for the 'Unsettable Byte' attribute. - * + * The feature id for the 'Unsettable Byte' attribute. + * * @generated * @ordered */ int UNSETTABLE1__UNSETTABLE_BYTE = 1; /** - * The feature id for the 'Unsettable Char' attribute. - * + * The feature id for the 'Unsettable Char' attribute. + * * @generated * @ordered */ int UNSETTABLE1__UNSETTABLE_CHAR = 2; /** - * The feature id for the 'Unsettable Date' attribute. - * + * The feature id for the 'Unsettable Date' attribute. + * * @generated * @ordered */ int UNSETTABLE1__UNSETTABLE_DATE = 3; /** - * The feature id for the 'Unsettable Double' attribute. - * + * The feature id for the 'Unsettable Double' attribute. + * * @generated * @ordered */ int UNSETTABLE1__UNSETTABLE_DOUBLE = 4; /** - * The feature id for the 'Unsettable Float' attribute. - * + * The feature id for the 'Unsettable Float' attribute. + * * @generated * @ordered */ int UNSETTABLE1__UNSETTABLE_FLOAT = 5; /** - * The feature id for the 'Unsettable Int' attribute. - * + * The feature id for the 'Unsettable Int' attribute. + * * @generated * @ordered */ int UNSETTABLE1__UNSETTABLE_INT = 6; /** - * The feature id for the 'Unsettable Long' attribute. - * + * The feature id for the 'Unsettable Long' attribute. + * * @generated * @ordered */ int UNSETTABLE1__UNSETTABLE_LONG = 7; /** - * The feature id for the 'Unsettable Short' attribute. - * + * The feature id for the 'Unsettable Short' attribute. + * * @generated * @ordered */ int UNSETTABLE1__UNSETTABLE_SHORT = 8; /** - * The feature id for the 'Unsettable String' attribute. - * + * The feature id for the 'Unsettable String' attribute. + * * @generated * @ordered */ int UNSETTABLE1__UNSETTABLE_STRING = 9; /** - * The feature id for the 'Unsettable VAT' attribute. - * + * The feature id for the 'Unsettable VAT' attribute. + * * @generated * @ordered */ @@ -302,9 +298,8 @@ public interface Model2Package extends EPackage int UNSETTABLE1_FEATURE_COUNT = 11; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl - * Unsettable2 With Default}' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl Unsettable2 With Default}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getUnsettable2WithDefault() * @generated @@ -321,98 +316,97 @@ public interface Model2Package extends EPackage int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN = 0; /** - * The feature id for the 'Unsettable Byte' attribute. - * + * The feature id for the 'Unsettable Byte' attribute. + * * @generated * @ordered */ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE = 1; /** - * The feature id for the 'Unsettable Char' attribute. - * + * The feature id for the 'Unsettable Char' attribute. + * * @generated * @ordered */ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR = 2; /** - * The feature id for the 'Unsettable Date' attribute. - * + * The feature id for the 'Unsettable Date' attribute. + * * @generated * @ordered */ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE = 3; /** - * The feature id for the 'Unsettable Double' attribute. - * + * The feature id for the 'Unsettable Double' attribute. + * * @generated * @ordered */ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE = 4; /** - * The feature id for the 'Unsettable Float' attribute. - * + * The feature id for the 'Unsettable Float' attribute. + * * @generated * @ordered */ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT = 5; /** - * The feature id for the 'Unsettable Int' attribute. - * + * The feature id for the 'Unsettable Int' attribute. + * * @generated * @ordered */ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT = 6; /** - * The feature id for the 'Unsettable Long' attribute. - * + * The feature id for the 'Unsettable Long' attribute. + * * @generated * @ordered */ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG = 7; /** - * The feature id for the 'Unsettable Short' attribute. - * + * The feature id for the 'Unsettable Short' attribute. + * * @generated * @ordered */ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT = 8; /** - * The feature id for the 'Unsettable String' attribute. - * + * The feature id for the 'Unsettable String' attribute. + * * @generated * @ordered */ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING = 9; /** - * The feature id for the 'Unsettable VAT' attribute. - * + * The feature id for the 'Unsettable VAT' attribute. + * * @generated * @ordered */ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT = 10; /** - * The number of structural features of the 'Unsettable2 With Default' class. - * * @generated * @ordered */ int UNSETTABLE2_WITH_DEFAULT_FEATURE_COUNT = 11; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.PersistentContainmentImpl - * Persistent Containment}' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.PersistentContainmentImpl Persistent Containment}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.PersistentContainmentImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getPersistentContainment() * @generated @@ -420,43 +414,42 @@ public interface Model2Package extends EPackage int PERSISTENT_CONTAINMENT = 5; /** - * The feature id for the 'Attr Before' attribute. - * + * The feature id for the 'Attr Before' attribute. + * * @generated * @ordered */ int PERSISTENT_CONTAINMENT__ATTR_BEFORE = 0; /** - * The feature id for the 'Children' containment reference list. - * * @generated * @ordered */ int PERSISTENT_CONTAINMENT__CHILDREN = 1; /** - * The feature id for the 'Attr After' attribute. - * + * The feature id for the 'Attr After' attribute. + * * @generated * @ordered */ int PERSISTENT_CONTAINMENT__ATTR_AFTER = 2; /** - * The number of structural features of the 'Persistent Containment' class. - * * @generated * @ordered */ int PERSISTENT_CONTAINMENT_FEATURE_COUNT = 3; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.TransientContainerImpl - * Transient Container}' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.TransientContainerImpl Transient Container}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.TransientContainerImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getTransientContainer() * @generated @@ -464,42 +457,41 @@ public interface Model2Package extends EPackage int TRANSIENT_CONTAINER = 6; /** - * The feature id for the 'Attr Before' attribute. - * + * The feature id for the 'Attr Before' attribute. + * * @generated * @ordered */ int TRANSIENT_CONTAINER__ATTR_BEFORE = 0; /** - * The feature id for the 'Parent' container reference. - * + * The feature id for the 'Parent' container reference. + * * @generated * @ordered */ int TRANSIENT_CONTAINER__PARENT = 1; /** - * The feature id for the 'Attr After' attribute. - * + * The feature id for the 'Attr After' attribute. + * * @generated * @ordered */ int TRANSIENT_CONTAINER__ATTR_AFTER = 2; /** - * The number of structural features of the 'Transient Container' class. - * * @generated * @ordered */ int TRANSIENT_CONTAINER_FEATURE_COUNT = 3; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl Not Unsettable} - * ' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl Not Unsettable}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getNotUnsettable() * @generated @@ -507,9 +499,9 @@ public interface Model2Package extends EPackage int NOT_UNSETTABLE = 7; /** - * The feature id for the 'Not Unsettable Boolean' attribute. - * * @generated * @ordered */ @@ -615,9 +607,8 @@ public interface Model2Package extends EPackage int NOT_UNSETTABLE_FEATURE_COUNT = 11; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl - * Not Unsettable With Default}' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl Not Unsettable With Default}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getNotUnsettableWithDefault() * @generated @@ -625,9 +616,9 @@ public interface Model2Package extends EPackage int NOT_UNSETTABLE_WITH_DEFAULT = 8; /** - * The feature id for the 'Not Unsettable Boolean' attribute. - * * @generated * @ordered */ @@ -724,9 +715,9 @@ public interface Model2Package extends EPackage int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_VAT = 10; /** - * The number of structural features of the 'Not Unsettable With Default' class. - * * @generated * @ordered */ @@ -735,7 +726,6 @@ public interface Model2Package extends EPackage /** * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl Map Holder}' class. * - * * @see org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getMapHolder() * @generated @@ -743,94 +733,93 @@ public interface Model2Package extends EPackage int MAP_HOLDER = 9; /** - * The feature id for the 'Integer To String Map' map. - * + * The feature id for the 'Integer To String Map' map. + * * @generated * @ordered */ int MAP_HOLDER__INTEGER_TO_STRING_MAP = 0; /** - * The feature id for the 'String To String Map' map. - * + * The feature id for the 'String To String Map' map. + * * @generated * @ordered */ int MAP_HOLDER__STRING_TO_STRING_MAP = 1; /** - * The feature id for the 'String To VAT Map' map. - * + * The feature id for the 'String To VAT Map' map. + * * @generated * @ordered */ int MAP_HOLDER__STRING_TO_VAT_MAP = 2; /** - * The feature id for the 'String To Address Containment Map' map. - * * @generated * @ordered */ int MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP = 3; /** - * The feature id for the 'String To Address Reference Map' map. - * * @generated * @ordered */ int MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP = 4; /** - * The feature id for the 'EObject To EObject Map' map. - * + * The feature id for the 'EObject To EObject Map' map. + * * @generated * @ordered */ int MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP = 5; /** - * The feature id for the 'EObject To EObject Key Contained Map' map. - * * @generated * @ordered */ int MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP = 6; /** - * The feature id for the 'EObject To EObject Both Contained Map' map. - * * @generated * @ordered */ int MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP = 7; /** - * The feature id for the 'EObject To EObject Value Contained Map' map. - * * @generated * @ordered */ int MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP = 8; /** - * The number of structural features of the 'Map Holder' class. - * + * The number of structural features of the 'Map Holder' class. + * * @generated * @ordered */ int MAP_HOLDER_FEATURE_COUNT = 9; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.StringToStringMapImpl - * String To String Map}' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.StringToStringMapImpl String To String Map}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.StringToStringMapImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getStringToStringMap() * @generated @@ -838,34 +827,33 @@ public interface Model2Package extends EPackage int STRING_TO_STRING_MAP = 10; /** - * The feature id for the 'Key' attribute. - * + * The feature id for the 'Key' attribute. + * * @generated * @ordered */ int STRING_TO_STRING_MAP__KEY = 0; /** - * The feature id for the 'Value' attribute. - * + * The feature id for the 'Value' attribute. + * * @generated * @ordered */ int STRING_TO_STRING_MAP__VALUE = 1; /** - * The number of structural features of the 'String To String Map' class. - * * @generated * @ordered */ int STRING_TO_STRING_MAP_FEATURE_COUNT = 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.IntegerToStringMapImpl - * Integer To String Map}' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.IntegerToStringMapImpl Integer To String Map}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.IntegerToStringMapImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getIntegerToStringMap() * @generated @@ -873,34 +861,33 @@ public interface Model2Package extends EPackage int INTEGER_TO_STRING_MAP = 11; /** - * The feature id for the 'Key' attribute. - * + * The feature id for the 'Key' attribute. + * * @generated * @ordered */ int INTEGER_TO_STRING_MAP__KEY = 0; /** - * The feature id for the 'Value' attribute. - * + * The feature id for the 'Value' attribute. + * * @generated * @ordered */ int INTEGER_TO_STRING_MAP__VALUE = 1; /** - * The number of structural features of the 'Integer To String Map' class. - * * @generated * @ordered */ int INTEGER_TO_STRING_MAP_FEATURE_COUNT = 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.StringToVATMapImpl - * String To VAT Map}' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.StringToVATMapImpl String To VAT Map}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.StringToVATMapImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getStringToVATMap() * @generated @@ -908,34 +895,33 @@ public interface Model2Package extends EPackage int STRING_TO_VAT_MAP = 12; /** - * The feature id for the 'Key' attribute. - * + * The feature id for the 'Key' attribute. + * * @generated * @ordered */ int STRING_TO_VAT_MAP__KEY = 0; /** - * The feature id for the 'Value' attribute. - * + * The feature id for the 'Value' attribute. + * * @generated * @ordered */ int STRING_TO_VAT_MAP__VALUE = 1; /** - * The number of structural features of the 'String To VAT Map' class. - * * @generated * @ordered */ int STRING_TO_VAT_MAP_FEATURE_COUNT = 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.StringToAddressContainmentMapImpl - * String To Address Containment Map}' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.StringToAddressContainmentMapImpl String To Address Containment Map}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.StringToAddressContainmentMapImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getStringToAddressContainmentMap() * @generated @@ -943,34 +929,33 @@ public interface Model2Package extends EPackage int STRING_TO_ADDRESS_CONTAINMENT_MAP = 13; /** - * The feature id for the 'Key' attribute. - * + * The feature id for the 'Key' attribute. + * * @generated * @ordered */ int STRING_TO_ADDRESS_CONTAINMENT_MAP__KEY = 0; /** - * The feature id for the 'Value' containment reference. - * + * The feature id for the 'Value' containment reference. + * * @generated * @ordered */ int STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE = 1; /** - * The number of structural features of the 'String To Address Containment Map' class. - * * @generated * @ordered */ int STRING_TO_ADDRESS_CONTAINMENT_MAP_FEATURE_COUNT = 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.StringToAddressReferenceMapImpl - * String To Address Reference Map}' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.StringToAddressReferenceMapImpl String To Address Reference Map}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.StringToAddressReferenceMapImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getStringToAddressReferenceMap() * @generated @@ -978,34 +963,33 @@ public interface Model2Package extends EPackage int STRING_TO_ADDRESS_REFERENCE_MAP = 14; /** - * The feature id for the 'Key' attribute. - * + * The feature id for the 'Key' attribute. + * * @generated * @ordered */ int STRING_TO_ADDRESS_REFERENCE_MAP__KEY = 0; /** - * The feature id for the 'Value' reference. - * + * The feature id for the 'Value' reference. + * * @generated * @ordered */ int STRING_TO_ADDRESS_REFERENCE_MAP__VALUE = 1; /** - * The number of structural features of the 'String To Address Reference Map' class. + * The number of structural features of the 'String To Address Reference Map' class. + * * - * * @generated * @ordered */ int STRING_TO_ADDRESS_REFERENCE_MAP_FEATURE_COUNT = 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectMapImpl - * EObject To EObject Map}' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectMapImpl EObject To EObject Map}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectMapImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getEObjectToEObjectMap() * @generated @@ -1013,34 +997,33 @@ public interface Model2Package extends EPackage int EOBJECT_TO_EOBJECT_MAP = 15; /** - * The feature id for the 'Key' reference. - * + * The feature id for the 'Key' reference. + * * @generated * @ordered */ int EOBJECT_TO_EOBJECT_MAP__KEY = 0; /** - * The feature id for the 'Value' reference. - * + * The feature id for the 'Value' reference. + * * @generated * @ordered */ int EOBJECT_TO_EOBJECT_MAP__VALUE = 1; /** - * The number of structural features of the 'EObject To EObject Map' class. - * * @generated * @ordered */ int EOBJECT_TO_EOBJECT_MAP_FEATURE_COUNT = 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectKeyContainedMapImpl - * EObject To EObject Key Contained Map}' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectKeyContainedMapImpl EObject To EObject Key Contained Map}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectKeyContainedMapImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getEObjectToEObjectKeyContainedMap() * @generated @@ -1048,34 +1031,33 @@ public interface Model2Package extends EPackage int EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP = 16; /** - * The feature id for the 'Key' containment reference. - * + * The feature id for the 'Key' containment reference. + * * @generated * @ordered */ int EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY = 0; /** - * The feature id for the 'Value' reference. - * + * The feature id for the 'Value' reference. + * * @generated * @ordered */ int EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE = 1; /** - * The number of structural features of the 'EObject To EObject Key Contained Map' class. - * * @generated * @ordered */ int EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP_FEATURE_COUNT = 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectBothContainedMapImpl - * EObject To EObject Both Contained Map}' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectBothContainedMapImpl EObject To EObject Both Contained Map}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectBothContainedMapImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getEObjectToEObjectBothContainedMap() * @generated @@ -1083,16 +1065,16 @@ public interface Model2Package extends EPackage int EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP = 17; /** - * The feature id for the 'Key' containment reference. - * + * The feature id for the 'Key' containment reference. + * * @generated * @ordered */ int EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY = 0; /** - * The feature id for the 'Value' containment reference. - * + * The feature id for the 'Value' containment reference. + * * @generated * @ordered */ @@ -1108,9 +1090,8 @@ public interface Model2Package extends EPackage int EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP_FEATURE_COUNT = 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectValueContainedMapImpl - * EObject To EObject Value Contained Map}' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectValueContainedMapImpl EObject To EObject Value Contained Map}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectValueContainedMapImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getEObjectToEObjectValueContainedMap() * @generated @@ -1118,16 +1099,16 @@ public interface Model2Package extends EPackage int EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP = 18; /** - * The feature id for the 'Key' reference. - * + * The feature id for the 'Key' reference. + * * @generated * @ordered */ int EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY = 0; /** - * The feature id for the 'Value' containment reference. - * + * The feature id for the 'Value' containment reference. + * * @generated * @ordered */ @@ -1143,9 +1124,8 @@ public interface Model2Package extends EPackage int EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP_FEATURE_COUNT = 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.EnumListHolderImpl - * Enum List Holder}' class. - * + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.EnumListHolderImpl Enum List Holder}' class. + * * @see org.eclipse.emf.cdo.tests.model2.impl.EnumListHolderImpl * @see org.eclipse.emf.cdo.tests.model2.impl.Model2PackageImpl#getEnumListHolder() * @generated @@ -1153,26 +1133,25 @@ public interface Model2Package extends EPackage int ENUM_LIST_HOLDER = 19; /** - * The feature id for the 'Enum List' attribute list. - * + * The feature id for the 'Enum List' attribute list. + * * @generated * @ordered */ int ENUM_LIST_HOLDER__ENUM_LIST = 0; /** - * The number of structural features of the 'Enum List Holder' class. - * * @generated * @ordered */ int ENUM_LIST_HOLDER_FEATURE_COUNT = 1; /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder - * Special Purchase Order}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder Special Purchase Order}'. + * * @return the meta object for class 'Special Purchase Order'. * @see org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder * @generated @@ -1206,7 +1185,6 @@ public interface Model2Package extends EPackage /** * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.TaskContainer Task Container}'. * - * * @return the meta object for class 'Task Container'. * @see org.eclipse.emf.cdo.tests.model2.TaskContainer * @generated @@ -1214,10 +1192,9 @@ public interface Model2Package extends EPackage EClass getTaskContainer(); /** - * Returns the meta object for the containment reference list ' - * {@link org.eclipse.emf.cdo.tests.model2.TaskContainer#getTasks Tasks}'. - * * @return the meta object for the containment reference list 'Tasks'. * @see org.eclipse.emf.cdo.tests.model2.TaskContainer#getTasks() * @see #getTaskContainer() @@ -1236,9 +1213,8 @@ public interface Model2Package extends EPackage EClass getTask(); /** - * Returns the meta object for the container reference '{@link org.eclipse.emf.cdo.tests.model2.Task#getTaskContainer - * Task Container}'. - * + * Returns the meta object for the container reference '{@link org.eclipse.emf.cdo.tests.model2.Task#getTaskContainer Task Container}'. + * * @return the meta object for the container reference 'Task Container'. * @see org.eclipse.emf.cdo.tests.model2.Task#getTaskContainer() * @see #getTask() @@ -1247,9 +1223,8 @@ public interface Model2Package extends EPackage EReference getTask_TaskContainer(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Task#getDescription - * Description}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Task#getDescription Description}'. + * * @return the meta object for the attribute 'Description'. * @see org.eclipse.emf.cdo.tests.model2.Task#getDescription() * @see #getTask() @@ -1260,7 +1235,6 @@ public interface Model2Package extends EPackage /** * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Task#isDone Done}'. * - * * @return the meta object for the attribute 'Done'. * @see org.eclipse.emf.cdo.tests.model2.Task#isDone() * @see #getTask() @@ -1279,9 +1253,8 @@ public interface Model2Package extends EPackage EClass getUnsettable1(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#isUnsettableBoolean - * Unsettable Boolean}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#isUnsettableBoolean Unsettable Boolean}'. + * * @return the meta object for the attribute 'Unsettable Boolean'. * @see org.eclipse.emf.cdo.tests.model2.Unsettable1#isUnsettableBoolean() * @see #getUnsettable1() @@ -1290,9 +1263,8 @@ public interface Model2Package extends EPackage EAttribute getUnsettable1_UnsettableBoolean(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableByte - * Unsettable Byte}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableByte Unsettable Byte}'. + * * @return the meta object for the attribute 'Unsettable Byte'. * @see org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableByte() * @see #getUnsettable1() @@ -1301,9 +1273,8 @@ public interface Model2Package extends EPackage EAttribute getUnsettable1_UnsettableByte(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableChar - * Unsettable Char}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableChar Unsettable Char}'. + * * @return the meta object for the attribute 'Unsettable Char'. * @see org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableChar() * @see #getUnsettable1() @@ -1312,9 +1283,8 @@ public interface Model2Package extends EPackage EAttribute getUnsettable1_UnsettableChar(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDate - * Unsettable Date}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDate Unsettable Date}'. + * * @return the meta object for the attribute 'Unsettable Date'. * @see org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDate() * @see #getUnsettable1() @@ -1323,9 +1293,8 @@ public interface Model2Package extends EPackage EAttribute getUnsettable1_UnsettableDate(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDouble - * Unsettable Double}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDouble Unsettable Double}'. + * * @return the meta object for the attribute 'Unsettable Double'. * @see org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDouble() * @see #getUnsettable1() @@ -1334,9 +1303,8 @@ public interface Model2Package extends EPackage EAttribute getUnsettable1_UnsettableDouble(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableFloat - * Unsettable Float}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableFloat Unsettable Float}'. + * * @return the meta object for the attribute 'Unsettable Float'. * @see org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableFloat() * @see #getUnsettable1() @@ -1345,9 +1313,8 @@ public interface Model2Package extends EPackage EAttribute getUnsettable1_UnsettableFloat(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableInt - * Unsettable Int}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableInt Unsettable Int}'. + * * @return the meta object for the attribute 'Unsettable Int'. * @see org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableInt() * @see #getUnsettable1() @@ -1356,9 +1323,8 @@ public interface Model2Package extends EPackage EAttribute getUnsettable1_UnsettableInt(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableLong - * Unsettable Long}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableLong Unsettable Long}'. + * * @return the meta object for the attribute 'Unsettable Long'. * @see org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableLong() * @see #getUnsettable1() @@ -1367,9 +1333,8 @@ public interface Model2Package extends EPackage EAttribute getUnsettable1_UnsettableLong(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableShort - * Unsettable Short}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableShort Unsettable Short}'. + * * @return the meta object for the attribute 'Unsettable Short'. * @see org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableShort() * @see #getUnsettable1() @@ -1378,9 +1343,8 @@ public interface Model2Package extends EPackage EAttribute getUnsettable1_UnsettableShort(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableString - * Unsettable String}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableString Unsettable String}'. + * * @return the meta object for the attribute 'Unsettable String'. * @see org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableString() * @see #getUnsettable1() @@ -1389,9 +1353,8 @@ public interface Model2Package extends EPackage EAttribute getUnsettable1_UnsettableString(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableVAT - * Unsettable VAT}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableVAT Unsettable VAT}'. + * * @return the meta object for the attribute 'Unsettable VAT'. * @see org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableVAT() * @see #getUnsettable1() @@ -1400,9 +1363,8 @@ public interface Model2Package extends EPackage EAttribute getUnsettable1_UnsettableVAT(); /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault - * Unsettable2 With Default}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault Unsettable2 With Default}'. + * * @return the meta object for class 'Unsettable2 With Default'. * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault * @generated @@ -1410,10 +1372,8 @@ public interface Model2Package extends EPackage EClass getUnsettable2WithDefault(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#isUnsettableBoolean Unsettable Boolean}'. + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#isUnsettableBoolean Unsettable Boolean}'. * - * * @return the meta object for the attribute 'Unsettable Boolean'. * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#isUnsettableBoolean() * @see #getUnsettable2WithDefault() @@ -1458,10 +1418,8 @@ public interface Model2Package extends EPackage EAttribute getUnsettable2WithDefault_UnsettableDate(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDouble Unsettable Double}'. + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDouble Unsettable Double}'. * - * * @return the meta object for the attribute 'Unsettable Double'. * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDouble() * @see #getUnsettable2WithDefault() @@ -1518,10 +1476,8 @@ public interface Model2Package extends EPackage EAttribute getUnsettable2WithDefault_UnsettableShort(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableString Unsettable String}'. + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableString Unsettable String}'. * - * * @return the meta object for the attribute 'Unsettable String'. * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableString() * @see #getUnsettable2WithDefault() @@ -1542,9 +1498,8 @@ public interface Model2Package extends EPackage EAttribute getUnsettable2WithDefault_UnsettableVAT(); /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.PersistentContainment - * Persistent Containment}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.PersistentContainment Persistent Containment}'. + * * @return the meta object for class 'Persistent Containment'. * @see org.eclipse.emf.cdo.tests.model2.PersistentContainment * @generated @@ -1564,10 +1519,9 @@ public interface Model2Package extends EPackage EAttribute getPersistentContainment_AttrBefore(); /** - * Returns the meta object for the containment reference list ' - * {@link org.eclipse.emf.cdo.tests.model2.PersistentContainment#getChildren Children}'. - * * @return the meta object for the containment reference list 'Children'. * @see org.eclipse.emf.cdo.tests.model2.PersistentContainment#getChildren() * @see #getPersistentContainment() @@ -1588,9 +1542,8 @@ public interface Model2Package extends EPackage EAttribute getPersistentContainment_AttrAfter(); /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer - * Transient Container}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer Transient Container}'. + * * @return the meta object for class 'Transient Container'. * @see org.eclipse.emf.cdo.tests.model2.TransientContainer * @generated @@ -1610,10 +1563,9 @@ public interface Model2Package extends EPackage EAttribute getTransientContainer_AttrBefore(); /** - * Returns the meta object for the container reference ' - * {@link org.eclipse.emf.cdo.tests.model2.TransientContainer#getParent Parent}'. + * Returns the meta object for the container reference '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer#getParent Parent}'. + * * - * * @return the meta object for the container reference 'Parent'. * @see org.eclipse.emf.cdo.tests.model2.TransientContainer#getParent() * @see #getTransientContainer() @@ -1622,9 +1574,8 @@ public interface Model2Package extends EPackage EReference getTransientContainer_Parent(); /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer#getAttrAfter - * Attr After}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer#getAttrAfter Attr After}'. + * * @return the meta object for the attribute 'Attr After'. * @see org.eclipse.emf.cdo.tests.model2.TransientContainer#getAttrAfter() * @see #getTransientContainer() @@ -1635,7 +1586,6 @@ public interface Model2Package extends EPackage /** * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable Not Unsettable}'. * - * * @return the meta object for class 'Not Unsettable'. * @see org.eclipse.emf.cdo.tests.model2.NotUnsettable * @generated @@ -1643,10 +1593,8 @@ public interface Model2Package extends EPackage EClass getNotUnsettable(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#isNotUnsettableBoolean Not Unsettable Boolean}'. + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#isNotUnsettableBoolean Not Unsettable Boolean}'. * - * * @return the meta object for the attribute 'Not Unsettable Boolean'. * @see org.eclipse.emf.cdo.tests.model2.NotUnsettable#isNotUnsettableBoolean() * @see #getNotUnsettable() @@ -1775,9 +1723,8 @@ public interface Model2Package extends EPackage EAttribute getNotUnsettable_NotUnsettableVAT(); /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault - * Not Unsettable With Default}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault Not Unsettable With Default}'. + * * @return the meta object for class 'Not Unsettable With Default'. * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault * @generated @@ -1785,10 +1732,8 @@ public interface Model2Package extends EPackage EClass getNotUnsettableWithDefault(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#isNotUnsettableBoolean - * Not Unsettable Boolean}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#isNotUnsettableBoolean Not Unsettable Boolean}'. + * * @return the meta object for the attribute 'Not Unsettable Boolean'. * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#isNotUnsettableBoolean() * @see #getNotUnsettableWithDefault() @@ -1797,10 +1742,8 @@ public interface Model2Package extends EPackage EAttribute getNotUnsettableWithDefault_NotUnsettableBoolean(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableByte Not Unsettable Byte} - * '. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableByte Not Unsettable Byte}'. + * * @return the meta object for the attribute 'Not Unsettable Byte'. * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableByte() * @see #getNotUnsettableWithDefault() @@ -1809,10 +1752,8 @@ public interface Model2Package extends EPackage EAttribute getNotUnsettableWithDefault_NotUnsettableByte(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableChar Not Unsettable Char} - * '. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableChar Not Unsettable Char}'. + * * @return the meta object for the attribute 'Not Unsettable Char'. * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableChar() * @see #getNotUnsettableWithDefault() @@ -1821,10 +1762,8 @@ public interface Model2Package extends EPackage EAttribute getNotUnsettableWithDefault_NotUnsettableChar(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDate Not Unsettable Date} - * '. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDate Not Unsettable Date}'. + * * @return the meta object for the attribute 'Not Unsettable Date'. * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDate() * @see #getNotUnsettableWithDefault() @@ -1833,10 +1772,8 @@ public interface Model2Package extends EPackage EAttribute getNotUnsettableWithDefault_NotUnsettableDate(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDouble - * Not Unsettable Double}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDouble Not Unsettable Double}'. + * * @return the meta object for the attribute 'Not Unsettable Double'. * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDouble() * @see #getNotUnsettableWithDefault() @@ -1845,10 +1782,8 @@ public interface Model2Package extends EPackage EAttribute getNotUnsettableWithDefault_NotUnsettableDouble(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableFloat - * Not Unsettable Float}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableFloat Not Unsettable Float}'. + * * @return the meta object for the attribute 'Not Unsettable Float'. * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableFloat() * @see #getNotUnsettableWithDefault() @@ -1857,10 +1792,8 @@ public interface Model2Package extends EPackage EAttribute getNotUnsettableWithDefault_NotUnsettableFloat(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableInt Not Unsettable Int}'. + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableInt Not Unsettable Int}'. * - * * @return the meta object for the attribute 'Not Unsettable Int'. * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableInt() * @see #getNotUnsettableWithDefault() @@ -1869,10 +1802,8 @@ public interface Model2Package extends EPackage EAttribute getNotUnsettableWithDefault_NotUnsettableInt(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableLong Not Unsettable Long} - * '. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableLong Not Unsettable Long}'. + * * @return the meta object for the attribute 'Not Unsettable Long'. * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableLong() * @see #getNotUnsettableWithDefault() @@ -1881,10 +1812,8 @@ public interface Model2Package extends EPackage EAttribute getNotUnsettableWithDefault_NotUnsettableLong(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableShort - * Not Unsettable Short}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableShort Not Unsettable Short}'. + * * @return the meta object for the attribute 'Not Unsettable Short'. * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableShort() * @see #getNotUnsettableWithDefault() @@ -1893,10 +1822,8 @@ public interface Model2Package extends EPackage EAttribute getNotUnsettableWithDefault_NotUnsettableShort(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableString - * Not Unsettable String}'. - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableString Not Unsettable String}'. + * * @return the meta object for the attribute 'Not Unsettable String'. * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableString() * @see #getNotUnsettableWithDefault() @@ -1905,10 +1832,8 @@ public interface Model2Package extends EPackage EAttribute getNotUnsettableWithDefault_NotUnsettableString(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableVAT Not Unsettable VAT}'. + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableVAT Not Unsettable VAT}'. * - * * @return the meta object for the attribute 'Not Unsettable VAT'. * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableVAT() * @see #getNotUnsettableWithDefault() @@ -1927,9 +1852,8 @@ public interface Model2Package extends EPackage EClass getMapHolder(); /** - * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getIntegerToStringMap - * Integer To String Map}'. - * + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getIntegerToStringMap Integer To String Map}'. + * * @return the meta object for the map 'Integer To String Map'. * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getIntegerToStringMap() * @see #getMapHolder() @@ -1938,9 +1862,8 @@ public interface Model2Package extends EPackage EReference getMapHolder_IntegerToStringMap(); /** - * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToStringMap - * String To String Map}'. - * + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToStringMap String To String Map}'. + * * @return the meta object for the map 'String To String Map'. * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToStringMap() * @see #getMapHolder() @@ -1949,9 +1872,8 @@ public interface Model2Package extends EPackage EReference getMapHolder_StringToStringMap(); /** - * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToVATMap - * String To VAT Map}'. - * + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToVATMap String To VAT Map}'. + * * @return the meta object for the map 'String To VAT Map'. * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToVATMap() * @see #getMapHolder() @@ -1960,10 +1882,8 @@ public interface Model2Package extends EPackage EReference getMapHolder_StringToVATMap(); /** - * Returns the meta object for the map ' - * {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToAddressContainmentMap - * String To Address Containment Map}'. - * + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToAddressContainmentMap String To Address Containment Map}'. + * * @return the meta object for the map 'String To Address Containment Map'. * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToAddressContainmentMap() * @see #getMapHolder() @@ -1972,10 +1892,8 @@ public interface Model2Package extends EPackage EReference getMapHolder_StringToAddressContainmentMap(); /** - * Returns the meta object for the map ' - * {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToAddressReferenceMap - * String To Address Reference Map}'. - * + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToAddressReferenceMap String To Address Reference Map}'. + * * @return the meta object for the map 'String To Address Reference Map'. * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToAddressReferenceMap() * @see #getMapHolder() @@ -1984,9 +1902,8 @@ public interface Model2Package extends EPackage EReference getMapHolder_StringToAddressReferenceMap(); /** - * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectMap - * EObject To EObject Map}'. - * + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectMap EObject To EObject Map}'. + * * @return the meta object for the map 'EObject To EObject Map'. * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectMap() * @see #getMapHolder() @@ -1995,10 +1912,8 @@ public interface Model2Package extends EPackage EReference getMapHolder_EObjectToEObjectMap(); /** - * Returns the meta object for the map ' - * {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectKeyContainedMap - * EObject To EObject Key Contained Map}'. - * + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectKeyContainedMap EObject To EObject Key Contained Map}'. + * * @return the meta object for the map 'EObject To EObject Key Contained Map'. * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectKeyContainedMap() * @see #getMapHolder() @@ -2007,10 +1922,8 @@ public interface Model2Package extends EPackage EReference getMapHolder_EObjectToEObjectKeyContainedMap(); /** - * Returns the meta object for the map ' - * {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectBothContainedMap - * EObject To EObject Both Contained Map}'. - * + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectBothContainedMap EObject To EObject Both Contained Map}'. + * * @return the meta object for the map 'EObject To EObject Both Contained Map'. * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectBothContainedMap() * @see #getMapHolder() @@ -2019,10 +1932,8 @@ public interface Model2Package extends EPackage EReference getMapHolder_EObjectToEObjectBothContainedMap(); /** - * Returns the meta object for the map ' - * {@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectValueContainedMap - * EObject To EObject Value Contained Map}'. - * + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectValueContainedMap EObject To EObject Value Contained Map}'. + * * @return the meta object for the map 'EObject To EObject Value Contained Map'. * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectValueContainedMap() * @see #getMapHolder() @@ -2031,20 +1942,21 @@ public interface Model2Package extends EPackage EReference getMapHolder_EObjectToEObjectValueContainedMap(); /** - * Returns the meta object for class '{@link java.util.Map.Entry String To String Map}'. - * * @return the meta object for class 'String To String Map'. * @see java.util.Map.Entry - * @model keyDataType="org.eclipse.emf.ecore.EString" valueDataType="org.eclipse.emf.ecore.EString" + * @model keyDataType="org.eclipse.emf.ecore.EString" + * valueDataType="org.eclipse.emf.ecore.EString" * @generated */ EClass getStringToStringMap(); /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry Key}'. - * * @return the meta object for the attribute 'Key'. * @see java.util.Map.Entry * @see #getStringToStringMap() @@ -2053,9 +1965,9 @@ public interface Model2Package extends EPackage EAttribute getStringToStringMap_Key(); /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry Value}'. + * Returns the meta object for the attribute '{@link java.util.Map.Entry Value}'. + * * - * * @return the meta object for the attribute 'Value'. * @see java.util.Map.Entry * @see #getStringToStringMap() @@ -2064,20 +1976,21 @@ public interface Model2Package extends EPackage EAttribute getStringToStringMap_Value(); /** - * Returns the meta object for class '{@link java.util.Map.Entry Integer To String Map}'. - * * @return the meta object for class 'Integer To String Map'. * @see java.util.Map.Entry - * @model keyDataType="org.eclipse.emf.ecore.EIntegerObject" valueDataType="org.eclipse.emf.ecore.EString" + * @model keyDataType="org.eclipse.emf.ecore.EIntegerObject" + * valueDataType="org.eclipse.emf.ecore.EString" * @generated */ EClass getIntegerToStringMap(); /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry Key}'. - * * @return the meta object for the attribute 'Key'. * @see java.util.Map.Entry * @see #getIntegerToStringMap() @@ -2086,9 +1999,9 @@ public interface Model2Package extends EPackage EAttribute getIntegerToStringMap_Key(); /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry Value}'. + * Returns the meta object for the attribute '{@link java.util.Map.Entry Value}'. + * * - * * @return the meta object for the attribute 'Value'. * @see java.util.Map.Entry * @see #getIntegerToStringMap() @@ -2097,20 +2010,21 @@ public interface Model2Package extends EPackage EAttribute getIntegerToStringMap_Value(); /** - * Returns the meta object for class '{@link java.util.Map.Entry String To VAT Map}'. + * Returns the meta object for class '{@link java.util.Map.Entry String To VAT Map}'. + * * - * * @return the meta object for class 'String To VAT Map'. * @see java.util.Map.Entry - * @model keyDataType="org.eclipse.emf.ecore.EString" valueDataType="org.eclipse.emf.cdo.tests.model1.VAT" + * @model keyDataType="org.eclipse.emf.ecore.EString" + * valueDataType="org.eclipse.emf.cdo.tests.model1.VAT" * @generated */ EClass getStringToVATMap(); /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry Key}'. - * * @return the meta object for the attribute 'Key'. * @see java.util.Map.Entry * @see #getStringToVATMap() @@ -2119,9 +2033,9 @@ public interface Model2Package extends EPackage EAttribute getStringToVATMap_Key(); /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry Value}'. + * Returns the meta object for the attribute '{@link java.util.Map.Entry Value}'. + * * - * * @return the meta object for the attribute 'Value'. * @see java.util.Map.Entry * @see #getStringToVATMap() @@ -2142,9 +2056,9 @@ public interface Model2Package extends EPackage EClass getStringToAddressContainmentMap(); /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry Key}'. - * * @return the meta object for the attribute 'Key'. * @see java.util.Map.Entry * @see #getStringToAddressContainmentMap() @@ -2175,9 +2089,9 @@ public interface Model2Package extends EPackage EClass getStringToAddressReferenceMap(); /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry Key}'. - * * @return the meta object for the attribute 'Key'. * @see java.util.Map.Entry * @see #getStringToAddressReferenceMap() @@ -2186,9 +2100,9 @@ public interface Model2Package extends EPackage EAttribute getStringToAddressReferenceMap_Key(); /** - * Returns the meta object for the reference '{@link java.util.Map.Entry Value}'. + * Returns the meta object for the reference '{@link java.util.Map.Entry Value}'. + * * - * * @return the meta object for the reference 'Value'. * @see java.util.Map.Entry * @see #getStringToAddressReferenceMap() @@ -2208,9 +2122,9 @@ public interface Model2Package extends EPackage EClass getEObjectToEObjectMap(); /** - * Returns the meta object for the reference '{@link java.util.Map.Entry Key}'. - * * @return the meta object for the reference 'Key'. * @see java.util.Map.Entry * @see #getEObjectToEObjectMap() @@ -2219,9 +2133,9 @@ public interface Model2Package extends EPackage EReference getEObjectToEObjectMap_Key(); /** - * Returns the meta object for the reference '{@link java.util.Map.Entry Value}'. + * Returns the meta object for the reference '{@link java.util.Map.Entry Value}'. + * * - * * @return the meta object for the reference 'Value'. * @see java.util.Map.Entry * @see #getEObjectToEObjectMap() @@ -2252,9 +2166,9 @@ public interface Model2Package extends EPackage EReference getEObjectToEObjectKeyContainedMap_Key(); /** - * Returns the meta object for the reference '{@link java.util.Map.Entry Value}'. + * Returns the meta object for the reference '{@link java.util.Map.Entry Value}'. + * * - * * @return the meta object for the reference 'Value'. * @see java.util.Map.Entry * @see #getEObjectToEObjectKeyContainedMap() @@ -2265,11 +2179,10 @@ public interface Model2Package extends EPackage /** * Returns the meta object for class '{@link java.util.Map.Entry EObject To EObject Both Contained Map}'. * - * * @return the meta object for class 'EObject To EObject Both Contained Map'. * @see java.util.Map.Entry - * @model keyType="org.eclipse.emf.ecore.EObject" keyContainment="true" valueType="org.eclipse.emf.ecore.EObject" - * valueContainment="true" + * @model keyType="org.eclipse.emf.ecore.EObject" keyContainment="true" + * valueType="org.eclipse.emf.ecore.EObject" valueContainment="true" * @generated */ EClass getEObjectToEObjectBothContainedMap(); @@ -2299,18 +2212,18 @@ public interface Model2Package extends EPackage /** * Returns the meta object for class '{@link java.util.Map.Entry EObject To EObject Value Contained Map}'. * - * * @return the meta object for class 'EObject To EObject Value Contained Map'. * @see java.util.Map.Entry - * @model keyType="org.eclipse.emf.ecore.EObject" valueType="org.eclipse.emf.ecore.EObject" valueContainment="true" + * @model keyType="org.eclipse.emf.ecore.EObject" + * valueType="org.eclipse.emf.ecore.EObject" valueContainment="true" * @generated */ EClass getEObjectToEObjectValueContainedMap(); /** - * Returns the meta object for the reference '{@link java.util.Map.Entry Key}'. - * * @return the meta object for the reference 'Key'. * @see java.util.Map.Entry * @see #getEObjectToEObjectValueContainedMap() @@ -2330,9 +2243,8 @@ public interface Model2Package extends EPackage EReference getEObjectToEObjectValueContainedMap_Value(); /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.EnumListHolder - * Enum List Holder}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.EnumListHolder Enum List Holder}'. + * * @return the meta object for class 'Enum List Holder'. * @see org.eclipse.emf.cdo.tests.model2.EnumListHolder * @generated @@ -2340,9 +2252,8 @@ public interface Model2Package extends EPackage EClass getEnumListHolder(); /** - * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model2.EnumListHolder#getEnumList - * Enum List}'. - * + * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model2.EnumListHolder#getEnumList Enum List}'. + * * @return the meta object for the attribute list 'Enum List'. * @see org.eclipse.emf.cdo.tests.model2.EnumListHolder#getEnumList() * @see #getEnumListHolder() @@ -2351,8 +2262,8 @@ public interface Model2Package extends EPackage EAttribute getEnumListHolder_EnumList(); /** - * Returns the factory that creates the instances of the model. - * + * Returns the factory that creates the instances of the model. + * * @return the factory that creates the instances of the model. * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/NotUnsettable.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/NotUnsettable.java index b954a37f87..7e19b64176 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/NotUnsettable.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/NotUnsettable.java @@ -20,323 +20,302 @@ import java.util.Date; /** * A representation of the model object 'Not Unsettable'. + * *

    * The following features are supported: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#isNotUnsettableBoolean Not Unsettable Boolean}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableByte Not Unsettable Byte}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableChar Not Unsettable Char}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableDate Not Unsettable Date}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableDouble Not Unsettable Double}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableFloat Not Unsettable Float}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableInt Not Unsettable Int}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableLong Not Unsettable Long}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableShort Not Unsettable Short}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableString Not Unsettable String}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableVAT Not Unsettable VAT}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#isNotUnsettableBoolean Not Unsettable Boolean}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableByte Not Unsettable Byte}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableChar Not Unsettable Char}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableDate Not Unsettable Date}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableDouble Not Unsettable Double}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableFloat Not Unsettable Float}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableInt Not Unsettable Int}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableLong Not Unsettable Long}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableShort Not Unsettable Short}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableString Not Unsettable String}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableVAT Not Unsettable VAT}
    • *
    *

    - * - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettable() + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettable() * @model * @generated */ public interface NotUnsettable extends EObject { /** - * Returns the value of the 'Not Unsettable Boolean' attribute. + * Returns the value of the 'Not Unsettable Boolean' attribute. + * *

    * If the meaning of the 'Not Unsettable Boolean' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Boolean' attribute. * @see #setNotUnsettableBoolean(boolean) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettable_NotUnsettableBoolean() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettable_NotUnsettableBoolean() * @model * @generated */ boolean isNotUnsettableBoolean(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#isNotUnsettableBoolean - * Not Unsettable Boolean}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Boolean' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#isNotUnsettableBoolean Not Unsettable Boolean}' attribute. + * + * @param value the new value of the 'Not Unsettable Boolean' attribute. * @see #isNotUnsettableBoolean() * @generated */ void setNotUnsettableBoolean(boolean value); /** - * Returns the value of the 'Not Unsettable Byte' attribute. + * Returns the value of the 'Not Unsettable Byte' attribute. + * *

    * If the meaning of the 'Not Unsettable Byte' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Byte' attribute. * @see #setNotUnsettableByte(byte) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettable_NotUnsettableByte() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettable_NotUnsettableByte() * @model * @generated */ byte getNotUnsettableByte(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableByte - * Not Unsettable Byte}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Byte' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableByte Not Unsettable Byte}' attribute. + * + * @param value the new value of the 'Not Unsettable Byte' attribute. * @see #getNotUnsettableByte() * @generated */ void setNotUnsettableByte(byte value); /** - * Returns the value of the 'Not Unsettable Char' attribute. + * Returns the value of the 'Not Unsettable Char' attribute. + * *

    * If the meaning of the 'Not Unsettable Char' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Char' attribute. * @see #setNotUnsettableChar(char) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettable_NotUnsettableChar() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettable_NotUnsettableChar() * @model * @generated */ char getNotUnsettableChar(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableChar - * Not Unsettable Char}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Char' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableChar Not Unsettable Char}' attribute. + * + * @param value the new value of the 'Not Unsettable Char' attribute. * @see #getNotUnsettableChar() * @generated */ void setNotUnsettableChar(char value); /** - * Returns the value of the 'Not Unsettable Date' attribute. + * Returns the value of the 'Not Unsettable Date' attribute. + * *

    * If the meaning of the 'Not Unsettable Date' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Date' attribute. * @see #setNotUnsettableDate(Date) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettable_NotUnsettableDate() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettable_NotUnsettableDate() * @model * @generated */ Date getNotUnsettableDate(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableDate - * Not Unsettable Date}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Date' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableDate Not Unsettable Date}' attribute. + * + * @param value the new value of the 'Not Unsettable Date' attribute. * @see #getNotUnsettableDate() * @generated */ void setNotUnsettableDate(Date value); /** - * Returns the value of the 'Not Unsettable Double' attribute. + * Returns the value of the 'Not Unsettable Double' attribute. + * *

    * If the meaning of the 'Not Unsettable Double' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Double' attribute. * @see #setNotUnsettableDouble(double) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettable_NotUnsettableDouble() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettable_NotUnsettableDouble() * @model * @generated */ double getNotUnsettableDouble(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableDouble - * Not Unsettable Double}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Double' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableDouble Not Unsettable Double}' attribute. + * + * @param value the new value of the 'Not Unsettable Double' attribute. * @see #getNotUnsettableDouble() * @generated */ void setNotUnsettableDouble(double value); /** - * Returns the value of the 'Not Unsettable Float' attribute. + * Returns the value of the 'Not Unsettable Float' attribute. + * *

    * If the meaning of the 'Not Unsettable Float' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Float' attribute. * @see #setNotUnsettableFloat(float) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettable_NotUnsettableFloat() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettable_NotUnsettableFloat() * @model * @generated */ float getNotUnsettableFloat(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableFloat - * Not Unsettable Float}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Float' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableFloat Not Unsettable Float}' attribute. + * + * @param value the new value of the 'Not Unsettable Float' attribute. * @see #getNotUnsettableFloat() * @generated */ void setNotUnsettableFloat(float value); /** - * Returns the value of the 'Not Unsettable Int' attribute. + * Returns the value of the 'Not Unsettable Int' attribute. + * *

    * If the meaning of the 'Not Unsettable Int' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Int' attribute. * @see #setNotUnsettableInt(int) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettable_NotUnsettableInt() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettable_NotUnsettableInt() * @model * @generated */ int getNotUnsettableInt(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableInt - * Not Unsettable Int}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Int' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableInt Not Unsettable Int}' attribute. + * + * @param value the new value of the 'Not Unsettable Int' attribute. * @see #getNotUnsettableInt() * @generated */ void setNotUnsettableInt(int value); /** - * Returns the value of the 'Not Unsettable Long' attribute. + * Returns the value of the 'Not Unsettable Long' attribute. + * *

    * If the meaning of the 'Not Unsettable Long' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Long' attribute. * @see #setNotUnsettableLong(long) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettable_NotUnsettableLong() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettable_NotUnsettableLong() * @model * @generated */ long getNotUnsettableLong(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableLong - * Not Unsettable Long}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Long' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableLong Not Unsettable Long}' attribute. + * + * @param value the new value of the 'Not Unsettable Long' attribute. * @see #getNotUnsettableLong() * @generated */ void setNotUnsettableLong(long value); /** - * Returns the value of the 'Not Unsettable Short' attribute. + * Returns the value of the 'Not Unsettable Short' attribute. + * *

    * If the meaning of the 'Not Unsettable Short' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Short' attribute. * @see #setNotUnsettableShort(short) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettable_NotUnsettableShort() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettable_NotUnsettableShort() * @model * @generated */ short getNotUnsettableShort(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableShort - * Not Unsettable Short}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Short' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableShort Not Unsettable Short}' attribute. + * + * @param value the new value of the 'Not Unsettable Short' attribute. * @see #getNotUnsettableShort() * @generated */ void setNotUnsettableShort(short value); /** - * Returns the value of the 'Not Unsettable String' attribute. + * Returns the value of the 'Not Unsettable String' attribute. + * *

    * If the meaning of the 'Not Unsettable String' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable String' attribute. * @see #setNotUnsettableString(String) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettable_NotUnsettableString() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettable_NotUnsettableString() * @model * @generated */ String getNotUnsettableString(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableString - * Not Unsettable String}' attribute. - * - * @param value - * the new value of the 'Not Unsettable String' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableString Not Unsettable String}' attribute. + * + * @param value the new value of the 'Not Unsettable String' attribute. * @see #getNotUnsettableString() * @generated */ void setNotUnsettableString(String value); /** - * Returns the value of the 'Not Unsettable VAT' attribute. The literals are from the enumeration - * {@link org.eclipse.emf.cdo.tests.model1.VAT}. + * Returns the value of the 'Not Unsettable VAT' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.cdo.tests.model1.VAT}. + * *

    * If the meaning of the 'Not Unsettable VAT' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable VAT' attribute. * @see org.eclipse.emf.cdo.tests.model1.VAT * @see #setNotUnsettableVAT(VAT) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettable_NotUnsettableVAT() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettable_NotUnsettableVAT() * @model * @generated */ VAT getNotUnsettableVAT(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableVAT - * Not Unsettable VAT}' attribute. - * - * @param value - * the new value of the 'Not Unsettable VAT' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableVAT Not Unsettable VAT}' attribute. + * + * @param value the new value of the 'Not Unsettable VAT' attribute. * @see org.eclipse.emf.cdo.tests.model1.VAT * @see #getNotUnsettableVAT() * @generated diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/NotUnsettableWithDefault.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/NotUnsettableWithDefault.java index 2deca83678..c9d398106e 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/NotUnsettableWithDefault.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/NotUnsettableWithDefault.java @@ -21,344 +21,313 @@ import java.util.Date; /** * A representation of the model object 'Not Unsettable With Default'. + * *

    * The following features are supported: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#isNotUnsettableBoolean Not Unsettable - * Boolean}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableByte Not Unsettable Byte - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableChar Not Unsettable Char - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDate Not Unsettable Date - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDouble Not Unsettable Double - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableFloat Not Unsettable Float - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableInt Not Unsettable Int} - *
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableLong Not Unsettable Long - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableShort Not Unsettable Short - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableString Not Unsettable String - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableVAT Not Unsettable VAT} - *
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#isNotUnsettableBoolean Not Unsettable Boolean}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableByte Not Unsettable Byte}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableChar Not Unsettable Char}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDate Not Unsettable Date}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDouble Not Unsettable Double}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableFloat Not Unsettable Float}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableInt Not Unsettable Int}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableLong Not Unsettable Long}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableShort Not Unsettable Short}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableString Not Unsettable String}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableVAT Not Unsettable VAT}
    • *
    *

    - * - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettableWithDefault() + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettableWithDefault() * @model * @generated */ public interface NotUnsettableWithDefault extends EObject { /** - * Returns the value of the 'Not Unsettable Boolean' attribute. The default value is - * "true". + * Returns the value of the 'Not Unsettable Boolean' attribute. + * The default value is "true". + * *

    * If the meaning of the 'Not Unsettable Boolean' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Boolean' attribute. * @see #setNotUnsettableBoolean(boolean) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettableWithDefault_NotUnsettableBoolean() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettableWithDefault_NotUnsettableBoolean() * @model default="true" * @generated */ boolean isNotUnsettableBoolean(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#isNotUnsettableBoolean - * Not Unsettable Boolean}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Boolean' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#isNotUnsettableBoolean Not Unsettable Boolean}' attribute. + * + * @param value the new value of the 'Not Unsettable Boolean' attribute. * @see #isNotUnsettableBoolean() * @generated */ void setNotUnsettableBoolean(boolean value); /** - * Returns the value of the 'Not Unsettable Byte' attribute. The default value is "3". + * Returns the value of the 'Not Unsettable Byte' attribute. + * The default value is "3". * *

    * If the meaning of the 'Not Unsettable Byte' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Byte' attribute. * @see #setNotUnsettableByte(byte) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettableWithDefault_NotUnsettableByte() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettableWithDefault_NotUnsettableByte() * @model default="3" * @generated */ byte getNotUnsettableByte(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableByte - * Not Unsettable Byte}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Byte' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableByte Not Unsettable Byte}' attribute. + * + * @param value the new value of the 'Not Unsettable Byte' attribute. * @see #getNotUnsettableByte() * @generated */ void setNotUnsettableByte(byte value); /** - * Returns the value of the 'Not Unsettable Char' attribute. The default value is "\'x\'" - * . + * Returns the value of the 'Not Unsettable Char' attribute. + * The default value is "\'x\'". + * *

    * If the meaning of the 'Not Unsettable Char' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Char' attribute. * @see #setNotUnsettableChar(char) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettableWithDefault_NotUnsettableChar() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettableWithDefault_NotUnsettableChar() * @model default="\'x\'" * @generated */ char getNotUnsettableChar(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableChar - * Not Unsettable Char}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Char' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableChar Not Unsettable Char}' attribute. + * + * @param value the new value of the 'Not Unsettable Char' attribute. * @see #getNotUnsettableChar() * @generated */ void setNotUnsettableChar(char value); /** - * Returns the value of the 'Not Unsettable Date' attribute. The default value is - * "1979-03-15T07:12:59". + * Returns the value of the 'Not Unsettable Date' attribute. + * The default value is "1979-03-15T07:12:59". + * *

    * If the meaning of the 'Not Unsettable Date' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Date' attribute. * @see #setNotUnsettableDate(Date) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettableWithDefault_NotUnsettableDate() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettableWithDefault_NotUnsettableDate() * @model default="1979-03-15T07:12:59" * @generated */ Date getNotUnsettableDate(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDate - * Not Unsettable Date}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Date' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDate Not Unsettable Date}' attribute. + * + * @param value the new value of the 'Not Unsettable Date' attribute. * @see #getNotUnsettableDate() * @generated */ void setNotUnsettableDate(Date value); /** - * Returns the value of the 'Not Unsettable Double' attribute. The default value is "3.3" - * . + * Returns the value of the 'Not Unsettable Double' attribute. + * The default value is "3.3". + * *

    * If the meaning of the 'Not Unsettable Double' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Double' attribute. * @see #setNotUnsettableDouble(double) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettableWithDefault_NotUnsettableDouble() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettableWithDefault_NotUnsettableDouble() * @model default="3.3" * @generated */ double getNotUnsettableDouble(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDouble - * Not Unsettable Double}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Double' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDouble Not Unsettable Double}' attribute. + * + * @param value the new value of the 'Not Unsettable Double' attribute. * @see #getNotUnsettableDouble() * @generated */ void setNotUnsettableDouble(double value); /** - * Returns the value of the 'Not Unsettable Float' attribute. The default value is "4.4". + * Returns the value of the 'Not Unsettable Float' attribute. + * The default value is "4.4". * *

    * If the meaning of the 'Not Unsettable Float' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Float' attribute. * @see #setNotUnsettableFloat(float) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettableWithDefault_NotUnsettableFloat() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettableWithDefault_NotUnsettableFloat() * @model default="4.4" * @generated */ float getNotUnsettableFloat(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableFloat - * Not Unsettable Float}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Float' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableFloat Not Unsettable Float}' attribute. + * + * @param value the new value of the 'Not Unsettable Float' attribute. * @see #getNotUnsettableFloat() * @generated */ void setNotUnsettableFloat(float value); /** - * Returns the value of the 'Not Unsettable Int' attribute. The default value is "5". + * Returns the value of the 'Not Unsettable Int' attribute. + * The default value is "5". * *

    * If the meaning of the 'Not Unsettable Int' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Int' attribute. * @see #setNotUnsettableInt(int) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettableWithDefault_NotUnsettableInt() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettableWithDefault_NotUnsettableInt() * @model default="5" * @generated */ int getNotUnsettableInt(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableInt - * Not Unsettable Int}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Int' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableInt Not Unsettable Int}' attribute. + * + * @param value the new value of the 'Not Unsettable Int' attribute. * @see #getNotUnsettableInt() * @generated */ void setNotUnsettableInt(int value); /** - * Returns the value of the 'Not Unsettable Long' attribute. The default value is "6". + * Returns the value of the 'Not Unsettable Long' attribute. + * The default value is "6". * *

    * If the meaning of the 'Not Unsettable Long' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Long' attribute. * @see #setNotUnsettableLong(long) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettableWithDefault_NotUnsettableLong() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettableWithDefault_NotUnsettableLong() * @model default="6" * @generated */ long getNotUnsettableLong(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableLong - * Not Unsettable Long}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Long' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableLong Not Unsettable Long}' attribute. + * + * @param value the new value of the 'Not Unsettable Long' attribute. * @see #getNotUnsettableLong() * @generated */ void setNotUnsettableLong(long value); /** - * Returns the value of the 'Not Unsettable Short' attribute. The default value is "7". + * Returns the value of the 'Not Unsettable Short' attribute. + * The default value is "7". * *

    * If the meaning of the 'Not Unsettable Short' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable Short' attribute. * @see #setNotUnsettableShort(short) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettableWithDefault_NotUnsettableShort() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettableWithDefault_NotUnsettableShort() * @model default="7" * @generated */ short getNotUnsettableShort(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableShort - * Not Unsettable Short}' attribute. - * - * @param value - * the new value of the 'Not Unsettable Short' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableShort Not Unsettable Short}' attribute. + * + * @param value the new value of the 'Not Unsettable Short' attribute. * @see #getNotUnsettableShort() * @generated */ void setNotUnsettableShort(short value); /** - * Returns the value of the 'Not Unsettable String' attribute. The default value is - * "\"eike\"". + * Returns the value of the 'Not Unsettable String' attribute. + * The default value is "\"eike\"". + * *

    * If the meaning of the 'Not Unsettable String' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable String' attribute. * @see #setNotUnsettableString(String) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettableWithDefault_NotUnsettableString() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettableWithDefault_NotUnsettableString() * @model default="\"eike\"" * @generated */ String getNotUnsettableString(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableString - * Not Unsettable String}' attribute. - * - * @param value - * the new value of the 'Not Unsettable String' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableString Not Unsettable String}' attribute. + * + * @param value the new value of the 'Not Unsettable String' attribute. * @see #getNotUnsettableString() * @generated */ void setNotUnsettableString(String value); /** - * Returns the value of the 'Not Unsettable VAT' attribute. The default value is "vat15". - * The literals are from the enumeration {@link org.eclipse.emf.cdo.tests.model1.VAT}. + * Returns the value of the 'Not Unsettable VAT' attribute. + * The default value is "vat15". + * The literals are from the enumeration {@link org.eclipse.emf.cdo.tests.model1.VAT}. + * *

    * If the meaning of the 'Not Unsettable VAT' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Not Unsettable VAT' attribute. * @see org.eclipse.emf.cdo.tests.model1.VAT * @see #setNotUnsettableVAT(VAT) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getNotUnsettableWithDefault_NotUnsettableVAT() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getNotUnsettableWithDefault_NotUnsettableVAT() * @model default="vat15" * @generated */ VAT getNotUnsettableVAT(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableVAT - * Not Unsettable VAT}' attribute. - * - * @param value - * the new value of the 'Not Unsettable VAT' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableVAT Not Unsettable VAT}' attribute. + * + * @param value the new value of the 'Not Unsettable VAT' attribute. * @see org.eclipse.emf.cdo.tests.model1.VAT * @see #getNotUnsettableVAT() * @generated diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/PersistentContainment.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/PersistentContainment.java index 2869b8cfd8..3fc35ca570 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/PersistentContainment.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/PersistentContainment.java @@ -16,60 +16,59 @@ import org.eclipse.emf.ecore.EObject; /** * A representation of the model object 'Persistent Containment'. + * *

    * The following features are supported: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.PersistentContainment#getAttrBefore Attr Before}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.PersistentContainment#getChildren Children}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.PersistentContainment#getAttrAfter Attr After}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.PersistentContainment#getAttrBefore Attr Before}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.PersistentContainment#getChildren Children}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.PersistentContainment#getAttrAfter Attr After}
    • *
    *

    - * - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getPersistentContainment() + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getPersistentContainment() * @model * @generated */ public interface PersistentContainment extends EObject { /** - * Returns the value of the 'Attr Before' attribute. + * Returns the value of the 'Attr Before' attribute. + * *

    * If the meaning of the 'Attr Before' attribute isn't clear, there really should be more of a description * here... *

    * - * * @return the value of the 'Attr Before' attribute. * @see #setAttrBefore(String) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getPersistentContainment_AttrBefore() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getPersistentContainment_AttrBefore() * @model * @generated */ String getAttrBefore(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.PersistentContainment#getAttrBefore - * Attr Before}' attribute. - * - * @param value - * the new value of the 'Attr Before' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.PersistentContainment#getAttrBefore Attr Before}' attribute. + * + * @param value the new value of the 'Attr Before' attribute. * @see #getAttrBefore() * @generated */ void setAttrBefore(String value); /** - * Returns the value of the 'Children' containment reference list. The list contents are of type - * {@link org.eclipse.emf.cdo.tests.model2.TransientContainer}. It is bidirectional and its opposite is ' - * {@link org.eclipse.emf.cdo.tests.model2.TransientContainer#getParent Parent}'. + * Returns the value of the 'Children' containment reference list. + * The list contents are of type {@link org.eclipse.emf.cdo.tests.model2.TransientContainer}. + * It is bidirectional and its opposite is '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer#getParent Parent}'. + * *

    * If the meaning of the 'Children' containment reference list isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Children' containment reference list. - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getPersistentContainment_Children() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getPersistentContainment_Children() * @see org.eclipse.emf.cdo.tests.model2.TransientContainer#getParent * @model opposite="parent" containment="true" ordered="false" * @generated @@ -77,27 +76,25 @@ public interface PersistentContainment extends EObject EList getChildren(); /** - * Returns the value of the 'Attr After' attribute. + * Returns the value of the 'Attr After' attribute. + * *

    * If the meaning of the 'Attr After' attribute isn't clear, there really should be more of a description * here... *

    * - * * @return the value of the 'Attr After' attribute. * @see #setAttrAfter(String) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getPersistentContainment_AttrAfter() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getPersistentContainment_AttrAfter() * @model * @generated */ String getAttrAfter(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.PersistentContainment#getAttrAfter - * Attr After}' attribute. - * - * @param value - * the new value of the 'Attr After' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.PersistentContainment#getAttrAfter Attr After}' attribute. + * + * @param value the new value of the 'Attr After' attribute. * @see #getAttrAfter() * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/SpecialPurchaseOrder.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/SpecialPurchaseOrder.java index ffce273627..21d669c28d 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/SpecialPurchaseOrder.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/SpecialPurchaseOrder.java @@ -16,69 +16,66 @@ import org.eclipse.emf.cdo.tests.model1.PurchaseOrder; /** * A representation of the model object 'Special Purchase Order'. + * *

    * The following features are supported: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder#getDiscountCode Discount Code}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder#getShippingAddress Shipping Address}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder#getDiscountCode Discount Code}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder#getShippingAddress Shipping Address}
    • *
    *

    - * - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getSpecialPurchaseOrder() + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getSpecialPurchaseOrder() * @model * @generated */ public interface SpecialPurchaseOrder extends PurchaseOrder { /** - * Returns the value of the 'Discount Code' attribute. + * Returns the value of the 'Discount Code' attribute. + * *

    * If the meaning of the 'Discount Code' attribute isn't clear, there really should be more of a description * here... *

    * - * * @return the value of the 'Discount Code' attribute. * @see #setDiscountCode(String) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getSpecialPurchaseOrder_DiscountCode() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getSpecialPurchaseOrder_DiscountCode() * @model * @generated */ String getDiscountCode(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder#getDiscountCode - * Discount Code}' attribute. - * - * @param value - * the new value of the 'Discount Code' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder#getDiscountCode Discount Code}' attribute. + * + * @param value the new value of the 'Discount Code' attribute. * @see #getDiscountCode() * @generated */ void setDiscountCode(String value); /** - * Returns the value of the 'Shipping Address' containment reference. + * Returns the value of the 'Shipping Address' containment reference. + * *

    * If the meaning of the 'Shipping Address' containment reference isn't clear, there really should be more of * a description here... *

    * - * * @return the value of the 'Shipping Address' containment reference. * @see #setShippingAddress(Address) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getSpecialPurchaseOrder_ShippingAddress() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getSpecialPurchaseOrder_ShippingAddress() * @model containment="true" * @generated */ Address getShippingAddress(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder#getShippingAddress - * Shipping Address}' containment reference. - * - * @param value - * the new value of the 'Shipping Address' containment reference. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder#getShippingAddress Shipping Address}' containment reference. + * + * @param value the new value of the 'Shipping Address' containment reference. * @see #getShippingAddress() * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Task.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Task.java index 8d40e6d80e..35c72ced28 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Task.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Task.java @@ -14,33 +14,34 @@ import org.eclipse.emf.ecore.EObject; /** * A representation of the model object 'Task'. + * *

    * The following features are supported: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.Task#getTaskContainer Task Container}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Task#getDescription Description}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Task#isDone Done}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Task#getTaskContainer Task Container}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Task#getDescription Description}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Task#isDone Done}
    • *
    *

    - * - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getTask() + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getTask() * @model * @generated */ public interface Task extends EObject { /** - * Returns the value of the 'Task Container' container reference. It is bidirectional and its opposite - * is '{@link org.eclipse.emf.cdo.tests.model2.TaskContainer#getTasks Tasks}'. + * Returns the value of the 'Task Container' container reference. + * It is bidirectional and its opposite is '{@link org.eclipse.emf.cdo.tests.model2.TaskContainer#getTasks Tasks}'. + * *

    * If the meaning of the 'Task Container' container reference isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Task Container' container reference. * @see #setTaskContainer(TaskContainer) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getTask_TaskContainer() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getTask_TaskContainer() * @see org.eclipse.emf.cdo.tests.model2.TaskContainer#getTasks * @model opposite="tasks" transient="false" * @generated @@ -48,53 +49,49 @@ public interface Task extends EObject TaskContainer getTaskContainer(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Task#getTaskContainer Task Container}' - * container reference. - * - * @param value - * the new value of the 'Task Container' container reference. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Task#getTaskContainer Task Container}' container reference. + * + * @param value the new value of the 'Task Container' container reference. * @see #getTaskContainer() * @generated */ void setTaskContainer(TaskContainer value); /** - * Returns the value of the 'Description' attribute. + * Returns the value of the 'Description' attribute. + * *

    * If the meaning of the 'Description' attribute isn't clear, there really should be more of a description * here... *

    * - * * @return the value of the 'Description' attribute. * @see #setDescription(String) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getTask_Description() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getTask_Description() * @model * @generated */ String getDescription(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Task#getDescription Description}' - * attribute. - * - * @param value - * the new value of the 'Description' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Task#getDescription Description}' attribute. + * + * @param value the new value of the 'Description' attribute. * @see #getDescription() * @generated */ void setDescription(String value); /** - * Returns the value of the 'Done' attribute. + * Returns the value of the 'Done' attribute. + * *

    * If the meaning of the 'Done' attribute isn't clear, there really should be more of a description here... *

    * - * * @return the value of the 'Done' attribute. * @see #setDone(boolean) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getTask_Done() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getTask_Done() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/TaskContainer.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/TaskContainer.java index 249aae3427..415032d4da 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/TaskContainer.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/TaskContainer.java @@ -15,31 +15,32 @@ import org.eclipse.emf.ecore.EObject; /** * A representation of the model object 'Task Container'. + * *

    * The following features are supported: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.TaskContainer#getTasks Tasks}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.TaskContainer#getTasks Tasks}
    • *
    *

    - * - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getTaskContainer() + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getTaskContainer() * @model * @generated */ public interface TaskContainer extends EObject { /** - * Returns the value of the 'Tasks' containment reference list. The list contents are of type - * {@link org.eclipse.emf.cdo.tests.model2.Task}. It is bidirectional and its opposite is ' - * {@link org.eclipse.emf.cdo.tests.model2.Task#getTaskContainer Task Container}'. + * Returns the value of the 'Tasks' containment reference list. + * The list contents are of type {@link org.eclipse.emf.cdo.tests.model2.Task}. + * It is bidirectional and its opposite is '{@link org.eclipse.emf.cdo.tests.model2.Task#getTaskContainer Task Container}'. + * *

    * If the meaning of the 'Tasks' containment reference list isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Tasks' containment reference list. - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getTaskContainer_Tasks() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getTaskContainer_Tasks() * @see org.eclipse.emf.cdo.tests.model2.Task#getTaskContainer * @model opposite="taskContainer" containment="true" * @generated diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/TransientContainer.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/TransientContainer.java index 58abcec9c4..7042963094 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/TransientContainer.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/TransientContainer.java @@ -29,45 +29,43 @@ import org.eclipse.emf.ecore.EObject; public interface TransientContainer extends EObject { /** - * Returns the value of the 'Attr Before' attribute. + * Returns the value of the 'Attr Before' attribute. + * *

    * If the meaning of the 'Attr Before' attribute isn't clear, there really should be more of a description * here... *

    * - * * @return the value of the 'Attr Before' attribute. * @see #setAttrBefore(String) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getTransientContainer_AttrBefore() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getTransientContainer_AttrBefore() * @model * @generated */ String getAttrBefore(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer#getAttrBefore - * Attr Before}' attribute. - * - * @param value - * the new value of the 'Attr Before' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer#getAttrBefore Attr Before}' attribute. + * + * @param value the new value of the 'Attr Before' attribute. * @see #getAttrBefore() * @generated */ void setAttrBefore(String value); /** - * Returns the value of the 'Parent' container reference. It is bidirectional and its opposite is ' - * {@link org.eclipse.emf.cdo.tests.model2.PersistentContainment#getChildren Children}'. *

    * If the meaning of the 'Parent' container reference isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Parent' container reference. * @see #setParent(PersistentContainment) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getTransientContainer_Parent() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getTransientContainer_Parent() * @see org.eclipse.emf.cdo.tests.model2.PersistentContainment#getChildren * @model opposite="children" * @generated @@ -75,38 +73,34 @@ public interface TransientContainer extends EObject PersistentContainment getParent(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer#getParent Parent}' - * container reference. - * - * @param value - * the new value of the 'Parent' container reference. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer#getParent Parent}' container reference. + * + * @param value the new value of the 'Parent' container reference. * @see #getParent() * @generated */ void setParent(PersistentContainment value); /** - * Returns the value of the 'Attr After' attribute. + * Returns the value of the 'Attr After' attribute. + * *

    * If the meaning of the 'Attr After' attribute isn't clear, there really should be more of a description * here... *

    * - * * @return the value of the 'Attr After' attribute. * @see #setAttrAfter(String) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getTransientContainer_AttrAfter() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getTransientContainer_AttrAfter() * @model * @generated */ String getAttrAfter(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer#getAttrAfter Attr After} - * ' attribute. - * - * @param value - * the new value of the 'Attr After' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer#getAttrAfter Attr After}' attribute. + * + * @param value the new value of the 'Attr After' attribute. * @see #getAttrAfter() * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Unsettable1.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Unsettable1.java index b935f52774..995c6ede65 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Unsettable1.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Unsettable1.java @@ -18,53 +18,52 @@ import java.util.Date; /** * A representation of the model object 'Unsettable1'. + * *

    * The following features are supported: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#isUnsettableBoolean Unsettable Boolean}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableByte Unsettable Byte}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableChar Unsettable Char}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDate Unsettable Date}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDouble Unsettable Double}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableFloat Unsettable Float}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableInt Unsettable Int}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableLong Unsettable Long}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableShort Unsettable Short}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableString Unsettable String}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableVAT Unsettable VAT}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#isUnsettableBoolean Unsettable Boolean}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableByte Unsettable Byte}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableChar Unsettable Char}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDate Unsettable Date}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDouble Unsettable Double}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableFloat Unsettable Float}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableInt Unsettable Int}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableLong Unsettable Long}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableShort Unsettable Short}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableString Unsettable String}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableVAT Unsettable VAT}
    • *
    *

    - * - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable1() + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable1() * @model * @generated */ public interface Unsettable1 extends EObject { /** - * Returns the value of the 'Unsettable Boolean' attribute. + * Returns the value of the 'Unsettable Boolean' attribute. + * *

    * If the meaning of the 'Unsettable Boolean' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Unsettable Boolean' attribute. * @see #isSetUnsettableBoolean() * @see #unsetUnsettableBoolean() * @see #setUnsettableBoolean(boolean) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable1_UnsettableBoolean() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable1_UnsettableBoolean() * @model unsettable="true" * @generated */ boolean isUnsettableBoolean(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#isUnsettableBoolean - * Unsettable Boolean}' attribute. - * - * @param value - * the new value of the 'Unsettable Boolean' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#isUnsettableBoolean Unsettable Boolean}' attribute. + * + * @param value the new value of the 'Unsettable Boolean' attribute. * @see #isSetUnsettableBoolean() * @see #unsetUnsettableBoolean() * @see #isUnsettableBoolean() @@ -73,9 +72,8 @@ public interface Unsettable1 extends EObject void setUnsettableBoolean(boolean value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#isUnsettableBoolean - * Unsettable Boolean}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#isUnsettableBoolean Unsettable Boolean}' attribute. + * * @see #isSetUnsettableBoolean() * @see #isUnsettableBoolean() * @see #setUnsettableBoolean(boolean) @@ -84,9 +82,8 @@ public interface Unsettable1 extends EObject void unsetUnsettableBoolean(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#isUnsettableBoolean - * Unsettable Boolean}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#isUnsettableBoolean Unsettable Boolean}' attribute is set. + * * @return whether the value of the 'Unsettable Boolean' attribute is set. * @see #unsetUnsettableBoolean() * @see #isUnsettableBoolean() @@ -96,29 +93,27 @@ public interface Unsettable1 extends EObject boolean isSetUnsettableBoolean(); /** - * Returns the value of the 'Unsettable Byte' attribute. + * Returns the value of the 'Unsettable Byte' attribute. + * *

    * If the meaning of the 'Unsettable Byte' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Unsettable Byte' attribute. * @see #isSetUnsettableByte() * @see #unsetUnsettableByte() * @see #setUnsettableByte(byte) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable1_UnsettableByte() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable1_UnsettableByte() * @model unsettable="true" * @generated */ byte getUnsettableByte(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableByte - * Unsettable Byte}' attribute. - * - * @param value - * the new value of the 'Unsettable Byte' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableByte Unsettable Byte}' attribute. + * + * @param value the new value of the 'Unsettable Byte' attribute. * @see #isSetUnsettableByte() * @see #unsetUnsettableByte() * @see #getUnsettableByte() @@ -127,9 +122,8 @@ public interface Unsettable1 extends EObject void setUnsettableByte(byte value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableByte - * Unsettable Byte}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableByte Unsettable Byte}' attribute. + * * @see #isSetUnsettableByte() * @see #getUnsettableByte() * @see #setUnsettableByte(byte) @@ -138,9 +132,8 @@ public interface Unsettable1 extends EObject void unsetUnsettableByte(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableByte - * Unsettable Byte}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableByte Unsettable Byte}' attribute is set. + * * @return whether the value of the 'Unsettable Byte' attribute is set. * @see #unsetUnsettableByte() * @see #getUnsettableByte() @@ -150,29 +143,27 @@ public interface Unsettable1 extends EObject boolean isSetUnsettableByte(); /** - * Returns the value of the 'Unsettable Char' attribute. + * Returns the value of the 'Unsettable Char' attribute. + * *

    * If the meaning of the 'Unsettable Char' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Unsettable Char' attribute. * @see #isSetUnsettableChar() * @see #unsetUnsettableChar() * @see #setUnsettableChar(char) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable1_UnsettableChar() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable1_UnsettableChar() * @model unsettable="true" * @generated */ char getUnsettableChar(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableChar - * Unsettable Char}' attribute. - * - * @param value - * the new value of the 'Unsettable Char' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableChar Unsettable Char}' attribute. + * + * @param value the new value of the 'Unsettable Char' attribute. * @see #isSetUnsettableChar() * @see #unsetUnsettableChar() * @see #getUnsettableChar() @@ -181,9 +172,8 @@ public interface Unsettable1 extends EObject void setUnsettableChar(char value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableChar - * Unsettable Char}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableChar Unsettable Char}' attribute. + * * @see #isSetUnsettableChar() * @see #getUnsettableChar() * @see #setUnsettableChar(char) @@ -192,9 +182,8 @@ public interface Unsettable1 extends EObject void unsetUnsettableChar(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableChar - * Unsettable Char}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableChar Unsettable Char}' attribute is set. + * * @return whether the value of the 'Unsettable Char' attribute is set. * @see #unsetUnsettableChar() * @see #getUnsettableChar() @@ -204,29 +193,27 @@ public interface Unsettable1 extends EObject boolean isSetUnsettableChar(); /** - * Returns the value of the 'Unsettable Date' attribute. + * Returns the value of the 'Unsettable Date' attribute. + * *

    * If the meaning of the 'Unsettable Date' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Unsettable Date' attribute. * @see #isSetUnsettableDate() * @see #unsetUnsettableDate() * @see #setUnsettableDate(Date) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable1_UnsettableDate() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable1_UnsettableDate() * @model unsettable="true" * @generated */ Date getUnsettableDate(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDate - * Unsettable Date}' attribute. - * - * @param value - * the new value of the 'Unsettable Date' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDate Unsettable Date}' attribute. + * + * @param value the new value of the 'Unsettable Date' attribute. * @see #isSetUnsettableDate() * @see #unsetUnsettableDate() * @see #getUnsettableDate() @@ -235,9 +222,8 @@ public interface Unsettable1 extends EObject void setUnsettableDate(Date value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDate - * Unsettable Date}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDate Unsettable Date}' attribute. + * * @see #isSetUnsettableDate() * @see #getUnsettableDate() * @see #setUnsettableDate(Date) @@ -246,9 +232,8 @@ public interface Unsettable1 extends EObject void unsetUnsettableDate(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDate - * Unsettable Date}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDate Unsettable Date}' attribute is set. + * * @return whether the value of the 'Unsettable Date' attribute is set. * @see #unsetUnsettableDate() * @see #getUnsettableDate() @@ -258,29 +243,27 @@ public interface Unsettable1 extends EObject boolean isSetUnsettableDate(); /** - * Returns the value of the 'Unsettable Double' attribute. + * Returns the value of the 'Unsettable Double' attribute. + * *

    * If the meaning of the 'Unsettable Double' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Unsettable Double' attribute. * @see #isSetUnsettableDouble() * @see #unsetUnsettableDouble() * @see #setUnsettableDouble(double) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable1_UnsettableDouble() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable1_UnsettableDouble() * @model unsettable="true" * @generated */ double getUnsettableDouble(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDouble - * Unsettable Double}' attribute. - * - * @param value - * the new value of the 'Unsettable Double' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDouble Unsettable Double}' attribute. + * + * @param value the new value of the 'Unsettable Double' attribute. * @see #isSetUnsettableDouble() * @see #unsetUnsettableDouble() * @see #getUnsettableDouble() @@ -289,9 +272,8 @@ public interface Unsettable1 extends EObject void setUnsettableDouble(double value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDouble - * Unsettable Double}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDouble Unsettable Double}' attribute. + * * @see #isSetUnsettableDouble() * @see #getUnsettableDouble() * @see #setUnsettableDouble(double) @@ -300,9 +282,8 @@ public interface Unsettable1 extends EObject void unsetUnsettableDouble(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDouble - * Unsettable Double}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableDouble Unsettable Double}' attribute is set. + * * @return whether the value of the 'Unsettable Double' attribute is set. * @see #unsetUnsettableDouble() * @see #getUnsettableDouble() @@ -312,29 +293,27 @@ public interface Unsettable1 extends EObject boolean isSetUnsettableDouble(); /** - * Returns the value of the 'Unsettable Float' attribute. + * Returns the value of the 'Unsettable Float' attribute. + * *

    * If the meaning of the 'Unsettable Float' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Unsettable Float' attribute. * @see #isSetUnsettableFloat() * @see #unsetUnsettableFloat() * @see #setUnsettableFloat(float) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable1_UnsettableFloat() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable1_UnsettableFloat() * @model unsettable="true" * @generated */ float getUnsettableFloat(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableFloat - * Unsettable Float}' attribute. - * - * @param value - * the new value of the 'Unsettable Float' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableFloat Unsettable Float}' attribute. + * + * @param value the new value of the 'Unsettable Float' attribute. * @see #isSetUnsettableFloat() * @see #unsetUnsettableFloat() * @see #getUnsettableFloat() @@ -343,9 +322,8 @@ public interface Unsettable1 extends EObject void setUnsettableFloat(float value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableFloat - * Unsettable Float}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableFloat Unsettable Float}' attribute. + * * @see #isSetUnsettableFloat() * @see #getUnsettableFloat() * @see #setUnsettableFloat(float) @@ -354,9 +332,8 @@ public interface Unsettable1 extends EObject void unsetUnsettableFloat(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableFloat - * Unsettable Float}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableFloat Unsettable Float}' attribute is set. + * * @return whether the value of the 'Unsettable Float' attribute is set. * @see #unsetUnsettableFloat() * @see #getUnsettableFloat() @@ -366,29 +343,27 @@ public interface Unsettable1 extends EObject boolean isSetUnsettableFloat(); /** - * Returns the value of the 'Unsettable Int' attribute. + * Returns the value of the 'Unsettable Int' attribute. + * *

    * If the meaning of the 'Unsettable Int' attribute isn't clear, there really should be more of a description * here... *

    * - * * @return the value of the 'Unsettable Int' attribute. * @see #isSetUnsettableInt() * @see #unsetUnsettableInt() * @see #setUnsettableInt(int) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable1_UnsettableInt() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable1_UnsettableInt() * @model unsettable="true" * @generated */ int getUnsettableInt(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableInt - * Unsettable Int}' attribute. - * - * @param value - * the new value of the 'Unsettable Int' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableInt Unsettable Int}' attribute. + * + * @param value the new value of the 'Unsettable Int' attribute. * @see #isSetUnsettableInt() * @see #unsetUnsettableInt() * @see #getUnsettableInt() @@ -397,9 +372,8 @@ public interface Unsettable1 extends EObject void setUnsettableInt(int value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableInt - * Unsettable Int}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableInt Unsettable Int}' attribute. + * * @see #isSetUnsettableInt() * @see #getUnsettableInt() * @see #setUnsettableInt(int) @@ -408,9 +382,8 @@ public interface Unsettable1 extends EObject void unsetUnsettableInt(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableInt - * Unsettable Int}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableInt Unsettable Int}' attribute is set. + * * @return whether the value of the 'Unsettable Int' attribute is set. * @see #unsetUnsettableInt() * @see #getUnsettableInt() @@ -420,29 +393,27 @@ public interface Unsettable1 extends EObject boolean isSetUnsettableInt(); /** - * Returns the value of the 'Unsettable Long' attribute. + * Returns the value of the 'Unsettable Long' attribute. + * *

    * If the meaning of the 'Unsettable Long' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Unsettable Long' attribute. * @see #isSetUnsettableLong() * @see #unsetUnsettableLong() * @see #setUnsettableLong(long) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable1_UnsettableLong() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable1_UnsettableLong() * @model unsettable="true" * @generated */ long getUnsettableLong(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableLong - * Unsettable Long}' attribute. - * - * @param value - * the new value of the 'Unsettable Long' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableLong Unsettable Long}' attribute. + * + * @param value the new value of the 'Unsettable Long' attribute. * @see #isSetUnsettableLong() * @see #unsetUnsettableLong() * @see #getUnsettableLong() @@ -451,9 +422,8 @@ public interface Unsettable1 extends EObject void setUnsettableLong(long value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableLong - * Unsettable Long}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableLong Unsettable Long}' attribute. + * * @see #isSetUnsettableLong() * @see #getUnsettableLong() * @see #setUnsettableLong(long) @@ -462,9 +432,8 @@ public interface Unsettable1 extends EObject void unsetUnsettableLong(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableLong - * Unsettable Long}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableLong Unsettable Long}' attribute is set. + * * @return whether the value of the 'Unsettable Long' attribute is set. * @see #unsetUnsettableLong() * @see #getUnsettableLong() @@ -474,29 +443,27 @@ public interface Unsettable1 extends EObject boolean isSetUnsettableLong(); /** - * Returns the value of the 'Unsettable Short' attribute. + * Returns the value of the 'Unsettable Short' attribute. + * *

    * If the meaning of the 'Unsettable Short' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Unsettable Short' attribute. * @see #isSetUnsettableShort() * @see #unsetUnsettableShort() * @see #setUnsettableShort(short) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable1_UnsettableShort() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable1_UnsettableShort() * @model unsettable="true" * @generated */ short getUnsettableShort(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableShort - * Unsettable Short}' attribute. - * - * @param value - * the new value of the 'Unsettable Short' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableShort Unsettable Short}' attribute. + * + * @param value the new value of the 'Unsettable Short' attribute. * @see #isSetUnsettableShort() * @see #unsetUnsettableShort() * @see #getUnsettableShort() @@ -505,9 +472,8 @@ public interface Unsettable1 extends EObject void setUnsettableShort(short value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableShort - * Unsettable Short}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableShort Unsettable Short}' attribute. + * * @see #isSetUnsettableShort() * @see #getUnsettableShort() * @see #setUnsettableShort(short) @@ -516,9 +482,8 @@ public interface Unsettable1 extends EObject void unsetUnsettableShort(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableShort - * Unsettable Short}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableShort Unsettable Short}' attribute is set. + * * @return whether the value of the 'Unsettable Short' attribute is set. * @see #unsetUnsettableShort() * @see #getUnsettableShort() @@ -528,29 +493,27 @@ public interface Unsettable1 extends EObject boolean isSetUnsettableShort(); /** - * Returns the value of the 'Unsettable String' attribute. + * Returns the value of the 'Unsettable String' attribute. + * *

    * If the meaning of the 'Unsettable String' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Unsettable String' attribute. * @see #isSetUnsettableString() * @see #unsetUnsettableString() * @see #setUnsettableString(String) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable1_UnsettableString() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable1_UnsettableString() * @model unsettable="true" * @generated */ String getUnsettableString(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableString - * Unsettable String}' attribute. - * - * @param value - * the new value of the 'Unsettable String' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableString Unsettable String}' attribute. + * + * @param value the new value of the 'Unsettable String' attribute. * @see #isSetUnsettableString() * @see #unsetUnsettableString() * @see #getUnsettableString() @@ -559,9 +522,8 @@ public interface Unsettable1 extends EObject void setUnsettableString(String value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableString - * Unsettable String}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableString Unsettable String}' attribute. + * * @see #isSetUnsettableString() * @see #getUnsettableString() * @see #setUnsettableString(String) @@ -570,9 +532,8 @@ public interface Unsettable1 extends EObject void unsetUnsettableString(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableString - * Unsettable String}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableString Unsettable String}' attribute is set. + * * @return whether the value of the 'Unsettable String' attribute is set. * @see #unsetUnsettableString() * @see #getUnsettableString() @@ -582,31 +543,29 @@ public interface Unsettable1 extends EObject boolean isSetUnsettableString(); /** - * Returns the value of the 'Unsettable VAT' attribute. The literals are from the enumeration - * {@link org.eclipse.emf.cdo.tests.model1.VAT}. + * Returns the value of the 'Unsettable VAT' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.cdo.tests.model1.VAT}. + * *

    * If the meaning of the 'Unsettable VAT' attribute isn't clear, there really should be more of a description * here... *

    * - * * @return the value of the 'Unsettable VAT' attribute. * @see org.eclipse.emf.cdo.tests.model1.VAT * @see #isSetUnsettableVAT() * @see #unsetUnsettableVAT() * @see #setUnsettableVAT(VAT) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable1_UnsettableVAT() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable1_UnsettableVAT() * @model unsettable="true" * @generated */ VAT getUnsettableVAT(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableVAT - * Unsettable VAT}' attribute. - * - * @param value - * the new value of the 'Unsettable VAT' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableVAT Unsettable VAT}' attribute. + * + * @param value the new value of the 'Unsettable VAT' attribute. * @see org.eclipse.emf.cdo.tests.model1.VAT * @see #isSetUnsettableVAT() * @see #unsetUnsettableVAT() @@ -616,9 +575,8 @@ public interface Unsettable1 extends EObject void setUnsettableVAT(VAT value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableVAT - * Unsettable VAT}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableVAT Unsettable VAT}' attribute. + * * @see #isSetUnsettableVAT() * @see #getUnsettableVAT() * @see #setUnsettableVAT(VAT) @@ -627,9 +585,8 @@ public interface Unsettable1 extends EObject void unsetUnsettableVAT(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableVAT - * Unsettable VAT}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableVAT Unsettable VAT}' attribute is set. + * * @return whether the value of the 'Unsettable VAT' attribute is set. * @see #unsetUnsettableVAT() * @see #getUnsettableVAT() diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Unsettable2WithDefault.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Unsettable2WithDefault.java index 2d9a2686b4..de08c6f613 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Unsettable2WithDefault.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Unsettable2WithDefault.java @@ -19,54 +19,53 @@ import java.util.Date; /** * A representation of the model object 'Unsettable2 With Default'. + * *

    * The following features are supported: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#isUnsettableBoolean Unsettable Boolean}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableByte Unsettable Byte}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableChar Unsettable Char}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDate Unsettable Date}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDouble Unsettable Double}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableFloat Unsettable Float}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableInt Unsettable Int}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableLong Unsettable Long}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableShort Unsettable Short}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableString Unsettable String}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableVAT Unsettable VAT}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#isUnsettableBoolean Unsettable Boolean}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableByte Unsettable Byte}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableChar Unsettable Char}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDate Unsettable Date}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDouble Unsettable Double}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableFloat Unsettable Float}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableInt Unsettable Int}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableLong Unsettable Long}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableShort Unsettable Short}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableString Unsettable String}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableVAT Unsettable VAT}
    • *
    *

    - * - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable2WithDefault() + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable2WithDefault() * @model * @generated */ public interface Unsettable2WithDefault extends EObject { /** - * Returns the value of the 'Unsettable Boolean' attribute. The default value is "true". + * Returns the value of the 'Unsettable Boolean' attribute. + * The default value is "true". * *

    * If the meaning of the 'Unsettable Boolean' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Unsettable Boolean' attribute. * @see #isSetUnsettableBoolean() * @see #unsetUnsettableBoolean() * @see #setUnsettableBoolean(boolean) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable2WithDefault_UnsettableBoolean() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable2WithDefault_UnsettableBoolean() * @model default="true" unsettable="true" * @generated */ boolean isUnsettableBoolean(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#isUnsettableBoolean - * Unsettable Boolean}' attribute. - * - * @param value - * the new value of the 'Unsettable Boolean' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#isUnsettableBoolean Unsettable Boolean}' attribute. + * + * @param value the new value of the 'Unsettable Boolean' attribute. * @see #isSetUnsettableBoolean() * @see #unsetUnsettableBoolean() * @see #isUnsettableBoolean() @@ -75,9 +74,8 @@ public interface Unsettable2WithDefault extends EObject void setUnsettableBoolean(boolean value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#isUnsettableBoolean - * Unsettable Boolean}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#isUnsettableBoolean Unsettable Boolean}' attribute. + * * @see #isSetUnsettableBoolean() * @see #isUnsettableBoolean() * @see #setUnsettableBoolean(boolean) @@ -86,10 +84,8 @@ public interface Unsettable2WithDefault extends EObject void unsetUnsettableBoolean(); /** - * Returns whether the value of the ' - * {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#isUnsettableBoolean Unsettable Boolean}' - * attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#isUnsettableBoolean Unsettable Boolean}' attribute is set. + * * @return whether the value of the 'Unsettable Boolean' attribute is set. * @see #unsetUnsettableBoolean() * @see #isUnsettableBoolean() @@ -118,11 +114,9 @@ public interface Unsettable2WithDefault extends EObject byte getUnsettableByte(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableByte - * Unsettable Byte}' attribute. - * - * @param value - * the new value of the 'Unsettable Byte' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableByte Unsettable Byte}' attribute. + * + * @param value the new value of the 'Unsettable Byte' attribute. * @see #isSetUnsettableByte() * @see #unsetUnsettableByte() * @see #getUnsettableByte() @@ -131,9 +125,8 @@ public interface Unsettable2WithDefault extends EObject void setUnsettableByte(byte value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableByte - * Unsettable Byte}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableByte Unsettable Byte}' attribute. + * * @see #isSetUnsettableByte() * @see #getUnsettableByte() * @see #setUnsettableByte(byte) @@ -142,9 +135,8 @@ public interface Unsettable2WithDefault extends EObject void unsetUnsettableByte(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableByte - * Unsettable Byte}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableByte Unsettable Byte}' attribute is set. + * * @return whether the value of the 'Unsettable Byte' attribute is set. * @see #unsetUnsettableByte() * @see #getUnsettableByte() @@ -154,30 +146,28 @@ public interface Unsettable2WithDefault extends EObject boolean isSetUnsettableByte(); /** - * Returns the value of the 'Unsettable Char' attribute. The default value is "\'x\'". + * Returns the value of the 'Unsettable Char' attribute. + * The default value is "\'x\'". * *

    * If the meaning of the 'Unsettable Char' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Unsettable Char' attribute. * @see #isSetUnsettableChar() * @see #unsetUnsettableChar() * @see #setUnsettableChar(char) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable2WithDefault_UnsettableChar() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable2WithDefault_UnsettableChar() * @model default="\'x\'" unsettable="true" * @generated */ char getUnsettableChar(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableChar - * Unsettable Char}' attribute. - * - * @param value - * the new value of the 'Unsettable Char' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableChar Unsettable Char}' attribute. + * + * @param value the new value of the 'Unsettable Char' attribute. * @see #isSetUnsettableChar() * @see #unsetUnsettableChar() * @see #getUnsettableChar() @@ -186,9 +176,8 @@ public interface Unsettable2WithDefault extends EObject void setUnsettableChar(char value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableChar - * Unsettable Char}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableChar Unsettable Char}' attribute. + * * @see #isSetUnsettableChar() * @see #getUnsettableChar() * @see #setUnsettableChar(char) @@ -197,9 +186,8 @@ public interface Unsettable2WithDefault extends EObject void unsetUnsettableChar(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableChar - * Unsettable Char}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableChar Unsettable Char}' attribute is set. + * * @return whether the value of the 'Unsettable Char' attribute is set. * @see #unsetUnsettableChar() * @see #getUnsettableChar() @@ -209,30 +197,28 @@ public interface Unsettable2WithDefault extends EObject boolean isSetUnsettableChar(); /** - * Returns the value of the 'Unsettable Date' attribute. The default value is - * "2009-12-21T15:12:59". + * Returns the value of the 'Unsettable Date' attribute. + * The default value is "2009-12-21T15:12:59". + * *

    * If the meaning of the 'Unsettable Date' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Unsettable Date' attribute. * @see #isSetUnsettableDate() * @see #unsetUnsettableDate() * @see #setUnsettableDate(Date) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable2WithDefault_UnsettableDate() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable2WithDefault_UnsettableDate() * @model default="2009-12-21T15:12:59" unsettable="true" * @generated */ Date getUnsettableDate(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDate - * Unsettable Date}' attribute. - * - * @param value - * the new value of the 'Unsettable Date' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDate Unsettable Date}' attribute. + * + * @param value the new value of the 'Unsettable Date' attribute. * @see #isSetUnsettableDate() * @see #unsetUnsettableDate() * @see #getUnsettableDate() @@ -241,9 +227,8 @@ public interface Unsettable2WithDefault extends EObject void setUnsettableDate(Date value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDate - * Unsettable Date}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDate Unsettable Date}' attribute. + * * @see #isSetUnsettableDate() * @see #getUnsettableDate() * @see #setUnsettableDate(Date) @@ -252,9 +237,8 @@ public interface Unsettable2WithDefault extends EObject void unsetUnsettableDate(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDate - * Unsettable Date}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDate Unsettable Date}' attribute is set. + * * @return whether the value of the 'Unsettable Date' attribute is set. * @see #unsetUnsettableDate() * @see #getUnsettableDate() @@ -264,30 +248,28 @@ public interface Unsettable2WithDefault extends EObject boolean isSetUnsettableDate(); /** - * Returns the value of the 'Unsettable Double' attribute. The default value is "3.3". + * Returns the value of the 'Unsettable Double' attribute. + * The default value is "3.3". * *

    * If the meaning of the 'Unsettable Double' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Unsettable Double' attribute. * @see #isSetUnsettableDouble() * @see #unsetUnsettableDouble() * @see #setUnsettableDouble(double) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable2WithDefault_UnsettableDouble() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable2WithDefault_UnsettableDouble() * @model default="3.3" unsettable="true" * @generated */ double getUnsettableDouble(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDouble - * Unsettable Double}' attribute. - * - * @param value - * the new value of the 'Unsettable Double' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDouble Unsettable Double}' attribute. + * + * @param value the new value of the 'Unsettable Double' attribute. * @see #isSetUnsettableDouble() * @see #unsetUnsettableDouble() * @see #getUnsettableDouble() @@ -296,9 +278,8 @@ public interface Unsettable2WithDefault extends EObject void setUnsettableDouble(double value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDouble - * Unsettable Double}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDouble Unsettable Double}' attribute. + * * @see #isSetUnsettableDouble() * @see #getUnsettableDouble() * @see #setUnsettableDouble(double) @@ -307,10 +288,8 @@ public interface Unsettable2WithDefault extends EObject void unsetUnsettableDouble(); /** - * Returns whether the value of the ' - * {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDouble Unsettable Double}' - * attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDouble Unsettable Double}' attribute is set. + * * @return whether the value of the 'Unsettable Double' attribute is set. * @see #unsetUnsettableDouble() * @see #getUnsettableDouble() @@ -320,30 +299,28 @@ public interface Unsettable2WithDefault extends EObject boolean isSetUnsettableDouble(); /** - * Returns the value of the 'Unsettable Float' attribute. The default value is "4.4". + * Returns the value of the 'Unsettable Float' attribute. + * The default value is "4.4". * *

    * If the meaning of the 'Unsettable Float' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Unsettable Float' attribute. * @see #isSetUnsettableFloat() * @see #unsetUnsettableFloat() * @see #setUnsettableFloat(float) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable2WithDefault_UnsettableFloat() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable2WithDefault_UnsettableFloat() * @model default="4.4" unsettable="true" * @generated */ float getUnsettableFloat(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableFloat - * Unsettable Float}' attribute. - * - * @param value - * the new value of the 'Unsettable Float' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableFloat Unsettable Float}' attribute. + * + * @param value the new value of the 'Unsettable Float' attribute. * @see #isSetUnsettableFloat() * @see #unsetUnsettableFloat() * @see #getUnsettableFloat() @@ -352,9 +329,8 @@ public interface Unsettable2WithDefault extends EObject void setUnsettableFloat(float value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableFloat - * Unsettable Float}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableFloat Unsettable Float}' attribute. + * * @see #isSetUnsettableFloat() * @see #getUnsettableFloat() * @see #setUnsettableFloat(float) @@ -363,10 +339,8 @@ public interface Unsettable2WithDefault extends EObject void unsetUnsettableFloat(); /** - * Returns whether the value of the ' - * {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableFloat Unsettable Float}' - * attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableFloat Unsettable Float}' attribute is set. + * * @return whether the value of the 'Unsettable Float' attribute is set. * @see #unsetUnsettableFloat() * @see #getUnsettableFloat() @@ -395,11 +369,9 @@ public interface Unsettable2WithDefault extends EObject int getUnsettableInt(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableInt - * Unsettable Int}' attribute. - * - * @param value - * the new value of the 'Unsettable Int' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableInt Unsettable Int}' attribute. + * + * @param value the new value of the 'Unsettable Int' attribute. * @see #isSetUnsettableInt() * @see #unsetUnsettableInt() * @see #getUnsettableInt() @@ -408,9 +380,8 @@ public interface Unsettable2WithDefault extends EObject void setUnsettableInt(int value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableInt - * Unsettable Int}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableInt Unsettable Int}' attribute. + * * @see #isSetUnsettableInt() * @see #getUnsettableInt() * @see #setUnsettableInt(int) @@ -419,9 +390,8 @@ public interface Unsettable2WithDefault extends EObject void unsetUnsettableInt(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableInt - * Unsettable Int}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableInt Unsettable Int}' attribute is set. + * * @return whether the value of the 'Unsettable Int' attribute is set. * @see #unsetUnsettableInt() * @see #getUnsettableInt() @@ -450,11 +420,9 @@ public interface Unsettable2WithDefault extends EObject long getUnsettableLong(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableLong - * Unsettable Long}' attribute. - * - * @param value - * the new value of the 'Unsettable Long' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableLong Unsettable Long}' attribute. + * + * @param value the new value of the 'Unsettable Long' attribute. * @see #isSetUnsettableLong() * @see #unsetUnsettableLong() * @see #getUnsettableLong() @@ -463,9 +431,8 @@ public interface Unsettable2WithDefault extends EObject void setUnsettableLong(long value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableLong - * Unsettable Long}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableLong Unsettable Long}' attribute. + * * @see #isSetUnsettableLong() * @see #getUnsettableLong() * @see #setUnsettableLong(long) @@ -474,9 +441,8 @@ public interface Unsettable2WithDefault extends EObject void unsetUnsettableLong(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableLong - * Unsettable Long}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableLong Unsettable Long}' attribute is set. + * * @return whether the value of the 'Unsettable Long' attribute is set. * @see #unsetUnsettableLong() * @see #getUnsettableLong() @@ -505,11 +471,9 @@ public interface Unsettable2WithDefault extends EObject short getUnsettableShort(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableShort - * Unsettable Short}' attribute. - * - * @param value - * the new value of the 'Unsettable Short' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableShort Unsettable Short}' attribute. + * + * @param value the new value of the 'Unsettable Short' attribute. * @see #isSetUnsettableShort() * @see #unsetUnsettableShort() * @see #getUnsettableShort() @@ -518,9 +482,8 @@ public interface Unsettable2WithDefault extends EObject void setUnsettableShort(short value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableShort - * Unsettable Short}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableShort Unsettable Short}' attribute. + * * @see #isSetUnsettableShort() * @see #getUnsettableShort() * @see #setUnsettableShort(short) @@ -529,10 +492,8 @@ public interface Unsettable2WithDefault extends EObject void unsetUnsettableShort(); /** - * Returns whether the value of the ' - * {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableShort Unsettable Short}' - * attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableShort Unsettable Short}' attribute is set. + * * @return whether the value of the 'Unsettable Short' attribute is set. * @see #unsetUnsettableShort() * @see #getUnsettableShort() @@ -542,30 +503,28 @@ public interface Unsettable2WithDefault extends EObject boolean isSetUnsettableShort(); /** - * Returns the value of the 'Unsettable String' attribute. The default value is - * "\"eike\"". + * Returns the value of the 'Unsettable String' attribute. + * The default value is "\"eike\"". + * *

    * If the meaning of the 'Unsettable String' attribute isn't clear, there really should be more of a * description here... *

    * - * * @return the value of the 'Unsettable String' attribute. * @see #isSetUnsettableString() * @see #unsetUnsettableString() * @see #setUnsettableString(String) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable2WithDefault_UnsettableString() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable2WithDefault_UnsettableString() * @model default="\"eike\"" unsettable="true" * @generated */ String getUnsettableString(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableString - * Unsettable String}' attribute. - * - * @param value - * the new value of the 'Unsettable String' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableString Unsettable String}' attribute. + * + * @param value the new value of the 'Unsettable String' attribute. * @see #isSetUnsettableString() * @see #unsetUnsettableString() * @see #getUnsettableString() @@ -574,9 +533,8 @@ public interface Unsettable2WithDefault extends EObject void setUnsettableString(String value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableString - * Unsettable String}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableString Unsettable String}' attribute. + * * @see #isSetUnsettableString() * @see #getUnsettableString() * @see #setUnsettableString(String) @@ -585,10 +543,8 @@ public interface Unsettable2WithDefault extends EObject void unsetUnsettableString(); /** - * Returns whether the value of the ' - * {@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableString Unsettable String}' - * attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableString Unsettable String}' attribute is set. + * * @return whether the value of the 'Unsettable String' attribute is set. * @see #unsetUnsettableString() * @see #getUnsettableString() @@ -598,31 +554,30 @@ public interface Unsettable2WithDefault extends EObject boolean isSetUnsettableString(); /** - * Returns the value of the 'Unsettable VAT' attribute. The default value is "vat15". The - * literals are from the enumeration {@link org.eclipse.emf.cdo.tests.model1.VAT}. + * Returns the value of the 'Unsettable VAT' attribute. + * The default value is "vat15". + * The literals are from the enumeration {@link org.eclipse.emf.cdo.tests.model1.VAT}. + * *

    * If the meaning of the 'Unsettable VAT' attribute isn't clear, there really should be more of a description * here... *

    * - * * @return the value of the 'Unsettable VAT' attribute. * @see org.eclipse.emf.cdo.tests.model1.VAT * @see #isSetUnsettableVAT() * @see #unsetUnsettableVAT() * @see #setUnsettableVAT(VAT) - * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable2WithDefault_UnsettableVAT() + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package#getUnsettable2WithDefault_UnsettableVAT() * @model default="vat15" unsettable="true" * @generated */ VAT getUnsettableVAT(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableVAT - * Unsettable VAT}' attribute. - * - * @param value - * the new value of the 'Unsettable VAT' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableVAT Unsettable VAT}' attribute. + * + * @param value the new value of the 'Unsettable VAT' attribute. * @see org.eclipse.emf.cdo.tests.model1.VAT * @see #isSetUnsettableVAT() * @see #unsetUnsettableVAT() @@ -632,9 +587,8 @@ public interface Unsettable2WithDefault extends EObject void setUnsettableVAT(VAT value); /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableVAT - * Unsettable VAT}' attribute. - * + * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableVAT Unsettable VAT}' attribute. + * * @see #isSetUnsettableVAT() * @see #getUnsettableVAT() * @see #setUnsettableVAT(VAT) @@ -643,9 +597,8 @@ public interface Unsettable2WithDefault extends EObject void unsetUnsettableVAT(); /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableVAT - * Unsettable VAT}' attribute is set. - * + * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableVAT Unsettable VAT}' attribute is set. + * * @return whether the value of the 'Unsettable VAT' attribute is set. * @see #unsetUnsettableVAT() * @see #getUnsettableVAT() diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EObjectToEObjectBothContainedMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EObjectToEObjectBothContainedMapImpl.java index 88b1fdce9b..81252a9dfa 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EObjectToEObjectBothContainedMapImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EObjectToEObjectBothContainedMapImpl.java @@ -27,18 +27,17 @@ import org.eclipse.emf.ecore.EObject; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectBothContainedMapImpl#getTypedKey Key}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectBothContainedMapImpl#getTypedValue Value}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectBothContainedMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectBothContainedMapImpl#getTypedValue Value}
    • *
    *

    - * + * * @generated */ public class EObjectToEObjectBothContainedMapImpl extends CDOObjectImpl implements BasicEMap.Entry { /** * - * * @generated */ protected EObjectToEObjectBothContainedMapImpl() @@ -48,7 +47,6 @@ public class EObjectToEObjectBothContainedMapImpl extends CDOObjectImpl implemen /** * - * * @generated */ @Override @@ -59,7 +57,6 @@ public class EObjectToEObjectBothContainedMapImpl extends CDOObjectImpl implemen /** * - * * @generated */ @Override @@ -70,7 +67,6 @@ public class EObjectToEObjectBothContainedMapImpl extends CDOObjectImpl implemen /** * - * * @generated */ public EObject getTypedKey() @@ -80,7 +76,6 @@ public class EObjectToEObjectBothContainedMapImpl extends CDOObjectImpl implemen /** * - * * @generated */ public void setTypedKey(EObject newKey) @@ -90,7 +85,6 @@ public class EObjectToEObjectBothContainedMapImpl extends CDOObjectImpl implemen /** * - * * @generated */ public EObject getTypedValue() @@ -100,7 +94,6 @@ public class EObjectToEObjectBothContainedMapImpl extends CDOObjectImpl implemen /** * - * * @generated */ public void setTypedValue(EObject newValue) @@ -110,14 +103,12 @@ public class EObjectToEObjectBothContainedMapImpl extends CDOObjectImpl implemen /** * - * * @generated */ protected int hash = -1; /** * - * * @generated */ public int getHash() @@ -132,7 +123,6 @@ public class EObjectToEObjectBothContainedMapImpl extends CDOObjectImpl implemen /** * - * * @generated */ public void setHash(int hash) @@ -142,7 +132,6 @@ public class EObjectToEObjectBothContainedMapImpl extends CDOObjectImpl implemen /** * - * * @generated */ public EObject getKey() @@ -152,7 +141,6 @@ public class EObjectToEObjectBothContainedMapImpl extends CDOObjectImpl implemen /** * - * * @generated */ public void setKey(EObject key) @@ -162,7 +150,6 @@ public class EObjectToEObjectBothContainedMapImpl extends CDOObjectImpl implemen /** * - * * @generated */ public EObject getValue() @@ -172,7 +159,6 @@ public class EObjectToEObjectBothContainedMapImpl extends CDOObjectImpl implemen /** * - * * @generated */ public EObject setValue(EObject value) @@ -184,7 +170,6 @@ public class EObjectToEObjectBothContainedMapImpl extends CDOObjectImpl implemen /** * - * * @generated */ @SuppressWarnings("unchecked") diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EObjectToEObjectKeyContainedMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EObjectToEObjectKeyContainedMapImpl.java index cb445d1133..b614fcb390 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EObjectToEObjectKeyContainedMapImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EObjectToEObjectKeyContainedMapImpl.java @@ -27,18 +27,17 @@ import org.eclipse.emf.ecore.EObject; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectKeyContainedMapImpl#getTypedKey Key}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectKeyContainedMapImpl#getTypedValue Value}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectKeyContainedMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectKeyContainedMapImpl#getTypedValue Value}
    • *
    *

    - * + * * @generated */ public class EObjectToEObjectKeyContainedMapImpl extends CDOObjectImpl implements BasicEMap.Entry { /** * - * * @generated */ protected EObjectToEObjectKeyContainedMapImpl() @@ -48,7 +47,6 @@ public class EObjectToEObjectKeyContainedMapImpl extends CDOObjectImpl implement /** * - * * @generated */ @Override @@ -59,7 +57,6 @@ public class EObjectToEObjectKeyContainedMapImpl extends CDOObjectImpl implement /** * - * * @generated */ @Override @@ -70,7 +67,6 @@ public class EObjectToEObjectKeyContainedMapImpl extends CDOObjectImpl implement /** * - * * @generated */ public EObject getTypedKey() @@ -80,7 +76,6 @@ public class EObjectToEObjectKeyContainedMapImpl extends CDOObjectImpl implement /** * - * * @generated */ public void setTypedKey(EObject newKey) @@ -90,7 +85,6 @@ public class EObjectToEObjectKeyContainedMapImpl extends CDOObjectImpl implement /** * - * * @generated */ public EObject getTypedValue() @@ -100,7 +94,6 @@ public class EObjectToEObjectKeyContainedMapImpl extends CDOObjectImpl implement /** * - * * @generated */ public void setTypedValue(EObject newValue) @@ -110,14 +103,12 @@ public class EObjectToEObjectKeyContainedMapImpl extends CDOObjectImpl implement /** * - * * @generated */ protected int hash = -1; /** * - * * @generated */ public int getHash() @@ -132,7 +123,6 @@ public class EObjectToEObjectKeyContainedMapImpl extends CDOObjectImpl implement /** * - * * @generated */ public void setHash(int hash) @@ -142,7 +132,6 @@ public class EObjectToEObjectKeyContainedMapImpl extends CDOObjectImpl implement /** * - * * @generated */ public EObject getKey() @@ -152,7 +141,6 @@ public class EObjectToEObjectKeyContainedMapImpl extends CDOObjectImpl implement /** * - * * @generated */ public void setKey(EObject key) @@ -162,7 +150,6 @@ public class EObjectToEObjectKeyContainedMapImpl extends CDOObjectImpl implement /** * - * * @generated */ public EObject getValue() @@ -172,7 +159,6 @@ public class EObjectToEObjectKeyContainedMapImpl extends CDOObjectImpl implement /** * - * * @generated */ public EObject setValue(EObject value) @@ -184,7 +170,6 @@ public class EObjectToEObjectKeyContainedMapImpl extends CDOObjectImpl implement /** * - * * @generated */ @SuppressWarnings("unchecked") diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EObjectToEObjectMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EObjectToEObjectMapImpl.java index afcc8dbb5d..27896345e3 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EObjectToEObjectMapImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EObjectToEObjectMapImpl.java @@ -27,18 +27,17 @@ import org.eclipse.emf.ecore.EObject; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectMapImpl#getTypedKey Key}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectMapImpl#getTypedValue Value}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectMapImpl#getTypedValue Value}
    • *
    *

    - * + * * @generated */ public class EObjectToEObjectMapImpl extends CDOObjectImpl implements BasicEMap.Entry { /** * - * * @generated */ protected EObjectToEObjectMapImpl() @@ -48,7 +47,6 @@ public class EObjectToEObjectMapImpl extends CDOObjectImpl implements BasicEMap. /** * - * * @generated */ @Override @@ -59,7 +57,6 @@ public class EObjectToEObjectMapImpl extends CDOObjectImpl implements BasicEMap. /** * - * * @generated */ @Override @@ -70,7 +67,6 @@ public class EObjectToEObjectMapImpl extends CDOObjectImpl implements BasicEMap. /** * - * * @generated */ public EObject getTypedKey() @@ -80,7 +76,6 @@ public class EObjectToEObjectMapImpl extends CDOObjectImpl implements BasicEMap. /** * - * * @generated */ public void setTypedKey(EObject newKey) @@ -90,7 +85,6 @@ public class EObjectToEObjectMapImpl extends CDOObjectImpl implements BasicEMap. /** * - * * @generated */ public EObject getTypedValue() @@ -100,7 +94,6 @@ public class EObjectToEObjectMapImpl extends CDOObjectImpl implements BasicEMap. /** * - * * @generated */ public void setTypedValue(EObject newValue) @@ -110,14 +103,12 @@ public class EObjectToEObjectMapImpl extends CDOObjectImpl implements BasicEMap. /** * - * * @generated */ protected int hash = -1; /** * - * * @generated */ public int getHash() @@ -132,7 +123,6 @@ public class EObjectToEObjectMapImpl extends CDOObjectImpl implements BasicEMap. /** * - * * @generated */ public void setHash(int hash) @@ -142,7 +132,6 @@ public class EObjectToEObjectMapImpl extends CDOObjectImpl implements BasicEMap. /** * - * * @generated */ public EObject getKey() @@ -152,7 +141,6 @@ public class EObjectToEObjectMapImpl extends CDOObjectImpl implements BasicEMap. /** * - * * @generated */ public void setKey(EObject key) @@ -162,7 +150,6 @@ public class EObjectToEObjectMapImpl extends CDOObjectImpl implements BasicEMap. /** * - * * @generated */ public EObject getValue() @@ -172,7 +159,6 @@ public class EObjectToEObjectMapImpl extends CDOObjectImpl implements BasicEMap. /** * - * * @generated */ public EObject setValue(EObject value) @@ -184,7 +170,6 @@ public class EObjectToEObjectMapImpl extends CDOObjectImpl implements BasicEMap. /** * - * * @generated */ @SuppressWarnings("unchecked") diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EObjectToEObjectValueContainedMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EObjectToEObjectValueContainedMapImpl.java index 010b592c55..c1599a3bed 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EObjectToEObjectValueContainedMapImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EObjectToEObjectValueContainedMapImpl.java @@ -27,18 +27,17 @@ import org.eclipse.emf.ecore.EObject; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectValueContainedMapImpl#getTypedKey Key}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectValueContainedMapImpl#getTypedValue Value}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectValueContainedMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.EObjectToEObjectValueContainedMapImpl#getTypedValue Value}
    • *
    *

    - * + * * @generated */ public class EObjectToEObjectValueContainedMapImpl extends CDOObjectImpl implements BasicEMap.Entry { /** * - * * @generated */ protected EObjectToEObjectValueContainedMapImpl() @@ -48,7 +47,6 @@ public class EObjectToEObjectValueContainedMapImpl extends CDOObjectImpl impleme /** * - * * @generated */ @Override @@ -59,7 +57,6 @@ public class EObjectToEObjectValueContainedMapImpl extends CDOObjectImpl impleme /** * - * * @generated */ @Override @@ -70,7 +67,6 @@ public class EObjectToEObjectValueContainedMapImpl extends CDOObjectImpl impleme /** * - * * @generated */ public EObject getTypedKey() @@ -80,7 +76,6 @@ public class EObjectToEObjectValueContainedMapImpl extends CDOObjectImpl impleme /** * - * * @generated */ public void setTypedKey(EObject newKey) @@ -90,7 +85,6 @@ public class EObjectToEObjectValueContainedMapImpl extends CDOObjectImpl impleme /** * - * * @generated */ public EObject getTypedValue() @@ -100,7 +94,6 @@ public class EObjectToEObjectValueContainedMapImpl extends CDOObjectImpl impleme /** * - * * @generated */ public void setTypedValue(EObject newValue) @@ -110,14 +103,12 @@ public class EObjectToEObjectValueContainedMapImpl extends CDOObjectImpl impleme /** * - * * @generated */ protected int hash = -1; /** * - * * @generated */ public int getHash() @@ -132,7 +123,6 @@ public class EObjectToEObjectValueContainedMapImpl extends CDOObjectImpl impleme /** * - * * @generated */ public void setHash(int hash) @@ -142,7 +132,6 @@ public class EObjectToEObjectValueContainedMapImpl extends CDOObjectImpl impleme /** * - * * @generated */ public EObject getKey() @@ -152,7 +141,6 @@ public class EObjectToEObjectValueContainedMapImpl extends CDOObjectImpl impleme /** * - * * @generated */ public void setKey(EObject key) @@ -162,7 +150,6 @@ public class EObjectToEObjectValueContainedMapImpl extends CDOObjectImpl impleme /** * - * * @generated */ public EObject getValue() @@ -172,7 +159,6 @@ public class EObjectToEObjectValueContainedMapImpl extends CDOObjectImpl impleme /** * - * * @generated */ public EObject setValue(EObject value) @@ -184,7 +170,6 @@ public class EObjectToEObjectValueContainedMapImpl extends CDOObjectImpl impleme /** * - * * @generated */ @SuppressWarnings("unchecked") diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EnumListHolderImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EnumListHolderImpl.java index b833d9a418..be3ca7be02 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EnumListHolderImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/EnumListHolderImpl.java @@ -35,7 +35,6 @@ public class EnumListHolderImpl extends CDOObjectImpl implements EnumListHolder { /** * - * * @generated */ protected EnumListHolderImpl() @@ -45,7 +44,6 @@ public class EnumListHolderImpl extends CDOObjectImpl implements EnumListHolder /** * - * * @generated */ @Override @@ -56,7 +54,6 @@ public class EnumListHolderImpl extends CDOObjectImpl implements EnumListHolder /** * - * * @generated */ @Override @@ -67,7 +64,6 @@ public class EnumListHolderImpl extends CDOObjectImpl implements EnumListHolder /** * - * * @generated */ @SuppressWarnings("unchecked") diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/IntegerToStringMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/IntegerToStringMapImpl.java index bb6c78dc0e..538c2cbccb 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/IntegerToStringMapImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/IntegerToStringMapImpl.java @@ -27,18 +27,17 @@ import org.eclipse.emf.ecore.EObject; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.IntegerToStringMapImpl#getTypedKey Key}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.IntegerToStringMapImpl#getTypedValue Value}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.IntegerToStringMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.IntegerToStringMapImpl#getTypedValue Value}
    • *
    *

    - * + * * @generated */ public class IntegerToStringMapImpl extends CDOObjectImpl implements BasicEMap.Entry { /** * - * * @generated */ protected IntegerToStringMapImpl() @@ -48,7 +47,6 @@ public class IntegerToStringMapImpl extends CDOObjectImpl implements BasicEMap.E /** * - * * @generated */ @Override @@ -59,7 +57,6 @@ public class IntegerToStringMapImpl extends CDOObjectImpl implements BasicEMap.E /** * - * * @generated */ @Override @@ -70,7 +67,6 @@ public class IntegerToStringMapImpl extends CDOObjectImpl implements BasicEMap.E /** * - * * @generated */ public Integer getTypedKey() @@ -80,7 +76,6 @@ public class IntegerToStringMapImpl extends CDOObjectImpl implements BasicEMap.E /** * - * * @generated */ public void setTypedKey(Integer newKey) @@ -90,7 +85,6 @@ public class IntegerToStringMapImpl extends CDOObjectImpl implements BasicEMap.E /** * - * * @generated */ public String getTypedValue() @@ -100,7 +94,6 @@ public class IntegerToStringMapImpl extends CDOObjectImpl implements BasicEMap.E /** * - * * @generated */ public void setTypedValue(String newValue) @@ -110,14 +103,12 @@ public class IntegerToStringMapImpl extends CDOObjectImpl implements BasicEMap.E /** * - * * @generated */ protected int hash = -1; /** * - * * @generated */ public int getHash() @@ -132,7 +123,6 @@ public class IntegerToStringMapImpl extends CDOObjectImpl implements BasicEMap.E /** * - * * @generated */ public void setHash(int hash) @@ -142,7 +132,6 @@ public class IntegerToStringMapImpl extends CDOObjectImpl implements BasicEMap.E /** * - * * @generated */ public Integer getKey() @@ -152,7 +141,6 @@ public class IntegerToStringMapImpl extends CDOObjectImpl implements BasicEMap.E /** * - * * @generated */ public void setKey(Integer key) @@ -162,7 +150,6 @@ public class IntegerToStringMapImpl extends CDOObjectImpl implements BasicEMap.E /** * - * * @generated */ public String getValue() @@ -172,7 +159,6 @@ public class IntegerToStringMapImpl extends CDOObjectImpl implements BasicEMap.E /** * - * * @generated */ public String setValue(String value) @@ -184,7 +170,6 @@ public class IntegerToStringMapImpl extends CDOObjectImpl implements BasicEMap.E /** * - * * @generated */ @SuppressWarnings("unchecked") diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/MapHolderImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/MapHolderImpl.java index 2df6ae43f1..5b5621ccd3 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/MapHolderImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/MapHolderImpl.java @@ -28,31 +28,24 @@ import org.eclipse.emf.ecore.EObject; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getIntegerToStringMap Integer To String Map}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getStringToStringMap String To String Map}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getStringToVATMap String To VAT Map}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getStringToAddressContainmentMap String To Address - * Containment Map}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getStringToAddressReferenceMap String To Address - * Reference Map}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getEObjectToEObjectMap EObject To EObject Map - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getEObjectToEObjectKeyContainedMap EObject To - * EObject Key Contained Map}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getEObjectToEObjectBothContainedMap EObject To - * EObject Both Contained Map}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getEObjectToEObjectValueContainedMap EObject To - * EObject Value Contained Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getIntegerToStringMap Integer To String Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getStringToStringMap String To String Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getStringToVATMap String To VAT Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getStringToAddressContainmentMap String To Address Containment Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getStringToAddressReferenceMap String To Address Reference Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getEObjectToEObjectMap EObject To EObject Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getEObjectToEObjectKeyContainedMap EObject To EObject Key Contained Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getEObjectToEObjectBothContainedMap EObject To EObject Both Contained Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.MapHolderImpl#getEObjectToEObjectValueContainedMap EObject To EObject Value Contained Map}
    • *
    *

    - * + * * @generated */ public class MapHolderImpl extends CDOObjectImpl implements MapHolder { /** * - * * @generated */ protected MapHolderImpl() @@ -62,7 +55,6 @@ public class MapHolderImpl extends CDOObjectImpl implements MapHolder /** * - * * @generated */ @Override @@ -73,7 +65,6 @@ public class MapHolderImpl extends CDOObjectImpl implements MapHolder /** * - * * @generated */ @Override @@ -84,7 +75,6 @@ public class MapHolderImpl extends CDOObjectImpl implements MapHolder /** * - * * @generated */ @SuppressWarnings("unchecked") @@ -95,7 +85,6 @@ public class MapHolderImpl extends CDOObjectImpl implements MapHolder /** * - * * @generated */ @SuppressWarnings("unchecked") @@ -106,7 +95,6 @@ public class MapHolderImpl extends CDOObjectImpl implements MapHolder /** * - * * @generated */ @SuppressWarnings("unchecked") @@ -117,7 +105,6 @@ public class MapHolderImpl extends CDOObjectImpl implements MapHolder /** * - * * @generated */ @SuppressWarnings("unchecked") @@ -128,7 +115,6 @@ public class MapHolderImpl extends CDOObjectImpl implements MapHolder /** * - * * @generated */ @SuppressWarnings("unchecked") @@ -139,7 +125,6 @@ public class MapHolderImpl extends CDOObjectImpl implements MapHolder /** * - * * @generated */ @SuppressWarnings("unchecked") @@ -150,7 +135,6 @@ public class MapHolderImpl extends CDOObjectImpl implements MapHolder /** * - * * @generated */ @SuppressWarnings("unchecked") @@ -161,7 +145,6 @@ public class MapHolderImpl extends CDOObjectImpl implements MapHolder /** * - * * @generated */ @SuppressWarnings("unchecked") @@ -172,7 +155,6 @@ public class MapHolderImpl extends CDOObjectImpl implements MapHolder /** * - * * @generated */ @SuppressWarnings("unchecked") diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Model2FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Model2FactoryImpl.java index 8d632da2c5..098c8e9589 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Model2FactoryImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Model2FactoryImpl.java @@ -36,14 +36,13 @@ import java.util.Map; /** * An implementation of the model Factory. - * * @generated */ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory { /** - * Creates the default factory implementation. - * + * Creates the default factory implementation. + * * @generated */ public static Model2Factory init() @@ -65,8 +64,8 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory } /** - * Creates an instance of the factory. - * + * Creates an instance of the factory. + * * @generated */ public Model2FactoryImpl() @@ -76,7 +75,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ @Override @@ -131,7 +129,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public SpecialPurchaseOrder createSpecialPurchaseOrder() @@ -142,7 +139,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public TaskContainer createTaskContainer() @@ -153,7 +149,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public Task createTask() @@ -164,7 +159,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public Unsettable1 createUnsettable1() @@ -175,7 +169,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public Unsettable2WithDefault createUnsettable2WithDefault() @@ -186,7 +179,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public PersistentContainment createPersistentContainment() @@ -197,7 +189,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public TransientContainer createTransientContainer() @@ -208,7 +199,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public NotUnsettable createNotUnsettable() @@ -219,7 +209,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public NotUnsettableWithDefault createNotUnsettableWithDefault() @@ -230,7 +219,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public MapHolder createMapHolder() @@ -241,7 +229,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public Map.Entry createStringToStringMap() @@ -252,7 +239,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public Map.Entry createIntegerToStringMap() @@ -263,7 +249,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public Map.Entry createStringToVATMap() @@ -274,7 +259,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public Map.Entry createStringToAddressContainmentMap() @@ -285,7 +269,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public Map.Entry createStringToAddressReferenceMap() @@ -296,7 +279,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public Map.Entry createEObjectToEObjectMap() @@ -307,7 +289,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public Map.Entry createEObjectToEObjectKeyContainedMap() @@ -318,7 +299,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public Map.Entry createEObjectToEObjectBothContainedMap() @@ -329,7 +309,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public Map.Entry createEObjectToEObjectValueContainedMap() @@ -340,7 +319,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public EnumListHolder createEnumListHolder() @@ -351,7 +329,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @generated */ public Model2Package getModel2Package() @@ -361,7 +338,6 @@ public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory /** * - * * @deprecated * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Model2PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Model2PackageImpl.java index 26d1eb2b08..9fb7c838a7 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Model2PackageImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Model2PackageImpl.java @@ -35,147 +35,126 @@ import java.util.Map; /** * An implementation of the model Package. - * * @generated */ public class Model2PackageImpl extends EPackageImpl implements Model2Package { /** * - * * @generated */ private EClass specialPurchaseOrderEClass = null; /** * - * * @generated */ private EClass taskContainerEClass = null; /** * - * * @generated */ private EClass taskEClass = null; /** * - * * @generated */ private EClass unsettable1EClass = null; /** * - * * @generated */ private EClass unsettable2WithDefaultEClass = null; /** * - * * @generated */ private EClass persistentContainmentEClass = null; /** * - * * @generated */ private EClass transientContainerEClass = null; /** * - * * @generated */ private EClass notUnsettableEClass = null; /** * - * * @generated */ private EClass notUnsettableWithDefaultEClass = null; /** * - * * @generated */ private EClass mapHolderEClass = null; /** * - * * @generated */ private EClass stringToStringMapEClass = null; /** * - * * @generated */ private EClass integerToStringMapEClass = null; /** * - * * @generated */ private EClass stringToVATMapEClass = null; /** * - * * @generated */ private EClass stringToAddressContainmentMapEClass = null; /** * - * * @generated */ private EClass stringToAddressReferenceMapEClass = null; /** * - * * @generated */ private EClass eObjectToEObjectMapEClass = null; /** * - * * @generated */ private EClass eObjectToEObjectKeyContainedMapEClass = null; /** * - * * @generated */ private EClass eObjectToEObjectBothContainedMapEClass = null; /** * - * * @generated */ private EClass eObjectToEObjectValueContainedMapEClass = null; /** * - * * @generated */ private EClass enumListHolderEClass = null; @@ -200,18 +179,17 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ private static boolean isInited = false; /** * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - *

    - * This method is used to initialize {@link Model2Package#eINSTANCE} when that field is accessed. Clients should not - * invoke it directly. Instead, they should simply access that field to obtain the package. - * * + *

    This method is used to initialize {@link Model2Package#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() @@ -247,7 +225,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getSpecialPurchaseOrder() @@ -257,7 +234,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getSpecialPurchaseOrder_DiscountCode() @@ -267,7 +243,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getSpecialPurchaseOrder_ShippingAddress() @@ -277,7 +252,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getTaskContainer() @@ -287,7 +261,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getTaskContainer_Tasks() @@ -297,7 +270,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getTask() @@ -307,7 +279,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getTask_TaskContainer() @@ -317,7 +288,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getTask_Description() @@ -327,7 +297,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getTask_Done() @@ -337,7 +306,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getUnsettable1() @@ -347,7 +315,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable1_UnsettableBoolean() @@ -357,7 +324,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable1_UnsettableByte() @@ -367,7 +333,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable1_UnsettableChar() @@ -377,7 +342,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable1_UnsettableDate() @@ -387,7 +351,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable1_UnsettableDouble() @@ -397,7 +360,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable1_UnsettableFloat() @@ -407,7 +369,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable1_UnsettableInt() @@ -417,7 +378,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable1_UnsettableLong() @@ -427,7 +387,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable1_UnsettableShort() @@ -437,7 +396,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable1_UnsettableString() @@ -447,7 +405,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable1_UnsettableVAT() @@ -457,7 +414,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getUnsettable2WithDefault() @@ -467,7 +423,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable2WithDefault_UnsettableBoolean() @@ -477,7 +432,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable2WithDefault_UnsettableByte() @@ -487,7 +441,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable2WithDefault_UnsettableChar() @@ -497,7 +450,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable2WithDefault_UnsettableDate() @@ -507,7 +459,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable2WithDefault_UnsettableDouble() @@ -517,7 +468,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable2WithDefault_UnsettableFloat() @@ -527,7 +477,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable2WithDefault_UnsettableInt() @@ -537,7 +486,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable2WithDefault_UnsettableLong() @@ -547,7 +495,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable2WithDefault_UnsettableShort() @@ -557,7 +504,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable2WithDefault_UnsettableString() @@ -567,7 +513,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getUnsettable2WithDefault_UnsettableVAT() @@ -577,7 +522,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getPersistentContainment() @@ -587,7 +531,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getPersistentContainment_AttrBefore() @@ -597,7 +540,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getPersistentContainment_Children() @@ -607,7 +549,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getPersistentContainment_AttrAfter() @@ -617,7 +558,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getTransientContainer() @@ -627,7 +567,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getTransientContainer_AttrBefore() @@ -637,7 +576,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getTransientContainer_Parent() @@ -647,7 +585,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getTransientContainer_AttrAfter() @@ -657,7 +594,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getNotUnsettable() @@ -667,7 +603,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettable_NotUnsettableBoolean() @@ -677,7 +612,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettable_NotUnsettableByte() @@ -687,7 +621,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettable_NotUnsettableChar() @@ -697,7 +630,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettable_NotUnsettableDate() @@ -707,7 +639,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettable_NotUnsettableDouble() @@ -717,7 +648,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettable_NotUnsettableFloat() @@ -727,7 +657,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettable_NotUnsettableInt() @@ -737,7 +666,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettable_NotUnsettableLong() @@ -747,7 +675,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettable_NotUnsettableShort() @@ -757,7 +684,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettable_NotUnsettableString() @@ -767,7 +693,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettable_NotUnsettableVAT() @@ -777,7 +702,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getNotUnsettableWithDefault() @@ -787,7 +711,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettableWithDefault_NotUnsettableBoolean() @@ -797,7 +720,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettableWithDefault_NotUnsettableByte() @@ -807,7 +729,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettableWithDefault_NotUnsettableChar() @@ -817,7 +738,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettableWithDefault_NotUnsettableDate() @@ -827,7 +747,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettableWithDefault_NotUnsettableDouble() @@ -837,7 +756,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettableWithDefault_NotUnsettableFloat() @@ -847,7 +765,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettableWithDefault_NotUnsettableInt() @@ -857,7 +774,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettableWithDefault_NotUnsettableLong() @@ -867,7 +783,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettableWithDefault_NotUnsettableShort() @@ -877,7 +792,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettableWithDefault_NotUnsettableString() @@ -887,7 +801,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getNotUnsettableWithDefault_NotUnsettableVAT() @@ -897,7 +810,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getMapHolder() @@ -907,7 +819,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getMapHolder_IntegerToStringMap() @@ -917,7 +828,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getMapHolder_StringToStringMap() @@ -927,7 +837,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getMapHolder_StringToVATMap() @@ -937,7 +846,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getMapHolder_StringToAddressContainmentMap() @@ -947,7 +855,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getMapHolder_StringToAddressReferenceMap() @@ -957,7 +864,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getMapHolder_EObjectToEObjectMap() @@ -967,7 +873,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getMapHolder_EObjectToEObjectKeyContainedMap() @@ -977,7 +882,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getMapHolder_EObjectToEObjectBothContainedMap() @@ -987,7 +891,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getMapHolder_EObjectToEObjectValueContainedMap() @@ -997,7 +900,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getStringToStringMap() @@ -1007,7 +909,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getStringToStringMap_Key() @@ -1017,7 +918,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getStringToStringMap_Value() @@ -1027,7 +927,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getIntegerToStringMap() @@ -1037,7 +936,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getIntegerToStringMap_Key() @@ -1047,7 +945,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getIntegerToStringMap_Value() @@ -1057,7 +954,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getStringToVATMap() @@ -1067,7 +963,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getStringToVATMap_Key() @@ -1077,7 +972,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getStringToVATMap_Value() @@ -1087,7 +981,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getStringToAddressContainmentMap() @@ -1097,7 +990,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getStringToAddressContainmentMap_Key() @@ -1107,7 +999,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getStringToAddressContainmentMap_Value() @@ -1117,7 +1008,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getStringToAddressReferenceMap() @@ -1127,7 +1017,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getStringToAddressReferenceMap_Key() @@ -1137,7 +1026,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getStringToAddressReferenceMap_Value() @@ -1147,7 +1035,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getEObjectToEObjectMap() @@ -1157,7 +1044,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getEObjectToEObjectMap_Key() @@ -1167,7 +1053,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getEObjectToEObjectMap_Value() @@ -1177,7 +1062,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getEObjectToEObjectKeyContainedMap() @@ -1187,7 +1071,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getEObjectToEObjectKeyContainedMap_Key() @@ -1197,7 +1080,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getEObjectToEObjectKeyContainedMap_Value() @@ -1207,7 +1089,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getEObjectToEObjectBothContainedMap() @@ -1217,7 +1098,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getEObjectToEObjectBothContainedMap_Key() @@ -1227,7 +1107,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getEObjectToEObjectBothContainedMap_Value() @@ -1237,7 +1116,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getEObjectToEObjectValueContainedMap() @@ -1247,7 +1125,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getEObjectToEObjectValueContainedMap_Key() @@ -1257,7 +1134,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EReference getEObjectToEObjectValueContainedMap_Value() @@ -1267,7 +1143,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EClass getEnumListHolder() @@ -1277,7 +1152,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public EAttribute getEnumListHolder_EnumList() @@ -1287,7 +1161,6 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @generated */ public Model2Factory getModel2Factory() @@ -1297,15 +1170,14 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @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. - * + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * * @generated */ public void createPackageContents() @@ -1442,15 +1314,14 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package /** * - * * @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. - * + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * * @generated */ public void initializePackageContents() diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/NotUnsettableImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/NotUnsettableImpl.java index 1fb29a8ab7..ae0a55d035 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/NotUnsettableImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/NotUnsettableImpl.java @@ -27,36 +27,26 @@ import java.util.Date; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#isNotUnsettableBoolean Not Unsettable Boolean - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableByte Not Unsettable Byte} - *
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableChar Not Unsettable Char} - *
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableDate Not Unsettable Date} - *
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableDouble Not Unsettable Double - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableFloat Not Unsettable Float - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableInt Not Unsettable Int}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableLong Not Unsettable Long} - *
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableShort Not Unsettable Short - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableString Not Unsettable String - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableVAT Not Unsettable VAT}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#isNotUnsettableBoolean Not Unsettable Boolean}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableByte Not Unsettable Byte}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableChar Not Unsettable Char}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableDate Not Unsettable Date}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableDouble Not Unsettable Double}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableFloat Not Unsettable Float}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableInt Not Unsettable Int}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableLong Not Unsettable Long}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableShort Not Unsettable Short}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableString Not Unsettable String}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableImpl#getNotUnsettableVAT Not Unsettable VAT}
    • *
    *

    - * + * * @generated */ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable { /** * - * * @generated */ protected NotUnsettableImpl() @@ -66,7 +56,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ @Override @@ -77,7 +66,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ @Override @@ -88,7 +76,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public boolean isNotUnsettableBoolean() @@ -98,7 +85,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public void setNotUnsettableBoolean(boolean newNotUnsettableBoolean) @@ -108,7 +94,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public byte getNotUnsettableByte() @@ -118,7 +103,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public void setNotUnsettableByte(byte newNotUnsettableByte) @@ -128,7 +112,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public char getNotUnsettableChar() @@ -138,7 +121,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public void setNotUnsettableChar(char newNotUnsettableChar) @@ -148,7 +130,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public Date getNotUnsettableDate() @@ -158,7 +139,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public void setNotUnsettableDate(Date newNotUnsettableDate) @@ -168,7 +148,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public double getNotUnsettableDouble() @@ -178,7 +157,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public void setNotUnsettableDouble(double newNotUnsettableDouble) @@ -188,7 +166,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public float getNotUnsettableFloat() @@ -198,7 +175,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public void setNotUnsettableFloat(float newNotUnsettableFloat) @@ -208,7 +184,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public int getNotUnsettableInt() @@ -218,7 +193,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public void setNotUnsettableInt(int newNotUnsettableInt) @@ -228,7 +202,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public long getNotUnsettableLong() @@ -238,7 +211,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public void setNotUnsettableLong(long newNotUnsettableLong) @@ -248,7 +220,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public short getNotUnsettableShort() @@ -258,7 +229,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public void setNotUnsettableShort(short newNotUnsettableShort) @@ -268,7 +238,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public String getNotUnsettableString() @@ -278,7 +247,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public void setNotUnsettableString(String newNotUnsettableString) @@ -288,7 +256,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public VAT getNotUnsettableVAT() @@ -298,7 +265,6 @@ public class NotUnsettableImpl extends CDOObjectImpl implements NotUnsettable /** * - * * @generated */ public void setNotUnsettableVAT(VAT newNotUnsettableVAT) diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/NotUnsettableWithDefaultImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/NotUnsettableWithDefaultImpl.java index f6dcaee609..1e7241e686 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/NotUnsettableWithDefaultImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/NotUnsettableWithDefaultImpl.java @@ -28,38 +28,26 @@ import java.util.Date; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#isNotUnsettableBoolean Not - * Unsettable Boolean}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableByte Not Unsettable - * Byte}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableChar Not Unsettable - * Char}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableDate Not Unsettable - * Date}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableDouble Not - * Unsettable Double}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableFloat Not - * Unsettable Float}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableInt Not Unsettable - * Int}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableLong Not Unsettable - * Long}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableShort Not - * Unsettable Short}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableString Not - * Unsettable String}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableVAT Not Unsettable - * VAT}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#isNotUnsettableBoolean Not Unsettable Boolean}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableByte Not Unsettable Byte}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableChar Not Unsettable Char}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableDate Not Unsettable Date}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableDouble Not Unsettable Double}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableFloat Not Unsettable Float}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableInt Not Unsettable Int}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableLong Not Unsettable Long}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableShort Not Unsettable Short}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableString Not Unsettable String}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.NotUnsettableWithDefaultImpl#getNotUnsettableVAT Not Unsettable VAT}
    • *
    *

    - * + * * @generated */ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUnsettableWithDefault { /** * - * * @generated */ protected NotUnsettableWithDefaultImpl() @@ -69,7 +57,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ @Override @@ -80,7 +67,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ @Override @@ -91,7 +77,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public boolean isNotUnsettableBoolean() @@ -101,7 +86,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public void setNotUnsettableBoolean(boolean newNotUnsettableBoolean) @@ -111,7 +95,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public byte getNotUnsettableByte() @@ -121,7 +104,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public void setNotUnsettableByte(byte newNotUnsettableByte) @@ -131,7 +113,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public char getNotUnsettableChar() @@ -141,7 +122,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public void setNotUnsettableChar(char newNotUnsettableChar) @@ -151,7 +131,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public Date getNotUnsettableDate() @@ -161,7 +140,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public void setNotUnsettableDate(Date newNotUnsettableDate) @@ -171,7 +149,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public double getNotUnsettableDouble() @@ -181,7 +158,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public void setNotUnsettableDouble(double newNotUnsettableDouble) @@ -191,7 +167,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public float getNotUnsettableFloat() @@ -201,7 +176,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public void setNotUnsettableFloat(float newNotUnsettableFloat) @@ -211,7 +185,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public int getNotUnsettableInt() @@ -221,7 +194,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public void setNotUnsettableInt(int newNotUnsettableInt) @@ -231,7 +203,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public long getNotUnsettableLong() @@ -241,7 +212,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public void setNotUnsettableLong(long newNotUnsettableLong) @@ -251,7 +221,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public short getNotUnsettableShort() @@ -261,7 +230,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public void setNotUnsettableShort(short newNotUnsettableShort) @@ -271,7 +239,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public String getNotUnsettableString() @@ -281,7 +248,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public void setNotUnsettableString(String newNotUnsettableString) @@ -291,7 +257,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public VAT getNotUnsettableVAT() @@ -301,7 +266,6 @@ public class NotUnsettableWithDefaultImpl extends CDOObjectImpl implements NotUn /** * - * * @generated */ public void setNotUnsettableVAT(VAT newNotUnsettableVAT) diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/PersistentContainmentImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/PersistentContainmentImpl.java index 6cc74bf582..6e19e2bd60 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/PersistentContainmentImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/PersistentContainmentImpl.java @@ -25,19 +25,18 @@ import org.eclipse.emf.ecore.EClass; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.PersistentContainmentImpl#getAttrBefore Attr Before}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.PersistentContainmentImpl#getChildren Children}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.PersistentContainmentImpl#getAttrAfter Attr After}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.PersistentContainmentImpl#getAttrBefore Attr Before}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.PersistentContainmentImpl#getChildren Children}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.PersistentContainmentImpl#getAttrAfter Attr After}
    • *
    *

    - * + * * @generated */ public class PersistentContainmentImpl extends CDOObjectImpl implements PersistentContainment { /** * - * * @generated */ protected PersistentContainmentImpl() @@ -47,7 +46,6 @@ public class PersistentContainmentImpl extends CDOObjectImpl implements Persiste /** * - * * @generated */ @Override @@ -58,7 +56,6 @@ public class PersistentContainmentImpl extends CDOObjectImpl implements Persiste /** * - * * @generated */ @Override @@ -69,7 +66,6 @@ public class PersistentContainmentImpl extends CDOObjectImpl implements Persiste /** * - * * @generated */ public String getAttrBefore() @@ -79,7 +75,6 @@ public class PersistentContainmentImpl extends CDOObjectImpl implements Persiste /** * - * * @generated */ public void setAttrBefore(String newAttrBefore) @@ -89,7 +84,6 @@ public class PersistentContainmentImpl extends CDOObjectImpl implements Persiste /** * - * * @generated */ @SuppressWarnings("unchecked") @@ -100,7 +94,6 @@ public class PersistentContainmentImpl extends CDOObjectImpl implements Persiste /** * - * * @generated */ public String getAttrAfter() @@ -110,7 +103,6 @@ public class PersistentContainmentImpl extends CDOObjectImpl implements Persiste /** * - * * @generated */ public void setAttrAfter(String newAttrAfter) diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/SpecialPurchaseOrderImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/SpecialPurchaseOrderImpl.java index 499683228e..2448ba6df6 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/SpecialPurchaseOrderImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/SpecialPurchaseOrderImpl.java @@ -23,19 +23,17 @@ import org.eclipse.emf.ecore.EClass; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.SpecialPurchaseOrderImpl#getDiscountCode Discount Code}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.SpecialPurchaseOrderImpl#getShippingAddress Shipping Address - * }
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.SpecialPurchaseOrderImpl#getDiscountCode Discount Code}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.SpecialPurchaseOrderImpl#getShippingAddress Shipping Address}
    • *
    *

    - * + * * @generated */ public class SpecialPurchaseOrderImpl extends PurchaseOrderImpl implements SpecialPurchaseOrder { /** * - * * @generated */ protected SpecialPurchaseOrderImpl() @@ -45,7 +43,6 @@ public class SpecialPurchaseOrderImpl extends PurchaseOrderImpl implements Speci /** * - * * @generated */ @Override @@ -56,7 +53,6 @@ public class SpecialPurchaseOrderImpl extends PurchaseOrderImpl implements Speci /** * - * * @generated */ public String getDiscountCode() @@ -66,7 +62,6 @@ public class SpecialPurchaseOrderImpl extends PurchaseOrderImpl implements Speci /** * - * * @generated */ public void setDiscountCode(String newDiscountCode) @@ -76,7 +71,6 @@ public class SpecialPurchaseOrderImpl extends PurchaseOrderImpl implements Speci /** * - * * @generated */ public Address getShippingAddress() @@ -86,7 +80,6 @@ public class SpecialPurchaseOrderImpl extends PurchaseOrderImpl implements Speci /** * - * * @generated */ public void setShippingAddress(Address newShippingAddress) diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/StringToAddressContainmentMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/StringToAddressContainmentMapImpl.java index 54b49ee683..2defa9028e 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/StringToAddressContainmentMapImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/StringToAddressContainmentMapImpl.java @@ -28,18 +28,17 @@ import org.eclipse.emf.ecore.EObject; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.StringToAddressContainmentMapImpl#getTypedKey Key}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.StringToAddressContainmentMapImpl#getTypedValue Value}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.StringToAddressContainmentMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.StringToAddressContainmentMapImpl#getTypedValue Value}
    • *
    *

    - * + * * @generated */ public class StringToAddressContainmentMapImpl extends CDOObjectImpl implements BasicEMap.Entry { /** * - * * @generated */ protected StringToAddressContainmentMapImpl() @@ -49,7 +48,6 @@ public class StringToAddressContainmentMapImpl extends CDOObjectImpl implements /** * - * * @generated */ @Override @@ -60,7 +58,6 @@ public class StringToAddressContainmentMapImpl extends CDOObjectImpl implements /** * - * * @generated */ @Override @@ -71,7 +68,6 @@ public class StringToAddressContainmentMapImpl extends CDOObjectImpl implements /** * - * * @generated */ public String getTypedKey() @@ -81,7 +77,6 @@ public class StringToAddressContainmentMapImpl extends CDOObjectImpl implements /** * - * * @generated */ public void setTypedKey(String newKey) @@ -91,7 +86,6 @@ public class StringToAddressContainmentMapImpl extends CDOObjectImpl implements /** * - * * @generated */ public Address getTypedValue() @@ -101,7 +95,6 @@ public class StringToAddressContainmentMapImpl extends CDOObjectImpl implements /** * - * * @generated */ public void setTypedValue(Address newValue) @@ -111,14 +104,12 @@ public class StringToAddressContainmentMapImpl extends CDOObjectImpl implements /** * - * * @generated */ protected int hash = -1; /** * - * * @generated */ public int getHash() @@ -133,7 +124,6 @@ public class StringToAddressContainmentMapImpl extends CDOObjectImpl implements /** * - * * @generated */ public void setHash(int hash) @@ -143,7 +133,6 @@ public class StringToAddressContainmentMapImpl extends CDOObjectImpl implements /** * - * * @generated */ public String getKey() @@ -153,7 +142,6 @@ public class StringToAddressContainmentMapImpl extends CDOObjectImpl implements /** * - * * @generated */ public void setKey(String key) @@ -163,7 +151,6 @@ public class StringToAddressContainmentMapImpl extends CDOObjectImpl implements /** * - * * @generated */ public Address getValue() @@ -173,7 +160,6 @@ public class StringToAddressContainmentMapImpl extends CDOObjectImpl implements /** * - * * @generated */ public Address setValue(Address value) @@ -185,7 +171,6 @@ public class StringToAddressContainmentMapImpl extends CDOObjectImpl implements /** * - * * @generated */ @SuppressWarnings("unchecked") diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/StringToAddressReferenceMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/StringToAddressReferenceMapImpl.java index c7a8c34c1e..45c695c6f0 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/StringToAddressReferenceMapImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/StringToAddressReferenceMapImpl.java @@ -28,18 +28,17 @@ import org.eclipse.emf.ecore.EObject; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.StringToAddressReferenceMapImpl#getTypedKey Key}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.StringToAddressReferenceMapImpl#getTypedValue Value}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.StringToAddressReferenceMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.StringToAddressReferenceMapImpl#getTypedValue Value}
    • *
    *

    - * + * * @generated */ public class StringToAddressReferenceMapImpl extends CDOObjectImpl implements BasicEMap.Entry { /** * - * * @generated */ protected StringToAddressReferenceMapImpl() @@ -49,7 +48,6 @@ public class StringToAddressReferenceMapImpl extends CDOObjectImpl implements Ba /** * - * * @generated */ @Override @@ -60,7 +58,6 @@ public class StringToAddressReferenceMapImpl extends CDOObjectImpl implements Ba /** * - * * @generated */ @Override @@ -71,7 +68,6 @@ public class StringToAddressReferenceMapImpl extends CDOObjectImpl implements Ba /** * - * * @generated */ public String getTypedKey() @@ -81,7 +77,6 @@ public class StringToAddressReferenceMapImpl extends CDOObjectImpl implements Ba /** * - * * @generated */ public void setTypedKey(String newKey) @@ -91,7 +86,6 @@ public class StringToAddressReferenceMapImpl extends CDOObjectImpl implements Ba /** * - * * @generated */ public Address getTypedValue() @@ -101,7 +95,6 @@ public class StringToAddressReferenceMapImpl extends CDOObjectImpl implements Ba /** * - * * @generated */ public void setTypedValue(Address newValue) @@ -111,14 +104,12 @@ public class StringToAddressReferenceMapImpl extends CDOObjectImpl implements Ba /** * - * * @generated */ protected int hash = -1; /** * - * * @generated */ public int getHash() @@ -133,7 +124,6 @@ public class StringToAddressReferenceMapImpl extends CDOObjectImpl implements Ba /** * - * * @generated */ public void setHash(int hash) @@ -143,7 +133,6 @@ public class StringToAddressReferenceMapImpl extends CDOObjectImpl implements Ba /** * - * * @generated */ public String getKey() @@ -153,7 +142,6 @@ public class StringToAddressReferenceMapImpl extends CDOObjectImpl implements Ba /** * - * * @generated */ public void setKey(String key) @@ -163,7 +151,6 @@ public class StringToAddressReferenceMapImpl extends CDOObjectImpl implements Ba /** * - * * @generated */ public Address getValue() @@ -173,7 +160,6 @@ public class StringToAddressReferenceMapImpl extends CDOObjectImpl implements Ba /** * - * * @generated */ public Address setValue(Address value) @@ -185,7 +171,6 @@ public class StringToAddressReferenceMapImpl extends CDOObjectImpl implements Ba /** * - * * @generated */ @SuppressWarnings("unchecked") diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/StringToStringMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/StringToStringMapImpl.java index cb7626f9c7..1c5e3dcdba 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/StringToStringMapImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/StringToStringMapImpl.java @@ -27,18 +27,17 @@ import org.eclipse.emf.ecore.EObject; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.StringToStringMapImpl#getTypedKey Key}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.StringToStringMapImpl#getTypedValue Value}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.StringToStringMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.StringToStringMapImpl#getTypedValue Value}
    • *
    *

    - * + * * @generated */ public class StringToStringMapImpl extends CDOObjectImpl implements BasicEMap.Entry { /** * - * * @generated */ protected StringToStringMapImpl() @@ -48,7 +47,6 @@ public class StringToStringMapImpl extends CDOObjectImpl implements BasicEMap.En /** * - * * @generated */ @Override @@ -59,7 +57,6 @@ public class StringToStringMapImpl extends CDOObjectImpl implements BasicEMap.En /** * - * * @generated */ @Override @@ -70,7 +67,6 @@ public class StringToStringMapImpl extends CDOObjectImpl implements BasicEMap.En /** * - * * @generated */ public String getTypedKey() @@ -80,7 +76,6 @@ public class StringToStringMapImpl extends CDOObjectImpl implements BasicEMap.En /** * - * * @generated */ public void setTypedKey(String newKey) @@ -90,7 +85,6 @@ public class StringToStringMapImpl extends CDOObjectImpl implements BasicEMap.En /** * - * * @generated */ public String getTypedValue() @@ -100,7 +94,6 @@ public class StringToStringMapImpl extends CDOObjectImpl implements BasicEMap.En /** * - * * @generated */ public void setTypedValue(String newValue) @@ -110,14 +103,12 @@ public class StringToStringMapImpl extends CDOObjectImpl implements BasicEMap.En /** * - * * @generated */ protected int hash = -1; /** * - * * @generated */ public int getHash() @@ -132,7 +123,6 @@ public class StringToStringMapImpl extends CDOObjectImpl implements BasicEMap.En /** * - * * @generated */ public void setHash(int hash) @@ -142,7 +132,6 @@ public class StringToStringMapImpl extends CDOObjectImpl implements BasicEMap.En /** * - * * @generated */ public String getKey() @@ -152,7 +141,6 @@ public class StringToStringMapImpl extends CDOObjectImpl implements BasicEMap.En /** * - * * @generated */ public void setKey(String key) @@ -162,7 +150,6 @@ public class StringToStringMapImpl extends CDOObjectImpl implements BasicEMap.En /** * - * * @generated */ public String getValue() @@ -172,7 +159,6 @@ public class StringToStringMapImpl extends CDOObjectImpl implements BasicEMap.En /** * - * * @generated */ public String setValue(String value) @@ -184,7 +170,6 @@ public class StringToStringMapImpl extends CDOObjectImpl implements BasicEMap.En /** * - * * @generated */ @SuppressWarnings("unchecked") diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/StringToVATMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/StringToVATMapImpl.java index ef7043a592..77073f54f4 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/StringToVATMapImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/StringToVATMapImpl.java @@ -39,7 +39,6 @@ public class StringToVATMapImpl extends CDOObjectImpl implements BasicEMap.Entry { /** * - * * @generated */ protected StringToVATMapImpl() @@ -49,7 +48,6 @@ public class StringToVATMapImpl extends CDOObjectImpl implements BasicEMap.Entry /** * - * * @generated */ @Override @@ -60,7 +58,6 @@ public class StringToVATMapImpl extends CDOObjectImpl implements BasicEMap.Entry /** * - * * @generated */ @Override @@ -71,7 +68,6 @@ public class StringToVATMapImpl extends CDOObjectImpl implements BasicEMap.Entry /** * - * * @generated */ public String getTypedKey() @@ -81,7 +77,6 @@ public class StringToVATMapImpl extends CDOObjectImpl implements BasicEMap.Entry /** * - * * @generated */ public void setTypedKey(String newKey) @@ -91,7 +86,6 @@ public class StringToVATMapImpl extends CDOObjectImpl implements BasicEMap.Entry /** * - * * @generated */ public VAT getTypedValue() @@ -101,7 +95,6 @@ public class StringToVATMapImpl extends CDOObjectImpl implements BasicEMap.Entry /** * - * * @generated */ public void setTypedValue(VAT newValue) @@ -111,14 +104,12 @@ public class StringToVATMapImpl extends CDOObjectImpl implements BasicEMap.Entry /** * - * * @generated */ protected int hash = -1; /** * - * * @generated */ public int getHash() @@ -133,7 +124,6 @@ public class StringToVATMapImpl extends CDOObjectImpl implements BasicEMap.Entry /** * - * * @generated */ public void setHash(int hash) @@ -143,7 +133,6 @@ public class StringToVATMapImpl extends CDOObjectImpl implements BasicEMap.Entry /** * - * * @generated */ public String getKey() @@ -153,7 +142,6 @@ public class StringToVATMapImpl extends CDOObjectImpl implements BasicEMap.Entry /** * - * * @generated */ public void setKey(String key) @@ -163,7 +151,6 @@ public class StringToVATMapImpl extends CDOObjectImpl implements BasicEMap.Entry /** * - * * @generated */ public VAT getValue() @@ -173,7 +160,6 @@ public class StringToVATMapImpl extends CDOObjectImpl implements BasicEMap.Entry /** * - * * @generated */ public VAT setValue(VAT value) @@ -185,7 +171,6 @@ public class StringToVATMapImpl extends CDOObjectImpl implements BasicEMap.Entry /** * - * * @generated */ @SuppressWarnings("unchecked") diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/TaskContainerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/TaskContainerImpl.java index 0c53b13207..ffe861231c 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/TaskContainerImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/TaskContainerImpl.java @@ -24,17 +24,16 @@ import org.eclipse.emf.ecore.EClass; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.TaskContainerImpl#getTasks Tasks}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.TaskContainerImpl#getTasks Tasks}
    • *
    *

    - * + * * @generated */ public class TaskContainerImpl extends CDOObjectImpl implements TaskContainer { /** * - * * @generated */ protected TaskContainerImpl() @@ -44,7 +43,6 @@ public class TaskContainerImpl extends CDOObjectImpl implements TaskContainer /** * - * * @generated */ @Override @@ -55,7 +53,6 @@ public class TaskContainerImpl extends CDOObjectImpl implements TaskContainer /** * - * * @generated */ @Override @@ -66,7 +63,6 @@ public class TaskContainerImpl extends CDOObjectImpl implements TaskContainer /** * - * * @generated */ @SuppressWarnings("unchecked") diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/TaskImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/TaskImpl.java index 9c8777223d..c8e2880d5c 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/TaskImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/TaskImpl.java @@ -23,19 +23,18 @@ import org.eclipse.emf.ecore.EClass; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.TaskImpl#getTaskContainer Task Container}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.TaskImpl#getDescription Description}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.TaskImpl#isDone Done}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.TaskImpl#getTaskContainer Task Container}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.TaskImpl#getDescription Description}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.TaskImpl#isDone Done}
    • *
    *

    - * + * * @generated */ public class TaskImpl extends CDOObjectImpl implements Task { /** * - * * @generated */ protected TaskImpl() @@ -45,7 +44,6 @@ public class TaskImpl extends CDOObjectImpl implements Task /** * - * * @generated */ @Override @@ -56,7 +54,6 @@ public class TaskImpl extends CDOObjectImpl implements Task /** * - * * @generated */ @Override @@ -67,7 +64,6 @@ public class TaskImpl extends CDOObjectImpl implements Task /** * - * * @generated */ public TaskContainer getTaskContainer() @@ -77,7 +73,6 @@ public class TaskImpl extends CDOObjectImpl implements Task /** * - * * @generated */ public void setTaskContainer(TaskContainer newTaskContainer) @@ -87,7 +82,6 @@ public class TaskImpl extends CDOObjectImpl implements Task /** * - * * @generated */ public String getDescription() @@ -97,7 +91,6 @@ public class TaskImpl extends CDOObjectImpl implements Task /** * - * * @generated */ public void setDescription(String newDescription) @@ -107,7 +100,6 @@ public class TaskImpl extends CDOObjectImpl implements Task /** * - * * @generated */ public boolean isDone() @@ -117,7 +109,6 @@ public class TaskImpl extends CDOObjectImpl implements Task /** * - * * @generated */ public void setDone(boolean newDone) diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/TransientContainerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/TransientContainerImpl.java index 94bcc21e74..f33070c505 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/TransientContainerImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/TransientContainerImpl.java @@ -24,19 +24,18 @@ import org.eclipse.emf.ecore.EClass; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.TransientContainerImpl#getAttrBefore Attr Before}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.TransientContainerImpl#getParent Parent}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.TransientContainerImpl#getAttrAfter Attr After}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.TransientContainerImpl#getAttrBefore Attr Before}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.TransientContainerImpl#getParent Parent}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.TransientContainerImpl#getAttrAfter Attr After}
    • *
    *

    - * + * * @generated */ public class TransientContainerImpl extends CDOObjectImpl implements TransientContainer { /** * - * * @generated */ protected TransientContainerImpl() @@ -46,7 +45,6 @@ public class TransientContainerImpl extends CDOObjectImpl implements TransientCo /** * - * * @generated */ @Override @@ -57,7 +55,6 @@ public class TransientContainerImpl extends CDOObjectImpl implements TransientCo /** * - * * @generated */ @Override @@ -68,7 +65,6 @@ public class TransientContainerImpl extends CDOObjectImpl implements TransientCo /** * - * * @generated */ public String getAttrBefore() @@ -78,7 +74,6 @@ public class TransientContainerImpl extends CDOObjectImpl implements TransientCo /** * - * * @generated */ public void setAttrBefore(String newAttrBefore) @@ -88,7 +83,6 @@ public class TransientContainerImpl extends CDOObjectImpl implements TransientCo /** * - * * @generated */ public PersistentContainment getParent() @@ -98,7 +92,6 @@ public class TransientContainerImpl extends CDOObjectImpl implements TransientCo /** * - * * @generated */ public void setParent(PersistentContainment newParent) @@ -108,7 +101,6 @@ public class TransientContainerImpl extends CDOObjectImpl implements TransientCo /** * - * * @generated */ public String getAttrAfter() @@ -118,7 +110,6 @@ public class TransientContainerImpl extends CDOObjectImpl implements TransientCo /** * - * * @generated */ public void setAttrAfter(String newAttrAfter) diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Unsettable1Impl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Unsettable1Impl.java index 137138b55d..27243882ab 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Unsettable1Impl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Unsettable1Impl.java @@ -25,27 +25,26 @@ import java.util.Date; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#isUnsettableBoolean Unsettable Boolean}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableByte Unsettable Byte}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableChar Unsettable Char}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableDate Unsettable Date}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableDouble Unsettable Double}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableFloat Unsettable Float}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableInt Unsettable Int}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableLong Unsettable Long}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableShort Unsettable Short}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableString Unsettable String}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableVAT Unsettable VAT}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#isUnsettableBoolean Unsettable Boolean}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableByte Unsettable Byte}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableChar Unsettable Char}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableDate Unsettable Date}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableDouble Unsettable Double}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableFloat Unsettable Float}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableInt Unsettable Int}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableLong Unsettable Long}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableShort Unsettable Short}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableString Unsettable String}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableVAT Unsettable VAT}
    • *
    *

    - * + * * @generated */ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 { /** * - * * @generated */ protected Unsettable1Impl() @@ -55,7 +54,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ @Override @@ -66,7 +64,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ @Override @@ -77,7 +74,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public boolean isUnsettableBoolean() @@ -87,7 +83,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void setUnsettableBoolean(boolean newUnsettableBoolean) @@ -97,7 +92,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void unsetUnsettableBoolean() @@ -107,7 +101,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public boolean isSetUnsettableBoolean() @@ -117,7 +110,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public byte getUnsettableByte() @@ -127,7 +119,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void setUnsettableByte(byte newUnsettableByte) @@ -137,7 +128,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void unsetUnsettableByte() @@ -147,7 +137,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public boolean isSetUnsettableByte() @@ -157,7 +146,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public char getUnsettableChar() @@ -167,7 +155,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void setUnsettableChar(char newUnsettableChar) @@ -177,7 +164,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void unsetUnsettableChar() @@ -187,7 +173,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public boolean isSetUnsettableChar() @@ -197,7 +182,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public Date getUnsettableDate() @@ -207,7 +191,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void setUnsettableDate(Date newUnsettableDate) @@ -217,7 +200,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void unsetUnsettableDate() @@ -227,7 +209,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public boolean isSetUnsettableDate() @@ -237,7 +218,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public double getUnsettableDouble() @@ -247,7 +227,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void setUnsettableDouble(double newUnsettableDouble) @@ -257,7 +236,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void unsetUnsettableDouble() @@ -267,7 +245,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public boolean isSetUnsettableDouble() @@ -277,7 +254,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public float getUnsettableFloat() @@ -287,7 +263,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void setUnsettableFloat(float newUnsettableFloat) @@ -297,7 +272,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void unsetUnsettableFloat() @@ -307,7 +281,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public boolean isSetUnsettableFloat() @@ -317,7 +290,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public int getUnsettableInt() @@ -327,7 +299,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void setUnsettableInt(int newUnsettableInt) @@ -337,7 +308,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void unsetUnsettableInt() @@ -347,7 +317,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public boolean isSetUnsettableInt() @@ -357,7 +326,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public long getUnsettableLong() @@ -367,7 +335,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void setUnsettableLong(long newUnsettableLong) @@ -377,7 +344,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void unsetUnsettableLong() @@ -387,7 +353,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public boolean isSetUnsettableLong() @@ -397,7 +362,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public short getUnsettableShort() @@ -407,7 +371,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void setUnsettableShort(short newUnsettableShort) @@ -417,7 +380,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void unsetUnsettableShort() @@ -427,7 +389,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public boolean isSetUnsettableShort() @@ -437,7 +398,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public String getUnsettableString() @@ -447,7 +407,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void setUnsettableString(String newUnsettableString) @@ -457,7 +416,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void unsetUnsettableString() @@ -467,7 +425,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public boolean isSetUnsettableString() @@ -477,7 +434,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public VAT getUnsettableVAT() @@ -487,7 +443,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void setUnsettableVAT(VAT newUnsettableVAT) @@ -497,7 +452,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public void unsetUnsettableVAT() @@ -507,7 +461,6 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1 /** * - * * @generated */ public boolean isSetUnsettableVAT() diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Unsettable2WithDefaultImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Unsettable2WithDefaultImpl.java index 79be7260c4..e5d3112512 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Unsettable2WithDefaultImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Unsettable2WithDefaultImpl.java @@ -26,38 +26,26 @@ import java.util.Date; *

    * The following features are implemented: *

      - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#isUnsettableBoolean Unsettable - * Boolean}
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableByte Unsettable Byte - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableChar Unsettable Char - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableDate Unsettable Date - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableDouble Unsettable Double - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableFloat Unsettable Float - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableInt Unsettable Int} - *
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableLong Unsettable Long - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableShort Unsettable Short - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableString Unsettable String - * }
    • - *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableVAT Unsettable VAT} - *
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#isUnsettableBoolean Unsettable Boolean}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableByte Unsettable Byte}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableChar Unsettable Char}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableDate Unsettable Date}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableDouble Unsettable Double}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableFloat Unsettable Float}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableInt Unsettable Int}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableLong Unsettable Long}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableShort Unsettable Short}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableString Unsettable String}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl#getUnsettableVAT Unsettable VAT}
    • *
    *

    - * + * * @generated */ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsettable2WithDefault { /** * - * * @generated */ protected Unsettable2WithDefaultImpl() @@ -67,7 +55,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ @Override @@ -78,7 +65,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ @Override @@ -89,7 +75,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public boolean isUnsettableBoolean() @@ -99,7 +84,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void setUnsettableBoolean(boolean newUnsettableBoolean) @@ -109,7 +93,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void unsetUnsettableBoolean() @@ -119,7 +102,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public boolean isSetUnsettableBoolean() @@ -129,7 +111,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public byte getUnsettableByte() @@ -139,7 +120,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void setUnsettableByte(byte newUnsettableByte) @@ -149,7 +129,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void unsetUnsettableByte() @@ -159,7 +138,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public boolean isSetUnsettableByte() @@ -169,7 +147,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public char getUnsettableChar() @@ -179,7 +156,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void setUnsettableChar(char newUnsettableChar) @@ -189,7 +165,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void unsetUnsettableChar() @@ -199,7 +174,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public boolean isSetUnsettableChar() @@ -209,7 +183,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public Date getUnsettableDate() @@ -219,7 +192,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void setUnsettableDate(Date newUnsettableDate) @@ -229,7 +201,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void unsetUnsettableDate() @@ -239,7 +210,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public boolean isSetUnsettableDate() @@ -249,7 +219,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public double getUnsettableDouble() @@ -259,7 +228,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void setUnsettableDouble(double newUnsettableDouble) @@ -269,7 +237,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void unsetUnsettableDouble() @@ -279,7 +246,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public boolean isSetUnsettableDouble() @@ -289,7 +255,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public float getUnsettableFloat() @@ -299,7 +264,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void setUnsettableFloat(float newUnsettableFloat) @@ -309,7 +273,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void unsetUnsettableFloat() @@ -319,7 +282,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public boolean isSetUnsettableFloat() @@ -329,7 +291,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public int getUnsettableInt() @@ -339,7 +300,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void setUnsettableInt(int newUnsettableInt) @@ -349,7 +309,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void unsetUnsettableInt() @@ -359,7 +318,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public boolean isSetUnsettableInt() @@ -369,7 +327,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public long getUnsettableLong() @@ -379,7 +336,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void setUnsettableLong(long newUnsettableLong) @@ -389,7 +345,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void unsetUnsettableLong() @@ -399,7 +354,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public boolean isSetUnsettableLong() @@ -409,7 +363,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public short getUnsettableShort() @@ -419,7 +372,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void setUnsettableShort(short newUnsettableShort) @@ -429,7 +381,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void unsetUnsettableShort() @@ -439,7 +390,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public boolean isSetUnsettableShort() @@ -449,7 +399,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public String getUnsettableString() @@ -459,7 +408,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void setUnsettableString(String newUnsettableString) @@ -469,7 +417,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void unsetUnsettableString() @@ -479,7 +426,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public boolean isSetUnsettableString() @@ -489,7 +435,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public VAT getUnsettableVAT() @@ -499,7 +444,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void setUnsettableVAT(VAT newUnsettableVAT) @@ -509,7 +453,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public void unsetUnsettableVAT() @@ -519,7 +462,6 @@ public class Unsettable2WithDefaultImpl extends CDOObjectImpl implements Unsetta /** * - * * @generated */ public boolean isSetUnsettableVAT() diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/Model2Factory.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/Model2Factory.java new file mode 100644 index 0000000000..8ba9e53423 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/Model2Factory.java @@ -0,0 +1,140 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model2.legacy; + +import org.eclipse.emf.cdo.tests.model2.EnumListHolder; +import org.eclipse.emf.cdo.tests.model2.MapHolder; +import org.eclipse.emf.cdo.tests.model2.NotUnsettable; +import org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault; +import org.eclipse.emf.cdo.tests.model2.PersistentContainment; +import org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder; +import org.eclipse.emf.cdo.tests.model2.Task; +import org.eclipse.emf.cdo.tests.model2.TaskContainer; +import org.eclipse.emf.cdo.tests.model2.TransientContainer; +import org.eclipse.emf.cdo.tests.model2.Unsettable1; +import org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. It provides a create method for each non-abstract class of the model. + * @extends org.eclipse.emf.cdo.tests.model2.Model2Factory + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package + * @generated + */ +public interface Model2Factory extends EFactory, org.eclipse.emf.cdo.tests.model2.Model2Factory +{ + /** + * The singleton instance of the factory. + * + * @generated + */ + Model2Factory eINSTANCE = org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2FactoryImpl.init(); + + /** + * Returns a new object of class 'Special Purchase Order'. + * + * @return a new object of class 'Special Purchase Order'. + * @generated + */ + SpecialPurchaseOrder createSpecialPurchaseOrder(); + + /** + * Returns a new object of class 'Task Container'. + * + * @return a new object of class 'Task Container'. + * @generated + */ + TaskContainer createTaskContainer(); + + /** + * Returns a new object of class 'Task'. + * + * @return a new object of class 'Task'. + * @generated + */ + Task createTask(); + + /** + * Returns a new object of class 'Unsettable1'. + * + * @return a new object of class 'Unsettable1'. + * @generated + */ + Unsettable1 createUnsettable1(); + + /** + * Returns a new object of class 'Unsettable2 With Default'. + * + * @return a new object of class 'Unsettable2 With Default'. + * @generated + */ + Unsettable2WithDefault createUnsettable2WithDefault(); + + /** + * Returns a new object of class 'Persistent Containment'. + * + * @return a new object of class 'Persistent Containment'. + * @generated + */ + PersistentContainment createPersistentContainment(); + + /** + * Returns a new object of class 'Transient Container'. + * + * @return a new object of class 'Transient Container'. + * @generated + */ + TransientContainer createTransientContainer(); + + /** + * Returns a new object of class 'Not Unsettable'. + * + * @return a new object of class 'Not Unsettable'. + * @generated + */ + NotUnsettable createNotUnsettable(); + + /** + * Returns a new object of class 'Not Unsettable With Default'. + * + * @return a new object of class 'Not Unsettable With Default'. + * @generated + */ + NotUnsettableWithDefault createNotUnsettableWithDefault(); + + /** + * Returns a new object of class 'Map Holder'. + * + * @return a new object of class 'Map Holder'. + * @generated + */ + MapHolder createMapHolder(); + + /** + * Returns a new object of class 'Enum List Holder'. + * + * @return a new object of class 'Enum List Holder'. + * @generated + */ + EnumListHolder createEnumListHolder(); + + /** + * Returns the package supported by this factory. + * + * @return the package supported by this factory. + * @generated + */ + Model2Package getModel2Package(); + +} // Model2Factory diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/Model2Package.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/Model2Package.java new file mode 100644 index 0000000000..0d8abe26f0 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/Model2Package.java @@ -0,0 +1,2259 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model2.legacy; + +import org.eclipse.emf.cdo.tests.model1.legacy.Model1Package; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * The Package for the model. It contains accessors for the meta objects to represent + *
      + *
    • each class,
    • + *
    • each feature of each class,
    • + *
    • each enum,
    • + *
    • and each data type
    • + *
    + * @extends org.eclipse.emf.cdo.tests.model2.Model2Package + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Factory + * @model kind="package" + * @generated + */ +public interface Model2Package extends EPackage, org.eclipse.emf.cdo.tests.model2.Model2Package +{ + /** + * The package name. + * + * @generated + */ + String eNAME = "model2"; + + /** + * The package namespace URI. + * + * @generated NOT + */ + String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/legacy/model2/1.0.0"; + + /** + * The package namespace name. + * + * @generated + */ + String eNS_PREFIX = "model2"; + + /** + * The singleton instance of the package. + * + * @generated + */ + Model2Package eINSTANCE = org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.SpecialPurchaseOrderImpl Special Purchase Order}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.SpecialPurchaseOrderImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getSpecialPurchaseOrder() + * @generated + */ + int SPECIAL_PURCHASE_ORDER = 0; + + /** + * The feature id for the 'Order Details' containment reference list. + * + * @generated + * @ordered + */ + int SPECIAL_PURCHASE_ORDER__ORDER_DETAILS = Model1Package.PURCHASE_ORDER__ORDER_DETAILS; + + /** + * The feature id for the 'Date' attribute. + * + * @generated + * @ordered + */ + int SPECIAL_PURCHASE_ORDER__DATE = Model1Package.PURCHASE_ORDER__DATE; + + /** + * The feature id for the 'Supplier' reference. + * + * @generated + * @ordered + */ + int SPECIAL_PURCHASE_ORDER__SUPPLIER = Model1Package.PURCHASE_ORDER__SUPPLIER; + + /** + * The feature id for the 'Discount Code' attribute. + * + * @generated + * @ordered + */ + int SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE = Model1Package.PURCHASE_ORDER_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Shipping Address' containment reference. + * + * @generated + * @ordered + */ + int SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS = Model1Package.PURCHASE_ORDER_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Special Purchase Order' class. + * + * @generated + * @ordered + */ + int SPECIAL_PURCHASE_ORDER_FEATURE_COUNT = Model1Package.PURCHASE_ORDER_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.TaskContainerImpl Task Container}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.TaskContainerImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getTaskContainer() + * @generated + */ + int TASK_CONTAINER = 1; + + /** + * The feature id for the 'Tasks' containment reference list. + * + * @generated + * @ordered + */ + int TASK_CONTAINER__TASKS = 0; + + /** + * The number of structural features of the 'Task Container' class. + * + * @generated + * @ordered + */ + int TASK_CONTAINER_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.TaskImpl Task}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.TaskImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getTask() + * @generated + */ + int TASK = 2; + + /** + * The feature id for the 'Task Container' container reference. + * + * @generated + * @ordered + */ + int TASK__TASK_CONTAINER = 0; + + /** + * The feature id for the 'Description' attribute. + * + * @generated + * @ordered + */ + int TASK__DESCRIPTION = 1; + + /** + * The feature id for the 'Done' attribute. + * + * @generated + * @ordered + */ + int TASK__DONE = 2; + + /** + * The number of structural features of the 'Task' class. + * + * @generated + * @ordered + */ + int TASK_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl Unsettable1}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getUnsettable1() + * @generated + */ + int UNSETTABLE1 = 3; + + /** + * The feature id for the 'Unsettable Boolean' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE1__UNSETTABLE_BOOLEAN = 0; + + /** + * The feature id for the 'Unsettable Byte' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE1__UNSETTABLE_BYTE = 1; + + /** + * The feature id for the 'Unsettable Char' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE1__UNSETTABLE_CHAR = 2; + + /** + * The feature id for the 'Unsettable Date' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE1__UNSETTABLE_DATE = 3; + + /** + * The feature id for the 'Unsettable Double' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE1__UNSETTABLE_DOUBLE = 4; + + /** + * The feature id for the 'Unsettable Float' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE1__UNSETTABLE_FLOAT = 5; + + /** + * The feature id for the 'Unsettable Int' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE1__UNSETTABLE_INT = 6; + + /** + * The feature id for the 'Unsettable Long' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE1__UNSETTABLE_LONG = 7; + + /** + * The feature id for the 'Unsettable Short' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE1__UNSETTABLE_SHORT = 8; + + /** + * The feature id for the 'Unsettable String' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE1__UNSETTABLE_STRING = 9; + + /** + * The feature id for the 'Unsettable VAT' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE1__UNSETTABLE_VAT = 10; + + /** + * The number of structural features of the 'Unsettable1' class. + * + * @generated + * @ordered + */ + int UNSETTABLE1_FEATURE_COUNT = 11; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable2WithDefaultImpl Unsettable2 With Default}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable2WithDefaultImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getUnsettable2WithDefault() + * @generated + */ + int UNSETTABLE2_WITH_DEFAULT = 4; + + /** + * The feature id for the 'Unsettable Boolean' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN = 0; + + /** + * The feature id for the 'Unsettable Byte' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE = 1; + + /** + * The feature id for the 'Unsettable Char' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR = 2; + + /** + * The feature id for the 'Unsettable Date' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE = 3; + + /** + * The feature id for the 'Unsettable Double' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE = 4; + + /** + * The feature id for the 'Unsettable Float' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT = 5; + + /** + * The feature id for the 'Unsettable Int' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT = 6; + + /** + * The feature id for the 'Unsettable Long' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG = 7; + + /** + * The feature id for the 'Unsettable Short' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT = 8; + + /** + * The feature id for the 'Unsettable String' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING = 9; + + /** + * The feature id for the 'Unsettable VAT' attribute. + * + * @generated + * @ordered + */ + int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT = 10; + + /** + * The number of structural features of the 'Unsettable2 With Default' class. + * + * @generated + * @ordered + */ + int UNSETTABLE2_WITH_DEFAULT_FEATURE_COUNT = 11; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.PersistentContainmentImpl Persistent Containment}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.PersistentContainmentImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getPersistentContainment() + * @generated + */ + int PERSISTENT_CONTAINMENT = 5; + + /** + * The feature id for the 'Attr Before' attribute. + * + * @generated + * @ordered + */ + int PERSISTENT_CONTAINMENT__ATTR_BEFORE = 0; + + /** + * The feature id for the 'Children' containment reference list. + * + * @generated + * @ordered + */ + int PERSISTENT_CONTAINMENT__CHILDREN = 1; + + /** + * The feature id for the 'Attr After' attribute. + * + * @generated + * @ordered + */ + int PERSISTENT_CONTAINMENT__ATTR_AFTER = 2; + + /** + * The number of structural features of the 'Persistent Containment' class. + * + * @generated + * @ordered + */ + int PERSISTENT_CONTAINMENT_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.TransientContainerImpl Transient Container}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.TransientContainerImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getTransientContainer() + * @generated + */ + int TRANSIENT_CONTAINER = 6; + + /** + * The feature id for the 'Attr Before' attribute. + * + * @generated + * @ordered + */ + int TRANSIENT_CONTAINER__ATTR_BEFORE = 0; + + /** + * The feature id for the 'Parent' container reference. + * + * @generated + * @ordered + */ + int TRANSIENT_CONTAINER__PARENT = 1; + + /** + * The feature id for the 'Attr After' attribute. + * + * @generated + * @ordered + */ + int TRANSIENT_CONTAINER__ATTR_AFTER = 2; + + /** + * The number of structural features of the 'Transient Container' class. + * + * @generated + * @ordered + */ + int TRANSIENT_CONTAINER_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl Not Unsettable}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getNotUnsettable() + * @generated + */ + int NOT_UNSETTABLE = 7; + + /** + * The feature id for the 'Not Unsettable Boolean' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN = 0; + + /** + * The feature id for the 'Not Unsettable Byte' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE = 1; + + /** + * The feature id for the 'Not Unsettable Char' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR = 2; + + /** + * The feature id for the 'Not Unsettable Date' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE__NOT_UNSETTABLE_DATE = 3; + + /** + * The feature id for the 'Not Unsettable Double' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE = 4; + + /** + * The feature id for the 'Not Unsettable Float' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT = 5; + + /** + * The feature id for the 'Not Unsettable Int' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE__NOT_UNSETTABLE_INT = 6; + + /** + * The feature id for the 'Not Unsettable Long' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE__NOT_UNSETTABLE_LONG = 7; + + /** + * The feature id for the 'Not Unsettable Short' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT = 8; + + /** + * The feature id for the 'Not Unsettable String' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE__NOT_UNSETTABLE_STRING = 9; + + /** + * The feature id for the 'Not Unsettable VAT' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE__NOT_UNSETTABLE_VAT = 10; + + /** + * The number of structural features of the 'Not Unsettable' class. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE_FEATURE_COUNT = 11; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableWithDefaultImpl Not Unsettable With Default}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableWithDefaultImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getNotUnsettableWithDefault() + * @generated + */ + int NOT_UNSETTABLE_WITH_DEFAULT = 8; + + /** + * The feature id for the 'Not Unsettable Boolean' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BOOLEAN = 0; + + /** + * The feature id for the 'Not Unsettable Byte' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BYTE = 1; + + /** + * The feature id for the 'Not Unsettable Char' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_CHAR = 2; + + /** + * The feature id for the 'Not Unsettable Date' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DATE = 3; + + /** + * The feature id for the 'Not Unsettable Double' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DOUBLE = 4; + + /** + * The feature id for the 'Not Unsettable Float' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_FLOAT = 5; + + /** + * The feature id for the 'Not Unsettable Int' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_INT = 6; + + /** + * The feature id for the 'Not Unsettable Long' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_LONG = 7; + + /** + * The feature id for the 'Not Unsettable Short' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_SHORT = 8; + + /** + * The feature id for the 'Not Unsettable String' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_STRING = 9; + + /** + * The feature id for the 'Not Unsettable VAT' attribute. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_VAT = 10; + + /** + * The number of structural features of the 'Not Unsettable With Default' class. + * + * @generated + * @ordered + */ + int NOT_UNSETTABLE_WITH_DEFAULT_FEATURE_COUNT = 11; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.MapHolderImpl Map Holder}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.MapHolderImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getMapHolder() + * @generated + */ + int MAP_HOLDER = 9; + + /** + * The feature id for the 'Integer To String Map' map. + * + * @generated + * @ordered + */ + int MAP_HOLDER__INTEGER_TO_STRING_MAP = 0; + + /** + * The feature id for the 'String To String Map' map. + * + * @generated + * @ordered + */ + int MAP_HOLDER__STRING_TO_STRING_MAP = 1; + + /** + * The feature id for the 'String To VAT Map' map. + * + * @generated + * @ordered + */ + int MAP_HOLDER__STRING_TO_VAT_MAP = 2; + + /** + * The feature id for the 'String To Address Containment Map' map. + * + * @generated + * @ordered + */ + int MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP = 3; + + /** + * The feature id for the 'String To Address Reference Map' map. + * + * @generated + * @ordered + */ + int MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP = 4; + + /** + * The feature id for the 'EObject To EObject Map' map. + * + * @generated + * @ordered + */ + int MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP = 5; + + /** + * The feature id for the 'EObject To EObject Key Contained Map' map. + * + * @generated + * @ordered + */ + int MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP = 6; + + /** + * The feature id for the 'EObject To EObject Both Contained Map' map. + * + * @generated + * @ordered + */ + int MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP = 7; + + /** + * The feature id for the 'EObject To EObject Value Contained Map' map. + * + * @generated + * @ordered + */ + int MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP = 8; + + /** + * The number of structural features of the 'Map Holder' class. + * + * @generated + * @ordered + */ + int MAP_HOLDER_FEATURE_COUNT = 9; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.StringToStringMapImpl String To String Map}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.StringToStringMapImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getStringToStringMap() + * @generated + */ + int STRING_TO_STRING_MAP = 10; + + /** + * The feature id for the 'Key' attribute. + * + * @generated + * @ordered + */ + int STRING_TO_STRING_MAP__KEY = 0; + + /** + * The feature id for the 'Value' attribute. + * + * @generated + * @ordered + */ + int STRING_TO_STRING_MAP__VALUE = 1; + + /** + * The number of structural features of the 'String To String Map' class. + * + * @generated + * @ordered + */ + int STRING_TO_STRING_MAP_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.IntegerToStringMapImpl Integer To String Map}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.IntegerToStringMapImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getIntegerToStringMap() + * @generated + */ + int INTEGER_TO_STRING_MAP = 11; + + /** + * The feature id for the 'Key' attribute. + * + * @generated + * @ordered + */ + int INTEGER_TO_STRING_MAP__KEY = 0; + + /** + * The feature id for the 'Value' attribute. + * + * @generated + * @ordered + */ + int INTEGER_TO_STRING_MAP__VALUE = 1; + + /** + * The number of structural features of the 'Integer To String Map' class. + * + * @generated + * @ordered + */ + int INTEGER_TO_STRING_MAP_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.StringToVATMapImpl String To VAT Map}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.StringToVATMapImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getStringToVATMap() + * @generated + */ + int STRING_TO_VAT_MAP = 12; + + /** + * The feature id for the 'Key' attribute. + * + * @generated + * @ordered + */ + int STRING_TO_VAT_MAP__KEY = 0; + + /** + * The feature id for the 'Value' attribute. + * + * @generated + * @ordered + */ + int STRING_TO_VAT_MAP__VALUE = 1; + + /** + * The number of structural features of the 'String To VAT Map' class. + * + * @generated + * @ordered + */ + int STRING_TO_VAT_MAP_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.StringToAddressContainmentMapImpl String To Address Containment Map}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.StringToAddressContainmentMapImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getStringToAddressContainmentMap() + * @generated + */ + int STRING_TO_ADDRESS_CONTAINMENT_MAP = 13; + + /** + * The feature id for the 'Key' attribute. + * + * @generated + * @ordered + */ + int STRING_TO_ADDRESS_CONTAINMENT_MAP__KEY = 0; + + /** + * The feature id for the 'Value' containment reference. + * + * @generated + * @ordered + */ + int STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE = 1; + + /** + * The number of structural features of the 'String To Address Containment Map' class. + * + * @generated + * @ordered + */ + int STRING_TO_ADDRESS_CONTAINMENT_MAP_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.StringToAddressReferenceMapImpl String To Address Reference Map}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.StringToAddressReferenceMapImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getStringToAddressReferenceMap() + * @generated + */ + int STRING_TO_ADDRESS_REFERENCE_MAP = 14; + + /** + * The feature id for the 'Key' attribute. + * + * @generated + * @ordered + */ + int STRING_TO_ADDRESS_REFERENCE_MAP__KEY = 0; + + /** + * The feature id for the 'Value' reference. + * + * @generated + * @ordered + */ + int STRING_TO_ADDRESS_REFERENCE_MAP__VALUE = 1; + + /** + * The number of structural features of the 'String To Address Reference Map' class. + * + * + * @generated + * @ordered + */ + int STRING_TO_ADDRESS_REFERENCE_MAP_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.EObjectToEObjectMapImpl EObject To EObject Map}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.EObjectToEObjectMapImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getEObjectToEObjectMap() + * @generated + */ + int EOBJECT_TO_EOBJECT_MAP = 15; + + /** + * The feature id for the 'Key' reference. + * + * @generated + * @ordered + */ + int EOBJECT_TO_EOBJECT_MAP__KEY = 0; + + /** + * The feature id for the 'Value' reference. + * + * @generated + * @ordered + */ + int EOBJECT_TO_EOBJECT_MAP__VALUE = 1; + + /** + * The number of structural features of the 'EObject To EObject Map' class. + * + * @generated + * @ordered + */ + int EOBJECT_TO_EOBJECT_MAP_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.EObjectToEObjectKeyContainedMapImpl EObject To EObject Key Contained Map}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.EObjectToEObjectKeyContainedMapImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getEObjectToEObjectKeyContainedMap() + * @generated + */ + int EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP = 16; + + /** + * The feature id for the 'Key' containment reference. + * + * @generated + * @ordered + */ + int EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY = 0; + + /** + * The feature id for the 'Value' reference. + * + * @generated + * @ordered + */ + int EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE = 1; + + /** + * The number of structural features of the 'EObject To EObject Key Contained Map' class. + * + * @generated + * @ordered + */ + int EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.EObjectToEObjectBothContainedMapImpl EObject To EObject Both Contained Map}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.EObjectToEObjectBothContainedMapImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getEObjectToEObjectBothContainedMap() + * @generated + */ + int EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP = 17; + + /** + * The feature id for the 'Key' containment reference. + * + * @generated + * @ordered + */ + int EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY = 0; + + /** + * The feature id for the 'Value' containment reference. + * + * @generated + * @ordered + */ + int EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE = 1; + + /** + * The number of structural features of the 'EObject To EObject Both Contained Map' class. + * + * @generated + * @ordered + */ + int EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.EObjectToEObjectValueContainedMapImpl EObject To EObject Value Contained Map}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.EObjectToEObjectValueContainedMapImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getEObjectToEObjectValueContainedMap() + * @generated + */ + int EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP = 18; + + /** + * The feature id for the 'Key' reference. + * + * @generated + * @ordered + */ + int EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY = 0; + + /** + * The feature id for the 'Value' containment reference. + * + * @generated + * @ordered + */ + int EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE = 1; + + /** + * The number of structural features of the 'EObject To EObject Value Contained Map' class. + * + * @generated + * @ordered + */ + int EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.EnumListHolderImpl Enum List Holder}' class. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.EnumListHolderImpl + * @see org.eclipse.emf.cdo.tests.model2.legacy.impl.Model2PackageImpl#getEnumListHolder() + * @generated + */ + int ENUM_LIST_HOLDER = 19; + + /** + * The feature id for the 'Enum List' attribute list. + * + * @generated + * @ordered + */ + int ENUM_LIST_HOLDER__ENUM_LIST = 0; + + /** + * The number of structural features of the 'Enum List Holder' class. + * + * @generated + * @ordered + */ + int ENUM_LIST_HOLDER_FEATURE_COUNT = 1; + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder Special Purchase Order}'. + * + * @return the meta object for class 'Special Purchase Order'. + * @see org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder + * @generated + */ + EClass getSpecialPurchaseOrder(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.SpecialPurchaseOrder#getDiscountCode Discount Code}'. + * + * @return the meta object for the attribute 'Discount Code'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.SpecialPurchaseOrder#getDiscountCode() + * @see #getSpecialPurchaseOrder() + * @generated + */ + EAttribute getSpecialPurchaseOrder_DiscountCode(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder#getShippingAddress Shipping Address}'. + * + * @return the meta object for the containment reference 'Shipping Address'. + * @see org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder#getShippingAddress() + * @see #getSpecialPurchaseOrder() + * @generated + */ + EReference getSpecialPurchaseOrder_ShippingAddress(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.TaskContainer Task Container}'. + * + * @return the meta object for class 'Task Container'. + * @see org.eclipse.emf.cdo.tests.model2.TaskContainer + * @generated + */ + EClass getTaskContainer(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model2.TaskContainer#getTasks Tasks}'. + * + * + * @return the meta object for the containment reference list 'Tasks'. + * @see org.eclipse.emf.cdo.tests.model2.TaskContainer#getTasks() + * @see #getTaskContainer() + * @generated + */ + EReference getTaskContainer_Tasks(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.Task Task}'. + * + * @return the meta object for class 'Task'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.Task + * @generated + */ + EClass getTask(); + + /** + * Returns the meta object for the container reference '{@link org.eclipse.emf.cdo.tests.model2.Task#getTaskContainer Task Container}'. + * + * @return the meta object for the container reference 'Task Container'. + * @see org.eclipse.emf.cdo.tests.model2.Task#getTaskContainer() + * @see #getTask() + * @generated + */ + EReference getTask_TaskContainer(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Task#getDescription Description}'. + * + * @return the meta object for the attribute 'Description'. + * @see org.eclipse.emf.cdo.tests.model2.Task#getDescription() + * @see #getTask() + * @generated + */ + EAttribute getTask_Description(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Task#isDone Done}'. + * + * @return the meta object for the attribute 'Done'. + * @see org.eclipse.emf.cdo.tests.model2.Task#isDone() + * @see #getTask() + * @generated + */ + EAttribute getTask_Done(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1 Unsettable1}'. + * + * @return the meta object for class 'Unsettable1'. + * @see org.eclipse.emf.cdo.tests.model2.Unsettable1 + * @generated + */ + EClass getUnsettable1(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#isUnsettableBoolean Unsettable Boolean}'. + * + * @return the meta object for the attribute 'Unsettable Boolean'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#isUnsettableBoolean() + * @see #getUnsettable1() + * @generated + */ + EAttribute getUnsettable1_UnsettableBoolean(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableByte Unsettable Byte}'. + * + * @return the meta object for the attribute 'Unsettable Byte'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableByte() + * @see #getUnsettable1() + * @generated + */ + EAttribute getUnsettable1_UnsettableByte(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableChar Unsettable Char}'. + * + * @return the meta object for the attribute 'Unsettable Char'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableChar() + * @see #getUnsettable1() + * @generated + */ + EAttribute getUnsettable1_UnsettableChar(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableDate Unsettable Date}'. + * + * @return the meta object for the attribute 'Unsettable Date'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableDate() + * @see #getUnsettable1() + * @generated + */ + EAttribute getUnsettable1_UnsettableDate(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableDouble Unsettable Double}'. + * + * @return the meta object for the attribute 'Unsettable Double'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableDouble() + * @see #getUnsettable1() + * @generated + */ + EAttribute getUnsettable1_UnsettableDouble(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableFloat Unsettable Float}'. + * + * @return the meta object for the attribute 'Unsettable Float'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableFloat() + * @see #getUnsettable1() + * @generated + */ + EAttribute getUnsettable1_UnsettableFloat(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableInt Unsettable Int}'. + * + * @return the meta object for the attribute 'Unsettable Int'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableInt() + * @see #getUnsettable1() + * @generated + */ + EAttribute getUnsettable1_UnsettableInt(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableLong Unsettable Long}'. + * + * @return the meta object for the attribute 'Unsettable Long'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableLong() + * @see #getUnsettable1() + * @generated + */ + EAttribute getUnsettable1_UnsettableLong(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableShort Unsettable Short}'. + * + * @return the meta object for the attribute 'Unsettable Short'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableShort() + * @see #getUnsettable1() + * @generated + */ + EAttribute getUnsettable1_UnsettableShort(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableString Unsettable String}'. + * + * @return the meta object for the attribute 'Unsettable String'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableString() + * @see #getUnsettable1() + * @generated + */ + EAttribute getUnsettable1_UnsettableString(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableVAT Unsettable VAT}'. + * + * @return the meta object for the attribute 'Unsettable VAT'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableVAT() + * @see #getUnsettable1() + * @generated + */ + EAttribute getUnsettable1_UnsettableVAT(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault Unsettable2 With Default}'. + * + * @return the meta object for class 'Unsettable2 With Default'. + * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault + * @generated + */ + EClass getUnsettable2WithDefault(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#isUnsettableBoolean Unsettable Boolean}'. + * + * @return the meta object for the attribute 'Unsettable Boolean'. + * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#isUnsettableBoolean() + * @see #getUnsettable2WithDefault() + * @generated + */ + EAttribute getUnsettable2WithDefault_UnsettableBoolean(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableByte Unsettable Byte}'. + * + * @return the meta object for the attribute 'Unsettable Byte'. + * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableByte() + * @see #getUnsettable2WithDefault() + * @generated + */ + EAttribute getUnsettable2WithDefault_UnsettableByte(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableChar Unsettable Char}'. + * + * @return the meta object for the attribute 'Unsettable Char'. + * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableChar() + * @see #getUnsettable2WithDefault() + * @generated + */ + EAttribute getUnsettable2WithDefault_UnsettableChar(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDate Unsettable Date}'. + * + * @return the meta object for the attribute 'Unsettable Date'. + * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDate() + * @see #getUnsettable2WithDefault() + * @generated + */ + EAttribute getUnsettable2WithDefault_UnsettableDate(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDouble Unsettable Double}'. + * + * @return the meta object for the attribute 'Unsettable Double'. + * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableDouble() + * @see #getUnsettable2WithDefault() + * @generated + */ + EAttribute getUnsettable2WithDefault_UnsettableDouble(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableFloat Unsettable Float}'. + * + * @return the meta object for the attribute 'Unsettable Float'. + * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableFloat() + * @see #getUnsettable2WithDefault() + * @generated + */ + EAttribute getUnsettable2WithDefault_UnsettableFloat(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableInt Unsettable Int}'. + * + * @return the meta object for the attribute 'Unsettable Int'. + * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableInt() + * @see #getUnsettable2WithDefault() + * @generated + */ + EAttribute getUnsettable2WithDefault_UnsettableInt(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableLong Unsettable Long}'. + * + * @return the meta object for the attribute 'Unsettable Long'. + * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableLong() + * @see #getUnsettable2WithDefault() + * @generated + */ + EAttribute getUnsettable2WithDefault_UnsettableLong(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableShort Unsettable Short}'. + * + * @return the meta object for the attribute 'Unsettable Short'. + * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableShort() + * @see #getUnsettable2WithDefault() + * @generated + */ + EAttribute getUnsettable2WithDefault_UnsettableShort(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableString Unsettable String}'. + * + * @return the meta object for the attribute 'Unsettable String'. + * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableString() + * @see #getUnsettable2WithDefault() + * @generated + */ + EAttribute getUnsettable2WithDefault_UnsettableString(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableVAT Unsettable VAT}'. + * + * @return the meta object for the attribute 'Unsettable VAT'. + * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault#getUnsettableVAT() + * @see #getUnsettable2WithDefault() + * @generated + */ + EAttribute getUnsettable2WithDefault_UnsettableVAT(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.PersistentContainment Persistent Containment}'. + * + * @return the meta object for class 'Persistent Containment'. + * @see org.eclipse.emf.cdo.tests.model2.PersistentContainment + * @generated + */ + EClass getPersistentContainment(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getAttrBefore Attr Before}'. + * + * @return the meta object for the attribute 'Attr Before'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getAttrBefore() + * @see #getPersistentContainment() + * @generated + */ + EAttribute getPersistentContainment_AttrBefore(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getChildren Children}'. + * + * @return the meta object for the containment reference list 'Children'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getChildren() + * @see #getPersistentContainment() + * @generated + */ + EReference getPersistentContainment_Children(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getAttrAfter Attr After}'. + * + * @return the meta object for the attribute 'Attr After'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getAttrAfter() + * @see #getPersistentContainment() + * @generated + */ + EAttribute getPersistentContainment_AttrAfter(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer Transient Container}'. + * + * @return the meta object for class 'Transient Container'. + * @see org.eclipse.emf.cdo.tests.model2.TransientContainer + * @generated + */ + EClass getTransientContainer(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer#getAttrBefore Attr Before}'. + * + * @return the meta object for the attribute 'Attr Before'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer#getAttrBefore() + * @see #getTransientContainer() + * @generated + */ + EAttribute getTransientContainer_AttrBefore(); + + /** + * Returns the meta object for the container reference '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer#getParent Parent}'. + * + * @return the meta object for the container reference 'Parent'. + * @see org.eclipse.emf.cdo.tests.model2.TransientContainer#getParent() + * @see #getTransientContainer() + * @generated + */ + EReference getTransientContainer_Parent(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer#getAttrAfter Attr After}'. + * + * @return the meta object for the attribute 'Attr After'. + * @see org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer#getAttrAfter() + * @see #getTransientContainer() + * @generated + */ + EAttribute getTransientContainer_AttrAfter(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable Not Unsettable}'. + * + * @return the meta object for class 'Not Unsettable'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettable + * @generated + */ + EClass getNotUnsettable(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#isNotUnsettableBoolean Not Unsettable Boolean}'. + * + * @return the meta object for the attribute 'Not Unsettable Boolean'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettable#isNotUnsettableBoolean() + * @see #getNotUnsettable() + * @generated + */ + EAttribute getNotUnsettable_NotUnsettableBoolean(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableByte Not Unsettable Byte}'. + * + * @return the meta object for the attribute 'Not Unsettable Byte'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableByte() + * @see #getNotUnsettable() + * @generated + */ + EAttribute getNotUnsettable_NotUnsettableByte(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableChar Not Unsettable Char}'. + * + * @return the meta object for the attribute 'Not Unsettable Char'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableChar() + * @see #getNotUnsettable() + * @generated + */ + EAttribute getNotUnsettable_NotUnsettableChar(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableDate Not Unsettable Date}'. + * + * @return the meta object for the attribute 'Not Unsettable Date'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableDate() + * @see #getNotUnsettable() + * @generated + */ + EAttribute getNotUnsettable_NotUnsettableDate(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableDouble Not Unsettable Double}'. + * + * @return the meta object for the attribute 'Not Unsettable Double'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableDouble() + * @see #getNotUnsettable() + * @generated + */ + EAttribute getNotUnsettable_NotUnsettableDouble(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableFloat Not Unsettable Float}'. + * + * @return the meta object for the attribute 'Not Unsettable Float'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableFloat() + * @see #getNotUnsettable() + * @generated + */ + EAttribute getNotUnsettable_NotUnsettableFloat(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableInt Not Unsettable Int}'. + * + * @return the meta object for the attribute 'Not Unsettable Int'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableInt() + * @see #getNotUnsettable() + * @generated + */ + EAttribute getNotUnsettable_NotUnsettableInt(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableLong Not Unsettable Long}'. + * + * @return the meta object for the attribute 'Not Unsettable Long'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableLong() + * @see #getNotUnsettable() + * @generated + */ + EAttribute getNotUnsettable_NotUnsettableLong(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableShort Not Unsettable Short}'. + * + * @return the meta object for the attribute 'Not Unsettable Short'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableShort() + * @see #getNotUnsettable() + * @generated + */ + EAttribute getNotUnsettable_NotUnsettableShort(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableString Not Unsettable String}'. + * + * @return the meta object for the attribute 'Not Unsettable String'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableString() + * @see #getNotUnsettable() + * @generated + */ + EAttribute getNotUnsettable_NotUnsettableString(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableVAT Not Unsettable VAT}'. + * + * @return the meta object for the attribute 'Not Unsettable VAT'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettable#getNotUnsettableVAT() + * @see #getNotUnsettable() + * @generated + */ + EAttribute getNotUnsettable_NotUnsettableVAT(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault Not Unsettable With Default}'. + * + * @return the meta object for class 'Not Unsettable With Default'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault + * @generated + */ + EClass getNotUnsettableWithDefault(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#isNotUnsettableBoolean Not Unsettable Boolean}'. + * + * @return the meta object for the attribute 'Not Unsettable Boolean'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#isNotUnsettableBoolean() + * @see #getNotUnsettableWithDefault() + * @generated + */ + EAttribute getNotUnsettableWithDefault_NotUnsettableBoolean(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableByte Not Unsettable Byte}'. + * + * @return the meta object for the attribute 'Not Unsettable Byte'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableByte() + * @see #getNotUnsettableWithDefault() + * @generated + */ + EAttribute getNotUnsettableWithDefault_NotUnsettableByte(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableChar Not Unsettable Char}'. + * + * @return the meta object for the attribute 'Not Unsettable Char'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableChar() + * @see #getNotUnsettableWithDefault() + * @generated + */ + EAttribute getNotUnsettableWithDefault_NotUnsettableChar(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDate Not Unsettable Date}'. + * + * @return the meta object for the attribute 'Not Unsettable Date'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDate() + * @see #getNotUnsettableWithDefault() + * @generated + */ + EAttribute getNotUnsettableWithDefault_NotUnsettableDate(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDouble Not Unsettable Double}'. + * + * @return the meta object for the attribute 'Not Unsettable Double'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableDouble() + * @see #getNotUnsettableWithDefault() + * @generated + */ + EAttribute getNotUnsettableWithDefault_NotUnsettableDouble(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableFloat Not Unsettable Float}'. + * + * @return the meta object for the attribute 'Not Unsettable Float'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableFloat() + * @see #getNotUnsettableWithDefault() + * @generated + */ + EAttribute getNotUnsettableWithDefault_NotUnsettableFloat(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableInt Not Unsettable Int}'. + * + * @return the meta object for the attribute 'Not Unsettable Int'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableInt() + * @see #getNotUnsettableWithDefault() + * @generated + */ + EAttribute getNotUnsettableWithDefault_NotUnsettableInt(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableLong Not Unsettable Long}'. + * + * @return the meta object for the attribute 'Not Unsettable Long'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableLong() + * @see #getNotUnsettableWithDefault() + * @generated + */ + EAttribute getNotUnsettableWithDefault_NotUnsettableLong(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableShort Not Unsettable Short}'. + * + * @return the meta object for the attribute 'Not Unsettable Short'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableShort() + * @see #getNotUnsettableWithDefault() + * @generated + */ + EAttribute getNotUnsettableWithDefault_NotUnsettableShort(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableString Not Unsettable String}'. + * + * @return the meta object for the attribute 'Not Unsettable String'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableString() + * @see #getNotUnsettableWithDefault() + * @generated + */ + EAttribute getNotUnsettableWithDefault_NotUnsettableString(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableVAT Not Unsettable VAT}'. + * + * @return the meta object for the attribute 'Not Unsettable VAT'. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault#getNotUnsettableVAT() + * @see #getNotUnsettableWithDefault() + * @generated + */ + EAttribute getNotUnsettableWithDefault_NotUnsettableVAT(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.MapHolder Map Holder}'. + * + * @return the meta object for class 'Map Holder'. + * @see org.eclipse.emf.cdo.tests.model2.MapHolder + * @generated + */ + EClass getMapHolder(); + + /** + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getIntegerToStringMap Integer To String Map}'. + * + * @return the meta object for the map 'Integer To String Map'. + * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getIntegerToStringMap() + * @see #getMapHolder() + * @generated + */ + EReference getMapHolder_IntegerToStringMap(); + + /** + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToStringMap String To String Map}'. + * + * @return the meta object for the map 'String To String Map'. + * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToStringMap() + * @see #getMapHolder() + * @generated + */ + EReference getMapHolder_StringToStringMap(); + + /** + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToVATMap String To VAT Map}'. + * + * @return the meta object for the map 'String To VAT Map'. + * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToVATMap() + * @see #getMapHolder() + * @generated + */ + EReference getMapHolder_StringToVATMap(); + + /** + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToAddressContainmentMap String To Address Containment Map}'. + * + * @return the meta object for the map 'String To Address Containment Map'. + * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToAddressContainmentMap() + * @see #getMapHolder() + * @generated + */ + EReference getMapHolder_StringToAddressContainmentMap(); + + /** + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToAddressReferenceMap String To Address Reference Map}'. + * + * @return the meta object for the map 'String To Address Reference Map'. + * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getStringToAddressReferenceMap() + * @see #getMapHolder() + * @generated + */ + EReference getMapHolder_StringToAddressReferenceMap(); + + /** + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectMap EObject To EObject Map}'. + * + * @return the meta object for the map 'EObject To EObject Map'. + * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectMap() + * @see #getMapHolder() + * @generated + */ + EReference getMapHolder_EObjectToEObjectMap(); + + /** + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectKeyContainedMap EObject To EObject Key Contained Map}'. + * + * @return the meta object for the map 'EObject To EObject Key Contained Map'. + * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectKeyContainedMap() + * @see #getMapHolder() + * @generated + */ + EReference getMapHolder_EObjectToEObjectKeyContainedMap(); + + /** + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectBothContainedMap EObject To EObject Both Contained Map}'. + * + * @return the meta object for the map 'EObject To EObject Both Contained Map'. + * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectBothContainedMap() + * @see #getMapHolder() + * @generated + */ + EReference getMapHolder_EObjectToEObjectBothContainedMap(); + + /** + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectValueContainedMap EObject To EObject Value Contained Map}'. + * + * @return the meta object for the map 'EObject To EObject Value Contained Map'. + * @see org.eclipse.emf.cdo.tests.model2.MapHolder#getEObjectToEObjectValueContainedMap() + * @see #getMapHolder() + * @generated + */ + EReference getMapHolder_EObjectToEObjectValueContainedMap(); + + /** + * Returns the meta object for class '{@link java.util.Map.Entry String To String Map}'. + * + * @return the meta object for class 'String To String Map'. + * @see java.util.Map.Entry + * @model keyDataType="org.eclipse.emf.ecore.EString" + * valueDataType="org.eclipse.emf.ecore.EString" + * @generated + */ + EClass getStringToStringMap(); + + /** + * Returns the meta object for the attribute '{@link java.util.Map.Entry Key}'. + * + * @return the meta object for the attribute 'Key'. + * @see java.util.Map.Entry + * @see #getStringToStringMap() + * @generated + */ + EAttribute getStringToStringMap_Key(); + + /** + * Returns the meta object for the attribute '{@link java.util.Map.Entry Value}'. + * + * + * @return the meta object for the attribute 'Value'. + * @see java.util.Map.Entry + * @see #getStringToStringMap() + * @generated + */ + EAttribute getStringToStringMap_Value(); + + /** + * Returns the meta object for class '{@link java.util.Map.Entry Integer To String Map}'. + * + * @return the meta object for class 'Integer To String Map'. + * @see java.util.Map.Entry + * @model keyDataType="org.eclipse.emf.ecore.EIntegerObject" + * valueDataType="org.eclipse.emf.ecore.EString" + * @generated + */ + EClass getIntegerToStringMap(); + + /** + * Returns the meta object for the attribute '{@link java.util.Map.Entry Key}'. + * + * @return the meta object for the attribute 'Key'. + * @see java.util.Map.Entry + * @see #getIntegerToStringMap() + * @generated + */ + EAttribute getIntegerToStringMap_Key(); + + /** + * Returns the meta object for the attribute '{@link java.util.Map.Entry Value}'. + * + * + * @return the meta object for the attribute 'Value'. + * @see java.util.Map.Entry + * @see #getIntegerToStringMap() + * @generated + */ + EAttribute getIntegerToStringMap_Value(); + + /** + * Returns the meta object for class '{@link java.util.Map.Entry String To VAT Map}'. + * + * + * @return the meta object for class 'String To VAT Map'. + * @see java.util.Map.Entry + * @model keyDataType="org.eclipse.emf.ecore.EString" + * valueDataType="org.eclipse.emf.cdo.tests.model1.VAT" + * @generated + */ + EClass getStringToVATMap(); + + /** + * Returns the meta object for the attribute '{@link java.util.Map.Entry Key}'. + * + * @return the meta object for the attribute 'Key'. + * @see java.util.Map.Entry + * @see #getStringToVATMap() + * @generated + */ + EAttribute getStringToVATMap_Key(); + + /** + * Returns the meta object for the attribute '{@link java.util.Map.Entry Value}'. + * + * + * @return the meta object for the attribute 'Value'. + * @see java.util.Map.Entry + * @see #getStringToVATMap() + * @generated + */ + EAttribute getStringToVATMap_Value(); + + /** + * Returns the meta object for class '{@link java.util.Map.Entry String To Address Containment Map}'. + * + * @return the meta object for class 'String To Address Containment Map'. + * @see java.util.Map.Entry + * @model keyDataType="org.eclipse.emf.ecore.EString" valueType="org.eclipse.emf.cdo.tests.legacy.model1.Address" + * valueContainment="true" + * @generated + */ + EClass getStringToAddressContainmentMap(); + + /** + * Returns the meta object for the attribute '{@link java.util.Map.Entry Key}'. + * + * @return the meta object for the attribute 'Key'. + * @see java.util.Map.Entry + * @see #getStringToAddressContainmentMap() + * @generated + */ + EAttribute getStringToAddressContainmentMap_Key(); + + /** + * Returns the meta object for the containment reference '{@link java.util.Map.Entry Value}'. + * + * @return the meta object for the containment reference 'Value'. + * @see java.util.Map.Entry + * @see #getStringToAddressContainmentMap() + * @generated + */ + EReference getStringToAddressContainmentMap_Value(); + + /** + * Returns the meta object for class '{@link java.util.Map.Entry String To Address Reference Map}'. + * + * @return the meta object for class 'String To Address Reference Map'. + * @see java.util.Map.Entry + * @model keyDataType="org.eclipse.emf.ecore.EString" valueType="org.eclipse.emf.cdo.tests.legacy.model1.Address" + * @generated + */ + EClass getStringToAddressReferenceMap(); + + /** + * Returns the meta object for the attribute '{@link java.util.Map.Entry Key}'. + * + * @return the meta object for the attribute 'Key'. + * @see java.util.Map.Entry + * @see #getStringToAddressReferenceMap() + * @generated + */ + EAttribute getStringToAddressReferenceMap_Key(); + + /** + * Returns the meta object for the reference '{@link java.util.Map.Entry Value}'. + * + * + * @return the meta object for the reference 'Value'. + * @see java.util.Map.Entry + * @see #getStringToAddressReferenceMap() + * @generated + */ + EReference getStringToAddressReferenceMap_Value(); + + /** + * Returns the meta object for class '{@link java.util.Map.Entry EObject To EObject Map}'. + * + * @return the meta object for class 'EObject To EObject Map'. + * @see java.util.Map.Entry + * @model keyType="org.eclipse.emf.ecore.EObject" valueType="org.eclipse.emf.ecore.EObject" + * @generated + */ + EClass getEObjectToEObjectMap(); + + /** + * Returns the meta object for the reference '{@link java.util.Map.Entry Key}'. + * + * @return the meta object for the reference 'Key'. + * @see java.util.Map.Entry + * @see #getEObjectToEObjectMap() + * @generated + */ + EReference getEObjectToEObjectMap_Key(); + + /** + * Returns the meta object for the reference '{@link java.util.Map.Entry Value}'. + * + * + * @return the meta object for the reference 'Value'. + * @see java.util.Map.Entry + * @see #getEObjectToEObjectMap() + * @generated + */ + EReference getEObjectToEObjectMap_Value(); + + /** + * Returns the meta object for class '{@link java.util.Map.Entry EObject To EObject Key Contained Map}'. + * + * @return the meta object for class 'EObject To EObject Key Contained Map'. + * @see java.util.Map.Entry + * @model keyType="org.eclipse.emf.ecore.EObject" keyContainment="true" valueType="org.eclipse.emf.ecore.EObject" + * @generated + */ + EClass getEObjectToEObjectKeyContainedMap(); + + /** + * Returns the meta object for the containment reference '{@link java.util.Map.Entry Key}'. + * + * @return the meta object for the containment reference 'Key'. + * @see java.util.Map.Entry + * @see #getEObjectToEObjectKeyContainedMap() + * @generated + */ + EReference getEObjectToEObjectKeyContainedMap_Key(); + + /** + * Returns the meta object for the reference '{@link java.util.Map.Entry Value}'. + * + * + * @return the meta object for the reference 'Value'. + * @see java.util.Map.Entry + * @see #getEObjectToEObjectKeyContainedMap() + * @generated + */ + EReference getEObjectToEObjectKeyContainedMap_Value(); + + /** + * Returns the meta object for class '{@link java.util.Map.Entry EObject To EObject Both Contained Map}'. + * + * @return the meta object for class 'EObject To EObject Both Contained Map'. + * @see java.util.Map.Entry + * @model keyType="org.eclipse.emf.ecore.EObject" keyContainment="true" + * valueType="org.eclipse.emf.ecore.EObject" valueContainment="true" + * @generated + */ + EClass getEObjectToEObjectBothContainedMap(); + + /** + * Returns the meta object for the containment reference '{@link java.util.Map.Entry Key}'. + * + * @return the meta object for the containment reference 'Key'. + * @see java.util.Map.Entry + * @see #getEObjectToEObjectBothContainedMap() + * @generated + */ + EReference getEObjectToEObjectBothContainedMap_Key(); + + /** + * Returns the meta object for the containment reference '{@link java.util.Map.Entry Value}'. + * + * @return the meta object for the containment reference 'Value'. + * @see java.util.Map.Entry + * @see #getEObjectToEObjectBothContainedMap() + * @generated + */ + EReference getEObjectToEObjectBothContainedMap_Value(); + + /** + * Returns the meta object for class '{@link java.util.Map.Entry EObject To EObject Value Contained Map}'. + * + * @return the meta object for class 'EObject To EObject Value Contained Map'. + * @see java.util.Map.Entry + * @model keyType="org.eclipse.emf.ecore.EObject" + * valueType="org.eclipse.emf.ecore.EObject" valueContainment="true" + * @generated + */ + EClass getEObjectToEObjectValueContainedMap(); + + /** + * Returns the meta object for the reference '{@link java.util.Map.Entry Key}'. + * + * @return the meta object for the reference 'Key'. + * @see java.util.Map.Entry + * @see #getEObjectToEObjectValueContainedMap() + * @generated + */ + EReference getEObjectToEObjectValueContainedMap_Key(); + + /** + * Returns the meta object for the containment reference '{@link java.util.Map.Entry Value}'. + * + * @return the meta object for the containment reference 'Value'. + * @see java.util.Map.Entry + * @see #getEObjectToEObjectValueContainedMap() + * @generated + */ + EReference getEObjectToEObjectValueContainedMap_Value(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.EnumListHolder Enum List Holder}'. + * + * @return the meta object for class 'Enum List Holder'. + * @see org.eclipse.emf.cdo.tests.model2.EnumListHolder + * @generated + */ + EClass getEnumListHolder(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model2.EnumListHolder#getEnumList Enum List}'. + * + * @return the meta object for the attribute list 'Enum List'. + * @see org.eclipse.emf.cdo.tests.model2.EnumListHolder#getEnumList() + * @see #getEnumListHolder() + * @generated + */ + EAttribute getEnumListHolder_EnumList(); + + /** + * Returns the factory that creates the instances of the model. + * + * @return the factory that creates the instances of the model. + * @generated + */ + Model2Factory getModel2Factory(); + +} // Model2Package diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EObjectToEObjectBothContainedMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EObjectToEObjectBothContainedMapImpl.java new file mode 100644 index 0000000000..e06a4a4415 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EObjectToEObjectBothContainedMapImpl.java @@ -0,0 +1,354 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + * + * $Id: EObjectToEObjectBothContainedMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.BasicEMap; +import org.eclipse.emf.common.util.EMap; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +/** + * An implementation of the model object 'EObject To EObject Both Contained Map + * '. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.EObjectToEObjectBothContainedMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.EObjectToEObjectBothContainedMapImpl#getTypedValue Value}
    • + *
    + *

    + * + * @generated + */ +public class EObjectToEObjectBothContainedMapImpl extends EObjectImpl implements BasicEMap.Entry +{ + /** + * The cached value of the '{@link #getTypedKey() Key}' containment reference. + * + * @see #getTypedKey() + * @generated + * @ordered + */ + protected EObject key; + + /** + * The cached value of the '{@link #getTypedValue() Value}' containment reference. + * + * + * @see #getTypedValue() + * @generated + * @ordered + */ + protected EObject value; + + /** + * + * @generated + */ + protected EObjectToEObjectBothContainedMapImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getEObjectToEObjectBothContainedMap(); + } + + /** + * + * @generated + */ + public EObject getTypedKey() + { + return key; + } + + /** + * + * @generated + */ + public NotificationChain basicSetTypedKey(EObject newKey, NotificationChain msgs) + { + EObject oldKey = key; + key = newKey; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, + Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY, oldKey, newKey); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setTypedKey(EObject newKey) + { + if (newKey != key) + { + NotificationChain msgs = null; + if (key != null) + msgs = ((InternalEObject)key).eInverseRemove(this, EOPPOSITE_FEATURE_BASE + - Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY, null, msgs); + if (newKey != null) + msgs = ((InternalEObject)newKey).eInverseAdd(this, EOPPOSITE_FEATURE_BASE + - Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY, null, msgs); + msgs = basicSetTypedKey(newKey, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY, + newKey, newKey)); + } + + /** + * + * @generated + */ + public EObject getTypedValue() + { + return value; + } + + /** + * + * @generated + */ + public NotificationChain basicSetTypedValue(EObject newValue, NotificationChain msgs) + { + EObject oldValue = value; + value = newValue; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, + Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE, oldValue, newValue); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setTypedValue(EObject newValue) + { + if (newValue != value) + { + NotificationChain msgs = null; + if (value != null) + msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE + - Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE, null, msgs); + if (newValue != null) + msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE + - Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE, null, msgs); + msgs = basicSetTypedValue(newValue, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE, + newValue, newValue)); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY: + return basicSetTypedKey(null, msgs); + case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE: + return basicSetTypedValue(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY: + return getTypedKey(); + case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE: + return getTypedValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY: + setTypedKey((EObject)newValue); + return; + case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE: + setTypedValue((EObject)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY: + setTypedKey((EObject)null); + return; + case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE: + setTypedValue((EObject)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY: + return key != null; + case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE: + return value != null; + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + protected int hash = -1; + + /** + * + * @generated + */ + public int getHash() + { + if (hash == -1) + { + Object theKey = getKey(); + hash = (theKey == null ? 0 : theKey.hashCode()); + } + return hash; + } + + /** + * + * @generated + */ + public void setHash(int hash) + { + this.hash = hash; + } + + /** + * + * @generated + */ + public EObject getKey() + { + return getTypedKey(); + } + + /** + * + * @generated + */ + public void setKey(EObject key) + { + setTypedKey(key); + } + + /** + * + * @generated + */ + public EObject getValue() + { + return getTypedValue(); + } + + /** + * + * @generated + */ + public EObject setValue(EObject value) + { + EObject oldValue = getValue(); + setTypedValue(value); + return oldValue; + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + public EMap getEMap() + { + EObject container = eContainer(); + return container == null ? null : (EMap)container.eGet(eContainmentFeature()); + } + +} // EObjectToEObjectBothContainedMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EObjectToEObjectKeyContainedMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EObjectToEObjectKeyContainedMapImpl.java new file mode 100644 index 0000000000..bd6da9bc68 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EObjectToEObjectKeyContainedMapImpl.java @@ -0,0 +1,343 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + * + * $Id: EObjectToEObjectKeyContainedMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.BasicEMap; +import org.eclipse.emf.common.util.EMap; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +/** + * An implementation of the model object 'EObject To EObject Key Contained Map'. + * + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.EObjectToEObjectKeyContainedMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.EObjectToEObjectKeyContainedMapImpl#getTypedValue Value}
    • + *
    + *

    + * + * @generated + */ +public class EObjectToEObjectKeyContainedMapImpl extends EObjectImpl implements BasicEMap.Entry +{ + /** + * The cached value of the '{@link #getTypedKey() Key}' containment reference. + * + * @see #getTypedKey() + * @generated + * @ordered + */ + protected EObject key; + + /** + * The cached value of the '{@link #getTypedValue() Value}' reference. + * + * @see #getTypedValue() + * @generated + * @ordered + */ + protected EObject value; + + /** + * + * @generated + */ + protected EObjectToEObjectKeyContainedMapImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getEObjectToEObjectKeyContainedMap(); + } + + /** + * + * @generated + */ + public EObject getTypedKey() + { + return key; + } + + /** + * + * @generated + */ + public NotificationChain basicSetTypedKey(EObject newKey, NotificationChain msgs) + { + EObject oldKey = key; + key = newKey; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, + Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY, oldKey, newKey); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setTypedKey(EObject newKey) + { + if (newKey != key) + { + NotificationChain msgs = null; + if (key != null) + msgs = ((InternalEObject)key).eInverseRemove(this, EOPPOSITE_FEATURE_BASE + - Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY, null, msgs); + if (newKey != null) + msgs = ((InternalEObject)newKey).eInverseAdd(this, EOPPOSITE_FEATURE_BASE + - Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY, null, msgs); + msgs = basicSetTypedKey(newKey, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY, + newKey, newKey)); + } + + /** + * + * @generated + */ + public EObject getTypedValue() + { + if (value != null && value.eIsProxy()) + { + InternalEObject oldValue = (InternalEObject)value; + value = eResolveProxy(oldValue); + if (value != oldValue) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE, oldValue, value)); + } + } + return value; + } + + /** + * + * @generated + */ + public EObject basicGetTypedValue() + { + return value; + } + + /** + * + * @generated + */ + public void setTypedValue(EObject newValue) + { + EObject oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE, + oldValue, value)); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY: + return basicSetTypedKey(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY: + return getTypedKey(); + case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE: + if (resolve) + return getTypedValue(); + return basicGetTypedValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY: + setTypedKey((EObject)newValue); + return; + case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE: + setTypedValue((EObject)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY: + setTypedKey((EObject)null); + return; + case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE: + setTypedValue((EObject)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY: + return key != null; + case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE: + return value != null; + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + protected int hash = -1; + + /** + * + * @generated + */ + public int getHash() + { + if (hash == -1) + { + Object theKey = getKey(); + hash = (theKey == null ? 0 : theKey.hashCode()); + } + return hash; + } + + /** + * + * @generated + */ + public void setHash(int hash) + { + this.hash = hash; + } + + /** + * + * @generated + */ + public EObject getKey() + { + return getTypedKey(); + } + + /** + * + * @generated + */ + public void setKey(EObject key) + { + setTypedKey(key); + } + + /** + * + * @generated + */ + public EObject getValue() + { + return getTypedValue(); + } + + /** + * + * @generated + */ + public EObject setValue(EObject value) + { + EObject oldValue = getValue(); + setTypedValue(value); + return oldValue; + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + public EMap getEMap() + { + EObject container = eContainer(); + return container == null ? null : (EMap)container.eGet(eContainmentFeature()); + } + +} // EObjectToEObjectKeyContainedMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EObjectToEObjectMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EObjectToEObjectMapImpl.java new file mode 100644 index 0000000000..fe421d4a69 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EObjectToEObjectMapImpl.java @@ -0,0 +1,317 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + * + * $Id: EObjectToEObjectMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.util.BasicEMap; +import org.eclipse.emf.common.util.EMap; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +/** + * An implementation of the model object 'EObject To EObject Map'. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.EObjectToEObjectMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.EObjectToEObjectMapImpl#getTypedValue Value}
    • + *
    + *

    + * + * @generated + */ +public class EObjectToEObjectMapImpl extends EObjectImpl implements BasicEMap.Entry +{ + /** + * The cached value of the '{@link #getTypedKey() Key}' reference. + * + * @see #getTypedKey() + * @generated + * @ordered + */ + protected EObject key; + + /** + * The cached value of the '{@link #getTypedValue() Value}' reference. + * + * @see #getTypedValue() + * @generated + * @ordered + */ + protected EObject value; + + /** + * + * @generated + */ + protected EObjectToEObjectMapImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getEObjectToEObjectMap(); + } + + /** + * + * @generated + */ + public EObject getTypedKey() + { + if (key != null && key.eIsProxy()) + { + InternalEObject oldKey = (InternalEObject)key; + key = eResolveProxy(oldKey); + if (key != oldKey) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model2Package.EOBJECT_TO_EOBJECT_MAP__KEY, oldKey, + key)); + } + } + return key; + } + + /** + * + * @generated + */ + public EObject basicGetTypedKey() + { + return key; + } + + /** + * + * @generated + */ + public void setTypedKey(EObject newKey) + { + EObject oldKey = key; + key = newKey; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.EOBJECT_TO_EOBJECT_MAP__KEY, oldKey, key)); + } + + /** + * + * @generated + */ + public EObject getTypedValue() + { + if (value != null && value.eIsProxy()) + { + InternalEObject oldValue = (InternalEObject)value; + value = eResolveProxy(oldValue); + if (value != oldValue) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model2Package.EOBJECT_TO_EOBJECT_MAP__VALUE, + oldValue, value)); + } + } + return value; + } + + /** + * + * @generated + */ + public EObject basicGetTypedValue() + { + return value; + } + + /** + * + * @generated + */ + public void setTypedValue(EObject newValue) + { + EObject oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.EOBJECT_TO_EOBJECT_MAP__VALUE, oldValue, + value)); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_MAP__KEY: + if (resolve) + return getTypedKey(); + return basicGetTypedKey(); + case Model2Package.EOBJECT_TO_EOBJECT_MAP__VALUE: + if (resolve) + return getTypedValue(); + return basicGetTypedValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_MAP__KEY: + setTypedKey((EObject)newValue); + return; + case Model2Package.EOBJECT_TO_EOBJECT_MAP__VALUE: + setTypedValue((EObject)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_MAP__KEY: + setTypedKey((EObject)null); + return; + case Model2Package.EOBJECT_TO_EOBJECT_MAP__VALUE: + setTypedValue((EObject)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_MAP__KEY: + return key != null; + case Model2Package.EOBJECT_TO_EOBJECT_MAP__VALUE: + return value != null; + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + protected int hash = -1; + + /** + * + * @generated + */ + public int getHash() + { + if (hash == -1) + { + Object theKey = getKey(); + hash = (theKey == null ? 0 : theKey.hashCode()); + } + return hash; + } + + /** + * + * @generated + */ + public void setHash(int hash) + { + this.hash = hash; + } + + /** + * + * @generated + */ + public EObject getKey() + { + return getTypedKey(); + } + + /** + * + * @generated + */ + public void setKey(EObject key) + { + setTypedKey(key); + } + + /** + * + * @generated + */ + public EObject getValue() + { + return getTypedValue(); + } + + /** + * + * @generated + */ + public EObject setValue(EObject value) + { + EObject oldValue = getValue(); + setTypedValue(value); + return oldValue; + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + public EMap getEMap() + { + EObject container = eContainer(); + return container == null ? null : (EMap)container.eGet(eContainmentFeature()); + } + +} // EObjectToEObjectMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EObjectToEObjectValueContainedMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EObjectToEObjectValueContainedMapImpl.java new file mode 100644 index 0000000000..854403c1b6 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EObjectToEObjectValueContainedMapImpl.java @@ -0,0 +1,343 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + * + * $Id: EObjectToEObjectValueContainedMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.BasicEMap; +import org.eclipse.emf.common.util.EMap; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +/** + * An implementation of the model object 'EObject To EObject Value Contained Map + * '. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.EObjectToEObjectValueContainedMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.EObjectToEObjectValueContainedMapImpl#getTypedValue Value}
    • + *
    + *

    + * + * @generated + */ +public class EObjectToEObjectValueContainedMapImpl extends EObjectImpl implements BasicEMap.Entry +{ + /** + * The cached value of the '{@link #getTypedKey() Key}' reference. + * + * @see #getTypedKey() + * @generated + * @ordered + */ + protected EObject key; + + /** + * The cached value of the '{@link #getTypedValue() Value}' containment reference. + * + * + * @see #getTypedValue() + * @generated + * @ordered + */ + protected EObject value; + + /** + * + * @generated + */ + protected EObjectToEObjectValueContainedMapImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getEObjectToEObjectValueContainedMap(); + } + + /** + * + * @generated + */ + public EObject getTypedKey() + { + if (key != null && key.eIsProxy()) + { + InternalEObject oldKey = (InternalEObject)key; + key = eResolveProxy(oldKey); + if (key != oldKey) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY, oldKey, key)); + } + } + return key; + } + + /** + * + * @generated + */ + public EObject basicGetTypedKey() + { + return key; + } + + /** + * + * @generated + */ + public void setTypedKey(EObject newKey) + { + EObject oldKey = key; + key = newKey; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY, + oldKey, key)); + } + + /** + * + * @generated + */ + public EObject getTypedValue() + { + return value; + } + + /** + * + * @generated + */ + public NotificationChain basicSetTypedValue(EObject newValue, NotificationChain msgs) + { + EObject oldValue = value; + value = newValue; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, + Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE, oldValue, newValue); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setTypedValue(EObject newValue) + { + if (newValue != value) + { + NotificationChain msgs = null; + if (value != null) + msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE + - Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE, null, msgs); + if (newValue != null) + msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE + - Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE, null, msgs); + msgs = basicSetTypedValue(newValue, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, + Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE, newValue, newValue)); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE: + return basicSetTypedValue(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY: + if (resolve) + return getTypedKey(); + return basicGetTypedKey(); + case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE: + return getTypedValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY: + setTypedKey((EObject)newValue); + return; + case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE: + setTypedValue((EObject)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY: + setTypedKey((EObject)null); + return; + case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE: + setTypedValue((EObject)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY: + return key != null; + case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE: + return value != null; + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + protected int hash = -1; + + /** + * + * @generated + */ + public int getHash() + { + if (hash == -1) + { + Object theKey = getKey(); + hash = (theKey == null ? 0 : theKey.hashCode()); + } + return hash; + } + + /** + * + * @generated + */ + public void setHash(int hash) + { + this.hash = hash; + } + + /** + * + * @generated + */ + public EObject getKey() + { + return getTypedKey(); + } + + /** + * + * @generated + */ + public void setKey(EObject key) + { + setTypedKey(key); + } + + /** + * + * @generated + */ + public EObject getValue() + { + return getTypedValue(); + } + + /** + * + * @generated + */ + public EObject setValue(EObject value) + { + EObject oldValue = getValue(); + setTypedValue(value); + return oldValue; + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + public EMap getEMap() + { + EObject container = eContainer(); + return container == null ? null : (EMap)container.eGet(eContainmentFeature()); + } + +} // EObjectToEObjectValueContainedMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EnumListHolderImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EnumListHolderImpl.java new file mode 100644 index 0000000000..a8876afc03 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/EnumListHolderImpl.java @@ -0,0 +1,161 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model1.VAT; +import org.eclipse.emf.cdo.tests.model2.EnumListHolder; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; + +import java.util.Collection; + +/** + * An implementation of the model object 'Enum List Holder'. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.EnumListHolderImpl#getEnumList Enum List}
    • + *
    + *

    + * + * @generated + */ +public class EnumListHolderImpl extends EObjectImpl implements EnumListHolder +{ + /** + * The cached value of the '{@link #getEnumList() Enum List}' attribute list. + * + * @see #getEnumList() + * @generated + * @ordered + */ + protected EList enumList; + + /** + * + * @generated + */ + protected EnumListHolderImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getEnumListHolder(); + } + + /** + * + * @generated + */ + public EList getEnumList() + { + if (enumList == null) + { + enumList = new EDataTypeUniqueEList(VAT.class, this, Model2Package.ENUM_LIST_HOLDER__ENUM_LIST); + } + return enumList; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.ENUM_LIST_HOLDER__ENUM_LIST: + return getEnumList(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.ENUM_LIST_HOLDER__ENUM_LIST: + getEnumList().clear(); + getEnumList().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.ENUM_LIST_HOLDER__ENUM_LIST: + getEnumList().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.ENUM_LIST_HOLDER__ENUM_LIST: + return enumList != null && !enumList.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (enumList: "); + result.append(enumList); + result.append(')'); + return result.toString(); + } + +} // EnumListHolderImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/IntegerToStringMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/IntegerToStringMapImpl.java new file mode 100644 index 0000000000..17b88489de --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/IntegerToStringMapImpl.java @@ -0,0 +1,310 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + * + * $Id: IntegerToStringMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.util.BasicEMap; +import org.eclipse.emf.common.util.EMap; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +/** + * An implementation of the model object 'Integer To String Map'. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.IntegerToStringMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.IntegerToStringMapImpl#getTypedValue Value}
    • + *
    + *

    + * + * @generated + */ +public class IntegerToStringMapImpl extends EObjectImpl implements BasicEMap.Entry +{ + /** + * The default value of the '{@link #getTypedKey() Key}' attribute. + * + * @see #getTypedKey() + * @generated + * @ordered + */ + protected static final Integer KEY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypedKey() Key}' attribute. + * + * @see #getTypedKey() + * @generated + * @ordered + */ + protected Integer key = KEY_EDEFAULT; + + /** + * The default value of the '{@link #getTypedValue() Value}' attribute. + * + * @see #getTypedValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypedValue() Value}' attribute. + * + * @see #getTypedValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * + * @generated + */ + protected IntegerToStringMapImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getIntegerToStringMap(); + } + + /** + * + * @generated + */ + public Integer getTypedKey() + { + return key; + } + + /** + * + * @generated + */ + public void setTypedKey(Integer newKey) + { + Integer oldKey = key; + key = newKey; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.INTEGER_TO_STRING_MAP__KEY, oldKey, key)); + } + + /** + * + * @generated + */ + public String getTypedValue() + { + return value; + } + + /** + * + * @generated + */ + public void setTypedValue(String newValue) + { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.INTEGER_TO_STRING_MAP__VALUE, oldValue, value)); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.INTEGER_TO_STRING_MAP__KEY: + return getTypedKey(); + case Model2Package.INTEGER_TO_STRING_MAP__VALUE: + return getTypedValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.INTEGER_TO_STRING_MAP__KEY: + setTypedKey((Integer)newValue); + return; + case Model2Package.INTEGER_TO_STRING_MAP__VALUE: + setTypedValue((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.INTEGER_TO_STRING_MAP__KEY: + setTypedKey(KEY_EDEFAULT); + return; + case Model2Package.INTEGER_TO_STRING_MAP__VALUE: + setTypedValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.INTEGER_TO_STRING_MAP__KEY: + return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); + case Model2Package.INTEGER_TO_STRING_MAP__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (key: "); + result.append(key); + result.append(", value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + + /** + * + * @generated + */ + protected int hash = -1; + + /** + * + * @generated + */ + public int getHash() + { + if (hash == -1) + { + Object theKey = getKey(); + hash = (theKey == null ? 0 : theKey.hashCode()); + } + return hash; + } + + /** + * + * @generated + */ + public void setHash(int hash) + { + this.hash = hash; + } + + /** + * + * @generated + */ + public Integer getKey() + { + return getTypedKey(); + } + + /** + * + * @generated + */ + public void setKey(Integer key) + { + setTypedKey(key); + } + + /** + * + * @generated + */ + public String getValue() + { + return getTypedValue(); + } + + /** + * + * @generated + */ + public String setValue(String value) + { + String oldValue = getValue(); + setTypedValue(value); + return oldValue; + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + public EMap getEMap() + { + EObject container = eContainer(); + return container == null ? null : (EMap)container.eGet(eContainmentFeature()); + } + +} // IntegerToStringMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/MapHolderImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/MapHolderImpl.java new file mode 100644 index 0000000000..2d98262efa --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/MapHolderImpl.java @@ -0,0 +1,486 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + * + * $Id: MapHolderImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model1.Address; +import org.eclipse.emf.cdo.tests.model1.VAT; +import org.eclipse.emf.cdo.tests.model2.MapHolder; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EMap; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EcoreEMap; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * An implementation of the model object 'Map Holder'. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.MapHolderImpl#getIntegerToStringMap Integer To String Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.MapHolderImpl#getStringToStringMap String To String Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.MapHolderImpl#getStringToVATMap String To VAT Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.MapHolderImpl#getStringToAddressContainmentMap String To Address Containment Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.MapHolderImpl#getStringToAddressReferenceMap String To Address Reference Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.MapHolderImpl#getEObjectToEObjectMap EObject To EObject Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.MapHolderImpl#getEObjectToEObjectKeyContainedMap EObject To EObject Key Contained Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.MapHolderImpl#getEObjectToEObjectBothContainedMap EObject To EObject Both Contained Map}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.MapHolderImpl#getEObjectToEObjectValueContainedMap EObject To EObject Value Contained Map}
    • + *
    + *

    + * + * @generated + */ +public class MapHolderImpl extends EObjectImpl implements MapHolder +{ + /** + * The cached value of the '{@link #getIntegerToStringMap() Integer To String Map}' map. + * + * @see #getIntegerToStringMap() + * @generated + * @ordered + */ + protected EMap integerToStringMap; + + /** + * The cached value of the '{@link #getStringToStringMap() String To String Map}' map. + * + * @see #getStringToStringMap() + * @generated + * @ordered + */ + protected EMap stringToStringMap; + + /** + * The cached value of the '{@link #getStringToVATMap() String To VAT Map}' map. + * + * @see #getStringToVATMap() + * @generated + * @ordered + */ + protected EMap stringToVATMap; + + /** + * The cached value of the '{@link #getStringToAddressContainmentMap() String To Address Containment Map}' map. + * + * @see #getStringToAddressContainmentMap() + * @generated + * @ordered + */ + protected EMap stringToAddressContainmentMap; + + /** + * The cached value of the '{@link #getStringToAddressReferenceMap() String To Address Reference Map}' map. + * + * @see #getStringToAddressReferenceMap() + * @generated + * @ordered + */ + protected EMap stringToAddressReferenceMap; + + /** + * The cached value of the '{@link #getEObjectToEObjectMap() EObject To EObject Map}' map. + * + * @see #getEObjectToEObjectMap() + * @generated + * @ordered + */ + protected EMap eObjectToEObjectMap; + + /** + * The cached value of the '{@link #getEObjectToEObjectKeyContainedMap() EObject To EObject Key Contained Map}' map. + * + * @see #getEObjectToEObjectKeyContainedMap() + * @generated + * @ordered + */ + protected EMap eObjectToEObjectKeyContainedMap; + + /** + * The cached value of the '{@link #getEObjectToEObjectBothContainedMap() EObject To EObject Both Contained Map}' map. + * + * @see #getEObjectToEObjectBothContainedMap() + * @generated + * @ordered + */ + protected EMap eObjectToEObjectBothContainedMap; + + /** + * The cached value of the '{@link #getEObjectToEObjectValueContainedMap() EObject To EObject Value Contained Map}' map. + * + * @see #getEObjectToEObjectValueContainedMap() + * @generated + * @ordered + */ + protected EMap eObjectToEObjectValueContainedMap; + + /** + * + * @generated + */ + protected MapHolderImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getMapHolder(); + } + + /** + * + * @generated + */ + public EMap getIntegerToStringMap() + { + if (integerToStringMap == null) + { + integerToStringMap = new EcoreEMap(Model2Package.eINSTANCE.getIntegerToStringMap(), + IntegerToStringMapImpl.class, this, Model2Package.MAP_HOLDER__INTEGER_TO_STRING_MAP); + } + return integerToStringMap; + } + + /** + * + * @generated + */ + public EMap getStringToStringMap() + { + if (stringToStringMap == null) + { + stringToStringMap = new EcoreEMap(Model2Package.eINSTANCE.getStringToStringMap(), + StringToStringMapImpl.class, this, Model2Package.MAP_HOLDER__STRING_TO_STRING_MAP); + } + return stringToStringMap; + } + + /** + * + * @generated + */ + public EMap getStringToVATMap() + { + if (stringToVATMap == null) + { + stringToVATMap = new EcoreEMap(Model2Package.eINSTANCE.getStringToVATMap(), + StringToVATMapImpl.class, this, Model2Package.MAP_HOLDER__STRING_TO_VAT_MAP); + } + return stringToVATMap; + } + + /** + * + * @generated + */ + public EMap getStringToAddressContainmentMap() + { + if (stringToAddressContainmentMap == null) + { + stringToAddressContainmentMap = new EcoreEMap( + Model2Package.eINSTANCE.getStringToAddressContainmentMap(), StringToAddressContainmentMapImpl.class, this, + Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP); + } + return stringToAddressContainmentMap; + } + + /** + * + * @generated + */ + public EMap getStringToAddressReferenceMap() + { + if (stringToAddressReferenceMap == null) + { + stringToAddressReferenceMap = new EcoreEMap( + Model2Package.eINSTANCE.getStringToAddressReferenceMap(), StringToAddressReferenceMapImpl.class, this, + Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP); + } + return stringToAddressReferenceMap; + } + + /** + * + * @generated + */ + public EMap getEObjectToEObjectMap() + { + if (eObjectToEObjectMap == null) + { + eObjectToEObjectMap = new EcoreEMap(Model2Package.eINSTANCE.getEObjectToEObjectMap(), + EObjectToEObjectMapImpl.class, this, Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP); + } + return eObjectToEObjectMap; + } + + /** + * + * @generated + */ + public EMap getEObjectToEObjectKeyContainedMap() + { + if (eObjectToEObjectKeyContainedMap == null) + { + eObjectToEObjectKeyContainedMap = new EcoreEMap( + Model2Package.eINSTANCE.getEObjectToEObjectKeyContainedMap(), EObjectToEObjectKeyContainedMapImpl.class, + this, Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP); + } + return eObjectToEObjectKeyContainedMap; + } + + /** + * + * @generated + */ + public EMap getEObjectToEObjectBothContainedMap() + { + if (eObjectToEObjectBothContainedMap == null) + { + eObjectToEObjectBothContainedMap = new EcoreEMap( + Model2Package.eINSTANCE.getEObjectToEObjectBothContainedMap(), EObjectToEObjectBothContainedMapImpl.class, + this, Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP); + } + return eObjectToEObjectBothContainedMap; + } + + /** + * + * @generated + */ + public EMap getEObjectToEObjectValueContainedMap() + { + if (eObjectToEObjectValueContainedMap == null) + { + eObjectToEObjectValueContainedMap = new EcoreEMap( + Model2Package.eINSTANCE.getEObjectToEObjectValueContainedMap(), EObjectToEObjectValueContainedMapImpl.class, + this, Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP); + } + return eObjectToEObjectValueContainedMap; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model2Package.MAP_HOLDER__INTEGER_TO_STRING_MAP: + return ((InternalEList)getIntegerToStringMap()).basicRemove(otherEnd, msgs); + case Model2Package.MAP_HOLDER__STRING_TO_STRING_MAP: + return ((InternalEList)getStringToStringMap()).basicRemove(otherEnd, msgs); + case Model2Package.MAP_HOLDER__STRING_TO_VAT_MAP: + return ((InternalEList)getStringToVATMap()).basicRemove(otherEnd, msgs); + case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP: + return ((InternalEList)getStringToAddressContainmentMap()).basicRemove(otherEnd, msgs); + case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP: + return ((InternalEList)getStringToAddressReferenceMap()).basicRemove(otherEnd, msgs); + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP: + return ((InternalEList)getEObjectToEObjectMap()).basicRemove(otherEnd, msgs); + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP: + return ((InternalEList)getEObjectToEObjectKeyContainedMap()).basicRemove(otherEnd, msgs); + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP: + return ((InternalEList)getEObjectToEObjectBothContainedMap()).basicRemove(otherEnd, msgs); + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP: + return ((InternalEList)getEObjectToEObjectValueContainedMap()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.MAP_HOLDER__INTEGER_TO_STRING_MAP: + if (coreType) + return getIntegerToStringMap(); + else + return getIntegerToStringMap().map(); + case Model2Package.MAP_HOLDER__STRING_TO_STRING_MAP: + if (coreType) + return getStringToStringMap(); + else + return getStringToStringMap().map(); + case Model2Package.MAP_HOLDER__STRING_TO_VAT_MAP: + if (coreType) + return getStringToVATMap(); + else + return getStringToVATMap().map(); + case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP: + if (coreType) + return getStringToAddressContainmentMap(); + else + return getStringToAddressContainmentMap().map(); + case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP: + if (coreType) + return getStringToAddressReferenceMap(); + else + return getStringToAddressReferenceMap().map(); + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP: + if (coreType) + return getEObjectToEObjectMap(); + else + return getEObjectToEObjectMap().map(); + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP: + if (coreType) + return getEObjectToEObjectKeyContainedMap(); + else + return getEObjectToEObjectKeyContainedMap().map(); + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP: + if (coreType) + return getEObjectToEObjectBothContainedMap(); + else + return getEObjectToEObjectBothContainedMap().map(); + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP: + if (coreType) + return getEObjectToEObjectValueContainedMap(); + else + return getEObjectToEObjectValueContainedMap().map(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.MAP_HOLDER__INTEGER_TO_STRING_MAP: + ((EStructuralFeature.Setting)getIntegerToStringMap()).set(newValue); + return; + case Model2Package.MAP_HOLDER__STRING_TO_STRING_MAP: + ((EStructuralFeature.Setting)getStringToStringMap()).set(newValue); + return; + case Model2Package.MAP_HOLDER__STRING_TO_VAT_MAP: + ((EStructuralFeature.Setting)getStringToVATMap()).set(newValue); + return; + case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP: + ((EStructuralFeature.Setting)getStringToAddressContainmentMap()).set(newValue); + return; + case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP: + ((EStructuralFeature.Setting)getStringToAddressReferenceMap()).set(newValue); + return; + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP: + ((EStructuralFeature.Setting)getEObjectToEObjectMap()).set(newValue); + return; + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP: + ((EStructuralFeature.Setting)getEObjectToEObjectKeyContainedMap()).set(newValue); + return; + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP: + ((EStructuralFeature.Setting)getEObjectToEObjectBothContainedMap()).set(newValue); + return; + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP: + ((EStructuralFeature.Setting)getEObjectToEObjectValueContainedMap()).set(newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.MAP_HOLDER__INTEGER_TO_STRING_MAP: + getIntegerToStringMap().clear(); + return; + case Model2Package.MAP_HOLDER__STRING_TO_STRING_MAP: + getStringToStringMap().clear(); + return; + case Model2Package.MAP_HOLDER__STRING_TO_VAT_MAP: + getStringToVATMap().clear(); + return; + case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP: + getStringToAddressContainmentMap().clear(); + return; + case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP: + getStringToAddressReferenceMap().clear(); + return; + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP: + getEObjectToEObjectMap().clear(); + return; + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP: + getEObjectToEObjectKeyContainedMap().clear(); + return; + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP: + getEObjectToEObjectBothContainedMap().clear(); + return; + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP: + getEObjectToEObjectValueContainedMap().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.MAP_HOLDER__INTEGER_TO_STRING_MAP: + return integerToStringMap != null && !integerToStringMap.isEmpty(); + case Model2Package.MAP_HOLDER__STRING_TO_STRING_MAP: + return stringToStringMap != null && !stringToStringMap.isEmpty(); + case Model2Package.MAP_HOLDER__STRING_TO_VAT_MAP: + return stringToVATMap != null && !stringToVATMap.isEmpty(); + case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP: + return stringToAddressContainmentMap != null && !stringToAddressContainmentMap.isEmpty(); + case Model2Package.MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP: + return stringToAddressReferenceMap != null && !stringToAddressReferenceMap.isEmpty(); + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP: + return eObjectToEObjectMap != null && !eObjectToEObjectMap.isEmpty(); + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP: + return eObjectToEObjectKeyContainedMap != null && !eObjectToEObjectKeyContainedMap.isEmpty(); + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP: + return eObjectToEObjectBothContainedMap != null && !eObjectToEObjectBothContainedMap.isEmpty(); + case Model2Package.MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP: + return eObjectToEObjectValueContainedMap != null && !eObjectToEObjectValueContainedMap.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // MapHolderImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Model2FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Model2FactoryImpl.java new file mode 100644 index 0000000000..512becf304 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Model2FactoryImpl.java @@ -0,0 +1,350 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model1.Address; +import org.eclipse.emf.cdo.tests.model1.VAT; +import org.eclipse.emf.cdo.tests.model2.EnumListHolder; +import org.eclipse.emf.cdo.tests.model2.MapHolder; +import org.eclipse.emf.cdo.tests.model2.NotUnsettable; +import org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault; +import org.eclipse.emf.cdo.tests.model2.PersistentContainment; +import org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder; +import org.eclipse.emf.cdo.tests.model2.Task; +import org.eclipse.emf.cdo.tests.model2.TaskContainer; +import org.eclipse.emf.cdo.tests.model2.TransientContainer; +import org.eclipse.emf.cdo.tests.model2.Unsettable1; +import org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Factory; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +import java.util.Map; + +/** + * An implementation of the model Factory. + * @generated + */ +public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory +{ + /** + * Creates the default factory implementation. + * + * @generated NOT + */ + public static Model2Factory init() + { + try + { + Model2Factory theModel2Factory = (Model2Factory)EPackage.Registry.INSTANCE + .getEFactory("http://www.eclipse.org/emf/CDO/tests/legacy/model2/1.0.0"); + if (theModel2Factory != null) + { + return theModel2Factory; + } + } + catch (Exception exception) + { + EcorePlugin.INSTANCE.log(exception); + } + return new Model2FactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * @generated + */ + public Model2FactoryImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + public EObject create(EClass eClass) + { + switch (eClass.getClassifierID()) + { + case Model2Package.SPECIAL_PURCHASE_ORDER: + return createSpecialPurchaseOrder(); + case Model2Package.TASK_CONTAINER: + return createTaskContainer(); + case Model2Package.TASK: + return createTask(); + case Model2Package.UNSETTABLE1: + return createUnsettable1(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT: + return createUnsettable2WithDefault(); + case Model2Package.PERSISTENT_CONTAINMENT: + return createPersistentContainment(); + case Model2Package.TRANSIENT_CONTAINER: + return createTransientContainer(); + case Model2Package.NOT_UNSETTABLE: + return createNotUnsettable(); + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT: + return createNotUnsettableWithDefault(); + case Model2Package.MAP_HOLDER: + return createMapHolder(); + case Model2Package.STRING_TO_STRING_MAP: + return (EObject)createStringToStringMap(); + case Model2Package.INTEGER_TO_STRING_MAP: + return (EObject)createIntegerToStringMap(); + case Model2Package.STRING_TO_VAT_MAP: + return (EObject)createStringToVATMap(); + case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP: + return (EObject)createStringToAddressContainmentMap(); + case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP: + return (EObject)createStringToAddressReferenceMap(); + case Model2Package.EOBJECT_TO_EOBJECT_MAP: + return (EObject)createEObjectToEObjectMap(); + case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP: + return (EObject)createEObjectToEObjectKeyContainedMap(); + case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP: + return (EObject)createEObjectToEObjectBothContainedMap(); + case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP: + return (EObject)createEObjectToEObjectValueContainedMap(); + case Model2Package.ENUM_LIST_HOLDER: + return createEnumListHolder(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * @generated + */ + public SpecialPurchaseOrder createSpecialPurchaseOrder() + { + SpecialPurchaseOrderImpl specialPurchaseOrder = new SpecialPurchaseOrderImpl(); + return specialPurchaseOrder; + } + + /** + * + * @generated + */ + public TaskContainer createTaskContainer() + { + TaskContainerImpl taskContainer = new TaskContainerImpl(); + return taskContainer; + } + + /** + * + * @generated + */ + public Task createTask() + { + TaskImpl task = new TaskImpl(); + return task; + } + + /** + * + * @generated + */ + public Unsettable1 createUnsettable1() + { + Unsettable1Impl unsettable1 = new Unsettable1Impl(); + return unsettable1; + } + + /** + * + * @generated + */ + public Unsettable2WithDefault createUnsettable2WithDefault() + { + Unsettable2WithDefaultImpl unsettable2WithDefault = new Unsettable2WithDefaultImpl(); + return unsettable2WithDefault; + } + + /** + * + * @generated + */ + public PersistentContainment createPersistentContainment() + { + PersistentContainmentImpl persistentContainment = new PersistentContainmentImpl(); + return persistentContainment; + } + + /** + * + * @generated + */ + public TransientContainer createTransientContainer() + { + TransientContainerImpl transientContainer = new TransientContainerImpl(); + return transientContainer; + } + + /** + * + * @generated + */ + public NotUnsettable createNotUnsettable() + { + NotUnsettableImpl notUnsettable = new NotUnsettableImpl(); + return notUnsettable; + } + + /** + * + * @generated + */ + public NotUnsettableWithDefault createNotUnsettableWithDefault() + { + NotUnsettableWithDefaultImpl notUnsettableWithDefault = new NotUnsettableWithDefaultImpl(); + return notUnsettableWithDefault; + } + + /** + * + * @generated + */ + public MapHolder createMapHolder() + { + MapHolderImpl mapHolder = new MapHolderImpl(); + return mapHolder; + } + + /** + * + * @generated + */ + public Map.Entry createStringToStringMap() + { + StringToStringMapImpl stringToStringMap = new StringToStringMapImpl(); + return stringToStringMap; + } + + /** + * + * @generated + */ + public Map.Entry createIntegerToStringMap() + { + IntegerToStringMapImpl integerToStringMap = new IntegerToStringMapImpl(); + return integerToStringMap; + } + + /** + * + * @generated + */ + public Map.Entry createStringToVATMap() + { + StringToVATMapImpl stringToVATMap = new StringToVATMapImpl(); + return stringToVATMap; + } + + /** + * + * @generated + */ + public Map.Entry createStringToAddressContainmentMap() + { + StringToAddressContainmentMapImpl stringToAddressContainmentMap = new StringToAddressContainmentMapImpl(); + return stringToAddressContainmentMap; + } + + /** + * + * @generated + */ + public Map.Entry createStringToAddressReferenceMap() + { + StringToAddressReferenceMapImpl stringToAddressReferenceMap = new StringToAddressReferenceMapImpl(); + return stringToAddressReferenceMap; + } + + /** + * + * @generated + */ + public Map.Entry createEObjectToEObjectMap() + { + EObjectToEObjectMapImpl eObjectToEObjectMap = new EObjectToEObjectMapImpl(); + return eObjectToEObjectMap; + } + + /** + * + * @generated + */ + public Map.Entry createEObjectToEObjectKeyContainedMap() + { + EObjectToEObjectKeyContainedMapImpl eObjectToEObjectKeyContainedMap = new EObjectToEObjectKeyContainedMapImpl(); + return eObjectToEObjectKeyContainedMap; + } + + /** + * + * @generated + */ + public Map.Entry createEObjectToEObjectBothContainedMap() + { + EObjectToEObjectBothContainedMapImpl eObjectToEObjectBothContainedMap = new EObjectToEObjectBothContainedMapImpl(); + return eObjectToEObjectBothContainedMap; + } + + /** + * + * @generated + */ + public Map.Entry createEObjectToEObjectValueContainedMap() + { + EObjectToEObjectValueContainedMapImpl eObjectToEObjectValueContainedMap = new EObjectToEObjectValueContainedMapImpl(); + return eObjectToEObjectValueContainedMap; + } + + /** + * + * @generated + */ + public EnumListHolder createEnumListHolder() + { + EnumListHolderImpl enumListHolder = new EnumListHolderImpl(); + return enumListHolder; + } + + /** + * + * @generated + */ + public Model2Package getModel2Package() + { + return (Model2Package)getEPackage(); + } + + /** + * + * @deprecated + * @generated + */ + @Deprecated + public static Model2Package getPackage() + { + return Model2Package.eINSTANCE; + } + +} // Model2FactoryImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Model2PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Model2PackageImpl.java new file mode 100644 index 0000000000..98665cb6b3 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Model2PackageImpl.java @@ -0,0 +1,1656 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model1.legacy.Model1Package; +import org.eclipse.emf.cdo.tests.model2.EnumListHolder; +import org.eclipse.emf.cdo.tests.model2.MapHolder; +import org.eclipse.emf.cdo.tests.model2.NotUnsettable; +import org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault; +import org.eclipse.emf.cdo.tests.model2.PersistentContainment; +import org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder; +import org.eclipse.emf.cdo.tests.model2.Task; +import org.eclipse.emf.cdo.tests.model2.TaskContainer; +import org.eclipse.emf.cdo.tests.model2.TransientContainer; +import org.eclipse.emf.cdo.tests.model2.Unsettable1; +import org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Factory; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.impl.EPackageImpl; + +import java.util.Map; + +/** + * An implementation of the model Package. + * @generated + */ +public class Model2PackageImpl extends EPackageImpl implements Model2Package +{ + /** + * + * @generated + */ + private EClass specialPurchaseOrderEClass = null; + + /** + * + * @generated + */ + private EClass taskContainerEClass = null; + + /** + * + * @generated + */ + private EClass taskEClass = null; + + /** + * + * @generated + */ + private EClass unsettable1EClass = null; + + /** + * + * @generated + */ + private EClass unsettable2WithDefaultEClass = null; + + /** + * + * @generated + */ + private EClass persistentContainmentEClass = null; + + /** + * + * @generated + */ + private EClass transientContainerEClass = null; + + /** + * + * @generated + */ + private EClass notUnsettableEClass = null; + + /** + * + * @generated + */ + private EClass notUnsettableWithDefaultEClass = null; + + /** + * + * @generated + */ + private EClass mapHolderEClass = null; + + /** + * + * @generated + */ + private EClass stringToStringMapEClass = null; + + /** + * + * @generated + */ + private EClass integerToStringMapEClass = null; + + /** + * + * @generated + */ + private EClass stringToVATMapEClass = null; + + /** + * + * @generated + */ + private EClass stringToAddressContainmentMapEClass = null; + + /** + * + * @generated + */ + private EClass stringToAddressReferenceMapEClass = null; + + /** + * + * @generated + */ + private EClass eObjectToEObjectMapEClass = null; + + /** + * + * @generated + */ + private EClass eObjectToEObjectKeyContainedMapEClass = null; + + /** + * + * @generated + */ + private EClass eObjectToEObjectBothContainedMapEClass = null; + + /** + * + * @generated + */ + private EClass eObjectToEObjectValueContainedMapEClass = null; + + /** + * + * @generated + */ + private EClass enumListHolderEClass = null; + + /** + * Creates an instance of the model Package, registered with {@link org.eclipse.emf.ecore.EPackage.Registry + * EPackage.Registry} by the package package URI value. + *

    + * 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. + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.emf.cdo.tests.legacy.model2.Model2Package#eNS_URI + * @see #init() + * @generated + */ + private Model2PackageImpl() + { + super(eNS_URI, Model2Factory.eINSTANCE); + } + + /** + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

    This method is used to initialize {@link Model2Package#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static Model2Package init() + { + if (isInited) + return (Model2Package)EPackage.Registry.INSTANCE.getEPackage(Model2Package.eNS_URI); + + // Obtain or create and register package + Model2PackageImpl theModel2Package = (Model2PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Model2PackageImpl ? EPackage.Registry.INSTANCE + .get(eNS_URI) : new Model2PackageImpl()); + + isInited = true; + + // Initialize simple dependencies + Model1Package.eINSTANCE.eClass(); + + // Create package meta-data objects + theModel2Package.createPackageContents(); + + // Initialize created meta-data + theModel2Package.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theModel2Package.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(Model2Package.eNS_URI, theModel2Package); + return theModel2Package; + } + + /** + * + * @generated + */ + public EClass getSpecialPurchaseOrder() + { + return specialPurchaseOrderEClass; + } + + /** + * + * @generated + */ + public EAttribute getSpecialPurchaseOrder_DiscountCode() + { + return (EAttribute)specialPurchaseOrderEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getSpecialPurchaseOrder_ShippingAddress() + { + return (EReference)specialPurchaseOrderEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getTaskContainer() + { + return taskContainerEClass; + } + + /** + * + * @generated + */ + public EReference getTaskContainer_Tasks() + { + return (EReference)taskContainerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getTask() + { + return taskEClass; + } + + /** + * + * @generated + */ + public EReference getTask_TaskContainer() + { + return (EReference)taskEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getTask_Description() + { + return (EAttribute)taskEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EAttribute getTask_Done() + { + return (EAttribute)taskEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EClass getUnsettable1() + { + return unsettable1EClass; + } + + /** + * + * @generated + */ + public EAttribute getUnsettable1_UnsettableBoolean() + { + return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable1_UnsettableByte() + { + return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable1_UnsettableChar() + { + return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable1_UnsettableDate() + { + return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(3); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable1_UnsettableDouble() + { + return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(4); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable1_UnsettableFloat() + { + return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(5); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable1_UnsettableInt() + { + return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(6); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable1_UnsettableLong() + { + return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(7); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable1_UnsettableShort() + { + return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(8); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable1_UnsettableString() + { + return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(9); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable1_UnsettableVAT() + { + return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(10); + } + + /** + * + * @generated + */ + public EClass getUnsettable2WithDefault() + { + return unsettable2WithDefaultEClass; + } + + /** + * + * @generated + */ + public EAttribute getUnsettable2WithDefault_UnsettableBoolean() + { + return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable2WithDefault_UnsettableByte() + { + return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable2WithDefault_UnsettableChar() + { + return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable2WithDefault_UnsettableDate() + { + return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(3); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable2WithDefault_UnsettableDouble() + { + return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(4); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable2WithDefault_UnsettableFloat() + { + return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(5); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable2WithDefault_UnsettableInt() + { + return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(6); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable2WithDefault_UnsettableLong() + { + return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(7); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable2WithDefault_UnsettableShort() + { + return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(8); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable2WithDefault_UnsettableString() + { + return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(9); + } + + /** + * + * @generated + */ + public EAttribute getUnsettable2WithDefault_UnsettableVAT() + { + return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(10); + } + + /** + * + * @generated + */ + public EClass getPersistentContainment() + { + return persistentContainmentEClass; + } + + /** + * + * @generated + */ + public EAttribute getPersistentContainment_AttrBefore() + { + return (EAttribute)persistentContainmentEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getPersistentContainment_Children() + { + return (EReference)persistentContainmentEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EAttribute getPersistentContainment_AttrAfter() + { + return (EAttribute)persistentContainmentEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EClass getTransientContainer() + { + return transientContainerEClass; + } + + /** + * + * @generated + */ + public EAttribute getTransientContainer_AttrBefore() + { + return (EAttribute)transientContainerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getTransientContainer_Parent() + { + return (EReference)transientContainerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EAttribute getTransientContainer_AttrAfter() + { + return (EAttribute)transientContainerEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EClass getNotUnsettable() + { + return notUnsettableEClass; + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettable_NotUnsettableBoolean() + { + return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettable_NotUnsettableByte() + { + return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettable_NotUnsettableChar() + { + return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettable_NotUnsettableDate() + { + return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(3); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettable_NotUnsettableDouble() + { + return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(4); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettable_NotUnsettableFloat() + { + return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(5); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettable_NotUnsettableInt() + { + return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(6); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettable_NotUnsettableLong() + { + return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(7); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettable_NotUnsettableShort() + { + return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(8); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettable_NotUnsettableString() + { + return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(9); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettable_NotUnsettableVAT() + { + return (EAttribute)notUnsettableEClass.getEStructuralFeatures().get(10); + } + + /** + * + * @generated + */ + public EClass getNotUnsettableWithDefault() + { + return notUnsettableWithDefaultEClass; + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettableWithDefault_NotUnsettableBoolean() + { + return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettableWithDefault_NotUnsettableByte() + { + return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettableWithDefault_NotUnsettableChar() + { + return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettableWithDefault_NotUnsettableDate() + { + return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(3); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettableWithDefault_NotUnsettableDouble() + { + return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(4); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettableWithDefault_NotUnsettableFloat() + { + return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(5); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettableWithDefault_NotUnsettableInt() + { + return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(6); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettableWithDefault_NotUnsettableLong() + { + return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(7); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettableWithDefault_NotUnsettableShort() + { + return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(8); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettableWithDefault_NotUnsettableString() + { + return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(9); + } + + /** + * + * @generated + */ + public EAttribute getNotUnsettableWithDefault_NotUnsettableVAT() + { + return (EAttribute)notUnsettableWithDefaultEClass.getEStructuralFeatures().get(10); + } + + /** + * + * @generated + */ + public EClass getMapHolder() + { + return mapHolderEClass; + } + + /** + * + * @generated + */ + public EReference getMapHolder_IntegerToStringMap() + { + return (EReference)mapHolderEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getMapHolder_StringToStringMap() + { + return (EReference)mapHolderEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EReference getMapHolder_StringToVATMap() + { + return (EReference)mapHolderEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EReference getMapHolder_StringToAddressContainmentMap() + { + return (EReference)mapHolderEClass.getEStructuralFeatures().get(3); + } + + /** + * + * @generated + */ + public EReference getMapHolder_StringToAddressReferenceMap() + { + return (EReference)mapHolderEClass.getEStructuralFeatures().get(4); + } + + /** + * + * @generated + */ + public EReference getMapHolder_EObjectToEObjectMap() + { + return (EReference)mapHolderEClass.getEStructuralFeatures().get(5); + } + + /** + * + * @generated + */ + public EReference getMapHolder_EObjectToEObjectKeyContainedMap() + { + return (EReference)mapHolderEClass.getEStructuralFeatures().get(6); + } + + /** + * + * @generated + */ + public EReference getMapHolder_EObjectToEObjectBothContainedMap() + { + return (EReference)mapHolderEClass.getEStructuralFeatures().get(7); + } + + /** + * + * @generated + */ + public EReference getMapHolder_EObjectToEObjectValueContainedMap() + { + return (EReference)mapHolderEClass.getEStructuralFeatures().get(8); + } + + /** + * + * @generated + */ + public EClass getStringToStringMap() + { + return stringToStringMapEClass; + } + + /** + * + * @generated + */ + public EAttribute getStringToStringMap_Key() + { + return (EAttribute)stringToStringMapEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getStringToStringMap_Value() + { + return (EAttribute)stringToStringMapEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getIntegerToStringMap() + { + return integerToStringMapEClass; + } + + /** + * + * @generated + */ + public EAttribute getIntegerToStringMap_Key() + { + return (EAttribute)integerToStringMapEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getIntegerToStringMap_Value() + { + return (EAttribute)integerToStringMapEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getStringToVATMap() + { + return stringToVATMapEClass; + } + + /** + * + * @generated + */ + public EAttribute getStringToVATMap_Key() + { + return (EAttribute)stringToVATMapEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getStringToVATMap_Value() + { + return (EAttribute)stringToVATMapEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getStringToAddressContainmentMap() + { + return stringToAddressContainmentMapEClass; + } + + /** + * + * @generated + */ + public EAttribute getStringToAddressContainmentMap_Key() + { + return (EAttribute)stringToAddressContainmentMapEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getStringToAddressContainmentMap_Value() + { + return (EReference)stringToAddressContainmentMapEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getStringToAddressReferenceMap() + { + return stringToAddressReferenceMapEClass; + } + + /** + * + * @generated + */ + public EAttribute getStringToAddressReferenceMap_Key() + { + return (EAttribute)stringToAddressReferenceMapEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getStringToAddressReferenceMap_Value() + { + return (EReference)stringToAddressReferenceMapEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getEObjectToEObjectMap() + { + return eObjectToEObjectMapEClass; + } + + /** + * + * @generated + */ + public EReference getEObjectToEObjectMap_Key() + { + return (EReference)eObjectToEObjectMapEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getEObjectToEObjectMap_Value() + { + return (EReference)eObjectToEObjectMapEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getEObjectToEObjectKeyContainedMap() + { + return eObjectToEObjectKeyContainedMapEClass; + } + + /** + * + * @generated + */ + public EReference getEObjectToEObjectKeyContainedMap_Key() + { + return (EReference)eObjectToEObjectKeyContainedMapEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getEObjectToEObjectKeyContainedMap_Value() + { + return (EReference)eObjectToEObjectKeyContainedMapEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getEObjectToEObjectBothContainedMap() + { + return eObjectToEObjectBothContainedMapEClass; + } + + /** + * + * @generated + */ + public EReference getEObjectToEObjectBothContainedMap_Key() + { + return (EReference)eObjectToEObjectBothContainedMapEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getEObjectToEObjectBothContainedMap_Value() + { + return (EReference)eObjectToEObjectBothContainedMapEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getEObjectToEObjectValueContainedMap() + { + return eObjectToEObjectValueContainedMapEClass; + } + + /** + * + * @generated + */ + public EReference getEObjectToEObjectValueContainedMap_Key() + { + return (EReference)eObjectToEObjectValueContainedMapEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getEObjectToEObjectValueContainedMap_Value() + { + return (EReference)eObjectToEObjectValueContainedMapEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getEnumListHolder() + { + return enumListHolderEClass; + } + + /** + * + * @generated + */ + public EAttribute getEnumListHolder_EnumList() + { + return (EAttribute)enumListHolderEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public Model2Factory getModel2Factory() + { + return (Model2Factory)getEFactoryInstance(); + } + + /** + * + * @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. + * + * @generated + */ + public void createPackageContents() + { + if (isCreated) + return; + isCreated = true; + + // Create classes and their features + specialPurchaseOrderEClass = createEClass(SPECIAL_PURCHASE_ORDER); + createEAttribute(specialPurchaseOrderEClass, SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE); + createEReference(specialPurchaseOrderEClass, SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS); + + taskContainerEClass = createEClass(TASK_CONTAINER); + createEReference(taskContainerEClass, TASK_CONTAINER__TASKS); + + taskEClass = createEClass(TASK); + createEReference(taskEClass, TASK__TASK_CONTAINER); + createEAttribute(taskEClass, TASK__DESCRIPTION); + createEAttribute(taskEClass, TASK__DONE); + + unsettable1EClass = createEClass(UNSETTABLE1); + createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_BOOLEAN); + createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_BYTE); + createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_CHAR); + createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_DATE); + createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_DOUBLE); + createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_FLOAT); + createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_INT); + createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_LONG); + createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_SHORT); + createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_STRING); + createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_VAT); + + unsettable2WithDefaultEClass = createEClass(UNSETTABLE2_WITH_DEFAULT); + createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN); + createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE); + createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR); + createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE); + createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE); + createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT); + createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT); + createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG); + createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT); + createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING); + createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT); + + persistentContainmentEClass = createEClass(PERSISTENT_CONTAINMENT); + createEAttribute(persistentContainmentEClass, PERSISTENT_CONTAINMENT__ATTR_BEFORE); + createEReference(persistentContainmentEClass, PERSISTENT_CONTAINMENT__CHILDREN); + createEAttribute(persistentContainmentEClass, PERSISTENT_CONTAINMENT__ATTR_AFTER); + + transientContainerEClass = createEClass(TRANSIENT_CONTAINER); + createEAttribute(transientContainerEClass, TRANSIENT_CONTAINER__ATTR_BEFORE); + createEReference(transientContainerEClass, TRANSIENT_CONTAINER__PARENT); + createEAttribute(transientContainerEClass, TRANSIENT_CONTAINER__ATTR_AFTER); + + notUnsettableEClass = createEClass(NOT_UNSETTABLE); + createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN); + createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE); + createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR); + createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_DATE); + createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE); + createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT); + createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_INT); + createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_LONG); + createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT); + createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_STRING); + createEAttribute(notUnsettableEClass, NOT_UNSETTABLE__NOT_UNSETTABLE_VAT); + + notUnsettableWithDefaultEClass = createEClass(NOT_UNSETTABLE_WITH_DEFAULT); + createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BOOLEAN); + createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BYTE); + createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_CHAR); + createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DATE); + createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DOUBLE); + createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_FLOAT); + createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_INT); + createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_LONG); + createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_SHORT); + createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_STRING); + createEAttribute(notUnsettableWithDefaultEClass, NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_VAT); + + mapHolderEClass = createEClass(MAP_HOLDER); + createEReference(mapHolderEClass, MAP_HOLDER__INTEGER_TO_STRING_MAP); + createEReference(mapHolderEClass, MAP_HOLDER__STRING_TO_STRING_MAP); + createEReference(mapHolderEClass, MAP_HOLDER__STRING_TO_VAT_MAP); + createEReference(mapHolderEClass, MAP_HOLDER__STRING_TO_ADDRESS_CONTAINMENT_MAP); + createEReference(mapHolderEClass, MAP_HOLDER__STRING_TO_ADDRESS_REFERENCE_MAP); + createEReference(mapHolderEClass, MAP_HOLDER__EOBJECT_TO_EOBJECT_MAP); + createEReference(mapHolderEClass, MAP_HOLDER__EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP); + createEReference(mapHolderEClass, MAP_HOLDER__EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP); + createEReference(mapHolderEClass, MAP_HOLDER__EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP); + + stringToStringMapEClass = createEClass(STRING_TO_STRING_MAP); + createEAttribute(stringToStringMapEClass, STRING_TO_STRING_MAP__KEY); + createEAttribute(stringToStringMapEClass, STRING_TO_STRING_MAP__VALUE); + + integerToStringMapEClass = createEClass(INTEGER_TO_STRING_MAP); + createEAttribute(integerToStringMapEClass, INTEGER_TO_STRING_MAP__KEY); + createEAttribute(integerToStringMapEClass, INTEGER_TO_STRING_MAP__VALUE); + + stringToVATMapEClass = createEClass(STRING_TO_VAT_MAP); + createEAttribute(stringToVATMapEClass, STRING_TO_VAT_MAP__KEY); + createEAttribute(stringToVATMapEClass, STRING_TO_VAT_MAP__VALUE); + + stringToAddressContainmentMapEClass = createEClass(STRING_TO_ADDRESS_CONTAINMENT_MAP); + createEAttribute(stringToAddressContainmentMapEClass, STRING_TO_ADDRESS_CONTAINMENT_MAP__KEY); + createEReference(stringToAddressContainmentMapEClass, STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE); + + stringToAddressReferenceMapEClass = createEClass(STRING_TO_ADDRESS_REFERENCE_MAP); + createEAttribute(stringToAddressReferenceMapEClass, STRING_TO_ADDRESS_REFERENCE_MAP__KEY); + createEReference(stringToAddressReferenceMapEClass, STRING_TO_ADDRESS_REFERENCE_MAP__VALUE); + + eObjectToEObjectMapEClass = createEClass(EOBJECT_TO_EOBJECT_MAP); + createEReference(eObjectToEObjectMapEClass, EOBJECT_TO_EOBJECT_MAP__KEY); + createEReference(eObjectToEObjectMapEClass, EOBJECT_TO_EOBJECT_MAP__VALUE); + + eObjectToEObjectKeyContainedMapEClass = createEClass(EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP); + createEReference(eObjectToEObjectKeyContainedMapEClass, EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__KEY); + createEReference(eObjectToEObjectKeyContainedMapEClass, EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP__VALUE); + + eObjectToEObjectBothContainedMapEClass = createEClass(EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP); + createEReference(eObjectToEObjectBothContainedMapEClass, EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__KEY); + createEReference(eObjectToEObjectBothContainedMapEClass, EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP__VALUE); + + eObjectToEObjectValueContainedMapEClass = createEClass(EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP); + createEReference(eObjectToEObjectValueContainedMapEClass, EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__KEY); + createEReference(eObjectToEObjectValueContainedMapEClass, EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP__VALUE); + + enumListHolderEClass = createEClass(ENUM_LIST_HOLDER); + createEAttribute(enumListHolderEClass, ENUM_LIST_HOLDER__ENUM_LIST); + } + + /** + * + * @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. + * + * @generated + */ + public void initializePackageContents() + { + if (isInitialized) + return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + Model1Package theModel1Package = (Model1Package)EPackage.Registry.INSTANCE.getEPackage(Model1Package.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + specialPurchaseOrderEClass.getESuperTypes().add(theModel1Package.getPurchaseOrder()); + + // Initialize classes and features; add operations and parameters + initEClass(specialPurchaseOrderEClass, SpecialPurchaseOrder.class, "SpecialPurchaseOrder", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSpecialPurchaseOrder_DiscountCode(), ecorePackage.getEString(), "discountCode", null, 0, 1, + SpecialPurchaseOrder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getSpecialPurchaseOrder_ShippingAddress(), theModel1Package.getAddress(), null, "shippingAddress", + null, 0, 1, SpecialPurchaseOrder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, + !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(taskContainerEClass, TaskContainer.class, "TaskContainer", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getTaskContainer_Tasks(), this.getTask(), this.getTask_TaskContainer(), "tasks", null, 0, -1, + TaskContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(taskEClass, Task.class, "Task", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getTask_TaskContainer(), this.getTaskContainer(), this.getTaskContainer_Tasks(), "taskContainer", + null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTask_Description(), ecorePackage.getEString(), "description", null, 0, 1, Task.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTask_Done(), ecorePackage.getEBoolean(), "done", null, 0, 1, Task.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(unsettable1EClass, Unsettable1.class, "Unsettable1", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getUnsettable1_UnsettableBoolean(), ecorePackage.getEBoolean(), "unsettableBoolean", null, 0, 1, + Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getUnsettable1_UnsettableByte(), ecorePackage.getEByte(), "unsettableByte", null, 0, 1, + Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getUnsettable1_UnsettableChar(), ecorePackage.getEChar(), "unsettableChar", null, 0, 1, + Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getUnsettable1_UnsettableDate(), ecorePackage.getEDate(), "unsettableDate", null, 0, 1, + Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getUnsettable1_UnsettableDouble(), ecorePackage.getEDouble(), "unsettableDouble", null, 0, 1, + Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getUnsettable1_UnsettableFloat(), ecorePackage.getEFloat(), "unsettableFloat", null, 0, 1, + Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getUnsettable1_UnsettableInt(), ecorePackage.getEInt(), "unsettableInt", null, 0, 1, + Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getUnsettable1_UnsettableLong(), ecorePackage.getELong(), "unsettableLong", null, 0, 1, + Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getUnsettable1_UnsettableShort(), ecorePackage.getEShort(), "unsettableShort", null, 0, 1, + Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getUnsettable1_UnsettableString(), ecorePackage.getEString(), "unsettableString", null, 0, 1, + Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getUnsettable1_UnsettableVAT(), theModel1Package.getVAT(), "unsettableVAT", null, 0, 1, + Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(unsettable2WithDefaultEClass, Unsettable2WithDefault.class, "Unsettable2WithDefault", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getUnsettable2WithDefault_UnsettableBoolean(), ecorePackage.getEBoolean(), "unsettableBoolean", + "true", 0, 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getUnsettable2WithDefault_UnsettableByte(), ecorePackage.getEByte(), "unsettableByte", "3", 0, 1, + Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getUnsettable2WithDefault_UnsettableChar(), ecorePackage.getEChar(), "unsettableChar", "\'x\'", 0, + 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getUnsettable2WithDefault_UnsettableDate(), ecorePackage.getEDate(), "unsettableDate", + "2009-12-21T15:12:59", 0, 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getUnsettable2WithDefault_UnsettableDouble(), ecorePackage.getEDouble(), "unsettableDouble", "3.3", + 0, 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getUnsettable2WithDefault_UnsettableFloat(), ecorePackage.getEFloat(), "unsettableFloat", "4.4", 0, + 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getUnsettable2WithDefault_UnsettableInt(), ecorePackage.getEInt(), "unsettableInt", "5", 0, 1, + Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getUnsettable2WithDefault_UnsettableLong(), ecorePackage.getELong(), "unsettableLong", "6", 0, 1, + Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getUnsettable2WithDefault_UnsettableShort(), ecorePackage.getEShort(), "unsettableShort", "7", 0, 1, + Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getUnsettable2WithDefault_UnsettableString(), ecorePackage.getEString(), "unsettableString", + "\"eike\"", 0, 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, + !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getUnsettable2WithDefault_UnsettableVAT(), theModel1Package.getVAT(), "unsettableVAT", "vat15", 0, + 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(persistentContainmentEClass, PersistentContainment.class, "PersistentContainment", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPersistentContainment_AttrBefore(), ecorePackage.getEString(), "attrBefore", null, 0, 1, + PersistentContainment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getPersistentContainment_Children(), this.getTransientContainer(), + this.getTransientContainer_Parent(), "children", null, 0, -1, PersistentContainment.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + !IS_ORDERED); + initEAttribute(getPersistentContainment_AttrAfter(), ecorePackage.getEString(), "attrAfter", null, 0, 1, + PersistentContainment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(transientContainerEClass, TransientContainer.class, "TransientContainer", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTransientContainer_AttrBefore(), ecorePackage.getEString(), "attrBefore", null, 0, 1, + TransientContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getTransientContainer_Parent(), this.getPersistentContainment(), + this.getPersistentContainment_Children(), "parent", null, 0, 1, TransientContainer.class, IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getTransientContainer_AttrAfter(), ecorePackage.getEString(), "attrAfter", null, 0, 1, + TransientContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(notUnsettableEClass, NotUnsettable.class, "NotUnsettable", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNotUnsettable_NotUnsettableBoolean(), ecorePackage.getEBoolean(), "notUnsettableBoolean", null, + 0, 1, NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettable_NotUnsettableByte(), ecorePackage.getEByte(), "notUnsettableByte", null, 0, 1, + NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettable_NotUnsettableChar(), ecorePackage.getEChar(), "notUnsettableChar", null, 0, 1, + NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettable_NotUnsettableDate(), ecorePackage.getEDate(), "notUnsettableDate", null, 0, 1, + NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettable_NotUnsettableDouble(), ecorePackage.getEDouble(), "notUnsettableDouble", null, 0, + 1, NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettable_NotUnsettableFloat(), ecorePackage.getEFloat(), "notUnsettableFloat", null, 0, 1, + NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettable_NotUnsettableInt(), ecorePackage.getEInt(), "notUnsettableInt", null, 0, 1, + NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettable_NotUnsettableLong(), ecorePackage.getELong(), "notUnsettableLong", null, 0, 1, + NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettable_NotUnsettableShort(), ecorePackage.getEShort(), "notUnsettableShort", null, 0, 1, + NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettable_NotUnsettableString(), ecorePackage.getEString(), "notUnsettableString", null, 0, + 1, NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettable_NotUnsettableVAT(), theModel1Package.getVAT(), "notUnsettableVAT", null, 0, 1, + NotUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(notUnsettableWithDefaultEClass, NotUnsettableWithDefault.class, "NotUnsettableWithDefault", + !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNotUnsettableWithDefault_NotUnsettableBoolean(), ecorePackage.getEBoolean(), + "notUnsettableBoolean", "true", 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, + IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettableWithDefault_NotUnsettableByte(), ecorePackage.getEByte(), "notUnsettableByte", "3", + 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettableWithDefault_NotUnsettableChar(), ecorePackage.getEChar(), "notUnsettableChar", + "\'x\'", 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, + !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettableWithDefault_NotUnsettableDate(), ecorePackage.getEDate(), "notUnsettableDate", + "1979-03-15T07:12:59", 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettableWithDefault_NotUnsettableDouble(), ecorePackage.getEDouble(), "notUnsettableDouble", + "3.3", 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, + !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettableWithDefault_NotUnsettableFloat(), ecorePackage.getEFloat(), "notUnsettableFloat", + "4.4", 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, + !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettableWithDefault_NotUnsettableInt(), ecorePackage.getEInt(), "notUnsettableInt", "5", 0, + 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettableWithDefault_NotUnsettableLong(), ecorePackage.getELong(), "notUnsettableLong", "6", + 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettableWithDefault_NotUnsettableShort(), ecorePackage.getEShort(), "notUnsettableShort", + "7", 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettableWithDefault_NotUnsettableString(), ecorePackage.getEString(), "notUnsettableString", + "\"eike\"", 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, + !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNotUnsettableWithDefault_NotUnsettableVAT(), theModel1Package.getVAT(), "notUnsettableVAT", + "vat15", 0, 1, NotUnsettableWithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, + !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(mapHolderEClass, MapHolder.class, "MapHolder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getMapHolder_IntegerToStringMap(), this.getIntegerToStringMap(), null, "integerToStringMap", null, + 0, -1, MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMapHolder_StringToStringMap(), this.getStringToStringMap(), null, "stringToStringMap", null, 0, + -1, MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMapHolder_StringToVATMap(), this.getStringToVATMap(), null, "stringToVATMap", null, 0, -1, + MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMapHolder_StringToAddressContainmentMap(), this.getStringToAddressContainmentMap(), null, + "stringToAddressContainmentMap", null, 0, -1, MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMapHolder_StringToAddressReferenceMap(), this.getStringToAddressReferenceMap(), null, + "stringToAddressReferenceMap", null, 0, -1, MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMapHolder_EObjectToEObjectMap(), this.getEObjectToEObjectMap(), null, "eObjectToEObjectMap", + null, 0, -1, MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMapHolder_EObjectToEObjectKeyContainedMap(), this.getEObjectToEObjectKeyContainedMap(), null, + "eObjectToEObjectKeyContainedMap", null, 0, -1, MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMapHolder_EObjectToEObjectBothContainedMap(), this.getEObjectToEObjectBothContainedMap(), null, + "eObjectToEObjectBothContainedMap", null, 0, -1, MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMapHolder_EObjectToEObjectValueContainedMap(), this.getEObjectToEObjectValueContainedMap(), null, + "eObjectToEObjectValueContainedMap", null, 0, -1, MapHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(stringToStringMapEClass, Map.Entry.class, "StringToStringMap", !IS_ABSTRACT, !IS_INTERFACE, + !IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getStringToStringMap_Key(), ecorePackage.getEString(), "key", null, 0, 1, Map.Entry.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getStringToStringMap_Value(), ecorePackage.getEString(), "value", null, 0, 1, Map.Entry.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(integerToStringMapEClass, Map.Entry.class, "IntegerToStringMap", !IS_ABSTRACT, !IS_INTERFACE, + !IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getIntegerToStringMap_Key(), ecorePackage.getEIntegerObject(), "key", null, 0, 1, Map.Entry.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getIntegerToStringMap_Value(), ecorePackage.getEString(), "value", null, 0, 1, Map.Entry.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(stringToVATMapEClass, Map.Entry.class, "StringToVATMap", !IS_ABSTRACT, !IS_INTERFACE, + !IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getStringToVATMap_Key(), ecorePackage.getEString(), "key", null, 0, 1, Map.Entry.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getStringToVATMap_Value(), theModel1Package.getVAT(), "value", null, 0, 1, Map.Entry.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(stringToAddressContainmentMapEClass, Map.Entry.class, "StringToAddressContainmentMap", !IS_ABSTRACT, + !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getStringToAddressContainmentMap_Key(), ecorePackage.getEString(), "key", null, 0, 1, + Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getStringToAddressContainmentMap_Value(), theModel1Package.getAddress(), null, "value", null, 0, 1, + Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(stringToAddressReferenceMapEClass, Map.Entry.class, "StringToAddressReferenceMap", !IS_ABSTRACT, + !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getStringToAddressReferenceMap_Key(), ecorePackage.getEString(), "key", null, 0, 1, Map.Entry.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getStringToAddressReferenceMap_Value(), theModel1Package.getAddress(), null, "value", null, 0, 1, + Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eObjectToEObjectMapEClass, Map.Entry.class, "EObjectToEObjectMap", !IS_ABSTRACT, !IS_INTERFACE, + !IS_GENERATED_INSTANCE_CLASS); + initEReference(getEObjectToEObjectMap_Key(), ecorePackage.getEObject(), null, "key", null, 0, 1, Map.Entry.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getEObjectToEObjectMap_Value(), ecorePackage.getEObject(), null, "value", null, 0, 1, + Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eObjectToEObjectKeyContainedMapEClass, Map.Entry.class, "EObjectToEObjectKeyContainedMap", !IS_ABSTRACT, + !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); + initEReference(getEObjectToEObjectKeyContainedMap_Key(), ecorePackage.getEObject(), null, "key", null, 0, 1, + Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEObjectToEObjectKeyContainedMap_Value(), ecorePackage.getEObject(), null, "value", null, 0, 1, + Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eObjectToEObjectBothContainedMapEClass, Map.Entry.class, "EObjectToEObjectBothContainedMap", + !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); + initEReference(getEObjectToEObjectBothContainedMap_Key(), ecorePackage.getEObject(), null, "key", null, 0, 1, + Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEObjectToEObjectBothContainedMap_Value(), ecorePackage.getEObject(), null, "value", null, 0, 1, + Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eObjectToEObjectValueContainedMapEClass, Map.Entry.class, "EObjectToEObjectValueContainedMap", + !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); + initEReference(getEObjectToEObjectValueContainedMap_Key(), ecorePackage.getEObject(), null, "key", null, 0, 1, + Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEObjectToEObjectValueContainedMap_Value(), ecorePackage.getEObject(), null, "value", null, 0, 1, + Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(enumListHolderEClass, EnumListHolder.class, "EnumListHolder", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEnumListHolder_EnumList(), theModel1Package.getVAT(), "enumList", null, 0, -1, + EnumListHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} // Model2PackageImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/NotUnsettableImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/NotUnsettableImpl.java new file mode 100644 index 0000000000..195c7eda4f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/NotUnsettableImpl.java @@ -0,0 +1,731 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + * + * $Id: NotUnsettableImpl.java,v 1.3 2011-01-01 11:01:57 estepper Exp $ + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model1.VAT; +import org.eclipse.emf.cdo.tests.model2.NotUnsettable; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +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 java.util.Date; + +/** + * An implementation of the model object 'Not Unsettable'. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#isNotUnsettableBoolean Not Unsettable Boolean}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableByte Not Unsettable Byte}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableChar Not Unsettable Char}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableDate Not Unsettable Date}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableDouble Not Unsettable Double}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableFloat Not Unsettable Float}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableInt Not Unsettable Int}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableLong Not Unsettable Long}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableShort Not Unsettable Short}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableString Not Unsettable String}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableImpl#getNotUnsettableVAT Not Unsettable VAT}
    • + *
    + *

    + * + * @generated + */ +public class NotUnsettableImpl extends EObjectImpl implements NotUnsettable +{ + /** + * The default value of the '{@link #isNotUnsettableBoolean() Not Unsettable Boolean}' attribute. + * + * @see #isNotUnsettableBoolean() + * @generated + * @ordered + */ + protected static final boolean NOT_UNSETTABLE_BOOLEAN_EDEFAULT = false; + + /** + * The cached value of the '{@link #isNotUnsettableBoolean() Not Unsettable Boolean}' attribute. + * + * @see #isNotUnsettableBoolean() + * @generated + * @ordered + */ + protected boolean notUnsettableBoolean = NOT_UNSETTABLE_BOOLEAN_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableByte() Not Unsettable Byte}' attribute. + * + * @see #getNotUnsettableByte() + * @generated + * @ordered + */ + protected static final byte NOT_UNSETTABLE_BYTE_EDEFAULT = 0x00; + + /** + * The cached value of the '{@link #getNotUnsettableByte() Not Unsettable Byte}' attribute. + * + * @see #getNotUnsettableByte() + * @generated + * @ordered + */ + protected byte notUnsettableByte = NOT_UNSETTABLE_BYTE_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableChar() Not Unsettable Char}' attribute. + * + * @see #getNotUnsettableChar() + * @generated + * @ordered + */ + protected static final char NOT_UNSETTABLE_CHAR_EDEFAULT = '\u0000'; + + /** + * The cached value of the '{@link #getNotUnsettableChar() Not Unsettable Char}' attribute. + * + * @see #getNotUnsettableChar() + * @generated + * @ordered + */ + protected char notUnsettableChar = NOT_UNSETTABLE_CHAR_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableDate() Not Unsettable Date}' attribute. + * + * @see #getNotUnsettableDate() + * @generated + * @ordered + */ + protected static final Date NOT_UNSETTABLE_DATE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNotUnsettableDate() Not Unsettable Date}' attribute. + * + * @see #getNotUnsettableDate() + * @generated + * @ordered + */ + protected Date notUnsettableDate = NOT_UNSETTABLE_DATE_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableDouble() Not Unsettable Double}' attribute. + * + * @see #getNotUnsettableDouble() + * @generated + * @ordered + */ + protected static final double NOT_UNSETTABLE_DOUBLE_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getNotUnsettableDouble() Not Unsettable Double}' attribute. + * + * @see #getNotUnsettableDouble() + * @generated + * @ordered + */ + protected double notUnsettableDouble = NOT_UNSETTABLE_DOUBLE_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableFloat() Not Unsettable Float}' attribute. + * + * @see #getNotUnsettableFloat() + * @generated + * @ordered + */ + protected static final float NOT_UNSETTABLE_FLOAT_EDEFAULT = 0.0F; + + /** + * The cached value of the '{@link #getNotUnsettableFloat() Not Unsettable Float}' attribute. + * + * @see #getNotUnsettableFloat() + * @generated + * @ordered + */ + protected float notUnsettableFloat = NOT_UNSETTABLE_FLOAT_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableInt() Not Unsettable Int}' attribute. + * + * @see #getNotUnsettableInt() + * @generated + * @ordered + */ + protected static final int NOT_UNSETTABLE_INT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getNotUnsettableInt() Not Unsettable Int}' attribute. + * + * @see #getNotUnsettableInt() + * @generated + * @ordered + */ + protected int notUnsettableInt = NOT_UNSETTABLE_INT_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableLong() Not Unsettable Long}' attribute. + * + * @see #getNotUnsettableLong() + * @generated + * @ordered + */ + protected static final long NOT_UNSETTABLE_LONG_EDEFAULT = 0L; + + /** + * The cached value of the '{@link #getNotUnsettableLong() Not Unsettable Long}' attribute. + * + * @see #getNotUnsettableLong() + * @generated + * @ordered + */ + protected long notUnsettableLong = NOT_UNSETTABLE_LONG_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableShort() Not Unsettable Short}' attribute. + * + * @see #getNotUnsettableShort() + * @generated + * @ordered + */ + protected static final short NOT_UNSETTABLE_SHORT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getNotUnsettableShort() Not Unsettable Short}' attribute. + * + * @see #getNotUnsettableShort() + * @generated + * @ordered + */ + protected short notUnsettableShort = NOT_UNSETTABLE_SHORT_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableString() Not Unsettable String}' attribute. + * + * @see #getNotUnsettableString() + * @generated + * @ordered + */ + protected static final String NOT_UNSETTABLE_STRING_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNotUnsettableString() Not Unsettable String}' attribute. + * + * @see #getNotUnsettableString() + * @generated + * @ordered + */ + protected String notUnsettableString = NOT_UNSETTABLE_STRING_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableVAT() Not Unsettable VAT}' attribute. + * + * @see #getNotUnsettableVAT() + * @generated + * @ordered + */ + protected static final VAT NOT_UNSETTABLE_VAT_EDEFAULT = VAT.VAT0; + + /** + * The cached value of the '{@link #getNotUnsettableVAT() Not Unsettable VAT}' attribute. + * + * @see #getNotUnsettableVAT() + * @generated + * @ordered + */ + protected VAT notUnsettableVAT = NOT_UNSETTABLE_VAT_EDEFAULT; + + /** + * + * @generated + */ + protected NotUnsettableImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getNotUnsettable(); + } + + /** + * + * @generated + */ + public boolean isNotUnsettableBoolean() + { + return notUnsettableBoolean; + } + + /** + * + * @generated + */ + public void setNotUnsettableBoolean(boolean newNotUnsettableBoolean) + { + boolean oldNotUnsettableBoolean = notUnsettableBoolean; + notUnsettableBoolean = newNotUnsettableBoolean; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN, + oldNotUnsettableBoolean, notUnsettableBoolean)); + } + + /** + * + * @generated + */ + public byte getNotUnsettableByte() + { + return notUnsettableByte; + } + + /** + * + * @generated + */ + public void setNotUnsettableByte(byte newNotUnsettableByte) + { + byte oldNotUnsettableByte = notUnsettableByte; + notUnsettableByte = newNotUnsettableByte; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE, + oldNotUnsettableByte, notUnsettableByte)); + } + + /** + * + * @generated + */ + public char getNotUnsettableChar() + { + return notUnsettableChar; + } + + /** + * + * @generated + */ + public void setNotUnsettableChar(char newNotUnsettableChar) + { + char oldNotUnsettableChar = notUnsettableChar; + notUnsettableChar = newNotUnsettableChar; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR, + oldNotUnsettableChar, notUnsettableChar)); + } + + /** + * + * @generated + */ + public Date getNotUnsettableDate() + { + return notUnsettableDate; + } + + /** + * + * @generated + */ + public void setNotUnsettableDate(Date newNotUnsettableDate) + { + Date oldNotUnsettableDate = notUnsettableDate; + notUnsettableDate = newNotUnsettableDate; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DATE, + oldNotUnsettableDate, notUnsettableDate)); + } + + /** + * + * @generated + */ + public double getNotUnsettableDouble() + { + return notUnsettableDouble; + } + + /** + * + * @generated + */ + public void setNotUnsettableDouble(double newNotUnsettableDouble) + { + double oldNotUnsettableDouble = notUnsettableDouble; + notUnsettableDouble = newNotUnsettableDouble; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE, + oldNotUnsettableDouble, notUnsettableDouble)); + } + + /** + * + * @generated + */ + public float getNotUnsettableFloat() + { + return notUnsettableFloat; + } + + /** + * + * @generated + */ + public void setNotUnsettableFloat(float newNotUnsettableFloat) + { + float oldNotUnsettableFloat = notUnsettableFloat; + notUnsettableFloat = newNotUnsettableFloat; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT, + oldNotUnsettableFloat, notUnsettableFloat)); + } + + /** + * + * @generated + */ + public int getNotUnsettableInt() + { + return notUnsettableInt; + } + + /** + * + * @generated + */ + public void setNotUnsettableInt(int newNotUnsettableInt) + { + int oldNotUnsettableInt = notUnsettableInt; + notUnsettableInt = newNotUnsettableInt; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_INT, + oldNotUnsettableInt, notUnsettableInt)); + } + + /** + * + * @generated + */ + public long getNotUnsettableLong() + { + return notUnsettableLong; + } + + /** + * + * @generated + */ + public void setNotUnsettableLong(long newNotUnsettableLong) + { + long oldNotUnsettableLong = notUnsettableLong; + notUnsettableLong = newNotUnsettableLong; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_LONG, + oldNotUnsettableLong, notUnsettableLong)); + } + + /** + * + * @generated + */ + public short getNotUnsettableShort() + { + return notUnsettableShort; + } + + /** + * + * @generated + */ + public void setNotUnsettableShort(short newNotUnsettableShort) + { + short oldNotUnsettableShort = notUnsettableShort; + notUnsettableShort = newNotUnsettableShort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT, + oldNotUnsettableShort, notUnsettableShort)); + } + + /** + * + * @generated + */ + public String getNotUnsettableString() + { + return notUnsettableString; + } + + /** + * + * @generated + */ + public void setNotUnsettableString(String newNotUnsettableString) + { + String oldNotUnsettableString = notUnsettableString; + notUnsettableString = newNotUnsettableString; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_STRING, + oldNotUnsettableString, notUnsettableString)); + } + + /** + * + * @generated + */ + public VAT getNotUnsettableVAT() + { + return notUnsettableVAT; + } + + /** + * + * @generated + */ + public void setNotUnsettableVAT(VAT newNotUnsettableVAT) + { + VAT oldNotUnsettableVAT = notUnsettableVAT; + notUnsettableVAT = newNotUnsettableVAT == null ? NOT_UNSETTABLE_VAT_EDEFAULT : newNotUnsettableVAT; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_VAT, + oldNotUnsettableVAT, notUnsettableVAT)); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN: + return isNotUnsettableBoolean(); + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE: + return getNotUnsettableByte(); + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR: + return getNotUnsettableChar(); + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DATE: + return getNotUnsettableDate(); + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE: + return getNotUnsettableDouble(); + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT: + return getNotUnsettableFloat(); + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_INT: + return getNotUnsettableInt(); + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_LONG: + return getNotUnsettableLong(); + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT: + return getNotUnsettableShort(); + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_STRING: + return getNotUnsettableString(); + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_VAT: + return getNotUnsettableVAT(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN: + setNotUnsettableBoolean((Boolean)newValue); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE: + setNotUnsettableByte((Byte)newValue); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR: + setNotUnsettableChar((Character)newValue); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DATE: + setNotUnsettableDate((Date)newValue); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE: + setNotUnsettableDouble((Double)newValue); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT: + setNotUnsettableFloat((Float)newValue); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_INT: + setNotUnsettableInt((Integer)newValue); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_LONG: + setNotUnsettableLong((Long)newValue); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT: + setNotUnsettableShort((Short)newValue); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_STRING: + setNotUnsettableString((String)newValue); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_VAT: + setNotUnsettableVAT((VAT)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN: + setNotUnsettableBoolean(NOT_UNSETTABLE_BOOLEAN_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE: + setNotUnsettableByte(NOT_UNSETTABLE_BYTE_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR: + setNotUnsettableChar(NOT_UNSETTABLE_CHAR_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DATE: + setNotUnsettableDate(NOT_UNSETTABLE_DATE_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE: + setNotUnsettableDouble(NOT_UNSETTABLE_DOUBLE_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT: + setNotUnsettableFloat(NOT_UNSETTABLE_FLOAT_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_INT: + setNotUnsettableInt(NOT_UNSETTABLE_INT_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_LONG: + setNotUnsettableLong(NOT_UNSETTABLE_LONG_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT: + setNotUnsettableShort(NOT_UNSETTABLE_SHORT_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_STRING: + setNotUnsettableString(NOT_UNSETTABLE_STRING_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_VAT: + setNotUnsettableVAT(NOT_UNSETTABLE_VAT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BOOLEAN: + return notUnsettableBoolean != NOT_UNSETTABLE_BOOLEAN_EDEFAULT; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_BYTE: + return notUnsettableByte != NOT_UNSETTABLE_BYTE_EDEFAULT; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_CHAR: + return notUnsettableChar != NOT_UNSETTABLE_CHAR_EDEFAULT; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DATE: + return NOT_UNSETTABLE_DATE_EDEFAULT == null ? notUnsettableDate != null : !NOT_UNSETTABLE_DATE_EDEFAULT + .equals(notUnsettableDate); + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_DOUBLE: + return notUnsettableDouble != NOT_UNSETTABLE_DOUBLE_EDEFAULT; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_FLOAT: + return notUnsettableFloat != NOT_UNSETTABLE_FLOAT_EDEFAULT; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_INT: + return notUnsettableInt != NOT_UNSETTABLE_INT_EDEFAULT; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_LONG: + return notUnsettableLong != NOT_UNSETTABLE_LONG_EDEFAULT; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_SHORT: + return notUnsettableShort != NOT_UNSETTABLE_SHORT_EDEFAULT; + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_STRING: + return NOT_UNSETTABLE_STRING_EDEFAULT == null ? notUnsettableString != null : !NOT_UNSETTABLE_STRING_EDEFAULT + .equals(notUnsettableString); + case Model2Package.NOT_UNSETTABLE__NOT_UNSETTABLE_VAT: + return notUnsettableVAT != NOT_UNSETTABLE_VAT_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (notUnsettableBoolean: "); + result.append(notUnsettableBoolean); + result.append(", notUnsettableByte: "); + result.append(notUnsettableByte); + result.append(", notUnsettableChar: "); + result.append(notUnsettableChar); + result.append(", notUnsettableDate: "); + result.append(notUnsettableDate); + result.append(", notUnsettableDouble: "); + result.append(notUnsettableDouble); + result.append(", notUnsettableFloat: "); + result.append(notUnsettableFloat); + result.append(", notUnsettableInt: "); + result.append(notUnsettableInt); + result.append(", notUnsettableLong: "); + result.append(notUnsettableLong); + result.append(", notUnsettableShort: "); + result.append(notUnsettableShort); + result.append(", notUnsettableString: "); + result.append(notUnsettableString); + result.append(", notUnsettableVAT: "); + result.append(notUnsettableVAT); + result.append(')'); + return result.toString(); + } + +} // NotUnsettableImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/NotUnsettableWithDefaultImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/NotUnsettableWithDefaultImpl.java new file mode 100644 index 0000000000..65bf3cac2f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/NotUnsettableWithDefaultImpl.java @@ -0,0 +1,736 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + * + * $Id: NotUnsettableWithDefaultImpl.java,v 1.3 2011-01-01 11:01:57 estepper Exp $ + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model1.VAT; +import org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EcoreFactory; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import java.util.Date; + +/** + * An implementation of the model object 'Not Unsettable With Default'. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableWithDefaultImpl#isNotUnsettableBoolean Not Unsettable Boolean}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableWithDefaultImpl#getNotUnsettableByte Not Unsettable Byte}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableWithDefaultImpl#getNotUnsettableChar Not Unsettable Char}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableWithDefaultImpl#getNotUnsettableDate Not Unsettable Date}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableWithDefaultImpl#getNotUnsettableDouble Not Unsettable Double}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableWithDefaultImpl#getNotUnsettableFloat Not Unsettable Float}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableWithDefaultImpl#getNotUnsettableInt Not Unsettable Int}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableWithDefaultImpl#getNotUnsettableLong Not Unsettable Long}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableWithDefaultImpl#getNotUnsettableShort Not Unsettable Short}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableWithDefaultImpl#getNotUnsettableString Not Unsettable String}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.NotUnsettableWithDefaultImpl#getNotUnsettableVAT Not Unsettable VAT}
    • + *
    + *

    + * + * @generated + */ +public class NotUnsettableWithDefaultImpl extends EObjectImpl implements NotUnsettableWithDefault +{ + /** + * The default value of the '{@link #isNotUnsettableBoolean() Not Unsettable Boolean}' attribute. + * + * @see #isNotUnsettableBoolean() + * @generated + * @ordered + */ + protected static final boolean NOT_UNSETTABLE_BOOLEAN_EDEFAULT = true; + + /** + * The cached value of the '{@link #isNotUnsettableBoolean() Not Unsettable Boolean}' attribute. + * + * @see #isNotUnsettableBoolean() + * @generated + * @ordered + */ + protected boolean notUnsettableBoolean = NOT_UNSETTABLE_BOOLEAN_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableByte() Not Unsettable Byte}' attribute. + * + * @see #getNotUnsettableByte() + * @generated + * @ordered + */ + protected static final byte NOT_UNSETTABLE_BYTE_EDEFAULT = 0x03; + + /** + * The cached value of the '{@link #getNotUnsettableByte() Not Unsettable Byte}' attribute. + * + * @see #getNotUnsettableByte() + * @generated + * @ordered + */ + protected byte notUnsettableByte = NOT_UNSETTABLE_BYTE_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableChar() Not Unsettable Char}' attribute. + * + * @see #getNotUnsettableChar() + * @generated + * @ordered + */ + protected static final char NOT_UNSETTABLE_CHAR_EDEFAULT = '\''; + + /** + * The cached value of the '{@link #getNotUnsettableChar() Not Unsettable Char}' attribute. + * + * @see #getNotUnsettableChar() + * @generated + * @ordered + */ + protected char notUnsettableChar = NOT_UNSETTABLE_CHAR_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableDate() Not Unsettable Date}' attribute. + * + * @see #getNotUnsettableDate() + * @generated + * @ordered + */ + protected static final Date NOT_UNSETTABLE_DATE_EDEFAULT = (Date)EcoreFactory.eINSTANCE.createFromString( + EcorePackage.eINSTANCE.getEDate(), "1979-03-15T07:12:59"); + + /** + * The cached value of the '{@link #getNotUnsettableDate() Not Unsettable Date}' attribute. + * + * @see #getNotUnsettableDate() + * @generated + * @ordered + */ + protected Date notUnsettableDate = NOT_UNSETTABLE_DATE_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableDouble() Not Unsettable Double}' attribute. + * + * @see #getNotUnsettableDouble() + * @generated + * @ordered + */ + protected static final double NOT_UNSETTABLE_DOUBLE_EDEFAULT = 3.3; + + /** + * The cached value of the '{@link #getNotUnsettableDouble() Not Unsettable Double}' attribute. + * + * @see #getNotUnsettableDouble() + * @generated + * @ordered + */ + protected double notUnsettableDouble = NOT_UNSETTABLE_DOUBLE_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableFloat() Not Unsettable Float}' attribute. + * + * @see #getNotUnsettableFloat() + * @generated + * @ordered + */ + protected static final float NOT_UNSETTABLE_FLOAT_EDEFAULT = 4.4F; + + /** + * The cached value of the '{@link #getNotUnsettableFloat() Not Unsettable Float}' attribute. + * + * @see #getNotUnsettableFloat() + * @generated + * @ordered + */ + protected float notUnsettableFloat = NOT_UNSETTABLE_FLOAT_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableInt() Not Unsettable Int}' attribute. + * + * @see #getNotUnsettableInt() + * @generated + * @ordered + */ + protected static final int NOT_UNSETTABLE_INT_EDEFAULT = 5; + + /** + * The cached value of the '{@link #getNotUnsettableInt() Not Unsettable Int}' attribute. + * + * @see #getNotUnsettableInt() + * @generated + * @ordered + */ + protected int notUnsettableInt = NOT_UNSETTABLE_INT_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableLong() Not Unsettable Long}' attribute. + * + * @see #getNotUnsettableLong() + * @generated + * @ordered + */ + protected static final long NOT_UNSETTABLE_LONG_EDEFAULT = 6L; + + /** + * The cached value of the '{@link #getNotUnsettableLong() Not Unsettable Long}' attribute. + * + * @see #getNotUnsettableLong() + * @generated + * @ordered + */ + protected long notUnsettableLong = NOT_UNSETTABLE_LONG_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableShort() Not Unsettable Short}' attribute. + * + * @see #getNotUnsettableShort() + * @generated + * @ordered + */ + protected static final short NOT_UNSETTABLE_SHORT_EDEFAULT = 7; + + /** + * The cached value of the '{@link #getNotUnsettableShort() Not Unsettable Short}' attribute. + * + * @see #getNotUnsettableShort() + * @generated + * @ordered + */ + protected short notUnsettableShort = NOT_UNSETTABLE_SHORT_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableString() Not Unsettable String}' attribute. + * + * @see #getNotUnsettableString() + * @generated + * @ordered + */ + protected static final String NOT_UNSETTABLE_STRING_EDEFAULT = "\"eike\""; + + /** + * The cached value of the '{@link #getNotUnsettableString() Not Unsettable String}' attribute. + * + * @see #getNotUnsettableString() + * @generated + * @ordered + */ + protected String notUnsettableString = NOT_UNSETTABLE_STRING_EDEFAULT; + + /** + * The default value of the '{@link #getNotUnsettableVAT() Not Unsettable VAT}' attribute. + * + * @see #getNotUnsettableVAT() + * @generated + * @ordered + */ + protected static final VAT NOT_UNSETTABLE_VAT_EDEFAULT = VAT.VAT15; + + /** + * The cached value of the '{@link #getNotUnsettableVAT() Not Unsettable VAT}' attribute. + * + * @see #getNotUnsettableVAT() + * @generated + * @ordered + */ + protected VAT notUnsettableVAT = NOT_UNSETTABLE_VAT_EDEFAULT; + + /** + * + * @generated + */ + protected NotUnsettableWithDefaultImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getNotUnsettableWithDefault(); + } + + /** + * + * @generated + */ + public boolean isNotUnsettableBoolean() + { + return notUnsettableBoolean; + } + + /** + * + * @generated + */ + public void setNotUnsettableBoolean(boolean newNotUnsettableBoolean) + { + boolean oldNotUnsettableBoolean = notUnsettableBoolean; + notUnsettableBoolean = newNotUnsettableBoolean; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, + Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BOOLEAN, oldNotUnsettableBoolean, + notUnsettableBoolean)); + } + + /** + * + * @generated + */ + public byte getNotUnsettableByte() + { + return notUnsettableByte; + } + + /** + * + * @generated + */ + public void setNotUnsettableByte(byte newNotUnsettableByte) + { + byte oldNotUnsettableByte = notUnsettableByte; + notUnsettableByte = newNotUnsettableByte; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, + Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BYTE, oldNotUnsettableByte, notUnsettableByte)); + } + + /** + * + * @generated + */ + public char getNotUnsettableChar() + { + return notUnsettableChar; + } + + /** + * + * @generated + */ + public void setNotUnsettableChar(char newNotUnsettableChar) + { + char oldNotUnsettableChar = notUnsettableChar; + notUnsettableChar = newNotUnsettableChar; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, + Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_CHAR, oldNotUnsettableChar, notUnsettableChar)); + } + + /** + * + * @generated + */ + public Date getNotUnsettableDate() + { + return notUnsettableDate; + } + + /** + * + * @generated + */ + public void setNotUnsettableDate(Date newNotUnsettableDate) + { + Date oldNotUnsettableDate = notUnsettableDate; + notUnsettableDate = newNotUnsettableDate; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, + Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DATE, oldNotUnsettableDate, notUnsettableDate)); + } + + /** + * + * @generated + */ + public double getNotUnsettableDouble() + { + return notUnsettableDouble; + } + + /** + * + * @generated + */ + public void setNotUnsettableDouble(double newNotUnsettableDouble) + { + double oldNotUnsettableDouble = notUnsettableDouble; + notUnsettableDouble = newNotUnsettableDouble; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, + Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DOUBLE, oldNotUnsettableDouble, notUnsettableDouble)); + } + + /** + * + * @generated + */ + public float getNotUnsettableFloat() + { + return notUnsettableFloat; + } + + /** + * + * @generated + */ + public void setNotUnsettableFloat(float newNotUnsettableFloat) + { + float oldNotUnsettableFloat = notUnsettableFloat; + notUnsettableFloat = newNotUnsettableFloat; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, + Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_FLOAT, oldNotUnsettableFloat, notUnsettableFloat)); + } + + /** + * + * @generated + */ + public int getNotUnsettableInt() + { + return notUnsettableInt; + } + + /** + * + * @generated + */ + public void setNotUnsettableInt(int newNotUnsettableInt) + { + int oldNotUnsettableInt = notUnsettableInt; + notUnsettableInt = newNotUnsettableInt; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, + Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_INT, oldNotUnsettableInt, notUnsettableInt)); + } + + /** + * + * @generated + */ + public long getNotUnsettableLong() + { + return notUnsettableLong; + } + + /** + * + * @generated + */ + public void setNotUnsettableLong(long newNotUnsettableLong) + { + long oldNotUnsettableLong = notUnsettableLong; + notUnsettableLong = newNotUnsettableLong; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, + Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_LONG, oldNotUnsettableLong, notUnsettableLong)); + } + + /** + * + * @generated + */ + public short getNotUnsettableShort() + { + return notUnsettableShort; + } + + /** + * + * @generated + */ + public void setNotUnsettableShort(short newNotUnsettableShort) + { + short oldNotUnsettableShort = notUnsettableShort; + notUnsettableShort = newNotUnsettableShort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, + Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_SHORT, oldNotUnsettableShort, notUnsettableShort)); + } + + /** + * + * @generated + */ + public String getNotUnsettableString() + { + return notUnsettableString; + } + + /** + * + * @generated + */ + public void setNotUnsettableString(String newNotUnsettableString) + { + String oldNotUnsettableString = notUnsettableString; + notUnsettableString = newNotUnsettableString; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, + Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_STRING, oldNotUnsettableString, notUnsettableString)); + } + + /** + * + * @generated + */ + public VAT getNotUnsettableVAT() + { + return notUnsettableVAT; + } + + /** + * + * @generated + */ + public void setNotUnsettableVAT(VAT newNotUnsettableVAT) + { + VAT oldNotUnsettableVAT = notUnsettableVAT; + notUnsettableVAT = newNotUnsettableVAT == null ? NOT_UNSETTABLE_VAT_EDEFAULT : newNotUnsettableVAT; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, + Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_VAT, oldNotUnsettableVAT, notUnsettableVAT)); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BOOLEAN: + return isNotUnsettableBoolean(); + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BYTE: + return getNotUnsettableByte(); + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_CHAR: + return getNotUnsettableChar(); + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DATE: + return getNotUnsettableDate(); + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DOUBLE: + return getNotUnsettableDouble(); + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_FLOAT: + return getNotUnsettableFloat(); + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_INT: + return getNotUnsettableInt(); + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_LONG: + return getNotUnsettableLong(); + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_SHORT: + return getNotUnsettableShort(); + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_STRING: + return getNotUnsettableString(); + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_VAT: + return getNotUnsettableVAT(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BOOLEAN: + setNotUnsettableBoolean((Boolean)newValue); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BYTE: + setNotUnsettableByte((Byte)newValue); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_CHAR: + setNotUnsettableChar((Character)newValue); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DATE: + setNotUnsettableDate((Date)newValue); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DOUBLE: + setNotUnsettableDouble((Double)newValue); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_FLOAT: + setNotUnsettableFloat((Float)newValue); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_INT: + setNotUnsettableInt((Integer)newValue); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_LONG: + setNotUnsettableLong((Long)newValue); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_SHORT: + setNotUnsettableShort((Short)newValue); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_STRING: + setNotUnsettableString((String)newValue); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_VAT: + setNotUnsettableVAT((VAT)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BOOLEAN: + setNotUnsettableBoolean(NOT_UNSETTABLE_BOOLEAN_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BYTE: + setNotUnsettableByte(NOT_UNSETTABLE_BYTE_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_CHAR: + setNotUnsettableChar(NOT_UNSETTABLE_CHAR_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DATE: + setNotUnsettableDate(NOT_UNSETTABLE_DATE_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DOUBLE: + setNotUnsettableDouble(NOT_UNSETTABLE_DOUBLE_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_FLOAT: + setNotUnsettableFloat(NOT_UNSETTABLE_FLOAT_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_INT: + setNotUnsettableInt(NOT_UNSETTABLE_INT_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_LONG: + setNotUnsettableLong(NOT_UNSETTABLE_LONG_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_SHORT: + setNotUnsettableShort(NOT_UNSETTABLE_SHORT_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_STRING: + setNotUnsettableString(NOT_UNSETTABLE_STRING_EDEFAULT); + return; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_VAT: + setNotUnsettableVAT(NOT_UNSETTABLE_VAT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BOOLEAN: + return notUnsettableBoolean != NOT_UNSETTABLE_BOOLEAN_EDEFAULT; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_BYTE: + return notUnsettableByte != NOT_UNSETTABLE_BYTE_EDEFAULT; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_CHAR: + return notUnsettableChar != NOT_UNSETTABLE_CHAR_EDEFAULT; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DATE: + return NOT_UNSETTABLE_DATE_EDEFAULT == null ? notUnsettableDate != null : !NOT_UNSETTABLE_DATE_EDEFAULT + .equals(notUnsettableDate); + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_DOUBLE: + return notUnsettableDouble != NOT_UNSETTABLE_DOUBLE_EDEFAULT; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_FLOAT: + return notUnsettableFloat != NOT_UNSETTABLE_FLOAT_EDEFAULT; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_INT: + return notUnsettableInt != NOT_UNSETTABLE_INT_EDEFAULT; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_LONG: + return notUnsettableLong != NOT_UNSETTABLE_LONG_EDEFAULT; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_SHORT: + return notUnsettableShort != NOT_UNSETTABLE_SHORT_EDEFAULT; + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_STRING: + return NOT_UNSETTABLE_STRING_EDEFAULT == null ? notUnsettableString != null : !NOT_UNSETTABLE_STRING_EDEFAULT + .equals(notUnsettableString); + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT__NOT_UNSETTABLE_VAT: + return notUnsettableVAT != NOT_UNSETTABLE_VAT_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (notUnsettableBoolean: "); + result.append(notUnsettableBoolean); + result.append(", notUnsettableByte: "); + result.append(notUnsettableByte); + result.append(", notUnsettableChar: "); + result.append(notUnsettableChar); + result.append(", notUnsettableDate: "); + result.append(notUnsettableDate); + result.append(", notUnsettableDouble: "); + result.append(notUnsettableDouble); + result.append(", notUnsettableFloat: "); + result.append(notUnsettableFloat); + result.append(", notUnsettableInt: "); + result.append(notUnsettableInt); + result.append(", notUnsettableLong: "); + result.append(notUnsettableLong); + result.append(", notUnsettableShort: "); + result.append(notUnsettableShort); + result.append(", notUnsettableString: "); + result.append(notUnsettableString); + result.append(", notUnsettableVAT: "); + result.append(notUnsettableVAT); + result.append(')'); + return result.toString(); + } + +} // NotUnsettableWithDefaultImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/PersistentContainmentImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/PersistentContainmentImpl.java new file mode 100644 index 0000000000..6c3d7b4c16 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/PersistentContainmentImpl.java @@ -0,0 +1,306 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model2.PersistentContainment; +import org.eclipse.emf.cdo.tests.model2.TransientContainer; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object 'Persistent Containment'. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.PersistentContainmentImpl#getAttrBefore Attr Before}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.PersistentContainmentImpl#getChildren Children}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.PersistentContainmentImpl#getAttrAfter Attr After}
    • + *
    + *

    + * + * @generated + */ +public class PersistentContainmentImpl extends EObjectImpl implements PersistentContainment +{ + /** + * The default value of the '{@link #getAttrBefore() Attr Before}' attribute. + * + * @see #getAttrBefore() + * @generated + * @ordered + */ + protected static final String ATTR_BEFORE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAttrBefore() Attr Before}' attribute. + * + * @see #getAttrBefore() + * @generated + * @ordered + */ + protected String attrBefore = ATTR_BEFORE_EDEFAULT; + + /** + * The cached value of the '{@link #getChildren() Children}' containment reference list. + * + * @see #getChildren() + * @generated + * @ordered + */ + protected EList children; + + /** + * The default value of the '{@link #getAttrAfter() Attr After}' attribute. + * + * @see #getAttrAfter() + * @generated + * @ordered + */ + protected static final String ATTR_AFTER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAttrAfter() Attr After}' attribute. + * + * @see #getAttrAfter() + * @generated + * @ordered + */ + protected String attrAfter = ATTR_AFTER_EDEFAULT; + + /** + * + * @generated + */ + protected PersistentContainmentImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getPersistentContainment(); + } + + /** + * + * @generated + */ + public String getAttrBefore() + { + return attrBefore; + } + + /** + * + * @generated + */ + public void setAttrBefore(String newAttrBefore) + { + String oldAttrBefore = attrBefore; + attrBefore = newAttrBefore; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.PERSISTENT_CONTAINMENT__ATTR_BEFORE, + oldAttrBefore, attrBefore)); + } + + /** + * + * @generated + */ + public EList getChildren() + { + if (children == null) + { + children = new EObjectContainmentWithInverseEList(TransientContainer.class, this, + Model2Package.PERSISTENT_CONTAINMENT__CHILDREN, Model2Package.TRANSIENT_CONTAINER__PARENT); + } + return children; + } + + /** + * + * @generated + */ + public String getAttrAfter() + { + return attrAfter; + } + + /** + * + * @generated + */ + public void setAttrAfter(String newAttrAfter) + { + String oldAttrAfter = attrAfter; + attrAfter = newAttrAfter; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.PERSISTENT_CONTAINMENT__ATTR_AFTER, + oldAttrAfter, attrAfter)); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model2Package.PERSISTENT_CONTAINMENT__CHILDREN: + return ((InternalEList)(InternalEList)getChildren()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model2Package.PERSISTENT_CONTAINMENT__CHILDREN: + return ((InternalEList)getChildren()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.PERSISTENT_CONTAINMENT__ATTR_BEFORE: + return getAttrBefore(); + case Model2Package.PERSISTENT_CONTAINMENT__CHILDREN: + return getChildren(); + case Model2Package.PERSISTENT_CONTAINMENT__ATTR_AFTER: + return getAttrAfter(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.PERSISTENT_CONTAINMENT__ATTR_BEFORE: + setAttrBefore((String)newValue); + return; + case Model2Package.PERSISTENT_CONTAINMENT__CHILDREN: + getChildren().clear(); + getChildren().addAll((Collection)newValue); + return; + case Model2Package.PERSISTENT_CONTAINMENT__ATTR_AFTER: + setAttrAfter((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.PERSISTENT_CONTAINMENT__ATTR_BEFORE: + setAttrBefore(ATTR_BEFORE_EDEFAULT); + return; + case Model2Package.PERSISTENT_CONTAINMENT__CHILDREN: + getChildren().clear(); + return; + case Model2Package.PERSISTENT_CONTAINMENT__ATTR_AFTER: + setAttrAfter(ATTR_AFTER_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.PERSISTENT_CONTAINMENT__ATTR_BEFORE: + return ATTR_BEFORE_EDEFAULT == null ? attrBefore != null : !ATTR_BEFORE_EDEFAULT.equals(attrBefore); + case Model2Package.PERSISTENT_CONTAINMENT__CHILDREN: + return children != null && !children.isEmpty(); + case Model2Package.PERSISTENT_CONTAINMENT__ATTR_AFTER: + return ATTR_AFTER_EDEFAULT == null ? attrAfter != null : !ATTR_AFTER_EDEFAULT.equals(attrAfter); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (attrBefore: "); + result.append(attrBefore); + result.append(", attrAfter: "); + result.append(attrAfter); + result.append(')'); + return result.toString(); + } + +} // PersistentContainmentImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/SpecialPurchaseOrderImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/SpecialPurchaseOrderImpl.java new file mode 100644 index 0000000000..9fdb451eb7 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/SpecialPurchaseOrderImpl.java @@ -0,0 +1,267 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model1.Address; +import org.eclipse.emf.cdo.tests.model1.legacy.impl.PurchaseOrderImpl; +import org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * An implementation of the model object 'Special Purchase Order'. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.SpecialPurchaseOrderImpl#getDiscountCode Discount Code}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.SpecialPurchaseOrderImpl#getShippingAddress Shipping Address}
    • + *
    + *

    + * + * @generated + */ +public class SpecialPurchaseOrderImpl extends PurchaseOrderImpl implements SpecialPurchaseOrder +{ + /** + * The default value of the '{@link #getDiscountCode() Discount Code}' attribute. + * + * + * @see #getDiscountCode() + * @generated + * @ordered + */ + protected static final String DISCOUNT_CODE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDiscountCode() Discount Code}' attribute. + * + * @see #getDiscountCode() + * @generated + * @ordered + */ + protected String discountCode = DISCOUNT_CODE_EDEFAULT; + + /** + * The cached value of the '{@link #getShippingAddress() Shipping Address}' containment reference. + * + * @see #getShippingAddress() + * @generated + * @ordered + */ + protected Address shippingAddress; + + /** + * + * @generated + */ + protected SpecialPurchaseOrderImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getSpecialPurchaseOrder(); + } + + /** + * + * @generated + */ + public String getDiscountCode() + { + return discountCode; + } + + /** + * + * @generated + */ + public void setDiscountCode(String newDiscountCode) + { + String oldDiscountCode = discountCode; + discountCode = newDiscountCode; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE, + oldDiscountCode, discountCode)); + } + + /** + * + * @generated + */ + public Address getShippingAddress() + { + return shippingAddress; + } + + /** + * + * @generated + */ + public NotificationChain basicSetShippingAddress(Address newShippingAddress, NotificationChain msgs) + { + Address oldShippingAddress = shippingAddress; + shippingAddress = newShippingAddress; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, + Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS, oldShippingAddress, newShippingAddress); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setShippingAddress(Address newShippingAddress) + { + if (newShippingAddress != shippingAddress) + { + NotificationChain msgs = null; + if (shippingAddress != null) + msgs = ((InternalEObject)shippingAddress).eInverseRemove(this, EOPPOSITE_FEATURE_BASE + - Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS, null, msgs); + if (newShippingAddress != null) + msgs = ((InternalEObject)newShippingAddress).eInverseAdd(this, EOPPOSITE_FEATURE_BASE + - Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS, null, msgs); + msgs = basicSetShippingAddress(newShippingAddress, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS, + newShippingAddress, newShippingAddress)); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS: + return basicSetShippingAddress(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE: + return getDiscountCode(); + case Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS: + return getShippingAddress(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE: + setDiscountCode((String)newValue); + return; + case Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS: + setShippingAddress((Address)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE: + setDiscountCode(DISCOUNT_CODE_EDEFAULT); + return; + case Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS: + setShippingAddress((Address)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE: + return DISCOUNT_CODE_EDEFAULT == null ? discountCode != null : !DISCOUNT_CODE_EDEFAULT.equals(discountCode); + case Model2Package.SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS: + return shippingAddress != null; + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (discountCode: "); + result.append(discountCode); + result.append(')'); + return result.toString(); + } + +} // SpecialPurchaseOrderImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/StringToAddressContainmentMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/StringToAddressContainmentMapImpl.java new file mode 100644 index 0000000000..083e79c39e --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/StringToAddressContainmentMapImpl.java @@ -0,0 +1,349 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + * + * $Id: StringToAddressContainmentMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model1.Address; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.BasicEMap; +import org.eclipse.emf.common.util.EMap; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +/** + * An implementation of the model object 'String To Address Containment Map'. + * + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.StringToAddressContainmentMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.StringToAddressContainmentMapImpl#getTypedValue Value}
    • + *
    + *

    + * + * @generated + */ +public class StringToAddressContainmentMapImpl extends EObjectImpl implements BasicEMap.Entry +{ + /** + * The default value of the '{@link #getTypedKey() Key}' attribute. + * + * @see #getTypedKey() + * @generated + * @ordered + */ + protected static final String KEY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypedKey() Key}' attribute. + * + * @see #getTypedKey() + * @generated + * @ordered + */ + protected String key = KEY_EDEFAULT; + + /** + * The cached value of the '{@link #getTypedValue() Value}' containment reference. + * + * + * @see #getTypedValue() + * @generated + * @ordered + */ + protected Address value; + + /** + * + * @generated + */ + protected StringToAddressContainmentMapImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getStringToAddressContainmentMap(); + } + + /** + * + * @generated + */ + public String getTypedKey() + { + return key; + } + + /** + * + * @generated + */ + public void setTypedKey(String newKey) + { + String oldKey = key; + key = newKey; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__KEY, + oldKey, key)); + } + + /** + * + * @generated + */ + public Address getTypedValue() + { + return value; + } + + /** + * + * @generated + */ + public NotificationChain basicSetTypedValue(Address newValue, NotificationChain msgs) + { + Address oldValue = value; + value = newValue; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, + Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE, oldValue, newValue); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setTypedValue(Address newValue) + { + if (newValue != value) + { + NotificationChain msgs = null; + if (value != null) + msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE + - Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE, null, msgs); + if (newValue != null) + msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE + - Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE, null, msgs); + msgs = basicSetTypedValue(newValue, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE, + newValue, newValue)); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE: + return basicSetTypedValue(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__KEY: + return getTypedKey(); + case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE: + return getTypedValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__KEY: + setTypedKey((String)newValue); + return; + case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE: + setTypedValue((Address)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__KEY: + setTypedKey(KEY_EDEFAULT); + return; + case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE: + setTypedValue((Address)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__KEY: + return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); + case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP__VALUE: + return value != null; + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (key: "); + result.append(key); + result.append(')'); + return result.toString(); + } + + /** + * + * @generated + */ + protected int hash = -1; + + /** + * + * @generated + */ + public int getHash() + { + if (hash == -1) + { + Object theKey = getKey(); + hash = (theKey == null ? 0 : theKey.hashCode()); + } + return hash; + } + + /** + * + * @generated + */ + public void setHash(int hash) + { + this.hash = hash; + } + + /** + * + * @generated + */ + public String getKey() + { + return getTypedKey(); + } + + /** + * + * @generated + */ + public void setKey(String key) + { + setTypedKey(key); + } + + /** + * + * @generated + */ + public Address getValue() + { + return getTypedValue(); + } + + /** + * + * @generated + */ + public Address setValue(Address value) + { + Address oldValue = getValue(); + setTypedValue(value); + return oldValue; + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + public EMap getEMap() + { + EObject container = eContainer(); + return container == null ? null : (EMap)container.eGet(eContainmentFeature()); + } + +} // StringToAddressContainmentMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/StringToAddressReferenceMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/StringToAddressReferenceMapImpl.java new file mode 100644 index 0000000000..52a9b8d27c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/StringToAddressReferenceMapImpl.java @@ -0,0 +1,324 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + * + * $Id: StringToAddressReferenceMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model1.Address; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.util.BasicEMap; +import org.eclipse.emf.common.util.EMap; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +/** + * An implementation of the model object 'String To Address Reference Map'. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.StringToAddressReferenceMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.StringToAddressReferenceMapImpl#getTypedValue Value}
    • + *
    + *

    + * + * @generated + */ +public class StringToAddressReferenceMapImpl extends EObjectImpl implements BasicEMap.Entry +{ + /** + * The default value of the '{@link #getTypedKey() Key}' attribute. + * + * @see #getTypedKey() + * @generated + * @ordered + */ + protected static final String KEY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypedKey() Key}' attribute. + * + * @see #getTypedKey() + * @generated + * @ordered + */ + protected String key = KEY_EDEFAULT; + + /** + * The cached value of the '{@link #getTypedValue() Value}' reference. + * + * @see #getTypedValue() + * @generated + * @ordered + */ + protected Address value; + + /** + * + * @generated + */ + protected StringToAddressReferenceMapImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getStringToAddressReferenceMap(); + } + + /** + * + * @generated + */ + public String getTypedKey() + { + return key; + } + + /** + * + * @generated + */ + public void setTypedKey(String newKey) + { + String oldKey = key; + key = newKey; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__KEY, oldKey, + key)); + } + + /** + * + * @generated + */ + public Address getTypedValue() + { + if (value != null && value.eIsProxy()) + { + InternalEObject oldValue = (InternalEObject)value; + value = (Address)eResolveProxy(oldValue); + if (value != oldValue) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__VALUE, oldValue, value)); + } + } + return value; + } + + /** + * + * @generated + */ + public Address basicGetTypedValue() + { + return value; + } + + /** + * + * @generated + */ + public void setTypedValue(Address newValue) + { + Address oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__VALUE, + oldValue, value)); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__KEY: + return getTypedKey(); + case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__VALUE: + if (resolve) + return getTypedValue(); + return basicGetTypedValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__KEY: + setTypedKey((String)newValue); + return; + case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__VALUE: + setTypedValue((Address)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__KEY: + setTypedKey(KEY_EDEFAULT); + return; + case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__VALUE: + setTypedValue((Address)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__KEY: + return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); + case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP__VALUE: + return value != null; + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (key: "); + result.append(key); + result.append(')'); + return result.toString(); + } + + /** + * + * @generated + */ + protected int hash = -1; + + /** + * + * @generated + */ + public int getHash() + { + if (hash == -1) + { + Object theKey = getKey(); + hash = (theKey == null ? 0 : theKey.hashCode()); + } + return hash; + } + + /** + * + * @generated + */ + public void setHash(int hash) + { + this.hash = hash; + } + + /** + * + * @generated + */ + public String getKey() + { + return getTypedKey(); + } + + /** + * + * @generated + */ + public void setKey(String key) + { + setTypedKey(key); + } + + /** + * + * @generated + */ + public Address getValue() + { + return getTypedValue(); + } + + /** + * + * @generated + */ + public Address setValue(Address value) + { + Address oldValue = getValue(); + setTypedValue(value); + return oldValue; + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + public EMap getEMap() + { + EObject container = eContainer(); + return container == null ? null : (EMap)container.eGet(eContainmentFeature()); + } + +} // StringToAddressReferenceMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/StringToStringMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/StringToStringMapImpl.java new file mode 100644 index 0000000000..94df3fcd56 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/StringToStringMapImpl.java @@ -0,0 +1,310 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + * + * $Id: StringToStringMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.util.BasicEMap; +import org.eclipse.emf.common.util.EMap; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +/** + * An implementation of the model object 'String To String Map'. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.StringToStringMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.StringToStringMapImpl#getTypedValue Value}
    • + *
    + *

    + * + * @generated + */ +public class StringToStringMapImpl extends EObjectImpl implements BasicEMap.Entry +{ + /** + * The default value of the '{@link #getTypedKey() Key}' attribute. + * + * @see #getTypedKey() + * @generated + * @ordered + */ + protected static final String KEY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypedKey() Key}' attribute. + * + * @see #getTypedKey() + * @generated + * @ordered + */ + protected String key = KEY_EDEFAULT; + + /** + * The default value of the '{@link #getTypedValue() Value}' attribute. + * + * @see #getTypedValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypedValue() Value}' attribute. + * + * @see #getTypedValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * + * @generated + */ + protected StringToStringMapImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getStringToStringMap(); + } + + /** + * + * @generated + */ + public String getTypedKey() + { + return key; + } + + /** + * + * @generated + */ + public void setTypedKey(String newKey) + { + String oldKey = key; + key = newKey; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.STRING_TO_STRING_MAP__KEY, oldKey, key)); + } + + /** + * + * @generated + */ + public String getTypedValue() + { + return value; + } + + /** + * + * @generated + */ + public void setTypedValue(String newValue) + { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.STRING_TO_STRING_MAP__VALUE, oldValue, value)); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.STRING_TO_STRING_MAP__KEY: + return getTypedKey(); + case Model2Package.STRING_TO_STRING_MAP__VALUE: + return getTypedValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.STRING_TO_STRING_MAP__KEY: + setTypedKey((String)newValue); + return; + case Model2Package.STRING_TO_STRING_MAP__VALUE: + setTypedValue((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.STRING_TO_STRING_MAP__KEY: + setTypedKey(KEY_EDEFAULT); + return; + case Model2Package.STRING_TO_STRING_MAP__VALUE: + setTypedValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.STRING_TO_STRING_MAP__KEY: + return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); + case Model2Package.STRING_TO_STRING_MAP__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (key: "); + result.append(key); + result.append(", value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + + /** + * + * @generated + */ + protected int hash = -1; + + /** + * + * @generated + */ + public int getHash() + { + if (hash == -1) + { + Object theKey = getKey(); + hash = (theKey == null ? 0 : theKey.hashCode()); + } + return hash; + } + + /** + * + * @generated + */ + public void setHash(int hash) + { + this.hash = hash; + } + + /** + * + * @generated + */ + public String getKey() + { + return getTypedKey(); + } + + /** + * + * @generated + */ + public void setKey(String key) + { + setTypedKey(key); + } + + /** + * + * @generated + */ + public String getValue() + { + return getTypedValue(); + } + + /** + * + * @generated + */ + public String setValue(String value) + { + String oldValue = getValue(); + setTypedValue(value); + return oldValue; + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + public EMap getEMap() + { + EObject container = eContainer(); + return container == null ? null : (EMap)container.eGet(eContainmentFeature()); + } + +} // StringToStringMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/StringToVATMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/StringToVATMapImpl.java new file mode 100644 index 0000000000..71c40658e6 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/StringToVATMapImpl.java @@ -0,0 +1,311 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + * + * $Id: StringToVATMapImpl.java,v 1.2 2011-01-01 11:01:57 estepper Exp $ + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model1.VAT; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.util.BasicEMap; +import org.eclipse.emf.common.util.EMap; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +/** + * An implementation of the model object 'String To VAT Map'. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToVATMapImpl#getTypedKey Key}
    • + *
    • {@link org.eclipse.emf.cdo.tests.legacy.model2.impl.StringToVATMapImpl#getTypedValue Value}
    • + *
    + *

    + * + * @generated + */ +public class StringToVATMapImpl extends EObjectImpl implements BasicEMap.Entry +{ + /** + * The default value of the '{@link #getTypedKey() Key}' attribute. + * + * @see #getTypedKey() + * @generated + * @ordered + */ + protected static final String KEY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypedKey() Key}' attribute. + * + * @see #getTypedKey() + * @generated + * @ordered + */ + protected String key = KEY_EDEFAULT; + + /** + * The default value of the '{@link #getTypedValue() Value}' attribute. + * + * @see #getTypedValue() + * @generated + * @ordered + */ + protected static final VAT VALUE_EDEFAULT = VAT.VAT0; + + /** + * The cached value of the '{@link #getTypedValue() Value}' attribute. + * + * @see #getTypedValue() + * @generated + * @ordered + */ + protected VAT value = VALUE_EDEFAULT; + + /** + * + * @generated + */ + protected StringToVATMapImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getStringToVATMap(); + } + + /** + * + * @generated + */ + public String getTypedKey() + { + return key; + } + + /** + * + * @generated + */ + public void setTypedKey(String newKey) + { + String oldKey = key; + key = newKey; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.STRING_TO_VAT_MAP__KEY, oldKey, key)); + } + + /** + * + * @generated + */ + public VAT getTypedValue() + { + return value; + } + + /** + * + * @generated + */ + public void setTypedValue(VAT newValue) + { + VAT oldValue = value; + value = newValue == null ? VALUE_EDEFAULT : newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.STRING_TO_VAT_MAP__VALUE, oldValue, value)); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.STRING_TO_VAT_MAP__KEY: + return getTypedKey(); + case Model2Package.STRING_TO_VAT_MAP__VALUE: + return getTypedValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.STRING_TO_VAT_MAP__KEY: + setTypedKey((String)newValue); + return; + case Model2Package.STRING_TO_VAT_MAP__VALUE: + setTypedValue((VAT)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.STRING_TO_VAT_MAP__KEY: + setTypedKey(KEY_EDEFAULT); + return; + case Model2Package.STRING_TO_VAT_MAP__VALUE: + setTypedValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.STRING_TO_VAT_MAP__KEY: + return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); + case Model2Package.STRING_TO_VAT_MAP__VALUE: + return value != VALUE_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (key: "); + result.append(key); + result.append(", value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + + /** + * + * @generated + */ + protected int hash = -1; + + /** + * + * @generated + */ + public int getHash() + { + if (hash == -1) + { + Object theKey = getKey(); + hash = (theKey == null ? 0 : theKey.hashCode()); + } + return hash; + } + + /** + * + * @generated + */ + public void setHash(int hash) + { + this.hash = hash; + } + + /** + * + * @generated + */ + public String getKey() + { + return getTypedKey(); + } + + /** + * + * @generated + */ + public void setKey(String key) + { + setTypedKey(key); + } + + /** + * + * @generated + */ + public VAT getValue() + { + return getTypedValue(); + } + + /** + * + * @generated + */ + public VAT setValue(VAT value) + { + VAT oldValue = getValue(); + setTypedValue(value); + return oldValue; + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + public EMap getEMap() + { + EObject container = eContainer(); + return container == null ? null : (EMap)container.eGet(eContainmentFeature()); + } + +} // StringToVATMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/TaskContainerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/TaskContainerImpl.java new file mode 100644 index 0000000000..6499bb8945 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/TaskContainerImpl.java @@ -0,0 +1,178 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model2.Task; +import org.eclipse.emf.cdo.tests.model2.TaskContainer; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object 'Task Container'. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.TaskContainerImpl#getTasks Tasks}
    • + *
    + *

    + * + * @generated + */ +public class TaskContainerImpl extends EObjectImpl implements TaskContainer +{ + /** + * The cached value of the '{@link #getTasks() Tasks}' containment reference list. + * + * + * @see #getTasks() + * @generated + * @ordered + */ + protected EList tasks; + + /** + * + * @generated + */ + protected TaskContainerImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getTaskContainer(); + } + + /** + * + * @generated + */ + public EList getTasks() + { + if (tasks == null) + { + tasks = new EObjectContainmentWithInverseEList(Task.class, this, Model2Package.TASK_CONTAINER__TASKS, + Model2Package.TASK__TASK_CONTAINER); + } + return tasks; + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model2Package.TASK_CONTAINER__TASKS: + return ((InternalEList)(InternalEList)getTasks()).basicAdd(otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model2Package.TASK_CONTAINER__TASKS: + return ((InternalEList)getTasks()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.TASK_CONTAINER__TASKS: + return getTasks(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.TASK_CONTAINER__TASKS: + getTasks().clear(); + getTasks().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.TASK_CONTAINER__TASKS: + getTasks().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.TASK_CONTAINER__TASKS: + return tasks != null && !tasks.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // TaskContainerImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/TaskImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/TaskImpl.java new file mode 100644 index 0000000000..44a92a697d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/TaskImpl.java @@ -0,0 +1,335 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model2.Task; +import org.eclipse.emf.cdo.tests.model2.TaskContainer; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EcoreUtil; + +/** + * An implementation of the model object 'Task'. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.TaskImpl#getTaskContainer Task Container}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.TaskImpl#getDescription Description}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.TaskImpl#isDone Done}
    • + *
    + *

    + * + * @generated + */ +public class TaskImpl extends EObjectImpl implements Task +{ + /** + * The default value of the '{@link #getDescription() Description}' attribute. + * + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() Description}' attribute. + * + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The default value of the '{@link #isDone() Done}' attribute. + * + * @see #isDone() + * @generated + * @ordered + */ + protected static final boolean DONE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isDone() Done}' attribute. + * + * @see #isDone() + * @generated + * @ordered + */ + protected boolean done = DONE_EDEFAULT; + + /** + * + * @generated + */ + protected TaskImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getTask(); + } + + /** + * + * @generated + */ + public TaskContainer getTaskContainer() + { + if (eContainerFeatureID() != Model2Package.TASK__TASK_CONTAINER) + return null; + return (TaskContainer)eContainer(); + } + + /** + * + * @generated + */ + public NotificationChain basicSetTaskContainer(TaskContainer newTaskContainer, NotificationChain msgs) + { + msgs = eBasicSetContainer((InternalEObject)newTaskContainer, Model2Package.TASK__TASK_CONTAINER, msgs); + return msgs; + } + + /** + * + * @generated + */ + public void setTaskContainer(TaskContainer newTaskContainer) + { + if (newTaskContainer != eInternalContainer() + || (eContainerFeatureID() != Model2Package.TASK__TASK_CONTAINER && newTaskContainer != null)) + { + if (EcoreUtil.isAncestor(this, newTaskContainer)) + throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); + NotificationChain msgs = null; + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + if (newTaskContainer != null) + msgs = ((InternalEObject)newTaskContainer).eInverseAdd(this, Model2Package.TASK_CONTAINER__TASKS, + TaskContainer.class, msgs); + msgs = basicSetTaskContainer(newTaskContainer, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.TASK__TASK_CONTAINER, newTaskContainer, + newTaskContainer)); + } + + /** + * + * @generated + */ + public String getDescription() + { + return description; + } + + /** + * + * @generated + */ + public void setDescription(String newDescription) + { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.TASK__DESCRIPTION, oldDescription, + description)); + } + + /** + * + * @generated + */ + public boolean isDone() + { + return done; + } + + /** + * + * @generated + */ + public void setDone(boolean newDone) + { + boolean oldDone = done; + done = newDone; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.TASK__DONE, oldDone, done)); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model2Package.TASK__TASK_CONTAINER: + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + return basicSetTaskContainer((TaskContainer)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model2Package.TASK__TASK_CONTAINER: + return basicSetTaskContainer(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) + { + switch (eContainerFeatureID()) + { + case Model2Package.TASK__TASK_CONTAINER: + return eInternalContainer().eInverseRemove(this, Model2Package.TASK_CONTAINER__TASKS, TaskContainer.class, msgs); + } + return super.eBasicRemoveFromContainerFeature(msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.TASK__TASK_CONTAINER: + return getTaskContainer(); + case Model2Package.TASK__DESCRIPTION: + return getDescription(); + case Model2Package.TASK__DONE: + return isDone(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.TASK__TASK_CONTAINER: + setTaskContainer((TaskContainer)newValue); + return; + case Model2Package.TASK__DESCRIPTION: + setDescription((String)newValue); + return; + case Model2Package.TASK__DONE: + setDone((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.TASK__TASK_CONTAINER: + setTaskContainer((TaskContainer)null); + return; + case Model2Package.TASK__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case Model2Package.TASK__DONE: + setDone(DONE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.TASK__TASK_CONTAINER: + return getTaskContainer() != null; + case Model2Package.TASK__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case Model2Package.TASK__DONE: + return done != DONE_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (description: "); + result.append(description); + result.append(", done: "); + result.append(done); + result.append(')'); + return result.toString(); + } + +} // TaskImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/TransientContainerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/TransientContainerImpl.java new file mode 100644 index 0000000000..40e891f356 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/TransientContainerImpl.java @@ -0,0 +1,340 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model2.PersistentContainment; +import org.eclipse.emf.cdo.tests.model2.TransientContainer; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EcoreUtil; + +/** + * An implementation of the model object 'Transient Container'. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.TransientContainerImpl#getAttrBefore Attr Before}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.TransientContainerImpl#getParent Parent}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.TransientContainerImpl#getAttrAfter Attr After}
    • + *
    + *

    + * + * @generated + */ +public class TransientContainerImpl extends EObjectImpl implements TransientContainer +{ + /** + * The default value of the '{@link #getAttrBefore() Attr Before}' attribute. + * + * @see #getAttrBefore() + * @generated + * @ordered + */ + protected static final String ATTR_BEFORE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAttrBefore() Attr Before}' attribute. + * + * @see #getAttrBefore() + * @generated + * @ordered + */ + protected String attrBefore = ATTR_BEFORE_EDEFAULT; + + /** + * The default value of the '{@link #getAttrAfter() Attr After}' attribute. + * + * @see #getAttrAfter() + * @generated + * @ordered + */ + protected static final String ATTR_AFTER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAttrAfter() Attr After}' attribute. + * + * @see #getAttrAfter() + * @generated + * @ordered + */ + protected String attrAfter = ATTR_AFTER_EDEFAULT; + + /** + * + * @generated + */ + protected TransientContainerImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getTransientContainer(); + } + + /** + * + * @generated + */ + public String getAttrBefore() + { + return attrBefore; + } + + /** + * + * @generated + */ + public void setAttrBefore(String newAttrBefore) + { + String oldAttrBefore = attrBefore; + attrBefore = newAttrBefore; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.TRANSIENT_CONTAINER__ATTR_BEFORE, + oldAttrBefore, attrBefore)); + } + + /** + * + * @generated + */ + public PersistentContainment getParent() + { + if (eContainerFeatureID() != Model2Package.TRANSIENT_CONTAINER__PARENT) + return null; + return (PersistentContainment)eContainer(); + } + + /** + * + * @generated + */ + public NotificationChain basicSetParent(PersistentContainment newParent, NotificationChain msgs) + { + msgs = eBasicSetContainer((InternalEObject)newParent, Model2Package.TRANSIENT_CONTAINER__PARENT, msgs); + return msgs; + } + + /** + * + * @generated + */ + public void setParent(PersistentContainment newParent) + { + if (newParent != eInternalContainer() + || (eContainerFeatureID() != Model2Package.TRANSIENT_CONTAINER__PARENT && newParent != null)) + { + if (EcoreUtil.isAncestor(this, newParent)) + throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); + NotificationChain msgs = null; + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + if (newParent != null) + msgs = ((InternalEObject)newParent).eInverseAdd(this, Model2Package.PERSISTENT_CONTAINMENT__CHILDREN, + PersistentContainment.class, msgs); + msgs = basicSetParent(newParent, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.TRANSIENT_CONTAINER__PARENT, newParent, + newParent)); + } + + /** + * + * @generated + */ + public String getAttrAfter() + { + return attrAfter; + } + + /** + * + * @generated + */ + public void setAttrAfter(String newAttrAfter) + { + String oldAttrAfter = attrAfter; + attrAfter = newAttrAfter; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.TRANSIENT_CONTAINER__ATTR_AFTER, + oldAttrAfter, attrAfter)); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model2Package.TRANSIENT_CONTAINER__PARENT: + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + return basicSetParent((PersistentContainment)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model2Package.TRANSIENT_CONTAINER__PARENT: + return basicSetParent(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) + { + switch (eContainerFeatureID()) + { + case Model2Package.TRANSIENT_CONTAINER__PARENT: + return eInternalContainer().eInverseRemove(this, Model2Package.PERSISTENT_CONTAINMENT__CHILDREN, + PersistentContainment.class, msgs); + } + return super.eBasicRemoveFromContainerFeature(msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.TRANSIENT_CONTAINER__ATTR_BEFORE: + return getAttrBefore(); + case Model2Package.TRANSIENT_CONTAINER__PARENT: + return getParent(); + case Model2Package.TRANSIENT_CONTAINER__ATTR_AFTER: + return getAttrAfter(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.TRANSIENT_CONTAINER__ATTR_BEFORE: + setAttrBefore((String)newValue); + return; + case Model2Package.TRANSIENT_CONTAINER__PARENT: + setParent((PersistentContainment)newValue); + return; + case Model2Package.TRANSIENT_CONTAINER__ATTR_AFTER: + setAttrAfter((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.TRANSIENT_CONTAINER__ATTR_BEFORE: + setAttrBefore(ATTR_BEFORE_EDEFAULT); + return; + case Model2Package.TRANSIENT_CONTAINER__PARENT: + setParent((PersistentContainment)null); + return; + case Model2Package.TRANSIENT_CONTAINER__ATTR_AFTER: + setAttrAfter(ATTR_AFTER_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.TRANSIENT_CONTAINER__ATTR_BEFORE: + return ATTR_BEFORE_EDEFAULT == null ? attrBefore != null : !ATTR_BEFORE_EDEFAULT.equals(attrBefore); + case Model2Package.TRANSIENT_CONTAINER__PARENT: + return getParent() != null; + case Model2Package.TRANSIENT_CONTAINER__ATTR_AFTER: + return ATTR_AFTER_EDEFAULT == null ? attrAfter != null : !ATTR_AFTER_EDEFAULT.equals(attrAfter); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (attrBefore: "); + result.append(attrBefore); + result.append(", attrAfter: "); + result.append(attrAfter); + result.append(')'); + return result.toString(); + } + +} // TransientContainerImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Unsettable1Impl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Unsettable1Impl.java new file mode 100644 index 0000000000..dbc708a123 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Unsettable1Impl.java @@ -0,0 +1,1134 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model1.VAT; +import org.eclipse.emf.cdo.tests.model2.Unsettable1; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +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 java.util.Date; + +/** + * An implementation of the model object 'Unsettable1'. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl#isUnsettableBoolean Unsettable Boolean}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl#getUnsettableByte Unsettable Byte}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl#getUnsettableChar Unsettable Char}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl#getUnsettableDate Unsettable Date}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl#getUnsettableDouble Unsettable Double}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl#getUnsettableFloat Unsettable Float}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl#getUnsettableInt Unsettable Int}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl#getUnsettableLong Unsettable Long}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl#getUnsettableShort Unsettable Short}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl#getUnsettableString Unsettable String}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl#getUnsettableVAT Unsettable VAT}
    • + *
    + *

    + * + * @generated + */ +public class Unsettable1Impl extends EObjectImpl implements Unsettable1 +{ + /** + * The default value of the '{@link #isUnsettableBoolean() Unsettable Boolean}' attribute. + * + * @see #isUnsettableBoolean() + * @generated + * @ordered + */ + protected static final boolean UNSETTABLE_BOOLEAN_EDEFAULT = false; + + /** + * The cached value of the '{@link #isUnsettableBoolean() Unsettable Boolean}' attribute. + * + * @see #isUnsettableBoolean() + * @generated + * @ordered + */ + protected boolean unsettableBoolean = UNSETTABLE_BOOLEAN_EDEFAULT; + + /** + * This is true if the Unsettable Boolean attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableBooleanESet; + + /** + * The default value of the '{@link #getUnsettableByte() Unsettable Byte}' attribute. + * + * + * @see #getUnsettableByte() + * @generated + * @ordered + */ + protected static final byte UNSETTABLE_BYTE_EDEFAULT = 0x00; + + /** + * The cached value of the '{@link #getUnsettableByte() Unsettable Byte}' attribute. + * + * + * @see #getUnsettableByte() + * @generated + * @ordered + */ + protected byte unsettableByte = UNSETTABLE_BYTE_EDEFAULT; + + /** + * This is true if the Unsettable Byte attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableByteESet; + + /** + * The default value of the '{@link #getUnsettableChar() Unsettable Char}' attribute. + * + * + * @see #getUnsettableChar() + * @generated + * @ordered + */ + protected static final char UNSETTABLE_CHAR_EDEFAULT = '\u0000'; + + /** + * The cached value of the '{@link #getUnsettableChar() Unsettable Char}' attribute. + * + * + * @see #getUnsettableChar() + * @generated + * @ordered + */ + protected char unsettableChar = UNSETTABLE_CHAR_EDEFAULT; + + /** + * This is true if the Unsettable Char attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableCharESet; + + /** + * The default value of the '{@link #getUnsettableDate() Unsettable Date}' attribute. + * + * + * @see #getUnsettableDate() + * @generated + * @ordered + */ + protected static final Date UNSETTABLE_DATE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUnsettableDate() Unsettable Date}' attribute. + * + * + * @see #getUnsettableDate() + * @generated + * @ordered + */ + protected Date unsettableDate = UNSETTABLE_DATE_EDEFAULT; + + /** + * This is true if the Unsettable Date attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableDateESet; + + /** + * The default value of the '{@link #getUnsettableDouble() Unsettable Double}' attribute. + * + * @see #getUnsettableDouble() + * @generated + * @ordered + */ + protected static final double UNSETTABLE_DOUBLE_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getUnsettableDouble() Unsettable Double}' attribute. + * + * @see #getUnsettableDouble() + * @generated + * @ordered + */ + protected double unsettableDouble = UNSETTABLE_DOUBLE_EDEFAULT; + + /** + * This is true if the Unsettable Double attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableDoubleESet; + + /** + * The default value of the '{@link #getUnsettableFloat() Unsettable Float}' attribute. + * + * @see #getUnsettableFloat() + * @generated + * @ordered + */ + protected static final float UNSETTABLE_FLOAT_EDEFAULT = 0.0F; + + /** + * The cached value of the '{@link #getUnsettableFloat() Unsettable Float}' attribute. + * + * @see #getUnsettableFloat() + * @generated + * @ordered + */ + protected float unsettableFloat = UNSETTABLE_FLOAT_EDEFAULT; + + /** + * This is true if the Unsettable Float attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableFloatESet; + + /** + * The default value of the '{@link #getUnsettableInt() Unsettable Int}' attribute. + * + * + * @see #getUnsettableInt() + * @generated + * @ordered + */ + protected static final int UNSETTABLE_INT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getUnsettableInt() Unsettable Int}' attribute. + * + * + * @see #getUnsettableInt() + * @generated + * @ordered + */ + protected int unsettableInt = UNSETTABLE_INT_EDEFAULT; + + /** + * This is true if the Unsettable Int attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableIntESet; + + /** + * The default value of the '{@link #getUnsettableLong() Unsettable Long}' attribute. + * + * + * @see #getUnsettableLong() + * @generated + * @ordered + */ + protected static final long UNSETTABLE_LONG_EDEFAULT = 0L; + + /** + * The cached value of the '{@link #getUnsettableLong() Unsettable Long}' attribute. + * + * + * @see #getUnsettableLong() + * @generated + * @ordered + */ + protected long unsettableLong = UNSETTABLE_LONG_EDEFAULT; + + /** + * This is true if the Unsettable Long attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableLongESet; + + /** + * The default value of the '{@link #getUnsettableShort() Unsettable Short}' attribute. + * + * @see #getUnsettableShort() + * @generated + * @ordered + */ + protected static final short UNSETTABLE_SHORT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getUnsettableShort() Unsettable Short}' attribute. + * + * @see #getUnsettableShort() + * @generated + * @ordered + */ + protected short unsettableShort = UNSETTABLE_SHORT_EDEFAULT; + + /** + * This is true if the Unsettable Short attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableShortESet; + + /** + * The default value of the '{@link #getUnsettableString() Unsettable String}' attribute. + * + * @see #getUnsettableString() + * @generated + * @ordered + */ + protected static final String UNSETTABLE_STRING_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUnsettableString() Unsettable String}' attribute. + * + * @see #getUnsettableString() + * @generated + * @ordered + */ + protected String unsettableString = UNSETTABLE_STRING_EDEFAULT; + + /** + * This is true if the Unsettable String attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableStringESet; + + /** + * The default value of the '{@link #getUnsettableVAT() Unsettable VAT}' attribute. + * + * + * @see #getUnsettableVAT() + * @generated + * @ordered + */ + protected static final VAT UNSETTABLE_VAT_EDEFAULT = VAT.VAT0; + + /** + * The cached value of the '{@link #getUnsettableVAT() Unsettable VAT}' attribute. + * + * + * @see #getUnsettableVAT() + * @generated + * @ordered + */ + protected VAT unsettableVAT = UNSETTABLE_VAT_EDEFAULT; + + /** + * This is true if the Unsettable VAT attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableVATESet; + + /** + * + * @generated + */ + protected Unsettable1Impl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getUnsettable1(); + } + + /** + * + * @generated + */ + public boolean isUnsettableBoolean() + { + return unsettableBoolean; + } + + /** + * + * @generated + */ + public void setUnsettableBoolean(boolean newUnsettableBoolean) + { + boolean oldUnsettableBoolean = unsettableBoolean; + unsettableBoolean = newUnsettableBoolean; + boolean oldUnsettableBooleanESet = unsettableBooleanESet; + unsettableBooleanESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_BOOLEAN, + oldUnsettableBoolean, unsettableBoolean, !oldUnsettableBooleanESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableBoolean() + { + boolean oldUnsettableBoolean = unsettableBoolean; + boolean oldUnsettableBooleanESet = unsettableBooleanESet; + unsettableBoolean = UNSETTABLE_BOOLEAN_EDEFAULT; + unsettableBooleanESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_BOOLEAN, + oldUnsettableBoolean, UNSETTABLE_BOOLEAN_EDEFAULT, oldUnsettableBooleanESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableBoolean() + { + return unsettableBooleanESet; + } + + /** + * + * @generated + */ + public byte getUnsettableByte() + { + return unsettableByte; + } + + /** + * + * @generated + */ + public void setUnsettableByte(byte newUnsettableByte) + { + byte oldUnsettableByte = unsettableByte; + unsettableByte = newUnsettableByte; + boolean oldUnsettableByteESet = unsettableByteESet; + unsettableByteESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_BYTE, + oldUnsettableByte, unsettableByte, !oldUnsettableByteESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableByte() + { + byte oldUnsettableByte = unsettableByte; + boolean oldUnsettableByteESet = unsettableByteESet; + unsettableByte = UNSETTABLE_BYTE_EDEFAULT; + unsettableByteESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_BYTE, + oldUnsettableByte, UNSETTABLE_BYTE_EDEFAULT, oldUnsettableByteESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableByte() + { + return unsettableByteESet; + } + + /** + * + * @generated + */ + public char getUnsettableChar() + { + return unsettableChar; + } + + /** + * + * @generated + */ + public void setUnsettableChar(char newUnsettableChar) + { + char oldUnsettableChar = unsettableChar; + unsettableChar = newUnsettableChar; + boolean oldUnsettableCharESet = unsettableCharESet; + unsettableCharESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_CHAR, + oldUnsettableChar, unsettableChar, !oldUnsettableCharESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableChar() + { + char oldUnsettableChar = unsettableChar; + boolean oldUnsettableCharESet = unsettableCharESet; + unsettableChar = UNSETTABLE_CHAR_EDEFAULT; + unsettableCharESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_CHAR, + oldUnsettableChar, UNSETTABLE_CHAR_EDEFAULT, oldUnsettableCharESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableChar() + { + return unsettableCharESet; + } + + /** + * + * @generated + */ + public Date getUnsettableDate() + { + return unsettableDate; + } + + /** + * + * @generated + */ + public void setUnsettableDate(Date newUnsettableDate) + { + Date oldUnsettableDate = unsettableDate; + unsettableDate = newUnsettableDate; + boolean oldUnsettableDateESet = unsettableDateESet; + unsettableDateESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_DATE, + oldUnsettableDate, unsettableDate, !oldUnsettableDateESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableDate() + { + Date oldUnsettableDate = unsettableDate; + boolean oldUnsettableDateESet = unsettableDateESet; + unsettableDate = UNSETTABLE_DATE_EDEFAULT; + unsettableDateESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_DATE, + oldUnsettableDate, UNSETTABLE_DATE_EDEFAULT, oldUnsettableDateESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableDate() + { + return unsettableDateESet; + } + + /** + * + * @generated + */ + public double getUnsettableDouble() + { + return unsettableDouble; + } + + /** + * + * @generated + */ + public void setUnsettableDouble(double newUnsettableDouble) + { + double oldUnsettableDouble = unsettableDouble; + unsettableDouble = newUnsettableDouble; + boolean oldUnsettableDoubleESet = unsettableDoubleESet; + unsettableDoubleESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_DOUBLE, + oldUnsettableDouble, unsettableDouble, !oldUnsettableDoubleESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableDouble() + { + double oldUnsettableDouble = unsettableDouble; + boolean oldUnsettableDoubleESet = unsettableDoubleESet; + unsettableDouble = UNSETTABLE_DOUBLE_EDEFAULT; + unsettableDoubleESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_DOUBLE, + oldUnsettableDouble, UNSETTABLE_DOUBLE_EDEFAULT, oldUnsettableDoubleESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableDouble() + { + return unsettableDoubleESet; + } + + /** + * + * @generated + */ + public float getUnsettableFloat() + { + return unsettableFloat; + } + + /** + * + * @generated + */ + public void setUnsettableFloat(float newUnsettableFloat) + { + float oldUnsettableFloat = unsettableFloat; + unsettableFloat = newUnsettableFloat; + boolean oldUnsettableFloatESet = unsettableFloatESet; + unsettableFloatESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_FLOAT, + oldUnsettableFloat, unsettableFloat, !oldUnsettableFloatESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableFloat() + { + float oldUnsettableFloat = unsettableFloat; + boolean oldUnsettableFloatESet = unsettableFloatESet; + unsettableFloat = UNSETTABLE_FLOAT_EDEFAULT; + unsettableFloatESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_FLOAT, + oldUnsettableFloat, UNSETTABLE_FLOAT_EDEFAULT, oldUnsettableFloatESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableFloat() + { + return unsettableFloatESet; + } + + /** + * + * @generated + */ + public int getUnsettableInt() + { + return unsettableInt; + } + + /** + * + * @generated + */ + public void setUnsettableInt(int newUnsettableInt) + { + int oldUnsettableInt = unsettableInt; + unsettableInt = newUnsettableInt; + boolean oldUnsettableIntESet = unsettableIntESet; + unsettableIntESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_INT, + oldUnsettableInt, unsettableInt, !oldUnsettableIntESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableInt() + { + int oldUnsettableInt = unsettableInt; + boolean oldUnsettableIntESet = unsettableIntESet; + unsettableInt = UNSETTABLE_INT_EDEFAULT; + unsettableIntESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_INT, + oldUnsettableInt, UNSETTABLE_INT_EDEFAULT, oldUnsettableIntESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableInt() + { + return unsettableIntESet; + } + + /** + * + * @generated + */ + public long getUnsettableLong() + { + return unsettableLong; + } + + /** + * + * @generated + */ + public void setUnsettableLong(long newUnsettableLong) + { + long oldUnsettableLong = unsettableLong; + unsettableLong = newUnsettableLong; + boolean oldUnsettableLongESet = unsettableLongESet; + unsettableLongESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_LONG, + oldUnsettableLong, unsettableLong, !oldUnsettableLongESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableLong() + { + long oldUnsettableLong = unsettableLong; + boolean oldUnsettableLongESet = unsettableLongESet; + unsettableLong = UNSETTABLE_LONG_EDEFAULT; + unsettableLongESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_LONG, + oldUnsettableLong, UNSETTABLE_LONG_EDEFAULT, oldUnsettableLongESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableLong() + { + return unsettableLongESet; + } + + /** + * + * @generated + */ + public short getUnsettableShort() + { + return unsettableShort; + } + + /** + * + * @generated + */ + public void setUnsettableShort(short newUnsettableShort) + { + short oldUnsettableShort = unsettableShort; + unsettableShort = newUnsettableShort; + boolean oldUnsettableShortESet = unsettableShortESet; + unsettableShortESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_SHORT, + oldUnsettableShort, unsettableShort, !oldUnsettableShortESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableShort() + { + short oldUnsettableShort = unsettableShort; + boolean oldUnsettableShortESet = unsettableShortESet; + unsettableShort = UNSETTABLE_SHORT_EDEFAULT; + unsettableShortESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_SHORT, + oldUnsettableShort, UNSETTABLE_SHORT_EDEFAULT, oldUnsettableShortESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableShort() + { + return unsettableShortESet; + } + + /** + * + * @generated + */ + public String getUnsettableString() + { + return unsettableString; + } + + /** + * + * @generated + */ + public void setUnsettableString(String newUnsettableString) + { + String oldUnsettableString = unsettableString; + unsettableString = newUnsettableString; + boolean oldUnsettableStringESet = unsettableStringESet; + unsettableStringESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_STRING, + oldUnsettableString, unsettableString, !oldUnsettableStringESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableString() + { + String oldUnsettableString = unsettableString; + boolean oldUnsettableStringESet = unsettableStringESet; + unsettableString = UNSETTABLE_STRING_EDEFAULT; + unsettableStringESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_STRING, + oldUnsettableString, UNSETTABLE_STRING_EDEFAULT, oldUnsettableStringESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableString() + { + return unsettableStringESet; + } + + /** + * + * @generated + */ + public VAT getUnsettableVAT() + { + return unsettableVAT; + } + + /** + * + * @generated + */ + public void setUnsettableVAT(VAT newUnsettableVAT) + { + VAT oldUnsettableVAT = unsettableVAT; + unsettableVAT = newUnsettableVAT == null ? UNSETTABLE_VAT_EDEFAULT : newUnsettableVAT; + boolean oldUnsettableVATESet = unsettableVATESet; + unsettableVATESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_VAT, + oldUnsettableVAT, unsettableVAT, !oldUnsettableVATESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableVAT() + { + VAT oldUnsettableVAT = unsettableVAT; + boolean oldUnsettableVATESet = unsettableVATESet; + unsettableVAT = UNSETTABLE_VAT_EDEFAULT; + unsettableVATESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_VAT, + oldUnsettableVAT, UNSETTABLE_VAT_EDEFAULT, oldUnsettableVATESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableVAT() + { + return unsettableVATESet; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.UNSETTABLE1__UNSETTABLE_BOOLEAN: + return isUnsettableBoolean(); + case Model2Package.UNSETTABLE1__UNSETTABLE_BYTE: + return getUnsettableByte(); + case Model2Package.UNSETTABLE1__UNSETTABLE_CHAR: + return getUnsettableChar(); + case Model2Package.UNSETTABLE1__UNSETTABLE_DATE: + return getUnsettableDate(); + case Model2Package.UNSETTABLE1__UNSETTABLE_DOUBLE: + return getUnsettableDouble(); + case Model2Package.UNSETTABLE1__UNSETTABLE_FLOAT: + return getUnsettableFloat(); + case Model2Package.UNSETTABLE1__UNSETTABLE_INT: + return getUnsettableInt(); + case Model2Package.UNSETTABLE1__UNSETTABLE_LONG: + return getUnsettableLong(); + case Model2Package.UNSETTABLE1__UNSETTABLE_SHORT: + return getUnsettableShort(); + case Model2Package.UNSETTABLE1__UNSETTABLE_STRING: + return getUnsettableString(); + case Model2Package.UNSETTABLE1__UNSETTABLE_VAT: + return getUnsettableVAT(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.UNSETTABLE1__UNSETTABLE_BOOLEAN: + setUnsettableBoolean((Boolean)newValue); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_BYTE: + setUnsettableByte((Byte)newValue); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_CHAR: + setUnsettableChar((Character)newValue); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_DATE: + setUnsettableDate((Date)newValue); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_DOUBLE: + setUnsettableDouble((Double)newValue); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_FLOAT: + setUnsettableFloat((Float)newValue); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_INT: + setUnsettableInt((Integer)newValue); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_LONG: + setUnsettableLong((Long)newValue); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_SHORT: + setUnsettableShort((Short)newValue); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_STRING: + setUnsettableString((String)newValue); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_VAT: + setUnsettableVAT((VAT)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.UNSETTABLE1__UNSETTABLE_BOOLEAN: + unsetUnsettableBoolean(); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_BYTE: + unsetUnsettableByte(); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_CHAR: + unsetUnsettableChar(); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_DATE: + unsetUnsettableDate(); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_DOUBLE: + unsetUnsettableDouble(); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_FLOAT: + unsetUnsettableFloat(); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_INT: + unsetUnsettableInt(); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_LONG: + unsetUnsettableLong(); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_SHORT: + unsetUnsettableShort(); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_STRING: + unsetUnsettableString(); + return; + case Model2Package.UNSETTABLE1__UNSETTABLE_VAT: + unsetUnsettableVAT(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.UNSETTABLE1__UNSETTABLE_BOOLEAN: + return isSetUnsettableBoolean(); + case Model2Package.UNSETTABLE1__UNSETTABLE_BYTE: + return isSetUnsettableByte(); + case Model2Package.UNSETTABLE1__UNSETTABLE_CHAR: + return isSetUnsettableChar(); + case Model2Package.UNSETTABLE1__UNSETTABLE_DATE: + return isSetUnsettableDate(); + case Model2Package.UNSETTABLE1__UNSETTABLE_DOUBLE: + return isSetUnsettableDouble(); + case Model2Package.UNSETTABLE1__UNSETTABLE_FLOAT: + return isSetUnsettableFloat(); + case Model2Package.UNSETTABLE1__UNSETTABLE_INT: + return isSetUnsettableInt(); + case Model2Package.UNSETTABLE1__UNSETTABLE_LONG: + return isSetUnsettableLong(); + case Model2Package.UNSETTABLE1__UNSETTABLE_SHORT: + return isSetUnsettableShort(); + case Model2Package.UNSETTABLE1__UNSETTABLE_STRING: + return isSetUnsettableString(); + case Model2Package.UNSETTABLE1__UNSETTABLE_VAT: + return isSetUnsettableVAT(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (unsettableBoolean: "); + if (unsettableBooleanESet) + result.append(unsettableBoolean); + else + result.append(""); + result.append(", unsettableByte: "); + if (unsettableByteESet) + result.append(unsettableByte); + else + result.append(""); + result.append(", unsettableChar: "); + if (unsettableCharESet) + result.append(unsettableChar); + else + result.append(""); + result.append(", unsettableDate: "); + if (unsettableDateESet) + result.append(unsettableDate); + else + result.append(""); + result.append(", unsettableDouble: "); + if (unsettableDoubleESet) + result.append(unsettableDouble); + else + result.append(""); + result.append(", unsettableFloat: "); + if (unsettableFloatESet) + result.append(unsettableFloat); + else + result.append(""); + result.append(", unsettableInt: "); + if (unsettableIntESet) + result.append(unsettableInt); + else + result.append(""); + result.append(", unsettableLong: "); + if (unsettableLongESet) + result.append(unsettableLong); + else + result.append(""); + result.append(", unsettableShort: "); + if (unsettableShortESet) + result.append(unsettableShort); + else + result.append(""); + result.append(", unsettableString: "); + if (unsettableStringESet) + result.append(unsettableString); + else + result.append(""); + result.append(", unsettableVAT: "); + if (unsettableVATESet) + result.append(unsettableVAT); + else + result.append(""); + result.append(')'); + return result.toString(); + } + +} // Unsettable1Impl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Unsettable2WithDefaultImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Unsettable2WithDefaultImpl.java new file mode 100644 index 0000000000..c3538e2275 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Unsettable2WithDefaultImpl.java @@ -0,0 +1,1141 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model2.legacy.impl; + +import org.eclipse.emf.cdo.tests.model1.VAT; +import org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EcoreFactory; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import java.util.Date; + +/** + * An implementation of the model object 'Unsettable2 With Default'. + *

    + * The following features are implemented: + *

      + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable2WithDefaultImpl#isUnsettableBoolean Unsettable Boolean}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable2WithDefaultImpl#getUnsettableByte Unsettable Byte}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable2WithDefaultImpl#getUnsettableChar Unsettable Char}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable2WithDefaultImpl#getUnsettableDate Unsettable Date}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable2WithDefaultImpl#getUnsettableDouble Unsettable Double}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable2WithDefaultImpl#getUnsettableFloat Unsettable Float}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable2WithDefaultImpl#getUnsettableInt Unsettable Int}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable2WithDefaultImpl#getUnsettableLong Unsettable Long}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable2WithDefaultImpl#getUnsettableShort Unsettable Short}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable2WithDefaultImpl#getUnsettableString Unsettable String}
    • + *
    • {@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable2WithDefaultImpl#getUnsettableVAT Unsettable VAT}
    • + *
    + *

    + * + * @generated + */ +public class Unsettable2WithDefaultImpl extends EObjectImpl implements Unsettable2WithDefault +{ + /** + * The default value of the '{@link #isUnsettableBoolean() Unsettable Boolean}' attribute. + * + * @see #isUnsettableBoolean() + * @generated + * @ordered + */ + protected static final boolean UNSETTABLE_BOOLEAN_EDEFAULT = true; + + /** + * The cached value of the '{@link #isUnsettableBoolean() Unsettable Boolean}' attribute. + * + * @see #isUnsettableBoolean() + * @generated + * @ordered + */ + protected boolean unsettableBoolean = UNSETTABLE_BOOLEAN_EDEFAULT; + + /** + * This is true if the Unsettable Boolean attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableBooleanESet; + + /** + * The default value of the '{@link #getUnsettableByte() Unsettable Byte}' attribute. + * + * + * @see #getUnsettableByte() + * @generated + * @ordered + */ + protected static final byte UNSETTABLE_BYTE_EDEFAULT = 0x03; + + /** + * The cached value of the '{@link #getUnsettableByte() Unsettable Byte}' attribute. + * + * + * @see #getUnsettableByte() + * @generated + * @ordered + */ + protected byte unsettableByte = UNSETTABLE_BYTE_EDEFAULT; + + /** + * This is true if the Unsettable Byte attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableByteESet; + + /** + * The default value of the '{@link #getUnsettableChar() Unsettable Char}' attribute. + * + * + * @see #getUnsettableChar() + * @generated + * @ordered + */ + protected static final char UNSETTABLE_CHAR_EDEFAULT = '\''; + + /** + * The cached value of the '{@link #getUnsettableChar() Unsettable Char}' attribute. + * + * + * @see #getUnsettableChar() + * @generated + * @ordered + */ + protected char unsettableChar = UNSETTABLE_CHAR_EDEFAULT; + + /** + * This is true if the Unsettable Char attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableCharESet; + + /** + * The default value of the '{@link #getUnsettableDate() Unsettable Date}' attribute. + * + * + * @see #getUnsettableDate() + * @generated + * @ordered + */ + protected static final Date UNSETTABLE_DATE_EDEFAULT = (Date)EcoreFactory.eINSTANCE.createFromString( + EcorePackage.eINSTANCE.getEDate(), "2009-12-21T15:12:59"); + + /** + * The cached value of the '{@link #getUnsettableDate() Unsettable Date}' attribute. + * + * + * @see #getUnsettableDate() + * @generated + * @ordered + */ + protected Date unsettableDate = UNSETTABLE_DATE_EDEFAULT; + + /** + * This is true if the Unsettable Date attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableDateESet; + + /** + * The default value of the '{@link #getUnsettableDouble() Unsettable Double}' attribute. + * + * @see #getUnsettableDouble() + * @generated + * @ordered + */ + protected static final double UNSETTABLE_DOUBLE_EDEFAULT = 3.3; + + /** + * The cached value of the '{@link #getUnsettableDouble() Unsettable Double}' attribute. + * + * @see #getUnsettableDouble() + * @generated + * @ordered + */ + protected double unsettableDouble = UNSETTABLE_DOUBLE_EDEFAULT; + + /** + * This is true if the Unsettable Double attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableDoubleESet; + + /** + * The default value of the '{@link #getUnsettableFloat() Unsettable Float}' attribute. + * + * @see #getUnsettableFloat() + * @generated + * @ordered + */ + protected static final float UNSETTABLE_FLOAT_EDEFAULT = 4.4F; + + /** + * The cached value of the '{@link #getUnsettableFloat() Unsettable Float}' attribute. + * + * @see #getUnsettableFloat() + * @generated + * @ordered + */ + protected float unsettableFloat = UNSETTABLE_FLOAT_EDEFAULT; + + /** + * This is true if the Unsettable Float attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableFloatESet; + + /** + * The default value of the '{@link #getUnsettableInt() Unsettable Int}' attribute. + * + * + * @see #getUnsettableInt() + * @generated + * @ordered + */ + protected static final int UNSETTABLE_INT_EDEFAULT = 5; + + /** + * The cached value of the '{@link #getUnsettableInt() Unsettable Int}' attribute. + * + * + * @see #getUnsettableInt() + * @generated + * @ordered + */ + protected int unsettableInt = UNSETTABLE_INT_EDEFAULT; + + /** + * This is true if the Unsettable Int attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableIntESet; + + /** + * The default value of the '{@link #getUnsettableLong() Unsettable Long}' attribute. + * + * + * @see #getUnsettableLong() + * @generated + * @ordered + */ + protected static final long UNSETTABLE_LONG_EDEFAULT = 6L; + + /** + * The cached value of the '{@link #getUnsettableLong() Unsettable Long}' attribute. + * + * + * @see #getUnsettableLong() + * @generated + * @ordered + */ + protected long unsettableLong = UNSETTABLE_LONG_EDEFAULT; + + /** + * This is true if the Unsettable Long attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableLongESet; + + /** + * The default value of the '{@link #getUnsettableShort() Unsettable Short}' attribute. + * + * @see #getUnsettableShort() + * @generated + * @ordered + */ + protected static final short UNSETTABLE_SHORT_EDEFAULT = 7; + + /** + * The cached value of the '{@link #getUnsettableShort() Unsettable Short}' attribute. + * + * @see #getUnsettableShort() + * @generated + * @ordered + */ + protected short unsettableShort = UNSETTABLE_SHORT_EDEFAULT; + + /** + * This is true if the Unsettable Short attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableShortESet; + + /** + * The default value of the '{@link #getUnsettableString() Unsettable String}' attribute. + * + * @see #getUnsettableString() + * @generated + * @ordered + */ + protected static final String UNSETTABLE_STRING_EDEFAULT = "\"eike\""; + + /** + * The cached value of the '{@link #getUnsettableString() Unsettable String}' attribute. + * + * @see #getUnsettableString() + * @generated + * @ordered + */ + protected String unsettableString = UNSETTABLE_STRING_EDEFAULT; + + /** + * This is true if the Unsettable String attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableStringESet; + + /** + * The default value of the '{@link #getUnsettableVAT() Unsettable VAT}' attribute. + * + * + * @see #getUnsettableVAT() + * @generated + * @ordered + */ + protected static final VAT UNSETTABLE_VAT_EDEFAULT = VAT.VAT15; + + /** + * The cached value of the '{@link #getUnsettableVAT() Unsettable VAT}' attribute. + * + * + * @see #getUnsettableVAT() + * @generated + * @ordered + */ + protected VAT unsettableVAT = UNSETTABLE_VAT_EDEFAULT; + + /** + * This is true if the Unsettable VAT attribute has been set. + * + * @generated + * @ordered + */ + protected boolean unsettableVATESet; + + /** + * + * @generated + */ + protected Unsettable2WithDefaultImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model2Package.eINSTANCE.getUnsettable2WithDefault(); + } + + /** + * + * @generated + */ + public boolean isUnsettableBoolean() + { + return unsettableBoolean; + } + + /** + * + * @generated + */ + public void setUnsettableBoolean(boolean newUnsettableBoolean) + { + boolean oldUnsettableBoolean = unsettableBoolean; + unsettableBoolean = newUnsettableBoolean; + boolean oldUnsettableBooleanESet = unsettableBooleanESet; + unsettableBooleanESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN, + oldUnsettableBoolean, unsettableBoolean, !oldUnsettableBooleanESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableBoolean() + { + boolean oldUnsettableBoolean = unsettableBoolean; + boolean oldUnsettableBooleanESet = unsettableBooleanESet; + unsettableBoolean = UNSETTABLE_BOOLEAN_EDEFAULT; + unsettableBooleanESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, + Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN, oldUnsettableBoolean, + UNSETTABLE_BOOLEAN_EDEFAULT, oldUnsettableBooleanESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableBoolean() + { + return unsettableBooleanESet; + } + + /** + * + * @generated + */ + public byte getUnsettableByte() + { + return unsettableByte; + } + + /** + * + * @generated + */ + public void setUnsettableByte(byte newUnsettableByte) + { + byte oldUnsettableByte = unsettableByte; + unsettableByte = newUnsettableByte; + boolean oldUnsettableByteESet = unsettableByteESet; + unsettableByteESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE, + oldUnsettableByte, unsettableByte, !oldUnsettableByteESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableByte() + { + byte oldUnsettableByte = unsettableByte; + boolean oldUnsettableByteESet = unsettableByteESet; + unsettableByte = UNSETTABLE_BYTE_EDEFAULT; + unsettableByteESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE, + oldUnsettableByte, UNSETTABLE_BYTE_EDEFAULT, oldUnsettableByteESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableByte() + { + return unsettableByteESet; + } + + /** + * + * @generated + */ + public char getUnsettableChar() + { + return unsettableChar; + } + + /** + * + * @generated + */ + public void setUnsettableChar(char newUnsettableChar) + { + char oldUnsettableChar = unsettableChar; + unsettableChar = newUnsettableChar; + boolean oldUnsettableCharESet = unsettableCharESet; + unsettableCharESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR, + oldUnsettableChar, unsettableChar, !oldUnsettableCharESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableChar() + { + char oldUnsettableChar = unsettableChar; + boolean oldUnsettableCharESet = unsettableCharESet; + unsettableChar = UNSETTABLE_CHAR_EDEFAULT; + unsettableCharESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR, + oldUnsettableChar, UNSETTABLE_CHAR_EDEFAULT, oldUnsettableCharESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableChar() + { + return unsettableCharESet; + } + + /** + * + * @generated + */ + public Date getUnsettableDate() + { + return unsettableDate; + } + + /** + * + * @generated + */ + public void setUnsettableDate(Date newUnsettableDate) + { + Date oldUnsettableDate = unsettableDate; + unsettableDate = newUnsettableDate; + boolean oldUnsettableDateESet = unsettableDateESet; + unsettableDateESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE, + oldUnsettableDate, unsettableDate, !oldUnsettableDateESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableDate() + { + Date oldUnsettableDate = unsettableDate; + boolean oldUnsettableDateESet = unsettableDateESet; + unsettableDate = UNSETTABLE_DATE_EDEFAULT; + unsettableDateESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE, + oldUnsettableDate, UNSETTABLE_DATE_EDEFAULT, oldUnsettableDateESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableDate() + { + return unsettableDateESet; + } + + /** + * + * @generated + */ + public double getUnsettableDouble() + { + return unsettableDouble; + } + + /** + * + * @generated + */ + public void setUnsettableDouble(double newUnsettableDouble) + { + double oldUnsettableDouble = unsettableDouble; + unsettableDouble = newUnsettableDouble; + boolean oldUnsettableDoubleESet = unsettableDoubleESet; + unsettableDoubleESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE, + oldUnsettableDouble, unsettableDouble, !oldUnsettableDoubleESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableDouble() + { + double oldUnsettableDouble = unsettableDouble; + boolean oldUnsettableDoubleESet = unsettableDoubleESet; + unsettableDouble = UNSETTABLE_DOUBLE_EDEFAULT; + unsettableDoubleESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, + Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE, oldUnsettableDouble, UNSETTABLE_DOUBLE_EDEFAULT, + oldUnsettableDoubleESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableDouble() + { + return unsettableDoubleESet; + } + + /** + * + * @generated + */ + public float getUnsettableFloat() + { + return unsettableFloat; + } + + /** + * + * @generated + */ + public void setUnsettableFloat(float newUnsettableFloat) + { + float oldUnsettableFloat = unsettableFloat; + unsettableFloat = newUnsettableFloat; + boolean oldUnsettableFloatESet = unsettableFloatESet; + unsettableFloatESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT, + oldUnsettableFloat, unsettableFloat, !oldUnsettableFloatESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableFloat() + { + float oldUnsettableFloat = unsettableFloat; + boolean oldUnsettableFloatESet = unsettableFloatESet; + unsettableFloat = UNSETTABLE_FLOAT_EDEFAULT; + unsettableFloatESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT, + oldUnsettableFloat, UNSETTABLE_FLOAT_EDEFAULT, oldUnsettableFloatESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableFloat() + { + return unsettableFloatESet; + } + + /** + * + * @generated + */ + public int getUnsettableInt() + { + return unsettableInt; + } + + /** + * + * @generated + */ + public void setUnsettableInt(int newUnsettableInt) + { + int oldUnsettableInt = unsettableInt; + unsettableInt = newUnsettableInt; + boolean oldUnsettableIntESet = unsettableIntESet; + unsettableIntESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT, + oldUnsettableInt, unsettableInt, !oldUnsettableIntESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableInt() + { + int oldUnsettableInt = unsettableInt; + boolean oldUnsettableIntESet = unsettableIntESet; + unsettableInt = UNSETTABLE_INT_EDEFAULT; + unsettableIntESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT, + oldUnsettableInt, UNSETTABLE_INT_EDEFAULT, oldUnsettableIntESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableInt() + { + return unsettableIntESet; + } + + /** + * + * @generated + */ + public long getUnsettableLong() + { + return unsettableLong; + } + + /** + * + * @generated + */ + public void setUnsettableLong(long newUnsettableLong) + { + long oldUnsettableLong = unsettableLong; + unsettableLong = newUnsettableLong; + boolean oldUnsettableLongESet = unsettableLongESet; + unsettableLongESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG, + oldUnsettableLong, unsettableLong, !oldUnsettableLongESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableLong() + { + long oldUnsettableLong = unsettableLong; + boolean oldUnsettableLongESet = unsettableLongESet; + unsettableLong = UNSETTABLE_LONG_EDEFAULT; + unsettableLongESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG, + oldUnsettableLong, UNSETTABLE_LONG_EDEFAULT, oldUnsettableLongESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableLong() + { + return unsettableLongESet; + } + + /** + * + * @generated + */ + public short getUnsettableShort() + { + return unsettableShort; + } + + /** + * + * @generated + */ + public void setUnsettableShort(short newUnsettableShort) + { + short oldUnsettableShort = unsettableShort; + unsettableShort = newUnsettableShort; + boolean oldUnsettableShortESet = unsettableShortESet; + unsettableShortESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT, + oldUnsettableShort, unsettableShort, !oldUnsettableShortESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableShort() + { + short oldUnsettableShort = unsettableShort; + boolean oldUnsettableShortESet = unsettableShortESet; + unsettableShort = UNSETTABLE_SHORT_EDEFAULT; + unsettableShortESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT, + oldUnsettableShort, UNSETTABLE_SHORT_EDEFAULT, oldUnsettableShortESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableShort() + { + return unsettableShortESet; + } + + /** + * + * @generated + */ + public String getUnsettableString() + { + return unsettableString; + } + + /** + * + * @generated + */ + public void setUnsettableString(String newUnsettableString) + { + String oldUnsettableString = unsettableString; + unsettableString = newUnsettableString; + boolean oldUnsettableStringESet = unsettableStringESet; + unsettableStringESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING, + oldUnsettableString, unsettableString, !oldUnsettableStringESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableString() + { + String oldUnsettableString = unsettableString; + boolean oldUnsettableStringESet = unsettableStringESet; + unsettableString = UNSETTABLE_STRING_EDEFAULT; + unsettableStringESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, + Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING, oldUnsettableString, UNSETTABLE_STRING_EDEFAULT, + oldUnsettableStringESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableString() + { + return unsettableStringESet; + } + + /** + * + * @generated + */ + public VAT getUnsettableVAT() + { + return unsettableVAT; + } + + /** + * + * @generated + */ + public void setUnsettableVAT(VAT newUnsettableVAT) + { + VAT oldUnsettableVAT = unsettableVAT; + unsettableVAT = newUnsettableVAT == null ? UNSETTABLE_VAT_EDEFAULT : newUnsettableVAT; + boolean oldUnsettableVATESet = unsettableVATESet; + unsettableVATESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT, + oldUnsettableVAT, unsettableVAT, !oldUnsettableVATESet)); + } + + /** + * + * @generated + */ + public void unsetUnsettableVAT() + { + VAT oldUnsettableVAT = unsettableVAT; + boolean oldUnsettableVATESet = unsettableVATESet; + unsettableVAT = UNSETTABLE_VAT_EDEFAULT; + unsettableVATESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT, + oldUnsettableVAT, UNSETTABLE_VAT_EDEFAULT, oldUnsettableVATESet)); + } + + /** + * + * @generated + */ + public boolean isSetUnsettableVAT() + { + return unsettableVATESet; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN: + return isUnsettableBoolean(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE: + return getUnsettableByte(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR: + return getUnsettableChar(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE: + return getUnsettableDate(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE: + return getUnsettableDouble(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT: + return getUnsettableFloat(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT: + return getUnsettableInt(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG: + return getUnsettableLong(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT: + return getUnsettableShort(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING: + return getUnsettableString(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT: + return getUnsettableVAT(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN: + setUnsettableBoolean((Boolean)newValue); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE: + setUnsettableByte((Byte)newValue); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR: + setUnsettableChar((Character)newValue); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE: + setUnsettableDate((Date)newValue); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE: + setUnsettableDouble((Double)newValue); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT: + setUnsettableFloat((Float)newValue); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT: + setUnsettableInt((Integer)newValue); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG: + setUnsettableLong((Long)newValue); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT: + setUnsettableShort((Short)newValue); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING: + setUnsettableString((String)newValue); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT: + setUnsettableVAT((VAT)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN: + unsetUnsettableBoolean(); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE: + unsetUnsettableByte(); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR: + unsetUnsettableChar(); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE: + unsetUnsettableDate(); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE: + unsetUnsettableDouble(); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT: + unsetUnsettableFloat(); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT: + unsetUnsettableInt(); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG: + unsetUnsettableLong(); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT: + unsetUnsettableShort(); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING: + unsetUnsettableString(); + return; + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT: + unsetUnsettableVAT(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN: + return isSetUnsettableBoolean(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE: + return isSetUnsettableByte(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR: + return isSetUnsettableChar(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE: + return isSetUnsettableDate(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE: + return isSetUnsettableDouble(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT: + return isSetUnsettableFloat(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT: + return isSetUnsettableInt(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG: + return isSetUnsettableLong(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT: + return isSetUnsettableShort(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING: + return isSetUnsettableString(); + case Model2Package.UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT: + return isSetUnsettableVAT(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (unsettableBoolean: "); + if (unsettableBooleanESet) + result.append(unsettableBoolean); + else + result.append(""); + result.append(", unsettableByte: "); + if (unsettableByteESet) + result.append(unsettableByte); + else + result.append(""); + result.append(", unsettableChar: "); + if (unsettableCharESet) + result.append(unsettableChar); + else + result.append(""); + result.append(", unsettableDate: "); + if (unsettableDateESet) + result.append(unsettableDate); + else + result.append(""); + result.append(", unsettableDouble: "); + if (unsettableDoubleESet) + result.append(unsettableDouble); + else + result.append(""); + result.append(", unsettableFloat: "); + if (unsettableFloatESet) + result.append(unsettableFloat); + else + result.append(""); + result.append(", unsettableInt: "); + if (unsettableIntESet) + result.append(unsettableInt); + else + result.append(""); + result.append(", unsettableLong: "); + if (unsettableLongESet) + result.append(unsettableLong); + else + result.append(""); + result.append(", unsettableShort: "); + if (unsettableShortESet) + result.append(unsettableShort); + else + result.append(""); + result.append(", unsettableString: "); + if (unsettableStringESet) + result.append(unsettableString); + else + result.append(""); + result.append(", unsettableVAT: "); + if (unsettableVATESet) + result.append(unsettableVAT); + else + result.append(""); + result.append(')'); + return result.toString(); + } + +} // Unsettable2WithDefaultImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/util/Model2AdapterFactory.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/util/Model2AdapterFactory.java new file mode 100644 index 0000000000..d7c9b6c6b8 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/util/Model2AdapterFactory.java @@ -0,0 +1,595 @@ +/** + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model2.legacy.util; + +import org.eclipse.emf.cdo.tests.model1.Address; +import org.eclipse.emf.cdo.tests.model1.Order; +import org.eclipse.emf.cdo.tests.model1.PurchaseOrder; +import org.eclipse.emf.cdo.tests.model1.VAT; +import org.eclipse.emf.cdo.tests.model2.EnumListHolder; +import org.eclipse.emf.cdo.tests.model2.MapHolder; +import org.eclipse.emf.cdo.tests.model2.NotUnsettable; +import org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault; +import org.eclipse.emf.cdo.tests.model2.PersistentContainment; +import org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder; +import org.eclipse.emf.cdo.tests.model2.Task; +import org.eclipse.emf.cdo.tests.model2.TaskContainer; +import org.eclipse.emf.cdo.tests.model2.TransientContainer; +import org.eclipse.emf.cdo.tests.model2.Unsettable1; +import org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +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 java.util.Map; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package + * @generated + */ +public class Model2AdapterFactory extends AdapterFactoryImpl +{ + /** + * The cached model package. + * + * + * @generated + */ + protected static Model2Package modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public Model2AdapterFactory() + { + if (modelPackage == null) + { + modelPackage = Model2Package.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @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 createXXX methods. + * + * + * @generated + */ + protected Model2Switch modelSwitch = new Model2Switch() + { + @Override + public Adapter caseSpecialPurchaseOrder(SpecialPurchaseOrder object) + { + return createSpecialPurchaseOrderAdapter(); + } + + @Override + public Adapter caseTaskContainer(TaskContainer object) + { + return createTaskContainerAdapter(); + } + + @Override + public Adapter caseTask(Task object) + { + return createTaskAdapter(); + } + + @Override + public Adapter caseUnsettable1(Unsettable1 object) + { + return createUnsettable1Adapter(); + } + + @Override + public Adapter caseUnsettable2WithDefault(Unsettable2WithDefault object) + { + return createUnsettable2WithDefaultAdapter(); + } + + @Override + public Adapter casePersistentContainment(PersistentContainment object) + { + return createPersistentContainmentAdapter(); + } + + @Override + public Adapter caseTransientContainer(TransientContainer object) + { + return createTransientContainerAdapter(); + } + + @Override + public Adapter caseNotUnsettable(NotUnsettable object) + { + return createNotUnsettableAdapter(); + } + + @Override + public Adapter caseNotUnsettableWithDefault(NotUnsettableWithDefault object) + { + return createNotUnsettableWithDefaultAdapter(); + } + + @Override + public Adapter caseMapHolder(MapHolder object) + { + return createMapHolderAdapter(); + } + + @Override + public Adapter caseStringToStringMap(Map.Entry object) + { + return createStringToStringMapAdapter(); + } + + @Override + public Adapter caseIntegerToStringMap(Map.Entry object) + { + return createIntegerToStringMapAdapter(); + } + + @Override + public Adapter caseStringToVATMap(Map.Entry object) + { + return createStringToVATMapAdapter(); + } + + @Override + public Adapter caseStringToAddressContainmentMap(Map.Entry object) + { + return createStringToAddressContainmentMapAdapter(); + } + + @Override + public Adapter caseStringToAddressReferenceMap(Map.Entry object) + { + return createStringToAddressReferenceMapAdapter(); + } + + @Override + public Adapter caseEObjectToEObjectMap(Map.Entry object) + { + return createEObjectToEObjectMapAdapter(); + } + + @Override + public Adapter caseEObjectToEObjectKeyContainedMap(Map.Entry object) + { + return createEObjectToEObjectKeyContainedMapAdapter(); + } + + @Override + public Adapter caseEObjectToEObjectBothContainedMap(Map.Entry object) + { + return createEObjectToEObjectBothContainedMapAdapter(); + } + + @Override + public Adapter caseEObjectToEObjectValueContainedMap(Map.Entry object) + { + return createEObjectToEObjectValueContainedMapAdapter(); + } + + @Override + public Adapter caseEnumListHolder(EnumListHolder object) + { + return createEnumListHolderAdapter(); + } + + @Override + public Adapter caseOrder(Order object) + { + return createOrderAdapter(); + } + + @Override + public Adapter casePurchaseOrder(PurchaseOrder object) + { + return createPurchaseOrderAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) + { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @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.cdo.tests.model2.SpecialPurchaseOrder Special Purchase Order}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder + * @generated + */ + public Adapter createSpecialPurchaseOrderAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.TaskContainer Task Container}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.emf.cdo.tests.model2.TaskContainer + * @generated + */ + public Adapter createTaskContainerAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.Task Task}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.emf.cdo.tests.model2.Task + * @generated + */ + public Adapter createTaskAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1 Unsettable1}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.emf.cdo.tests.model2.Unsettable1 + * @generated + */ + public Adapter createUnsettable1Adapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault Unsettable2 With Default}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault + * @generated + */ + public Adapter createUnsettable2WithDefaultAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.PersistentContainment Persistent Containment}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.emf.cdo.tests.model2.PersistentContainment + * @generated + */ + public Adapter createPersistentContainmentAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer Transient Container}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.emf.cdo.tests.model2.TransientContainer + * @generated + */ + public Adapter createTransientContainerAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable Not Unsettable}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettable + * @generated + */ + public Adapter createNotUnsettableAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault Not Unsettable With Default}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault + * @generated + */ + public Adapter createNotUnsettableWithDefaultAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.MapHolder Map Holder}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.emf.cdo.tests.model2.MapHolder + * @generated + */ + public Adapter createMapHolderAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link java.util.Map.Entry String To String Map}'. + * + * 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. + * + * @return the new adapter. + * @see java.util.Map.Entry + * @generated + */ + public Adapter createStringToStringMapAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link java.util.Map.Entry Integer To String Map}'. + * + * 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. + * + * @return the new adapter. + * @see java.util.Map.Entry + * @generated + */ + public Adapter createIntegerToStringMapAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link java.util.Map.Entry String To VAT Map}'. + * + * 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. + * + * @return the new adapter. + * @see java.util.Map.Entry + * @generated + */ + public Adapter createStringToVATMapAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link java.util.Map.Entry String To Address Containment Map}'. + * + * 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. + * + * @return the new adapter. + * @see java.util.Map.Entry + * @generated + */ + public Adapter createStringToAddressContainmentMapAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link java.util.Map.Entry String To Address Reference Map}'. + * + * 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. + * + * @return the new adapter. + * @see java.util.Map.Entry + * @generated + */ + public Adapter createStringToAddressReferenceMapAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link java.util.Map.Entry EObject To EObject Map}'. + * + * 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. + * + * @return the new adapter. + * @see java.util.Map.Entry + * @generated + */ + public Adapter createEObjectToEObjectMapAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link java.util.Map.Entry EObject To EObject Key Contained Map}'. + * + * 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. + * + * @return the new adapter. + * @see java.util.Map.Entry + * @generated + */ + public Adapter createEObjectToEObjectKeyContainedMapAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link java.util.Map.Entry EObject To EObject Both Contained Map}'. + * + * 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. + * + * @return the new adapter. + * @see java.util.Map.Entry + * @generated + */ + public Adapter createEObjectToEObjectBothContainedMapAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link java.util.Map.Entry EObject To EObject Value Contained Map}'. + * + * 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. + * + * @return the new adapter. + * @see java.util.Map.Entry + * @generated + */ + public Adapter createEObjectToEObjectValueContainedMapAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.EnumListHolder Enum List Holder}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.emf.cdo.tests.model2.EnumListHolder + * @generated + */ + public Adapter createEnumListHolderAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.Order Order}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.emf.cdo.tests.model1.Order + * @generated + */ + public Adapter createOrderAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder Purchase Order}'. + * + * 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. + * + * @return the new adapter. + * @see org.eclipse.emf.cdo.tests.model1.PurchaseOrder + * @generated + */ + public Adapter createPurchaseOrderAdapter() + { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() + { + return null; + } + +} //Model2AdapterFactory diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/util/Model2Switch.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/util/Model2Switch.java new file mode 100644 index 0000000000..fc49637d4e --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/util/Model2Switch.java @@ -0,0 +1,646 @@ +/** + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model2.legacy.util; + +import org.eclipse.emf.cdo.tests.model1.Address; +import org.eclipse.emf.cdo.tests.model1.Order; +import org.eclipse.emf.cdo.tests.model1.PurchaseOrder; +import org.eclipse.emf.cdo.tests.model1.VAT; +import org.eclipse.emf.cdo.tests.model2.EnumListHolder; +import org.eclipse.emf.cdo.tests.model2.MapHolder; +import org.eclipse.emf.cdo.tests.model2.NotUnsettable; +import org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault; +import org.eclipse.emf.cdo.tests.model2.PersistentContainment; +import org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder; +import org.eclipse.emf.cdo.tests.model2.Task; +import org.eclipse.emf.cdo.tests.model2.TaskContainer; +import org.eclipse.emf.cdo.tests.model2.TransientContainer; +import org.eclipse.emf.cdo.tests.model2.Unsettable1; +import org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault; +import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.util.Switch; + +import java.util.Map; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX 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. + * + * @see org.eclipse.emf.cdo.tests.model2.legacy.Model2Package + * @generated + */ +public class Model2Switch extends Switch +{ + /** + * The cached model package + * + * + * @generated + */ + protected static Model2Package modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public Model2Switch() + { + if (modelPackage == null) + { + modelPackage = Model2Package.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) + { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) + { + switch (classifierID) + { + case Model2Package.SPECIAL_PURCHASE_ORDER: + { + SpecialPurchaseOrder specialPurchaseOrder = (SpecialPurchaseOrder)theEObject; + T result = caseSpecialPurchaseOrder(specialPurchaseOrder); + if (result == null) + result = casePurchaseOrder(specialPurchaseOrder); + if (result == null) + result = caseOrder(specialPurchaseOrder); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.TASK_CONTAINER: + { + TaskContainer taskContainer = (TaskContainer)theEObject; + T result = caseTaskContainer(taskContainer); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.TASK: + { + Task task = (Task)theEObject; + T result = caseTask(task); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.UNSETTABLE1: + { + Unsettable1 unsettable1 = (Unsettable1)theEObject; + T result = caseUnsettable1(unsettable1); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.UNSETTABLE2_WITH_DEFAULT: + { + Unsettable2WithDefault unsettable2WithDefault = (Unsettable2WithDefault)theEObject; + T result = caseUnsettable2WithDefault(unsettable2WithDefault); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.PERSISTENT_CONTAINMENT: + { + PersistentContainment persistentContainment = (PersistentContainment)theEObject; + T result = casePersistentContainment(persistentContainment); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.TRANSIENT_CONTAINER: + { + TransientContainer transientContainer = (TransientContainer)theEObject; + T result = caseTransientContainer(transientContainer); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.NOT_UNSETTABLE: + { + NotUnsettable notUnsettable = (NotUnsettable)theEObject; + T result = caseNotUnsettable(notUnsettable); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.NOT_UNSETTABLE_WITH_DEFAULT: + { + NotUnsettableWithDefault notUnsettableWithDefault = (NotUnsettableWithDefault)theEObject; + T result = caseNotUnsettableWithDefault(notUnsettableWithDefault); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.MAP_HOLDER: + { + MapHolder mapHolder = (MapHolder)theEObject; + T result = caseMapHolder(mapHolder); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.STRING_TO_STRING_MAP: + { + @SuppressWarnings("unchecked") + Map.Entry stringToStringMap = (Map.Entry)theEObject; + T result = caseStringToStringMap(stringToStringMap); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.INTEGER_TO_STRING_MAP: + { + @SuppressWarnings("unchecked") + Map.Entry integerToStringMap = (Map.Entry)theEObject; + T result = caseIntegerToStringMap(integerToStringMap); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.STRING_TO_VAT_MAP: + { + @SuppressWarnings("unchecked") + Map.Entry stringToVATMap = (Map.Entry)theEObject; + T result = caseStringToVATMap(stringToVATMap); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.STRING_TO_ADDRESS_CONTAINMENT_MAP: + { + @SuppressWarnings("unchecked") + Map.Entry stringToAddressContainmentMap = (Map.Entry)theEObject; + T result = caseStringToAddressContainmentMap(stringToAddressContainmentMap); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.STRING_TO_ADDRESS_REFERENCE_MAP: + { + @SuppressWarnings("unchecked") + Map.Entry stringToAddressReferenceMap = (Map.Entry)theEObject; + T result = caseStringToAddressReferenceMap(stringToAddressReferenceMap); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.EOBJECT_TO_EOBJECT_MAP: + { + @SuppressWarnings("unchecked") + Map.Entry eObjectToEObjectMap = (Map.Entry)theEObject; + T result = caseEObjectToEObjectMap(eObjectToEObjectMap); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.EOBJECT_TO_EOBJECT_KEY_CONTAINED_MAP: + { + @SuppressWarnings("unchecked") + Map.Entry eObjectToEObjectKeyContainedMap = (Map.Entry)theEObject; + T result = caseEObjectToEObjectKeyContainedMap(eObjectToEObjectKeyContainedMap); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.EOBJECT_TO_EOBJECT_BOTH_CONTAINED_MAP: + { + @SuppressWarnings("unchecked") + Map.Entry eObjectToEObjectBothContainedMap = (Map.Entry)theEObject; + T result = caseEObjectToEObjectBothContainedMap(eObjectToEObjectBothContainedMap); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.EOBJECT_TO_EOBJECT_VALUE_CONTAINED_MAP: + { + @SuppressWarnings("unchecked") + Map.Entry eObjectToEObjectValueContainedMap = (Map.Entry)theEObject; + T result = caseEObjectToEObjectValueContainedMap(eObjectToEObjectValueContainedMap); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model2Package.ENUM_LIST_HOLDER: + { + EnumListHolder enumListHolder = (EnumListHolder)theEObject; + T result = caseEnumListHolder(enumListHolder); + if (result == null) + result = defaultCase(theEObject); + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Special Purchase Order'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Special Purchase Order'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSpecialPurchaseOrder(SpecialPurchaseOrder object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Task Container'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Task Container'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTaskContainer(TaskContainer object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Task'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Task'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTask(Task object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Unsettable1'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Unsettable1'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseUnsettable1(Unsettable1 object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Unsettable2 With Default'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Unsettable2 With Default'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseUnsettable2WithDefault(Unsettable2WithDefault object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Persistent Containment'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Persistent Containment'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePersistentContainment(PersistentContainment object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Transient Container'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Transient Container'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTransientContainer(TransientContainer object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Not Unsettable'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Not Unsettable'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNotUnsettable(NotUnsettable object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Not Unsettable With Default'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Not Unsettable With Default'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNotUnsettableWithDefault(NotUnsettableWithDefault object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Map Holder'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Map Holder'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMapHolder(MapHolder object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'String To String Map'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'String To String Map'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStringToStringMap(Map.Entry object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Integer To String Map'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Integer To String Map'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIntegerToStringMap(Map.Entry object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'String To VAT Map'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'String To VAT Map'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStringToVATMap(Map.Entry object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'String To Address Containment Map'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'String To Address Containment Map'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStringToAddressContainmentMap(Map.Entry object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'String To Address Reference Map'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'String To Address Reference Map'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStringToAddressReferenceMap(Map.Entry object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject To EObject Map'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject To EObject Map'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEObjectToEObjectMap(Map.Entry object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject To EObject Key Contained Map'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject To EObject Key Contained Map'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEObjectToEObjectKeyContainedMap(Map.Entry object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject To EObject Both Contained Map'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject To EObject Both Contained Map'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEObjectToEObjectBothContainedMap(Map.Entry object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject To EObject Value Contained Map'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject To EObject Value Contained Map'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEObjectToEObjectValueContainedMap(Map.Entry object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Enum List Holder'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Enum List Holder'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEnumListHolder(EnumListHolder object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Order'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Order'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOrder(Order object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Purchase Order'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Purchase Order'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePurchaseOrder(PurchaseOrder object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) + { + return null; + } + +} //Model2Switch diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/util/Model2AdapterFactory.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/util/Model2AdapterFactory.java index 911e43cc38..6a1727c557 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/util/Model2AdapterFactory.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/util/Model2AdapterFactory.java @@ -37,22 +37,21 @@ import java.util.Map; /** * The Adapter Factory for the model. It provides an adapter createXXX * method for each class of the model. - * * @see org.eclipse.emf.cdo.tests.model2.Model2Package * @generated */ public class Model2AdapterFactory extends AdapterFactoryImpl { /** - * The cached model package. - * + * The cached model package. + * * @generated */ protected static Model2Package modelPackage; /** - * Creates an instance of the adapter factory. - * + * Creates an instance of the adapter factory. + * * @generated */ public Model2AdapterFactory() @@ -64,10 +63,10 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Returns whether this factory is applicable for the type of the object. This implementation + * Returns whether this factory is applicable for the type of the object. + * This implementation * returns true if the object is either the model's package or is an instance object of the model. - * * @return whether this factory is applicable for the type of the object. * @generated */ @@ -86,8 +85,8 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * The switch that delegates to the createXXX methods. - * + * The switch that delegates to the createXXX methods. + * * @generated */ protected Model2Switch modelSwitch = new Model2Switch() @@ -232,10 +231,9 @@ public class Model2AdapterFactory extends AdapterFactoryImpl }; /** - * Creates an adapter for the target. - * - * @param target - * the object to adapt. + * Creates an adapter for the target. + * + * @param target the object to adapt. * @return the adapter for the target. * @generated */ @@ -246,11 +244,10 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder - * Special Purchase Order}'. This default implementation returns null so that we can + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder Special Purchase Order}'. + * 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. - * * @return the new adapter. * @see org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder * @generated @@ -261,10 +258,9 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.TaskContainer - * Task Container}'. This default implementation returns null so that we can easily + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.TaskContainer Task Container}'. + * 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. - * * @return the new adapter. * @see org.eclipse.emf.cdo.tests.model2.TaskContainer * @generated @@ -289,10 +285,9 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1 - * Unsettable1}'. This default implementation returns null so that we can easily + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1 Unsettable1}'. + * 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. - * * @return the new adapter. * @see org.eclipse.emf.cdo.tests.model2.Unsettable1 * @generated @@ -303,11 +298,10 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault - * Unsettable2 With Default}'. This default implementation returns null so that we + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault Unsettable2 With Default}'. + * 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. - * * @return the new adapter. * @see org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault * @generated @@ -318,11 +312,10 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.PersistentContainment - * Persistent Containment}'. This default implementation returns null so that we can + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.PersistentContainment Persistent Containment}'. + * 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. - * * @return the new adapter. * @see org.eclipse.emf.cdo.tests.model2.PersistentContainment * @generated @@ -333,11 +326,10 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer - * Transient Container}'. This default implementation returns null so that we can + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.TransientContainer Transient Container}'. + * 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. - * * @return the new adapter. * @see org.eclipse.emf.cdo.tests.model2.TransientContainer * @generated @@ -348,10 +340,9 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable - * Not Unsettable}'. This default implementation returns null so that we can easily + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettable Not Unsettable}'. + * 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. - * * @return the new adapter. * @see org.eclipse.emf.cdo.tests.model2.NotUnsettable * @generated @@ -362,11 +353,10 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault - * Not Unsettable With Default}'. This default implementation returns null so that we + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault Not Unsettable With Default}'. + * 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. - * * @return the new adapter. * @see org.eclipse.emf.cdo.tests.model2.NotUnsettableWithDefault * @generated @@ -377,10 +367,9 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.MapHolder - * Map Holder}'. This default implementation returns null so that we can easily + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.MapHolder Map Holder}'. + * 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. - * * @return the new adapter. * @see org.eclipse.emf.cdo.tests.model2.MapHolder * @generated @@ -433,11 +422,10 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link java.util.Map.Entry - * String To Address Containment Map}'. This default implementation returns null so + * Creates a new adapter for an object of class '{@link java.util.Map.Entry String To Address Containment Map}'. + * 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. * - * * @return the new adapter. * @see java.util.Map.Entry * @generated @@ -448,10 +436,9 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link java.util.Map.Entry String To Address Reference Map} - * '. This default implementation returns null so that we can easily ignore cases; it's useful + * Creates a new adapter for an object of class '{@link java.util.Map.Entry String To Address Reference Map}'. + * 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. - * * @return the new adapter. * @see java.util.Map.Entry * @generated @@ -476,11 +463,10 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link java.util.Map.Entry - * EObject To EObject Key Contained Map}'. This default implementation returns null + * Creates a new adapter for an object of class '{@link java.util.Map.Entry EObject To EObject Key Contained Map}'. + * 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. * - * * @return the new adapter. * @see java.util.Map.Entry * @generated @@ -491,11 +477,10 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link java.util.Map.Entry - * EObject To EObject Both Contained Map}'. This default implementation returns null + * Creates a new adapter for an object of class '{@link java.util.Map.Entry EObject To EObject Both Contained Map}'. + * 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. * - * * @return the new adapter. * @see java.util.Map.Entry * @generated @@ -506,11 +491,10 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link java.util.Map.Entry - * EObject To EObject Value Contained Map}'. This default implementation returns null + * Creates a new adapter for an object of class '{@link java.util.Map.Entry EObject To EObject Value Contained Map}'. + * 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. * - * * @return the new adapter. * @see java.util.Map.Entry * @generated @@ -521,10 +505,9 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.EnumListHolder - * Enum List Holder}'. This default implementation returns null so that we can easily + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model2.EnumListHolder Enum List Holder}'. + * 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. - * * @return the new adapter. * @see org.eclipse.emf.cdo.tests.model2.EnumListHolder * @generated @@ -549,10 +532,9 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder - * Purchase Order}'. This default implementation returns null so that we can easily + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder Purchase Order}'. + * 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. - * * @return the new adapter. * @see org.eclipse.emf.cdo.tests.model1.PurchaseOrder * @generated @@ -563,9 +545,9 @@ public class Model2AdapterFactory extends AdapterFactoryImpl } /** - * Creates a new adapter for the default case. This default implementation returns null. This default implementation returns null. - * * @return the new adapter. * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/util/Model2Switch.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/util/Model2Switch.java index 2e3bbf139d..549053c335 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/util/Model2Switch.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/util/Model2Switch.java @@ -27,10 +27,10 @@ import org.eclipse.emf.cdo.tests.model2.TransientContainer; import org.eclipse.emf.cdo.tests.model2.Unsettable1; import org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault; -import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.util.Switch; -import java.util.List; import java.util.Map; /** @@ -38,22 +38,21 @@ import java.util.Map; * {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX 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. - * * @see org.eclipse.emf.cdo.tests.model2.Model2Package * @generated */ -public class Model2Switch +public class Model2Switch extends Switch { /** - * The cached model package - * + * The cached model package + * * @generated */ protected static Model2Package modelPackage; /** - * Creates an instance of the switch. - * + * Creates an instance of the switch. + * * @generated */ public Model2Switch() @@ -65,44 +64,26 @@ public class Model2Switch } /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - public T doSwitch(EObject theEObject) - { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. + * Checks whether this is a switch for the given package. + * + * + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. * @generated */ - protected T doSwitch(EClass theEClass, EObject theEObject) + @Override + protected boolean isSwitchFor(EPackage ePackage) { - if (theEClass.eContainer() == modelPackage) - { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else - { - List eSuperTypes = theEClass.getESuperTypes(); - return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); - } + return ePackage == modelPackage; } /** * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. * - * * @return the first non-null result returned by a caseXXX call. * @generated */ + @Override protected T doSwitch(int classifierID, EObject theEObject) { switch (classifierID) @@ -302,11 +283,10 @@ public class Model2Switch } /** - * Returns the result of interpreting the object as an instance of 'Task Container'. + * Returns the result of interpreting the object as an instance of 'Task Container'. + * * This implementation returns null; returning a non-null result will terminate the switch. - * - * @param object - * the target of the switch. + * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Task Container'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -317,11 +297,10 @@ public class Model2Switch } /** - * Returns the result of interpreting the object as an instance of 'Task'. This + * Returns the result of interpreting the object as an instance of 'Task'. + * This * implementation returns null; returning a non-null result will terminate the switch. - * - * @param object - * the target of the switch. + * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Task'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -332,11 +311,10 @@ public class Model2Switch } /** - * Returns the result of interpreting the object as an instance of 'Unsettable1'. + * Returns the result of interpreting the object as an instance of 'Unsettable1'. + * * This implementation returns null; returning a non-null result will terminate the switch. - * - * @param object - * the target of the switch. + * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Unsettable1'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -379,11 +357,10 @@ public class Model2Switch } /** - * Returns the result of interpreting the object as an instance of 'Transient Container'. This implementation returns null; returning a non-null result will terminate the switch. - * - * @param object - * the target of the switch. + * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Transient Container'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -394,11 +371,10 @@ public class Model2Switch } /** - * Returns the result of interpreting the object as an instance of 'Not Unsettable'. + * Returns the result of interpreting the object as an instance of 'Not Unsettable'. + * * This implementation returns null; returning a non-null result will terminate the switch. - * - * @param object - * the target of the switch. + * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Not Unsettable'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -425,11 +401,10 @@ public class Model2Switch } /** - * Returns the result of interpreting the object as an instance of 'Map Holder'. This + * Returns the result of interpreting the object as an instance of 'Map Holder'. + * This * implementation returns null; returning a non-null result will terminate the switch. - * - * @param object - * the target of the switch. + * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Map Holder'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -472,11 +447,10 @@ public class Model2Switch } /** - * Returns the result of interpreting the object as an instance of 'String To VAT Map'. This implementation returns null; returning a non-null result will terminate the switch. - * - * @param object - * the target of the switch. + * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'String To VAT Map'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -538,9 +512,7 @@ public class Model2Switch * Returns the result of interpreting the object as an instance of 'EObject To EObject Key Contained Map'. * This implementation returns null; returning a non-null result will terminate the switch. * - * - * @param object - * the target of the switch. + * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'EObject To EObject Key Contained Map'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -554,9 +526,7 @@ public class Model2Switch * Returns the result of interpreting the object as an instance of 'EObject To EObject Both Contained Map'. * This implementation returns null; returning a non-null result will terminate the switch. * - * - * @param object - * the target of the switch. + * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'EObject To EObject Both Contained Map'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -570,9 +540,7 @@ public class Model2Switch * Returns the result of interpreting the object as an instance of 'EObject To EObject Value Contained Map'. * This implementation returns null; returning a non-null result will terminate the switch. * - * - * @param object - * the target of the switch. + * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'EObject To EObject Value Contained Map'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -583,11 +551,10 @@ public class Model2Switch } /** - * Returns the result of interpreting the object as an instance of 'Enum List Holder'. This implementation returns null; returning a non-null result will terminate the switch. - * - * @param object - * the target of the switch. + * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Enum List Holder'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -598,11 +565,10 @@ public class Model2Switch } /** - * Returns the result of interpreting the object as an instance of 'Order'. This + * Returns the result of interpreting the object as an instance of 'Order'. + * This * implementation returns null; returning a non-null result will terminate the switch. - * - * @param object - * the target of the switch. + * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Order'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -613,11 +579,10 @@ public class Model2Switch } /** - * Returns the result of interpreting the object as an instance of 'Purchase Order'. + * Returns the result of interpreting the object as an instance of 'Purchase Order'. + * * This implementation returns null; returning a non-null result will terminate the switch. - * - * @param object - * the target of the switch. + * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'Purchase Order'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -628,16 +593,16 @@ public class Model2Switch } /** - * Returns the result of interpreting the object as an instance of 'EObject'. This + * Returns the result of interpreting the object as an instance of 'EObject'. + * This * implementation returns null; returning a non-null result will terminate the switch, but this is the last case * anyway. - * - * @param object - * the target of the switch. + * @param object the target of the switch. * @return the result of interpreting the object as an instance of 'EObject'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) * @generated */ + @Override public T defaultCase(EObject object) { return null; -- cgit v1.2.3