From 2db962353ac9c595a26722704e3295a37c3d07e2 Mon Sep 17 00:00:00 2001 From: Eike Stepper Date: Sun, 6 Jan 2013 12:16:10 +0100 Subject: dfgdfg --- .../model/model6.legacy.genmodel | 6 +- .../emf/cdo/tests/legacy/model6/Model6Factory.java | 2 +- .../emf/cdo/tests/legacy/model6/Model6Package.java | 2 +- .../emf/cdo/tests/legacy/model6/impl/AImpl.java | 199 ---- .../emf/cdo/tests/legacy/model6/impl/BImpl.java | 226 ---- .../tests/legacy/model6/impl/BaseObjectImpl.java | 273 ----- .../emf/cdo/tests/legacy/model6/impl/CImpl.java | 47 - .../legacy/model6/impl/ContainmentObjectImpl.java | 272 ----- .../emf/cdo/tests/legacy/model6/impl/DImpl.java | 193 ---- .../emf/cdo/tests/legacy/model6/impl/EImpl.java | 161 --- .../emf/cdo/tests/legacy/model6/impl/FImpl.java | 161 --- .../emf/cdo/tests/legacy/model6/impl/GImpl.java | 386 ------- .../model6/impl/HasNillableAttributeImpl.java | 217 ---- .../cdo/tests/legacy/model6/impl/HoldableImpl.java | 176 --- .../cdo/tests/legacy/model6/impl/HolderImpl.java | 199 ---- .../legacy/model6/impl/Model6FactoryImpl.java | 451 -------- .../legacy/model6/impl/Model6PackageImpl.java | 1133 -------------------- .../tests/legacy/model6/impl/MyEnumListImpl.java | 170 --- .../model6/impl/MyEnumListUnsettableImpl.java | 193 ---- .../legacy/model6/impl/PropertiesMapEntryImpl.java | 401 ------- .../model6/impl/PropertiesMapEntryValueImpl.java | 185 ---- .../legacy/model6/impl/PropertiesMapImpl.java | 287 ----- .../legacy/model6/impl/ReferenceObjectImpl.java | 216 ---- .../emf/cdo/tests/legacy/model6/impl/RootImpl.java | 272 ----- .../cdo/tests/legacy/model6/impl/ThingImpl.java | 42 - .../legacy/model6/impl/UnorderedListImpl.java | 198 ---- .../emf/cdo/tests/model6/Model6Factory.java | 2 +- .../emf/cdo/tests/model6/Model6Package.java | 602 +---------- .../emf/cdo/tests/model6/impl/legacy/AImpl.java | 199 ++++ .../emf/cdo/tests/model6/impl/legacy/BImpl.java | 226 ++++ .../tests/model6/impl/legacy/BaseObjectImpl.java | 273 +++++ .../emf/cdo/tests/model6/impl/legacy/CImpl.java | 47 + .../model6/impl/legacy/ContainmentObjectImpl.java | 272 +++++ .../emf/cdo/tests/model6/impl/legacy/DImpl.java | 193 ++++ .../emf/cdo/tests/model6/impl/legacy/EImpl.java | 161 +++ .../emf/cdo/tests/model6/impl/legacy/FImpl.java | 161 +++ .../emf/cdo/tests/model6/impl/legacy/GImpl.java | 386 +++++++ .../impl/legacy/HasNillableAttributeImpl.java | 217 ++++ .../cdo/tests/model6/impl/legacy/HoldableImpl.java | 176 +++ .../cdo/tests/model6/impl/legacy/HolderImpl.java | 199 ++++ .../model6/impl/legacy/Model6FactoryImpl.java | 451 ++++++++ .../model6/impl/legacy/Model6PackageImpl.java | 1133 ++++++++++++++++++++ .../tests/model6/impl/legacy/MyEnumListImpl.java | 170 +++ .../impl/legacy/MyEnumListUnsettableImpl.java | 193 ++++ .../model6/impl/legacy/PropertiesMapEntryImpl.java | 401 +++++++ .../impl/legacy/PropertiesMapEntryValueImpl.java | 185 ++++ .../model6/impl/legacy/PropertiesMapImpl.java | 287 +++++ .../model6/impl/legacy/ReferenceObjectImpl.java | 216 ++++ .../emf/cdo/tests/model6/impl/legacy/RootImpl.java | 272 +++++ .../cdo/tests/model6/impl/legacy/ThingImpl.java | 42 + .../model6/impl/legacy/UnorderedListImpl.java | 198 ++++ 51 files changed, 6109 insertions(+), 6621 deletions(-) delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/AImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/BImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/BaseObjectImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/CImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ContainmentObjectImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/DImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/EImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/FImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/GImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/HasNillableAttributeImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/HoldableImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/HolderImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6FactoryImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6PackageImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/MyEnumListImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/MyEnumListUnsettableImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapEntryImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapEntryValueImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ReferenceObjectImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/RootImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ThingImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/UnorderedListImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/AImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BaseObjectImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/CImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ContainmentObjectImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/DImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/EImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/FImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/GImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HasNillableAttributeImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HoldableImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HolderImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6FactoryImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6PackageImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListUnsettableImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryValueImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ReferenceObjectImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/RootImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ThingImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/UnorderedListImpl.java diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/model/model6.legacy.genmodel b/plugins/org.eclipse.emf.cdo.tests.model6/model/model6.legacy.genmodel index 1171ead18d..08e8764ce3 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/model/model6.legacy.genmodel +++ b/plugins/org.eclipse.emf.cdo.tests.model6/model/model6.legacy.genmodel @@ -6,9 +6,9 @@ containmentProxies="true" complianceLevel="5.0" providerRootExtendsClass="" runtimeVersion="2.6"> model6.ecore CDO=org.eclipse.emf.cdo - + diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Factory.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Factory.java index 18d692fb19..c812c2168b 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Factory.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Factory.java @@ -23,7 +23,7 @@ public interface Model6Factory extends org.eclipse.emf.cdo.tests.model6.Model6Fa * * @generated */ - Model6Factory eINSTANCE = org.eclipse.emf.cdo.tests.legacy.model6.impl.Model6FactoryImpl.init(); + Model6Factory eINSTANCE = org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6FactoryImpl.init(); /** * Returns the package supported by this factory. diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Package.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Package.java index e4374217a5..00a5f14a93 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Package.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Package.java @@ -37,7 +37,7 @@ public interface Model6Package extends org.eclipse.emf.cdo.tests.model6.Model6Pa * * @generated */ - Model6Package eINSTANCE = org.eclipse.emf.cdo.tests.legacy.model6.impl.Model6PackageImpl.init(); + Model6Package eINSTANCE = org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl.init(); /** * Returns the factory that creates the instances of the model. diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/AImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/AImpl.java deleted file mode 100644 index 97a838f8b2..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/AImpl.java +++ /dev/null @@ -1,199 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.A; -import org.eclipse.emf.cdo.tests.model6.B; -import org.eclipse.emf.cdo.tests.model6.D; - -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.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object 'A'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.AImpl#getOwnedDs Owned Ds}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.AImpl#getOwnedBs Owned Bs}
  • - *
- *

- * - * @generated - */ -public class AImpl extends EObjectImpl implements A -{ - /** - * The cached value of the '{@link #getOwnedDs() Owned Ds}' containment reference list. - * - * @see #getOwnedDs() - * @generated - * @ordered - */ - protected EList ownedDs; - - /** - * The cached value of the '{@link #getOwnedBs() Owned Bs}' containment reference list. - * - * @see #getOwnedBs() - * @generated - * @ordered - */ - protected EList ownedBs; - - /** - * - * @generated - */ - protected AImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getA(); - } - - /** - * - * @generated - */ - public EList getOwnedDs() - { - if (ownedDs == null) - { - ownedDs = new EObjectContainmentEList.Resolving(D.class, this, Model6Package.A__OWNED_DS); - } - return ownedDs; - } - - /** - * - * @generated - */ - public EList getOwnedBs() - { - if (ownedBs == null) - { - ownedBs = new EObjectContainmentEList.Resolving(B.class, this, Model6Package.A__OWNED_BS); - } - return ownedBs; - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.A__OWNED_DS: - return ((InternalEList)getOwnedDs()).basicRemove(otherEnd, msgs); - case Model6Package.A__OWNED_BS: - return ((InternalEList)getOwnedBs()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.A__OWNED_DS: - return getOwnedDs(); - case Model6Package.A__OWNED_BS: - return getOwnedBs(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.A__OWNED_DS: - getOwnedDs().clear(); - getOwnedDs().addAll((Collection)newValue); - return; - case Model6Package.A__OWNED_BS: - getOwnedBs().clear(); - getOwnedBs().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.A__OWNED_DS: - getOwnedDs().clear(); - return; - case Model6Package.A__OWNED_BS: - getOwnedBs().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.A__OWNED_DS: - return ownedDs != null && !ownedDs.isEmpty(); - case Model6Package.A__OWNED_BS: - return ownedBs != null && !ownedBs.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // AImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/BImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/BImpl.java deleted file mode 100644 index d6096676a2..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/BImpl.java +++ /dev/null @@ -1,226 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.B; -import org.eclipse.emf.cdo.tests.model6.C; - -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; - -/** - * An implementation of the model object 'B'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BImpl#getOwnedC Owned C}
  • - *
- *

- * - * @generated - */ -public class BImpl extends EObjectImpl implements B -{ - /** - * The cached value of the '{@link #getOwnedC() Owned C}' containment reference. - * - * @see #getOwnedC() - * @generated - * @ordered - */ - protected C ownedC; - - /** - * - * @generated - */ - protected BImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getB(); - } - - /** - * - * @generated - */ - public C getOwnedC() - { - if (ownedC != null && ownedC.eIsProxy()) - { - InternalEObject oldOwnedC = (InternalEObject)ownedC; - ownedC = (C)eResolveProxy(oldOwnedC); - if (ownedC != oldOwnedC) - { - InternalEObject newOwnedC = (InternalEObject)ownedC; - NotificationChain msgs = oldOwnedC.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Model6Package.B__OWNED_C, - null, null); - if (newOwnedC.eInternalContainer() == null) - { - msgs = newOwnedC.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Model6Package.B__OWNED_C, null, msgs); - } - if (msgs != null) - msgs.dispatch(); - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.B__OWNED_C, oldOwnedC, ownedC)); - } - } - return ownedC; - } - - /** - * - * - * @generated - */ - public C basicGetOwnedC() - { - return ownedC; - } - - /** - * - * @generated - */ - public NotificationChain basicSetOwnedC(C newOwnedC, NotificationChain msgs) - { - C oldOwnedC = ownedC; - ownedC = newOwnedC; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Model6Package.B__OWNED_C, - oldOwnedC, newOwnedC); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * @generated - */ - public void setOwnedC(C newOwnedC) - { - if (newOwnedC != ownedC) - { - NotificationChain msgs = null; - if (ownedC != null) - msgs = ((InternalEObject)ownedC).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Model6Package.B__OWNED_C, null, - msgs); - if (newOwnedC != null) - msgs = ((InternalEObject)newOwnedC).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Model6Package.B__OWNED_C, null, - msgs); - msgs = basicSetOwnedC(newOwnedC, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.B__OWNED_C, newOwnedC, newOwnedC)); - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.B__OWNED_C: - return basicSetOwnedC(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.B__OWNED_C: - if (resolve) - return getOwnedC(); - return basicGetOwnedC(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.B__OWNED_C: - setOwnedC((C)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.B__OWNED_C: - setOwnedC((C)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.B__OWNED_C: - return ownedC != null; - } - return super.eIsSet(featureID); - } - -} // BImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/BaseObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/BaseObjectImpl.java deleted file mode 100644 index eeaedf935e..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/BaseObjectImpl.java +++ /dev/null @@ -1,273 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.BaseObject; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; - -import java.util.Collection; - -/** - * An implementation of the model object ' Base Object'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BaseObjectImpl#getAttributeOptional Attribute Optional}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BaseObjectImpl#getAttributeRequired Attribute Required}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BaseObjectImpl#getAttributeList Attribute List}
  • - *
- *

- * - * @generated - */ -public class BaseObjectImpl extends EObjectImpl implements BaseObject -{ - /** - * The default value of the '{@link #getAttributeOptional() Attribute Optional}' attribute. - * - * @see #getAttributeOptional() - * @generated - * @ordered - */ - protected static final String ATTRIBUTE_OPTIONAL_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAttributeOptional() Attribute Optional}' attribute. - * - * @see #getAttributeOptional() - * @generated - * @ordered - */ - protected String attributeOptional = ATTRIBUTE_OPTIONAL_EDEFAULT; - - /** - * The default value of the '{@link #getAttributeRequired() Attribute Required}' attribute. - * - * @see #getAttributeRequired() - * @generated - * @ordered - */ - protected static final String ATTRIBUTE_REQUIRED_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAttributeRequired() Attribute Required}' attribute. - * - * @see #getAttributeRequired() - * @generated - * @ordered - */ - protected String attributeRequired = ATTRIBUTE_REQUIRED_EDEFAULT; - - /** - * The cached value of the '{@link #getAttributeList() Attribute List}' attribute list. - * - * @see #getAttributeList() - * @generated - * @ordered - */ - protected EList attributeList; - - /** - * - * @generated - */ - protected BaseObjectImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getBaseObject(); - } - - /** - * - * @generated - */ - public String getAttributeOptional() - { - return attributeOptional; - } - - /** - * - * @generated - */ - public void setAttributeOptional(String newAttributeOptional) - { - String oldAttributeOptional = attributeOptional; - attributeOptional = newAttributeOptional; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL, - oldAttributeOptional, attributeOptional)); - } - - /** - * - * @generated - */ - public String getAttributeRequired() - { - return attributeRequired; - } - - /** - * - * @generated - */ - public void setAttributeRequired(String newAttributeRequired) - { - String oldAttributeRequired = attributeRequired; - attributeRequired = newAttributeRequired; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED, - oldAttributeRequired, attributeRequired)); - } - - /** - * - * @generated - */ - public EList getAttributeList() - { - if (attributeList == null) - { - attributeList = new EDataTypeUniqueEList(String.class, this, Model6Package.BASE_OBJECT__ATTRIBUTE_LIST); - } - return attributeList; - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL: - return getAttributeOptional(); - case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED: - return getAttributeRequired(); - case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST: - return getAttributeList(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL: - setAttributeOptional((String)newValue); - return; - case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED: - setAttributeRequired((String)newValue); - return; - case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST: - getAttributeList().clear(); - getAttributeList().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL: - setAttributeOptional(ATTRIBUTE_OPTIONAL_EDEFAULT); - return; - case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED: - setAttributeRequired(ATTRIBUTE_REQUIRED_EDEFAULT); - return; - case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST: - getAttributeList().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL: - return ATTRIBUTE_OPTIONAL_EDEFAULT == null ? attributeOptional != null : !ATTRIBUTE_OPTIONAL_EDEFAULT - .equals(attributeOptional); - case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED: - return ATTRIBUTE_REQUIRED_EDEFAULT == null ? attributeRequired != null : !ATTRIBUTE_REQUIRED_EDEFAULT - .equals(attributeRequired); - case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST: - return attributeList != null && !attributeList.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (attributeOptional: "); - result.append(attributeOptional); - result.append(", attributeRequired: "); - result.append(attributeRequired); - result.append(", attributeList: "); - result.append(attributeList); - result.append(')'); - return result.toString(); - } - -} // BaseObjectImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/CImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/CImpl.java deleted file mode 100644 index eacee611a2..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/CImpl.java +++ /dev/null @@ -1,47 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.C; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -/** - * An implementation of the model object 'C'. - *

- *

- * - * @generated - */ -public class CImpl extends EObjectImpl implements C -{ - /** - * - * @generated - */ - protected CImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getC(); - } - -} // CImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ContainmentObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ContainmentObjectImpl.java deleted file mode 100644 index ff86fcde1b..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ContainmentObjectImpl.java +++ /dev/null @@ -1,272 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.BaseObject; -import org.eclipse.emf.cdo.tests.model6.ContainmentObject; - -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.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object ' Containment Object'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ContainmentObjectImpl#getContainmentOptional Containment Optional}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ContainmentObjectImpl#getContainmentList Containment List}
  • - *
- *

- * - * @generated - */ -public class ContainmentObjectImpl extends BaseObjectImpl implements ContainmentObject -{ - /** - * The cached value of the '{@link #getContainmentOptional() Containment Optional}' containment reference. - * - * @see #getContainmentOptional() - * @generated - * @ordered - */ - protected BaseObject containmentOptional; - - /** - * The cached value of the '{@link #getContainmentList() Containment List}' containment reference list. - * - * @see #getContainmentList() - * @generated - * @ordered - */ - protected EList containmentList; - - /** - * - * @generated - */ - protected ContainmentObjectImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getContainmentObject(); - } - - /** - * - * @generated - */ - public BaseObject getContainmentOptional() - { - if (containmentOptional != null && containmentOptional.eIsProxy()) - { - InternalEObject oldContainmentOptional = (InternalEObject)containmentOptional; - containmentOptional = (BaseObject)eResolveProxy(oldContainmentOptional); - if (containmentOptional != oldContainmentOptional) - { - InternalEObject newContainmentOptional = (InternalEObject)containmentOptional; - NotificationChain msgs = oldContainmentOptional.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, null); - if (newContainmentOptional.eInternalContainer() == null) - { - msgs = newContainmentOptional.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, msgs); - } - if (msgs != null) - msgs.dispatch(); - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, oldContainmentOptional, containmentOptional)); - } - } - return containmentOptional; - } - - /** - * - * - * @generated - */ - public BaseObject basicGetContainmentOptional() - { - return containmentOptional; - } - - /** - * - * @generated - */ - public NotificationChain basicSetContainmentOptional(BaseObject newContainmentOptional, NotificationChain msgs) - { - BaseObject oldContainmentOptional = containmentOptional; - containmentOptional = newContainmentOptional; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, oldContainmentOptional, newContainmentOptional); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * @generated - */ - public void setContainmentOptional(BaseObject newContainmentOptional) - { - if (newContainmentOptional != containmentOptional) - { - NotificationChain msgs = null; - if (containmentOptional != null) - msgs = ((InternalEObject)containmentOptional).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, msgs); - if (newContainmentOptional != null) - msgs = ((InternalEObject)newContainmentOptional).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, msgs); - msgs = basicSetContainmentOptional(newContainmentOptional, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, - newContainmentOptional, newContainmentOptional)); - } - - /** - * - * @generated - */ - public EList getContainmentList() - { - if (containmentList == null) - { - containmentList = new EObjectContainmentEList.Resolving(BaseObject.class, this, - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST); - } - return containmentList; - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: - return basicSetContainmentOptional(null, msgs); - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: - return ((InternalEList)getContainmentList()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: - if (resolve) - return getContainmentOptional(); - return basicGetContainmentOptional(); - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: - return getContainmentList(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: - setContainmentOptional((BaseObject)newValue); - return; - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: - getContainmentList().clear(); - getContainmentList().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: - setContainmentOptional((BaseObject)null); - return; - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: - getContainmentList().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: - return containmentOptional != null; - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: - return containmentList != null && !containmentList.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // ContainmentObjectImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/DImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/DImpl.java deleted file mode 100644 index aa26d2342f..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/DImpl.java +++ /dev/null @@ -1,193 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.D; - -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.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 'D'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.DImpl#getData Data}
  • - *
- *

- * - * @generated - */ -public class DImpl extends EObjectImpl implements D -{ - /** - * The cached value of the '{@link #getData() Data}' containment reference. - * - * @see #getData() - * @generated - * @ordered - */ - protected EObject data; - - /** - * - * @generated - */ - protected DImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getD(); - } - - /** - * - * @generated - */ - public EObject getData() - { - return data; - } - - /** - * - * @generated - */ - public NotificationChain basicSetData(EObject newData, NotificationChain msgs) - { - EObject oldData = data; - data = newData; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Model6Package.D__DATA, oldData, - newData); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * @generated - */ - public void setData(EObject newData) - { - if (newData != data) - { - NotificationChain msgs = null; - if (data != null) - msgs = ((InternalEObject)data).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Model6Package.D__DATA, null, msgs); - if (newData != null) - msgs = ((InternalEObject)newData).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Model6Package.D__DATA, null, msgs); - msgs = basicSetData(newData, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.D__DATA, newData, newData)); - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.D__DATA: - return basicSetData(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.D__DATA: - return getData(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.D__DATA: - setData((EObject)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.D__DATA: - setData((EObject)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.D__DATA: - return data != null; - } - return super.eIsSet(featureID); - } - -} // DImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/EImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/EImpl.java deleted file mode 100644 index 03abb48247..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/EImpl.java +++ /dev/null @@ -1,161 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.A; -import org.eclipse.emf.cdo.tests.model6.E; - -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.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object 'E'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.EImpl#getOwnedAs Owned As}
  • - *
- *

- * - * @generated - */ -public class EImpl extends EObjectImpl implements E -{ - /** - * The cached value of the '{@link #getOwnedAs() Owned As}' containment reference list. - * - * @see #getOwnedAs() - * @generated - * @ordered - */ - protected EList ownedAs; - - /** - * - * @generated - */ - protected EImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getE(); - } - - /** - * - * @generated - */ - public EList getOwnedAs() - { - if (ownedAs == null) - { - ownedAs = new EObjectContainmentEList.Resolving(A.class, this, Model6Package.E__OWNED_AS); - } - return ownedAs; - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.E__OWNED_AS: - return ((InternalEList)getOwnedAs()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.E__OWNED_AS: - return getOwnedAs(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.E__OWNED_AS: - getOwnedAs().clear(); - getOwnedAs().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.E__OWNED_AS: - getOwnedAs().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.E__OWNED_AS: - return ownedAs != null && !ownedAs.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // EImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/FImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/FImpl.java deleted file mode 100644 index 16c77153a0..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/FImpl.java +++ /dev/null @@ -1,161 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.E; -import org.eclipse.emf.cdo.tests.model6.F; - -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.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object 'F'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.FImpl#getOwnedEs Owned Es}
  • - *
- *

- * - * @generated - */ -public class FImpl extends EObjectImpl implements F -{ - /** - * The cached value of the '{@link #getOwnedEs() Owned Es}' containment reference list. - * - * @see #getOwnedEs() - * @generated - * @ordered - */ - protected EList ownedEs; - - /** - * - * @generated - */ - protected FImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getF(); - } - - /** - * - * @generated - */ - public EList getOwnedEs() - { - if (ownedEs == null) - { - ownedEs = new EObjectContainmentEList.Resolving(E.class, this, Model6Package.F__OWNED_ES); - } - return ownedEs; - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.F__OWNED_ES: - return ((InternalEList)getOwnedEs()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.F__OWNED_ES: - return getOwnedEs(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.F__OWNED_ES: - getOwnedEs().clear(); - getOwnedEs().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.F__OWNED_ES: - getOwnedEs().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.F__OWNED_ES: - return ownedEs != null && !ownedEs.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // FImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/GImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/GImpl.java deleted file mode 100644 index 2af0d8a5de..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/GImpl.java +++ /dev/null @@ -1,386 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.BaseObject; -import org.eclipse.emf.cdo.tests.model6.G; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.impl.AdapterImpl; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -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.EObjectResolvingEList; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -/** - * - * An implementation of the model object 'G'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.GImpl#getDummy Dummy}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.GImpl#getReference Reference}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.GImpl#getList List}
  • - *
- *

- * - * @generated - */ -public class GImpl extends EObjectImpl implements G -{ - /** - * The default value of the '{@link #getDummy() Dummy}' attribute. - * - * - * @see #getDummy() - * @generated - * @ordered - */ - protected static final String DUMMY_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDummy() Dummy}' attribute. - * - * - * @see #getDummy() - * @generated - * @ordered - */ - protected String dummy = DUMMY_EDEFAULT; - - /** - * The cached value of the '{@link #getReference() Reference}' reference. - * - * - * @see #getReference() - * @generated - * @ordered - */ - protected BaseObject reference; - - /** - * The cached value of the '{@link #getList() List}' reference list. - * - * - * @see #getList() - * @generated - * @ordered - */ - protected EList list; - - /** - * @ADDED - */ - private List notifications = new ArrayList(); - - /** - * @ADDED - */ - private boolean listModified = false; - - /** - * @ADDED - */ - private boolean referenceModified = false; - - /** - * @ADDED - */ - private boolean attributeModified = false; - - /** - * @ADDED - */ - { - eAdapters().add(new AdapterImpl() - { - @Override - public void notifyChanged(Notification msg) - { - notifications.add(msg); - - EStructuralFeature feature = (EStructuralFeature)msg.getFeature(); - if (feature != null) - { - if (feature.equals("dummy")) - { - attributeModified = true; - } - else if (feature.equals("reference")) - { - referenceModified = true; - } - else if (feature.equals("list")) - { - listModified = true; - } - } - } - }); - } - - /** - * - * - * @generated - */ - protected GImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getG(); - } - - /** - * - * - * @generated - */ - public String getDummy() - { - return dummy; - } - - /** - * - * - * @generated - */ - public void setDummy(String newDummy) - { - String oldDummy = dummy; - dummy = newDummy; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.G__DUMMY, oldDummy, dummy)); - } - - /** - * - * - * @generated - */ - public BaseObject getReference() - { - if (reference != null && reference.eIsProxy()) - { - InternalEObject oldReference = (InternalEObject)reference; - reference = (BaseObject)eResolveProxy(oldReference); - if (reference != oldReference) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.G__REFERENCE, oldReference, reference)); - } - } - return reference; - } - - /** - * - * - * @generated - */ - public BaseObject basicGetReference() - { - return reference; - } - - /** - * - * - * @generated - */ - public void setReference(BaseObject newReference) - { - BaseObject oldReference = reference; - reference = newReference; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.G__REFERENCE, oldReference, reference)); - } - - /** - * - * - * @generated - */ - public EList getList() - { - if (list == null) - { - list = new EObjectResolvingEList(BaseObject.class, this, Model6Package.G__LIST); - } - return list; - } - - /** - * @ADDED - */ - public List getNotifications() - { - return notifications; - } - - /** - * - * - * @generated NOT - */ - public boolean isAttributeModified() - { - return attributeModified; - } - - /** - * - * - * @generated NOT - */ - public boolean isReferenceModified() - { - return referenceModified; - } - - /** - * - * - * @generated NOT - */ - public boolean isListModified() - { - return listModified; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.G__DUMMY: - return getDummy(); - case Model6Package.G__REFERENCE: - if (resolve) - return getReference(); - return basicGetReference(); - case Model6Package.G__LIST: - return getList(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.G__DUMMY: - setDummy((String)newValue); - return; - case Model6Package.G__REFERENCE: - setReference((BaseObject)newValue); - return; - case Model6Package.G__LIST: - getList().clear(); - getList().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.G__DUMMY: - setDummy(DUMMY_EDEFAULT); - return; - case Model6Package.G__REFERENCE: - setReference((BaseObject)null); - return; - case Model6Package.G__LIST: - getList().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.G__DUMMY: - return DUMMY_EDEFAULT == null ? dummy != null : !DUMMY_EDEFAULT.equals(dummy); - case Model6Package.G__REFERENCE: - return reference != null; - case Model6Package.G__LIST: - return list != null && !list.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (dummy: "); - result.append(dummy); - result.append(')'); - return result.toString(); - } - -} // GImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/HasNillableAttributeImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/HasNillableAttributeImpl.java deleted file mode 100644 index 9ea0b735b0..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/HasNillableAttributeImpl.java +++ /dev/null @@ -1,217 +0,0 @@ -/** - */ -package org.eclipse.emf.cdo.tests.legacy.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.HasNillableAttribute; - -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; - -/** - * - * An implementation of the model object 'Has Nillable Attribute'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.HasNillableAttributeImpl#getNillable Nillable}
  • - *
- *

- * - * @generated - */ -public class HasNillableAttributeImpl extends EObjectImpl implements HasNillableAttribute -{ - /** - * The default value of the '{@link #getNillable() Nillable}' attribute. - * - * - * @see #getNillable() - * @generated - * @ordered - */ - protected static final String NILLABLE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getNillable() Nillable}' attribute. - * - * - * @see #getNillable() - * @generated - * @ordered - */ - protected String nillable = NILLABLE_EDEFAULT; - - /** - * This is true if the Nillable attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean nillableESet; - - /** - * - * - * @generated - */ - protected HasNillableAttributeImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getHasNillableAttribute(); - } - - /** - * - * - * @generated - */ - public String getNillable() - { - return nillable; - } - - /** - * - * - * @generated - */ - public void setNillable(String newNillable) - { - String oldNillable = nillable; - nillable = newNillable; - boolean oldNillableESet = nillableESet; - nillableESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE, - oldNillable, nillable, !oldNillableESet)); - } - - /** - * - * - * @generated - */ - public void unsetNillable() - { - String oldNillable = nillable; - boolean oldNillableESet = nillableESet; - nillable = NILLABLE_EDEFAULT; - nillableESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE, - oldNillable, NILLABLE_EDEFAULT, oldNillableESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetNillable() - { - return nillableESet; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE: - return getNillable(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE: - setNillable((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE: - unsetNillable(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE: - return isSetNillable(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (nillable: "); - if (nillableESet) - result.append(nillable); - else - result.append(""); - result.append(')'); - return result.toString(); - } - -} //HasNillableAttributeImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/HoldableImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/HoldableImpl.java deleted file mode 100644 index 9bea2931f3..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/HoldableImpl.java +++ /dev/null @@ -1,176 +0,0 @@ -/** - */ -package org.eclipse.emf.cdo.tests.legacy.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.Holdable; - -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; - -/** - * - * An implementation of the model object 'Holdable'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.HoldableImpl#getName Name}
  • - *
- *

- * - * @generated - */ -public abstract class HoldableImpl extends EObjectImpl implements Holdable -{ - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * - * - * @generated - */ - protected HoldableImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getHoldable(); - } - - /** - * - * - * @generated - */ - public String getName() - { - return name; - } - - /** - * - * - * @generated - */ - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.HOLDABLE__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.HOLDABLE__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.HOLDABLE__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.HOLDABLE__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.HOLDABLE__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} // HoldableImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/HolderImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/HolderImpl.java deleted file mode 100644 index e4d80d9462..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/HolderImpl.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - */ -package org.eclipse.emf.cdo.tests.legacy.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.Holdable; -import org.eclipse.emf.cdo.tests.model6.Holder; - -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.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * - * An implementation of the model object 'Holder'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.HolderImpl#getHeld Held}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.HolderImpl#getOwned Owned}
  • - *
- *

- * - * @generated - */ -public class HolderImpl extends HoldableImpl implements Holder -{ - /** - * The cached value of the '{@link #getHeld() Held}' reference list. - * - * - * @see #getHeld() - * @generated - * @ordered - */ - protected EList held; - - /** - * The cached value of the '{@link #getOwned() Owned}' containment reference list. - * - * - * @see #getOwned() - * @generated - * @ordered - */ - protected EList owned; - - /** - * - * - * @generated - */ - protected HolderImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getHolder(); - } - - /** - * - * - * @generated - */ - public EList getHeld() - { - if (held == null) - { - held = new EObjectResolvingEList(Holdable.class, this, Model6Package.HOLDER__HELD); - } - return held; - } - - /** - * - * - * @generated - */ - public EList getOwned() - { - if (owned == null) - { - owned = new EObjectContainmentEList.Resolving(Holdable.class, this, Model6Package.HOLDER__OWNED); - } - return owned; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.HOLDER__OWNED: - return ((InternalEList)getOwned()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.HOLDER__HELD: - return getHeld(); - case Model6Package.HOLDER__OWNED: - return getOwned(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.HOLDER__HELD: - getHeld().clear(); - getHeld().addAll((Collection)newValue); - return; - case Model6Package.HOLDER__OWNED: - getOwned().clear(); - getOwned().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.HOLDER__HELD: - getHeld().clear(); - return; - case Model6Package.HOLDER__OWNED: - getOwned().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.HOLDER__HELD: - return held != null && !held.isEmpty(); - case Model6Package.HOLDER__OWNED: - return owned != null && !owned.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // HolderImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6FactoryImpl.java deleted file mode 100644 index a0bc044f02..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6FactoryImpl.java +++ /dev/null @@ -1,451 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Factory; -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.A; -import org.eclipse.emf.cdo.tests.model6.B; -import org.eclipse.emf.cdo.tests.model6.BaseObject; -import org.eclipse.emf.cdo.tests.model6.C; -import org.eclipse.emf.cdo.tests.model6.ContainmentObject; -import org.eclipse.emf.cdo.tests.model6.D; -import org.eclipse.emf.cdo.tests.model6.E; -import org.eclipse.emf.cdo.tests.model6.F; -import org.eclipse.emf.cdo.tests.model6.G; -import org.eclipse.emf.cdo.tests.model6.HasNillableAttribute; -import org.eclipse.emf.cdo.tests.model6.Holder; -import org.eclipse.emf.cdo.tests.model6.MyEnum; -import org.eclipse.emf.cdo.tests.model6.MyEnumList; -import org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable; -import org.eclipse.emf.cdo.tests.model6.PropertiesMap; -import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; -import org.eclipse.emf.cdo.tests.model6.ReferenceObject; -import org.eclipse.emf.cdo.tests.model6.Root; -import org.eclipse.emf.cdo.tests.model6.Thing; -import org.eclipse.emf.cdo.tests.model6.UnorderedList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -import java.util.Map; - -/** - * An implementation of the model Factory. - * @generated - */ -public class Model6FactoryImpl extends EFactoryImpl implements Model6Factory -{ - /** - * Creates the default factory implementation. - * - * @generated NOT - */ - public static Model6Factory init() - { - try - { - Model6Factory theModel6Factory = (Model6Factory)EPackage.Registry.INSTANCE - .getEFactory("http://www.eclipse.org/emf/CDO/tests/legacy/model6/1.0.0"); - if (theModel6Factory != null) - { - return theModel6Factory; - } - } - catch (Exception exception) - { - EcorePlugin.INSTANCE.log(exception); - } - return new Model6FactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * @generated - */ - public Model6FactoryImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - public EObject create(EClass eClass) - { - switch (eClass.getClassifierID()) - { - case Model6Package.ROOT: - return createRoot(); - case Model6Package.BASE_OBJECT: - return createBaseObject(); - case Model6Package.REFERENCE_OBJECT: - return createReferenceObject(); - case Model6Package.CONTAINMENT_OBJECT: - return createContainmentObject(); - case Model6Package.UNORDERED_LIST: - return createUnorderedList(); - case Model6Package.PROPERTIES_MAP: - return createPropertiesMap(); - case Model6Package.PROPERTIES_MAP_ENTRY: - return (EObject)createPropertiesMapEntry(); - case Model6Package.PROPERTIES_MAP_ENTRY_VALUE: - return createPropertiesMapEntryValue(); - case Model6Package.A: - return createA(); - case Model6Package.B: - return createB(); - case Model6Package.C: - return createC(); - case Model6Package.D: - return createD(); - case Model6Package.E: - return createE(); - case Model6Package.F: - return createF(); - case Model6Package.G: - return createG(); - case Model6Package.MY_ENUM_LIST: - return createMyEnumList(); - case Model6Package.MY_ENUM_LIST_UNSETTABLE: - return createMyEnumListUnsettable(); - case Model6Package.HOLDER: - return createHolder(); - case Model6Package.THING: - return createThing(); - case Model6Package.HAS_NILLABLE_ATTRIBUTE: - return createHasNillableAttribute(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public Object createFromString(EDataType eDataType, String initialValue) - { - switch (eDataType.getClassifierID()) - { - case Model6Package.MY_ENUM: - return createMyEnumFromString(eDataType, initialValue); - case Model6Package.MY_STRING: - return createMyStringFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public String convertToString(EDataType eDataType, Object instanceValue) - { - switch (eDataType.getClassifierID()) - { - case Model6Package.MY_ENUM: - return convertMyEnumToString(eDataType, instanceValue); - case Model6Package.MY_STRING: - return convertMyStringToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * @generated - */ - public Root createRoot() - { - RootImpl root = new RootImpl(); - return root; - } - - /** - * - * @generated - */ - public BaseObject createBaseObject() - { - BaseObjectImpl baseObject = new BaseObjectImpl(); - return baseObject; - } - - /** - * - * @generated - */ - public ReferenceObject createReferenceObject() - { - ReferenceObjectImpl referenceObject = new ReferenceObjectImpl(); - return referenceObject; - } - - /** - * - * @generated - */ - public ContainmentObject createContainmentObject() - { - ContainmentObjectImpl containmentObject = new ContainmentObjectImpl(); - return containmentObject; - } - - /** - * - * @generated - */ - public UnorderedList createUnorderedList() - { - UnorderedListImpl unorderedList = new UnorderedListImpl(); - return unorderedList; - } - - /** - * - * - * @generated - */ - public PropertiesMap createPropertiesMap() - { - PropertiesMapImpl propertiesMap = new PropertiesMapImpl(); - return propertiesMap; - } - - /** - * - * - * @generated - */ - public Map.Entry createPropertiesMapEntry() - { - PropertiesMapEntryImpl propertiesMapEntry = new PropertiesMapEntryImpl(); - return propertiesMapEntry; - } - - /** - * - * - * @generated - */ - public PropertiesMapEntryValue createPropertiesMapEntryValue() - { - PropertiesMapEntryValueImpl propertiesMapEntryValue = new PropertiesMapEntryValueImpl(); - return propertiesMapEntryValue; - } - - /** - * - * @generated - */ - public A createA() - { - AImpl a = new AImpl(); - return a; - } - - /** - * - * @generated - */ - public B createB() - { - BImpl b = new BImpl(); - return b; - } - - /** - * - * @generated - */ - public C createC() - { - CImpl c = new CImpl(); - return c; - } - - /** - * - * @generated - */ - public D createD() - { - DImpl d = new DImpl(); - return d; - } - - /** - * - * @generated - */ - public E createE() - { - EImpl e = new EImpl(); - return e; - } - - /** - * - * @generated - */ - public F createF() - { - FImpl f = new FImpl(); - return f; - } - - /** - * - * - * @generated - */ - public G createG() - { - GImpl g = new GImpl(); - return g; - } - - /** - * - * - * @generated - */ - public MyEnumList createMyEnumList() - { - MyEnumListImpl myEnumList = new MyEnumListImpl(); - return myEnumList; - } - - /** - * - * - * @generated - */ - public MyEnumListUnsettable createMyEnumListUnsettable() - { - MyEnumListUnsettableImpl myEnumListUnsettable = new MyEnumListUnsettableImpl(); - return myEnumListUnsettable; - } - - /** - * - * - * @generated - */ - public Holder createHolder() - { - HolderImpl holder = new HolderImpl(); - return holder; - } - - /** - * - * - * @generated - */ - public Thing createThing() - { - ThingImpl thing = new ThingImpl(); - return thing; - } - - /** - * - * - * @generated - */ - public HasNillableAttribute createHasNillableAttribute() - { - HasNillableAttributeImpl hasNillableAttribute = new HasNillableAttributeImpl(); - return hasNillableAttribute; - } - - /** - * - * - * @generated - */ - public MyEnum createMyEnumFromString(EDataType eDataType, String initialValue) - { - MyEnum result = MyEnum.get(initialValue); - if (result == null) - { - throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" - + eDataType.getName() + "'"); - } - return result; - } - - /** - * - * - * @generated - */ - public String convertMyEnumToString(EDataType eDataType, Object instanceValue) - { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - public String createMyStringFromString(EDataType eDataType, String initialValue) - { - return (String)super.createFromString(eDataType, initialValue); - } - - /** - * - * - * @generated - */ - public String convertMyStringToString(EDataType eDataType, Object instanceValue) - { - return super.convertToString(eDataType, instanceValue); - } - - /** - * - * @generated - */ - public Model6Package getModel6Package() - { - return (Model6Package)getEPackage(); - } - - /** - * - * @deprecated - * @generated - */ - @Deprecated - public static Model6Package getPackage() - { - return Model6Package.eINSTANCE; - } - -} // Model6FactoryImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6PackageImpl.java deleted file mode 100644 index 5a17b1782d..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6PackageImpl.java +++ /dev/null @@ -1,1133 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Factory; -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.A; -import org.eclipse.emf.cdo.tests.model6.B; -import org.eclipse.emf.cdo.tests.model6.BaseObject; -import org.eclipse.emf.cdo.tests.model6.C; -import org.eclipse.emf.cdo.tests.model6.ContainmentObject; -import org.eclipse.emf.cdo.tests.model6.D; -import org.eclipse.emf.cdo.tests.model6.E; -import org.eclipse.emf.cdo.tests.model6.F; -import org.eclipse.emf.cdo.tests.model6.G; -import org.eclipse.emf.cdo.tests.model6.HasNillableAttribute; -import org.eclipse.emf.cdo.tests.model6.Holdable; -import org.eclipse.emf.cdo.tests.model6.Holder; -import org.eclipse.emf.cdo.tests.model6.MyEnum; -import org.eclipse.emf.cdo.tests.model6.MyEnumList; -import org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable; -import org.eclipse.emf.cdo.tests.model6.PropertiesMap; -import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; -import org.eclipse.emf.cdo.tests.model6.ReferenceObject; -import org.eclipse.emf.cdo.tests.model6.Root; -import org.eclipse.emf.cdo.tests.model6.Thing; -import org.eclipse.emf.cdo.tests.model6.UnorderedList; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EEnum; -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 Model6PackageImpl extends EPackageImpl implements Model6Package -{ - /** - * - * @generated - */ - private EClass rootEClass = null; - - /** - * - * @generated - */ - private EClass baseObjectEClass = null; - - /** - * - * @generated - */ - private EClass referenceObjectEClass = null; - - /** - * - * @generated - */ - private EClass containmentObjectEClass = null; - - /** - * - * @generated - */ - private EClass unorderedListEClass = null; - - /** - * - * - * @generated - */ - private EClass propertiesMapEClass = null; - - /** - * - * - * @generated - */ - private EClass propertiesMapEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass propertiesMapEntryValueEClass = null; - - /** - * - * @generated - */ - private EClass aEClass = null; - - /** - * - * @generated - */ - private EClass bEClass = null; - - /** - * - * @generated - */ - private EClass cEClass = null; - - /** - * - * @generated - */ - private EClass dEClass = null; - - /** - * - * @generated - */ - private EClass eEClass = null; - - /** - * - * @generated - */ - private EClass fEClass = null; - - /** - * - * - * @generated - */ - private EClass gEClass = null; - - /** - * - * - * @generated - */ - private EClass myEnumListEClass = null; - - /** - * - * - * @generated - */ - private EClass myEnumListUnsettableEClass = null; - - /** - * - * - * @generated - */ - private EClass holderEClass = null; - - /** - * - * - * @generated - */ - private EClass thingEClass = null; - - /** - * - * - * @generated - */ - private EClass holdableEClass = null; - - /** - * - * - * @generated - */ - private EClass hasNillableAttributeEClass = null; - - /** - * - * - * @generated - */ - private EEnum myEnumEEnum = null; - - /** - * - * - * @generated - */ - private EDataType myStringEDataType = 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.model6.Model6Package#eNS_URI - * @see #init() - * @generated - */ - private Model6PackageImpl() - { - super(eNS_URI, Model6Factory.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 Model6Package#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 Model6Package init() - { - if (isInited) - { - return (Model6Package)EPackage.Registry.INSTANCE.getEPackage(Model6Package.eNS_URI); - } - - // Obtain or create and register package - Model6PackageImpl theModel6Package = (Model6PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Model6PackageImpl ? EPackage.Registry.INSTANCE - .get(eNS_URI) : new Model6PackageImpl()); - - isInited = true; - - // Create package meta-data objects - theModel6Package.createPackageContents(); - - // Initialize created meta-data - theModel6Package.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theModel6Package.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(Model6Package.eNS_URI, theModel6Package); - return theModel6Package; - } - - /** - * - * @generated - */ - public EClass getRoot() - { - return rootEClass; - } - - /** - * - * @generated - */ - public EReference getRoot_ListA() - { - return (EReference)rootEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getRoot_ListB() - { - return (EReference)rootEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EReference getRoot_ListC() - { - return (EReference)rootEClass.getEStructuralFeatures().get(2); - } - - /** - * - * @generated - */ - public EReference getRoot_ListD() - { - return (EReference)rootEClass.getEStructuralFeatures().get(3); - } - - /** - * - * @generated - */ - public EClass getBaseObject() - { - return baseObjectEClass; - } - - /** - * - * @generated - */ - public EAttribute getBaseObject_AttributeOptional() - { - return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EAttribute getBaseObject_AttributeRequired() - { - return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EAttribute getBaseObject_AttributeList() - { - return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(2); - } - - /** - * - * @generated - */ - public EClass getReferenceObject() - { - return referenceObjectEClass; - } - - /** - * - * @generated - */ - public EReference getReferenceObject_ReferenceOptional() - { - return (EReference)referenceObjectEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getReferenceObject_ReferenceList() - { - return (EReference)referenceObjectEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EClass getContainmentObject() - { - return containmentObjectEClass; - } - - /** - * - * @generated - */ - public EReference getContainmentObject_ContainmentOptional() - { - return (EReference)containmentObjectEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getContainmentObject_ContainmentList() - { - return (EReference)containmentObjectEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EClass getUnorderedList() - { - return unorderedListEClass; - } - - /** - * - * @generated - */ - public EReference getUnorderedList_Contained() - { - return (EReference)unorderedListEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getUnorderedList_Referenced() - { - return (EReference)unorderedListEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getPropertiesMap() - { - return propertiesMapEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getPropertiesMap_Label() - { - return (EAttribute)propertiesMapEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getPropertiesMap_PersistentMap() - { - return (EReference)propertiesMapEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getPropertiesMap_TransientMap() - { - return (EReference)propertiesMapEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getPropertiesMapEntry() - { - return propertiesMapEntryEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getPropertiesMapEntry_Key() - { - return (EAttribute)propertiesMapEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getPropertiesMapEntry_Value() - { - return (EReference)propertiesMapEntryEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getPropertiesMapEntryValue() - { - return propertiesMapEntryValueEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getPropertiesMapEntryValue_Label() - { - return (EAttribute)propertiesMapEntryValueEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getA() - { - return aEClass; - } - - /** - * - * @generated - */ - public EReference getA_OwnedDs() - { - return (EReference)aEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getA_OwnedBs() - { - return (EReference)aEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EClass getB() - { - return bEClass; - } - - /** - * - * @generated - */ - public EReference getB_OwnedC() - { - return (EReference)bEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getC() - { - return cEClass; - } - - /** - * - * @generated - */ - public EClass getD() - { - return dEClass; - } - - /** - * - * @generated - */ - public EReference getD_Data() - { - return (EReference)dEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getE() - { - return eEClass; - } - - /** - * - * @generated - */ - public EReference getE_OwnedAs() - { - return (EReference)eEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getF() - { - return fEClass; - } - - /** - * - * @generated - */ - public EReference getF_OwnedEs() - { - return (EReference)fEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getG() - { - return gEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getG_Dummy() - { - return (EAttribute)gEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getG_Reference() - { - return (EReference)gEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getG_List() - { - return (EReference)gEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getMyEnumList() - { - return myEnumListEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getMyEnumList_MyEnum() - { - return (EAttribute)myEnumListEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getMyEnumListUnsettable() - { - return myEnumListUnsettableEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getMyEnumListUnsettable_MyEnum() - { - return (EAttribute)myEnumListUnsettableEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getHolder() - { - return holderEClass; - } - - /** - * - * - * @generated - */ - public EReference getHolder_Held() - { - return (EReference)holderEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getHolder_Owned() - { - return (EReference)holderEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getThing() - { - return thingEClass; - } - - /** - * - * - * @generated - */ - public EClass getHoldable() - { - return holdableEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getHoldable_Name() - { - return (EAttribute)holdableEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getHasNillableAttribute() - { - return hasNillableAttributeEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getHasNillableAttribute_Nillable() - { - return (EAttribute)hasNillableAttributeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EEnum getMyEnum() - { - return myEnumEEnum; - } - - /** - * - * - * @generated - */ - public EDataType getMyString() - { - return myStringEDataType; - } - - /** - * - * @generated - */ - public Model6Factory getModel6Factory() - { - return (Model6Factory)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 - rootEClass = createEClass(ROOT); - createEReference(rootEClass, ROOT__LIST_A); - createEReference(rootEClass, ROOT__LIST_B); - createEReference(rootEClass, ROOT__LIST_C); - createEReference(rootEClass, ROOT__LIST_D); - - baseObjectEClass = createEClass(BASE_OBJECT); - createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_OPTIONAL); - createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_REQUIRED); - createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_LIST); - - referenceObjectEClass = createEClass(REFERENCE_OBJECT); - createEReference(referenceObjectEClass, REFERENCE_OBJECT__REFERENCE_OPTIONAL); - createEReference(referenceObjectEClass, REFERENCE_OBJECT__REFERENCE_LIST); - - containmentObjectEClass = createEClass(CONTAINMENT_OBJECT); - createEReference(containmentObjectEClass, CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL); - createEReference(containmentObjectEClass, CONTAINMENT_OBJECT__CONTAINMENT_LIST); - - unorderedListEClass = createEClass(UNORDERED_LIST); - createEReference(unorderedListEClass, UNORDERED_LIST__CONTAINED); - createEReference(unorderedListEClass, UNORDERED_LIST__REFERENCED); - - propertiesMapEClass = createEClass(PROPERTIES_MAP); - createEAttribute(propertiesMapEClass, PROPERTIES_MAP__LABEL); - createEReference(propertiesMapEClass, PROPERTIES_MAP__PERSISTENT_MAP); - createEReference(propertiesMapEClass, PROPERTIES_MAP__TRANSIENT_MAP); - - propertiesMapEntryEClass = createEClass(PROPERTIES_MAP_ENTRY); - createEAttribute(propertiesMapEntryEClass, PROPERTIES_MAP_ENTRY__KEY); - createEReference(propertiesMapEntryEClass, PROPERTIES_MAP_ENTRY__VALUE); - - propertiesMapEntryValueEClass = createEClass(PROPERTIES_MAP_ENTRY_VALUE); - createEAttribute(propertiesMapEntryValueEClass, PROPERTIES_MAP_ENTRY_VALUE__LABEL); - - aEClass = createEClass(A); - createEReference(aEClass, A__OWNED_DS); - createEReference(aEClass, A__OWNED_BS); - - bEClass = createEClass(B); - createEReference(bEClass, B__OWNED_C); - - cEClass = createEClass(C); - - dEClass = createEClass(D); - createEReference(dEClass, D__DATA); - - eEClass = createEClass(E); - createEReference(eEClass, E__OWNED_AS); - - fEClass = createEClass(F); - createEReference(fEClass, F__OWNED_ES); - - gEClass = createEClass(G); - createEAttribute(gEClass, G__DUMMY); - createEReference(gEClass, G__REFERENCE); - createEReference(gEClass, G__LIST); - - myEnumListEClass = createEClass(MY_ENUM_LIST); - createEAttribute(myEnumListEClass, MY_ENUM_LIST__MY_ENUM); - - myEnumListUnsettableEClass = createEClass(MY_ENUM_LIST_UNSETTABLE); - createEAttribute(myEnumListUnsettableEClass, MY_ENUM_LIST_UNSETTABLE__MY_ENUM); - - holderEClass = createEClass(HOLDER); - createEReference(holderEClass, HOLDER__HELD); - createEReference(holderEClass, HOLDER__OWNED); - - thingEClass = createEClass(THING); - - holdableEClass = createEClass(HOLDABLE); - createEAttribute(holdableEClass, HOLDABLE__NAME); - - hasNillableAttributeEClass = createEClass(HAS_NILLABLE_ATTRIBUTE); - createEAttribute(hasNillableAttributeEClass, HAS_NILLABLE_ATTRIBUTE__NILLABLE); - - // Create enums - myEnumEEnum = createEEnum(MY_ENUM); - - // Create data types - myStringEDataType = createEDataType(MY_STRING); - } - - /** - * - * @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); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - referenceObjectEClass.getESuperTypes().add(getBaseObject()); - containmentObjectEClass.getESuperTypes().add(getBaseObject()); - holderEClass.getESuperTypes().add(getHoldable()); - thingEClass.getESuperTypes().add(getHoldable()); - - // Initialize classes and features; add operations and parameters - initEClass(rootEClass, Root.class, "Root", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRoot_ListA(), getBaseObject(), null, "listA", null, 0, -1, Root.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getRoot_ListB(), getBaseObject(), null, "listB", null, 0, -1, Root.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getRoot_ListC(), getBaseObject(), null, "listC", null, 0, -1, Root.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getRoot_ListD(), getBaseObject(), null, "listD", null, 0, -1, Root.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(baseObjectEClass, BaseObject.class, "BaseObject", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getBaseObject_AttributeOptional(), ecorePackage.getEString(), "attributeOptional", null, 0, 1, - BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getBaseObject_AttributeRequired(), ecorePackage.getEString(), "attributeRequired", null, 1, 1, - BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getBaseObject_AttributeList(), ecorePackage.getEString(), "attributeList", null, 0, -1, - BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(referenceObjectEClass, ReferenceObject.class, "ReferenceObject", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getReferenceObject_ReferenceOptional(), getBaseObject(), null, "referenceOptional", null, 0, 1, - ReferenceObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getReferenceObject_ReferenceList(), getBaseObject(), null, "referenceList", null, 0, -1, - ReferenceObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(containmentObjectEClass, ContainmentObject.class, "ContainmentObject", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getContainmentObject_ContainmentOptional(), getBaseObject(), null, "containmentOptional", null, 0, - 1, ContainmentObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getContainmentObject_ContainmentList(), getBaseObject(), null, "containmentList", null, 0, -1, - ContainmentObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(unorderedListEClass, UnorderedList.class, "UnorderedList", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getUnorderedList_Contained(), getUnorderedList(), null, "contained", null, 0, -1, - UnorderedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEReference(getUnorderedList_Referenced(), getUnorderedList(), null, "referenced", null, 0, -1, - UnorderedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - initEClass(propertiesMapEClass, PropertiesMap.class, "PropertiesMap", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPropertiesMap_Label(), ecorePackage.getEString(), "label", null, 0, 1, PropertiesMap.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPropertiesMap_PersistentMap(), getPropertiesMapEntry(), null, "persistentMap", null, 0, -1, - PropertiesMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPropertiesMap_TransientMap(), getPropertiesMapEntry(), null, "transientMap", null, 0, -1, - PropertiesMap.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(propertiesMapEntryEClass, Map.Entry.class, "PropertiesMapEntry", !IS_ABSTRACT, !IS_INTERFACE, - !IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPropertiesMapEntry_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(getPropertiesMapEntry_Value(), getPropertiesMapEntryValue(), 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(propertiesMapEntryValueEClass, PropertiesMapEntryValue.class, "PropertiesMapEntryValue", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPropertiesMapEntryValue_Label(), ecorePackage.getEString(), "label", null, 0, 1, - PropertiesMapEntryValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(aEClass, A.class, "A", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getA_OwnedDs(), getD(), null, "ownedDs", null, 0, -1, A.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getA_OwnedBs(), getB(), null, "ownedBs", null, 0, -1, A.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(bEClass, B.class, "B", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getB_OwnedC(), getC(), null, "ownedC", null, 0, 1, B.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(cEClass, C.class, "C", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(dEClass, D.class, "D", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getD_Data(), ecorePackage.getEObject(), null, "data", null, 0, 1, D.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(eEClass, E.class, "E", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getE_OwnedAs(), getA(), null, "ownedAs", null, 0, -1, E.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(fEClass, F.class, "F", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getF_OwnedEs(), getE(), null, "ownedEs", null, 0, -1, F.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(gEClass, G.class, "G", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getG_Dummy(), ecorePackage.getEString(), "dummy", null, 1, 1, G.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getG_Reference(), getBaseObject(), null, "reference", null, 1, 1, G.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getG_List(), getBaseObject(), null, "list", null, 0, -1, G.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - addEOperation(gEClass, ecorePackage.getEBoolean(), "isAttributeModified", 1, 1, IS_UNIQUE, IS_ORDERED); - - addEOperation(gEClass, ecorePackage.getEBoolean(), "isReferenceModified", 1, 1, IS_UNIQUE, IS_ORDERED); - - addEOperation(gEClass, ecorePackage.getEBoolean(), "isListModified", 1, 1, IS_UNIQUE, IS_ORDERED); - - initEClass(myEnumListEClass, MyEnumList.class, "MyEnumList", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMyEnumList_MyEnum(), getMyEnum(), "myEnum", null, 0, -1, MyEnumList.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(myEnumListUnsettableEClass, MyEnumListUnsettable.class, "MyEnumListUnsettable", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMyEnumListUnsettable_MyEnum(), getMyEnum(), "myEnum", null, 0, -1, MyEnumListUnsettable.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(holderEClass, Holder.class, "Holder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getHolder_Held(), getHoldable(), null, "held", null, 0, -1, Holder.class, IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, - IS_ORDERED); - initEReference(getHolder_Owned(), getHoldable(), null, "owned", null, 0, -1, Holder.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(thingEClass, Thing.class, "Thing", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(holdableEClass, Holdable.class, "Holdable", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getHoldable_Name(), ecorePackage.getEString(), "name", null, 1, 1, Holdable.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(hasNillableAttributeEClass, HasNillableAttribute.class, "HasNillableAttribute", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getHasNillableAttribute_Nillable(), getMyString(), "nillable", null, 0, 1, - HasNillableAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - // Initialize enums and add enum literals - initEEnum(myEnumEEnum, MyEnum.class, "MyEnum"); - addEEnumLiteral(myEnumEEnum, MyEnum.ZERO); - addEEnumLiteral(myEnumEEnum, MyEnum.ONE); - addEEnumLiteral(myEnumEEnum, MyEnum.TWO); - addEEnumLiteral(myEnumEEnum, MyEnum.THREE); - - // Initialize data types - initEDataType(myStringEDataType, String.class, "MyString", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); - - // Create resource - createResource(eNS_URI); - - // Create annotations - // http://www.eclipse.org/emf/CDO - createCDOAnnotations(); - } - - /** - * Initializes the annotations for http://www.eclipse.org/emf/CDO. - * - * - * @generated - */ - protected void createCDOAnnotations() - { - String source = "http://www.eclipse.org/emf/CDO"; - addAnnotation(getHolder_Held(), source, new String[] { "persistent", "true", "filter", "owned" }); - } - -} // Model6PackageImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/MyEnumListImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/MyEnumListImpl.java deleted file mode 100644 index e5954cc328..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/MyEnumListImpl.java +++ /dev/null @@ -1,170 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.MyEnum; -import org.eclipse.emf.cdo.tests.model6.MyEnumList; - -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 'My Enum List'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.MyEnumListImpl#getMyEnum My Enum}
  • - *
- *

- * - * @generated - */ -public class MyEnumListImpl extends EObjectImpl implements MyEnumList -{ - /** - * The cached value of the '{@link #getMyEnum() My Enum}' attribute list. - * - * - * @see #getMyEnum() - * @generated - * @ordered - */ - protected EList myEnum; - - /** - * - * - * @generated - */ - protected MyEnumListImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getMyEnumList(); - } - - /** - * - * - * @generated - */ - public EList getMyEnum() - { - if (myEnum == null) - { - myEnum = new EDataTypeUniqueEList(MyEnum.class, this, Model6Package.MY_ENUM_LIST__MY_ENUM); - } - return myEnum; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.MY_ENUM_LIST__MY_ENUM: - return getMyEnum(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.MY_ENUM_LIST__MY_ENUM: - getMyEnum().clear(); - getMyEnum().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.MY_ENUM_LIST__MY_ENUM: - getMyEnum().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.MY_ENUM_LIST__MY_ENUM: - return myEnum != null && !myEnum.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (myEnum: "); - result.append(myEnum); - result.append(')'); - return result.toString(); - } - -} // MyEnumListImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/MyEnumListUnsettableImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/MyEnumListUnsettableImpl.java deleted file mode 100644 index 9b0078d549..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/MyEnumListUnsettableImpl.java +++ /dev/null @@ -1,193 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.MyEnum; -import org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable; - -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 org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * - * An implementation of the model object 'My Enum List Unsettable'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.MyEnumListUnsettableImpl#getMyEnum My Enum}
  • - *
- *

- * - * @generated - */ -public class MyEnumListUnsettableImpl extends EObjectImpl implements MyEnumListUnsettable -{ - /** - * The cached value of the '{@link #getMyEnum() My Enum}' attribute list. - * - * - * @see #getMyEnum() - * @generated - * @ordered - */ - protected EList myEnum; - - /** - * - * - * @generated - */ - protected MyEnumListUnsettableImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getMyEnumListUnsettable(); - } - - /** - * - * - * @generated - */ - public EList getMyEnum() - { - if (myEnum == null) - { - myEnum = new EDataTypeUniqueEList.Unsettable(MyEnum.class, this, - Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM); - } - return myEnum; - } - - /** - * - * - * @generated - */ - public void unsetMyEnum() - { - if (myEnum != null) - ((InternalEList.Unsettable)myEnum).unset(); - } - - /** - * - * - * @generated - */ - public boolean isSetMyEnum() - { - return myEnum != null && ((InternalEList.Unsettable)myEnum).isSet(); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM: - return getMyEnum(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM: - getMyEnum().clear(); - getMyEnum().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM: - unsetMyEnum(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM: - return isSetMyEnum(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (myEnum: "); - result.append(myEnum); - result.append(')'); - return result.toString(); - } - -} // MyEnumListUnsettableImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapEntryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapEntryImpl.java deleted file mode 100644 index 4a0c001ece..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapEntryImpl.java +++ /dev/null @@ -1,401 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; - -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 'Properties Map Entry'. - * - *

- * The following features are implemented: - *

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

- * - * @generated - */ -public class PropertiesMapEntryImpl 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 PropertiesMapEntryValue value; - - /** - * - * - * @generated - */ - protected PropertiesMapEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getPropertiesMapEntry(); - } - - /** - * - * - * @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, Model6Package.PROPERTIES_MAP_ENTRY__KEY, oldKey, key)); - } - - /** - * - * - * @generated - */ - public PropertiesMapEntryValue getTypedValue() - { - if (value != null && value.eIsProxy()) - { - InternalEObject oldValue = (InternalEObject)value; - value = (PropertiesMapEntryValue)eResolveProxy(oldValue); - if (value != oldValue) - { - InternalEObject newValue = (InternalEObject)value; - NotificationChain msgs = oldValue.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, null, null); - if (newValue.eInternalContainer() == null) - { - msgs = newValue.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, null, - msgs); - } - if (msgs != null) - msgs.dispatch(); - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.PROPERTIES_MAP_ENTRY__VALUE, - oldValue, value)); - } - } - return value; - } - - /** - * - * - * @generated - */ - public PropertiesMapEntryValue basicGetTypedValue() - { - return value; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetTypedValue(PropertiesMapEntryValue newValue, NotificationChain msgs) - { - PropertiesMapEntryValue oldValue = value; - value = newValue; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, oldValue, newValue); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setTypedValue(PropertiesMapEntryValue newValue) - { - if (newValue != value) - { - NotificationChain msgs = null; - if (value != null) - msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, null, msgs); - if (newValue != null) - msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, null, msgs); - msgs = basicSetTypedValue(newValue, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.PROPERTIES_MAP_ENTRY__VALUE, newValue, - newValue)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP_ENTRY__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 Model6Package.PROPERTIES_MAP_ENTRY__KEY: - return getTypedKey(); - case Model6Package.PROPERTIES_MAP_ENTRY__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 Model6Package.PROPERTIES_MAP_ENTRY__KEY: - setTypedKey((String)newValue); - return; - case Model6Package.PROPERTIES_MAP_ENTRY__VALUE: - setTypedValue((PropertiesMapEntryValue)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP_ENTRY__KEY: - setTypedKey(KEY_EDEFAULT); - return; - case Model6Package.PROPERTIES_MAP_ENTRY__VALUE: - setTypedValue((PropertiesMapEntryValue)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP_ENTRY__KEY: - return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); - case Model6Package.PROPERTIES_MAP_ENTRY__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 PropertiesMapEntryValue getValue() - { - return getTypedValue(); - } - - /** - * - * - * @generated - */ - public PropertiesMapEntryValue setValue(PropertiesMapEntryValue value) - { - PropertiesMapEntryValue oldValue = getValue(); - setTypedValue(value); - return oldValue; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - public EMap getEMap() - { - EObject container = eContainer(); - return container == null ? null : (EMap)container.eGet(eContainmentFeature()); - } - -} // PropertiesMapEntryImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapEntryValueImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapEntryValueImpl.java deleted file mode 100644 index f6ab9f27fe..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapEntryValueImpl.java +++ /dev/null @@ -1,185 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; - -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; - -/** - * - * An implementation of the model object 'Properties Map Entry Value'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.PropertiesMapEntryValueImpl#getLabel Label}
  • - *
- *

- * - * @generated - */ -public class PropertiesMapEntryValueImpl extends EObjectImpl implements PropertiesMapEntryValue -{ - /** - * The default value of the '{@link #getLabel() Label}' attribute. - * - * - * @see #getLabel() - * @generated - * @ordered - */ - protected static final String LABEL_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLabel() Label}' attribute. - * - * - * @see #getLabel() - * @generated - * @ordered - */ - protected String label = LABEL_EDEFAULT; - - /** - * - * - * @generated - */ - protected PropertiesMapEntryValueImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getPropertiesMapEntryValue(); - } - - /** - * - * - * @generated - */ - public String getLabel() - { - return label; - } - - /** - * - * - * @generated - */ - public void setLabel(String newLabel) - { - String oldLabel = label; - label = newLabel; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL, oldLabel, - label)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL: - return getLabel(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL: - setLabel((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL: - setLabel(LABEL_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL: - return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (label: "); - result.append(label); - result.append(')'); - return result.toString(); - } - -} // PropertiesMapEntryValueImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapImpl.java deleted file mode 100644 index b49095ff59..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapImpl.java +++ /dev/null @@ -1,287 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.PropertiesMap; -import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; - -import org.eclipse.emf.common.notify.Notification; -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.EStructuralFeature; -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.EcoreEMap; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'Properties Map'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.PropertiesMapImpl#getLabel Label}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.PropertiesMapImpl#getPersistentMap Persistent Map}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.PropertiesMapImpl#getTransientMap Transient Map}
  • - *
- *

- * - * @generated - */ -public class PropertiesMapImpl extends EObjectImpl implements PropertiesMap -{ - /** - * The default value of the '{@link #getLabel() Label}' attribute. - * - * - * @see #getLabel() - * @generated - * @ordered - */ - protected static final String LABEL_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLabel() Label}' attribute. - * - * - * @see #getLabel() - * @generated - * @ordered - */ - protected String label = LABEL_EDEFAULT; - - /** - * The cached value of the '{@link #getPersistentMap() Persistent Map}' map. - * - * - * @see #getPersistentMap() - * @generated - * @ordered - */ - protected EMap persistentMap; - - /** - * The cached value of the '{@link #getTransientMap() Transient Map}' map. - * - * - * @see #getTransientMap() - * @generated - * @ordered - */ - protected EMap transientMap; - - /** - * - * - * @generated - */ - protected PropertiesMapImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getPropertiesMap(); - } - - /** - * - * - * @generated - */ - public String getLabel() - { - return label; - } - - /** - * - * - * @generated - */ - public void setLabel(String newLabel) - { - String oldLabel = label; - label = newLabel; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.PROPERTIES_MAP__LABEL, oldLabel, label)); - } - - /** - * - * - * @generated - */ - public EMap getPersistentMap() - { - if (persistentMap == null) - { - persistentMap = new EcoreEMap(Model6Package.eINSTANCE.getPropertiesMapEntry(), - PropertiesMapEntryImpl.class, this, Model6Package.PROPERTIES_MAP__PERSISTENT_MAP); - } - return persistentMap; - } - - /** - * - * - * @generated - */ - public EMap getTransientMap() - { - if (transientMap == null) - { - transientMap = new EcoreEMap(Model6Package.eINSTANCE.getPropertiesMapEntry(), - PropertiesMapEntryImpl.class, this, Model6Package.PROPERTIES_MAP__TRANSIENT_MAP); - } - return transientMap; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: - return ((InternalEList)getPersistentMap()).basicRemove(otherEnd, msgs); - case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: - return ((InternalEList)getTransientMap()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP__LABEL: - return getLabel(); - case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: - if (coreType) - return getPersistentMap(); - else - return getPersistentMap().map(); - case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: - if (coreType) - return getTransientMap(); - else - return getTransientMap().map(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP__LABEL: - setLabel((String)newValue); - return; - case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: - ((EStructuralFeature.Setting)getPersistentMap()).set(newValue); - return; - case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: - ((EStructuralFeature.Setting)getTransientMap()).set(newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP__LABEL: - setLabel(LABEL_EDEFAULT); - return; - case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: - getPersistentMap().clear(); - return; - case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: - getTransientMap().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP__LABEL: - return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); - case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: - return persistentMap != null && !persistentMap.isEmpty(); - case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: - return transientMap != null && !transientMap.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (label: "); - result.append(label); - result.append(')'); - return result.toString(); - } - -} // PropertiesMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ReferenceObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ReferenceObjectImpl.java deleted file mode 100644 index f183ad4fe9..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ReferenceObjectImpl.java +++ /dev/null @@ -1,216 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.BaseObject; -import org.eclipse.emf.cdo.tests.model6.ReferenceObject; - -import org.eclipse.emf.common.notify.Notification; -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.util.EObjectResolvingEList; - -import java.util.Collection; - -/** - * An implementation of the model object ' Reference Object'. - *

- * The following features are implemented: - *

    - *
  • - * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ReferenceObjectImpl#getReferenceOptional Reference - * Optional}
  • - *
  • - * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ReferenceObjectImpl#getReferenceList Reference List} - *
  • - *
- *

- * - * @generated - */ -public class ReferenceObjectImpl extends BaseObjectImpl implements ReferenceObject -{ - /** - * The cached value of the '{@link #getReferenceOptional() Reference Optional}' reference. - * - * @see #getReferenceOptional() - * @generated - * @ordered - */ - protected BaseObject referenceOptional; - - /** - * The cached value of the '{@link #getReferenceList() Reference List}' reference list. - * - * @see #getReferenceList() - * @generated - * @ordered - */ - protected EList referenceList; - - /** - * - * @generated - */ - protected ReferenceObjectImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getReferenceObject(); - } - - /** - * - * @generated - */ - public BaseObject getReferenceOptional() - { - if (referenceOptional != null && referenceOptional.eIsProxy()) - { - InternalEObject oldReferenceOptional = (InternalEObject)referenceOptional; - referenceOptional = (BaseObject)eResolveProxy(oldReferenceOptional); - if (referenceOptional != oldReferenceOptional) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL, - oldReferenceOptional, referenceOptional)); - } - } - return referenceOptional; - } - - /** - * - * @generated - */ - public BaseObject basicGetReferenceOptional() - { - return referenceOptional; - } - - /** - * - * @generated - */ - public void setReferenceOptional(BaseObject newReferenceOptional) - { - BaseObject oldReferenceOptional = referenceOptional; - referenceOptional = newReferenceOptional; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL, - oldReferenceOptional, referenceOptional)); - } - - /** - * - * @generated - */ - public EList getReferenceList() - { - if (referenceList == null) - { - referenceList = new EObjectResolvingEList(BaseObject.class, this, - Model6Package.REFERENCE_OBJECT__REFERENCE_LIST); - } - return referenceList; - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL: - if (resolve) - return getReferenceOptional(); - return basicGetReferenceOptional(); - case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST: - return getReferenceList(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL: - setReferenceOptional((BaseObject)newValue); - return; - case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST: - getReferenceList().clear(); - getReferenceList().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL: - setReferenceOptional((BaseObject)null); - return; - case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST: - getReferenceList().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL: - return referenceOptional != null; - case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST: - return referenceList != null && !referenceList.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // ReferenceObjectImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/RootImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/RootImpl.java deleted file mode 100644 index 38304365b8..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/RootImpl.java +++ /dev/null @@ -1,272 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.BaseObject; -import org.eclipse.emf.cdo.tests.model6.Root; - -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.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object ' Root'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListA List A}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListB List B}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListC List C}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListD List D}
  • - *
- *

- * - * @generated - */ -public class RootImpl extends EObjectImpl implements Root -{ - /** - * The cached value of the '{@link #getListA() List A}' containment reference list. - * - * - * @see #getListA() - * @generated - * @ordered - */ - protected EList listA; - - /** - * The cached value of the '{@link #getListB() List B}' containment reference list. - * - * - * @see #getListB() - * @generated - * @ordered - */ - protected EList listB; - - /** - * The cached value of the '{@link #getListC() List C}' containment reference list. - * - * - * @see #getListC() - * @generated - * @ordered - */ - protected EList listC; - - /** - * The cached value of the '{@link #getListD() List D}' containment reference list. - * - * - * @see #getListD() - * @generated - * @ordered - */ - protected EList listD; - - /** - * - * @generated - */ - protected RootImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getRoot(); - } - - /** - * - * @generated - */ - public EList getListA() - { - if (listA == null) - { - listA = new EObjectContainmentEList.Resolving(BaseObject.class, this, Model6Package.ROOT__LIST_A); - } - return listA; - } - - /** - * - * @generated - */ - public EList getListB() - { - if (listB == null) - { - listB = new EObjectContainmentEList.Resolving(BaseObject.class, this, Model6Package.ROOT__LIST_B); - } - return listB; - } - - /** - * - * @generated - */ - public EList getListC() - { - if (listC == null) - { - listC = new EObjectContainmentEList.Resolving(BaseObject.class, this, Model6Package.ROOT__LIST_C); - } - return listC; - } - - /** - * - * @generated - */ - public EList getListD() - { - if (listD == null) - { - listD = new EObjectContainmentEList.Resolving(BaseObject.class, this, Model6Package.ROOT__LIST_D); - } - return listD; - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.ROOT__LIST_A: - return ((InternalEList)getListA()).basicRemove(otherEnd, msgs); - case Model6Package.ROOT__LIST_B: - return ((InternalEList)getListB()).basicRemove(otherEnd, msgs); - case Model6Package.ROOT__LIST_C: - return ((InternalEList)getListC()).basicRemove(otherEnd, msgs); - case Model6Package.ROOT__LIST_D: - return ((InternalEList)getListD()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.ROOT__LIST_A: - return getListA(); - case Model6Package.ROOT__LIST_B: - return getListB(); - case Model6Package.ROOT__LIST_C: - return getListC(); - case Model6Package.ROOT__LIST_D: - return getListD(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.ROOT__LIST_A: - getListA().clear(); - getListA().addAll((Collection)newValue); - return; - case Model6Package.ROOT__LIST_B: - getListB().clear(); - getListB().addAll((Collection)newValue); - return; - case Model6Package.ROOT__LIST_C: - getListC().clear(); - getListC().addAll((Collection)newValue); - return; - case Model6Package.ROOT__LIST_D: - getListD().clear(); - getListD().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.ROOT__LIST_A: - getListA().clear(); - return; - case Model6Package.ROOT__LIST_B: - getListB().clear(); - return; - case Model6Package.ROOT__LIST_C: - getListC().clear(); - return; - case Model6Package.ROOT__LIST_D: - getListD().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.ROOT__LIST_A: - return listA != null && !listA.isEmpty(); - case Model6Package.ROOT__LIST_B: - return listB != null && !listB.isEmpty(); - case Model6Package.ROOT__LIST_C: - return listC != null && !listC.isEmpty(); - case Model6Package.ROOT__LIST_D: - return listD != null && !listD.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // RootImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ThingImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ThingImpl.java deleted file mode 100644 index c41a206919..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ThingImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - */ -package org.eclipse.emf.cdo.tests.legacy.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.Thing; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Thing'. - * - *

- *

- * - * @generated - */ -public class ThingImpl extends HoldableImpl implements Thing -{ - /** - * - * - * @generated - */ - protected ThingImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getThing(); - } - -} // ThingImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/UnorderedListImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/UnorderedListImpl.java deleted file mode 100644 index a5f33917d2..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/UnorderedListImpl.java +++ /dev/null @@ -1,198 +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.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.UnorderedList; - -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.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object 'Unordered List'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.UnorderedListImpl#getContained Contained}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.UnorderedListImpl#getReferenced Referenced}
  • - *
- *

- * - * @generated - */ -public class UnorderedListImpl extends EObjectImpl implements UnorderedList -{ - /** - * The cached value of the '{@link #getContained() Contained}' containment reference list. - * - * @see #getContained() - * @generated - * @ordered - */ - protected EList contained; - - /** - * The cached value of the '{@link #getReferenced() Referenced}' reference list. - * - * @see #getReferenced() - * @generated - * @ordered - */ - protected EList referenced; - - /** - * - * @generated - */ - protected UnorderedListImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getUnorderedList(); - } - - /** - * - * @generated - */ - public EList getContained() - { - if (contained == null) - { - contained = new EObjectContainmentEList.Resolving(UnorderedList.class, this, - Model6Package.UNORDERED_LIST__CONTAINED); - } - return contained; - } - - /** - * - * @generated - */ - public EList getReferenced() - { - if (referenced == null) - { - referenced = new EObjectResolvingEList(UnorderedList.class, this, - Model6Package.UNORDERED_LIST__REFERENCED); - } - return referenced; - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.UNORDERED_LIST__CONTAINED: - return ((InternalEList)getContained()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.UNORDERED_LIST__CONTAINED: - return getContained(); - case Model6Package.UNORDERED_LIST__REFERENCED: - return getReferenced(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.UNORDERED_LIST__CONTAINED: - getContained().clear(); - getContained().addAll((Collection)newValue); - return; - case Model6Package.UNORDERED_LIST__REFERENCED: - getReferenced().clear(); - getReferenced().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.UNORDERED_LIST__CONTAINED: - getContained().clear(); - return; - case Model6Package.UNORDERED_LIST__REFERENCED: - getReferenced().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.UNORDERED_LIST__CONTAINED: - return contained != null && !contained.isEmpty(); - case Model6Package.UNORDERED_LIST__REFERENCED: - return referenced != null && !referenced.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // UnorderedListImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Factory.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Factory.java index df50674143..c574093ae0 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Factory.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Factory.java @@ -25,7 +25,7 @@ public interface Model6Factory extends EFactory * * @generated */ - Model6Factory eINSTANCE = org.eclipse.emf.cdo.tests.model6.impl.Model6FactoryImpl.init(); + Model6Factory eINSTANCE = org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6FactoryImpl.init(); /** * Returns a new object of class 'Root'. diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Package.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Package.java index 29d984379f..0ca81a3a03 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Package.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Package.java @@ -58,7 +58,7 @@ public interface Model6Package extends EPackage * * @generated */ - Model6Package eINSTANCE = org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl.init(); + Model6Package eINSTANCE = org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl.init(); /** * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.RootImpl Root}' class. - * @see org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getBaseObject() + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.BaseObjectImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getBaseObject() * @generated */ int BASE_OBJECT = 1; @@ -160,10 +160,10 @@ public interface Model6Package extends EPackage int BASE_OBJECT_FEATURE_COUNT = 3; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl Reference Object}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.ReferenceObjectImpl Reference Object}' class. * - * @see org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getReferenceObject() + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.ReferenceObjectImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getReferenceObject() * @generated */ int REFERENCE_OBJECT = 2; @@ -223,10 +223,10 @@ public interface Model6Package extends EPackage int REFERENCE_OBJECT_FEATURE_COUNT = BASE_OBJECT_FEATURE_COUNT + 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl Containment Object}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.ContainmentObjectImpl Containment Object}' class. * - * @see org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getContainmentObject() + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.ContainmentObjectImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getContainmentObject() * @generated */ int CONTAINMENT_OBJECT = 3; @@ -286,10 +286,10 @@ public interface Model6Package extends EPackage int CONTAINMENT_OBJECT_FEATURE_COUNT = BASE_OBJECT_FEATURE_COUNT + 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.UnorderedListImpl Unordered List}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.UnorderedListImpl Unordered List}' class. * - * @see org.eclipse.emf.cdo.tests.model6.impl.UnorderedListImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getUnorderedList() + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.UnorderedListImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getUnorderedList() * @generated */ int UNORDERED_LIST = 4; @@ -321,11 +321,11 @@ public interface Model6Package extends EPackage int UNORDERED_LIST_FEATURE_COUNT = 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapImpl Properties Map}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.PropertiesMapImpl Properties Map}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getPropertiesMap() + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.PropertiesMapImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getPropertiesMap() * @generated */ int PROPERTIES_MAP = 5; @@ -367,11 +367,11 @@ public interface Model6Package extends EPackage int PROPERTIES_MAP_FEATURE_COUNT = 3; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapEntryImpl Properties Map Entry}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.PropertiesMapEntryImpl Properties Map Entry}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapEntryImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getPropertiesMapEntry() + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.PropertiesMapEntryImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getPropertiesMapEntry() * @generated */ int PROPERTIES_MAP_ENTRY = 6; @@ -404,11 +404,11 @@ public interface Model6Package extends EPackage int PROPERTIES_MAP_ENTRY_FEATURE_COUNT = 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapEntryValueImpl Properties Map Entry Value}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.PropertiesMapEntryValueImpl Properties Map Entry Value}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapEntryValueImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getPropertiesMapEntryValue() + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.PropertiesMapEntryValueImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getPropertiesMapEntryValue() * @generated */ int PROPERTIES_MAP_ENTRY_VALUE = 7; @@ -593,11 +593,11 @@ public interface Model6Package extends EPackage int F_FEATURE_COUNT = 1; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.GImpl G}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.GImpl G}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.GImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getG() + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.GImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getG() * @generated */ int G = 14; @@ -639,11 +639,11 @@ public interface Model6Package extends EPackage int G_FEATURE_COUNT = 3; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.MyEnumListImpl My Enum List}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.MyEnumListImpl My Enum List}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.MyEnumListImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getMyEnumList() + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.MyEnumListImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getMyEnumList() * @generated */ int MY_ENUM_LIST = 15; @@ -667,11 +667,11 @@ public interface Model6Package extends EPackage int MY_ENUM_LIST_FEATURE_COUNT = 1; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.MyEnumListUnsettableImpl My Enum List Unsettable}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.MyEnumListUnsettableImpl My Enum List Unsettable}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.MyEnumListUnsettableImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getMyEnumListUnsettable() + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.MyEnumListUnsettableImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getMyEnumListUnsettable() * @generated */ int MY_ENUM_LIST_UNSETTABLE = 16; @@ -695,11 +695,11 @@ public interface Model6Package extends EPackage int MY_ENUM_LIST_UNSETTABLE_FEATURE_COUNT = 1; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.HoldableImpl Holdable}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.HoldableImpl Holdable}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.HoldableImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getHoldable() + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.HoldableImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getHoldable() * @generated */ int HOLDABLE = 19; @@ -723,11 +723,11 @@ public interface Model6Package extends EPackage int HOLDABLE_FEATURE_COUNT = 1; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.HolderImpl Holder}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.HolderImpl Holder}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.HolderImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getHolder() + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.HolderImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getHolder() * @generated */ int HOLDER = 17; @@ -769,11 +769,11 @@ public interface Model6Package extends EPackage int HOLDER_FEATURE_COUNT = HOLDABLE_FEATURE_COUNT + 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ThingImpl Thing}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.ThingImpl Thing}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.ThingImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getThing() + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.ThingImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getThing() * @generated */ int THING = 18; @@ -797,11 +797,11 @@ public interface Model6Package extends EPackage int THING_FEATURE_COUNT = HOLDABLE_FEATURE_COUNT + 0; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.HasNillableAttributeImpl Has Nillable Attribute}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.HasNillableAttributeImpl Has Nillable Attribute}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.HasNillableAttributeImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getHasNillableAttribute() + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.HasNillableAttributeImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getHasNillableAttribute() * @generated */ int HAS_NILLABLE_ATTRIBUTE = 20; @@ -829,7 +829,7 @@ public interface Model6Package extends EPackage * * * @see org.eclipse.emf.cdo.tests.model6.MyEnum - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getMyEnum() + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getMyEnum() * @generated */ int MY_ENUM = 21; @@ -839,7 +839,7 @@ public interface Model6Package extends EPackage * * * @see java.lang.String - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getMyString() + * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getMyString() * @generated */ int MY_STRING = 22; @@ -1446,516 +1446,4 @@ public interface Model6Package extends EPackage */ Model6Factory getModel6Factory(); - /** - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals - { - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.RootImpl Root}' class. - * - * @see org.eclipse.emf.cdo.tests.model6.impl.RootImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getRoot() - * @generated - */ - EClass ROOT = eINSTANCE.getRoot(); - - /** - * The meta object literal for the 'List A' containment reference list feature. - * - * @generated - */ - EReference ROOT__LIST_A = eINSTANCE.getRoot_ListA(); - - /** - * The meta object literal for the 'List B' containment reference list feature. - * - * @generated - */ - EReference ROOT__LIST_B = eINSTANCE.getRoot_ListB(); - - /** - * The meta object literal for the 'List C' containment reference list feature. - * - * @generated - */ - EReference ROOT__LIST_C = eINSTANCE.getRoot_ListC(); - - /** - * The meta object literal for the 'List D' containment reference list feature. - * - * @generated - */ - EReference ROOT__LIST_D = eINSTANCE.getRoot_ListD(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl Base Object}' class. - * - * @see org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getBaseObject() - * @generated - */ - EClass BASE_OBJECT = eINSTANCE.getBaseObject(); - - /** - * The meta object literal for the 'Attribute Optional' attribute feature. - * - * - * @generated - */ - EAttribute BASE_OBJECT__ATTRIBUTE_OPTIONAL = eINSTANCE.getBaseObject_AttributeOptional(); - - /** - * The meta object literal for the 'Attribute Required' attribute feature. - * - * - * @generated - */ - EAttribute BASE_OBJECT__ATTRIBUTE_REQUIRED = eINSTANCE.getBaseObject_AttributeRequired(); - - /** - * The meta object literal for the 'Attribute List' attribute list feature. - * - * - * @generated - */ - EAttribute BASE_OBJECT__ATTRIBUTE_LIST = eINSTANCE.getBaseObject_AttributeList(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl Reference Object}' class. - * - * @see org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getReferenceObject() - * @generated - */ - EClass REFERENCE_OBJECT = eINSTANCE.getReferenceObject(); - - /** - * The meta object literal for the 'Reference Optional' reference feature. - * - * - * @generated - */ - EReference REFERENCE_OBJECT__REFERENCE_OPTIONAL = eINSTANCE.getReferenceObject_ReferenceOptional(); - - /** - * The meta object literal for the 'Reference List' reference list feature. - * - * - * @generated - */ - EReference REFERENCE_OBJECT__REFERENCE_LIST = eINSTANCE.getReferenceObject_ReferenceList(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl Containment Object}' class. - * - * @see org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getContainmentObject() - * @generated - */ - EClass CONTAINMENT_OBJECT = eINSTANCE.getContainmentObject(); - - /** - * The meta object literal for the 'Containment Optional' containment reference feature. - * - * @generated - */ - EReference CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL = eINSTANCE.getContainmentObject_ContainmentOptional(); - - /** - * The meta object literal for the 'Containment List' containment reference list feature. - * - * @generated - */ - EReference CONTAINMENT_OBJECT__CONTAINMENT_LIST = eINSTANCE.getContainmentObject_ContainmentList(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.UnorderedListImpl Unordered List}' class. - * - * @see org.eclipse.emf.cdo.tests.model6.impl.UnorderedListImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getUnorderedList() - * @generated - */ - EClass UNORDERED_LIST = eINSTANCE.getUnorderedList(); - - /** - * The meta object literal for the 'Contained' containment reference list feature. - * - * @generated - */ - EReference UNORDERED_LIST__CONTAINED = eINSTANCE.getUnorderedList_Contained(); - - /** - * The meta object literal for the 'Referenced' reference list feature. - * - * @generated - */ - EReference UNORDERED_LIST__REFERENCED = eINSTANCE.getUnorderedList_Referenced(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapImpl Properties Map}' class. - * - * - * @see org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getPropertiesMap() - * @generated - */ - EClass PROPERTIES_MAP = eINSTANCE.getPropertiesMap(); - - /** - * The meta object literal for the 'Label' attribute feature. - * - * - * @generated - */ - EAttribute PROPERTIES_MAP__LABEL = eINSTANCE.getPropertiesMap_Label(); - - /** - * The meta object literal for the 'Persistent Map' map feature. - * - * - * @generated - */ - EReference PROPERTIES_MAP__PERSISTENT_MAP = eINSTANCE.getPropertiesMap_PersistentMap(); - - /** - * The meta object literal for the 'Transient Map' map feature. - * - * - * @generated - */ - EReference PROPERTIES_MAP__TRANSIENT_MAP = eINSTANCE.getPropertiesMap_TransientMap(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapEntryImpl Properties Map Entry}' class. - * - * - * @see org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapEntryImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getPropertiesMapEntry() - * @generated - */ - EClass PROPERTIES_MAP_ENTRY = eINSTANCE.getPropertiesMapEntry(); - - /** - * The meta object literal for the 'Key' attribute feature. - * - * - * @generated - */ - EAttribute PROPERTIES_MAP_ENTRY__KEY = eINSTANCE.getPropertiesMapEntry_Key(); - - /** - * The meta object literal for the 'Value' containment reference feature. - * - * - * @generated - */ - EReference PROPERTIES_MAP_ENTRY__VALUE = eINSTANCE.getPropertiesMapEntry_Value(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapEntryValueImpl Properties Map Entry Value}' class. - * - * - * @see org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapEntryValueImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getPropertiesMapEntryValue() - * @generated - */ - EClass PROPERTIES_MAP_ENTRY_VALUE = eINSTANCE.getPropertiesMapEntryValue(); - - /** - * The meta object literal for the 'Label' attribute feature. - * - * - * @generated - */ - EAttribute PROPERTIES_MAP_ENTRY_VALUE__LABEL = eINSTANCE.getPropertiesMapEntryValue_Label(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.AImpl A}' class. - * - * @see org.eclipse.emf.cdo.tests.model6.impl.AImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getA() - * @generated - */ - EClass A = eINSTANCE.getA(); - - /** - * The meta object literal for the 'Owned Ds' containment reference list feature. - * - * @generated - */ - EReference A__OWNED_DS = eINSTANCE.getA_OwnedDs(); - - /** - * The meta object literal for the 'Owned Bs' containment reference list feature. - * - * @generated - */ - EReference A__OWNED_BS = eINSTANCE.getA_OwnedBs(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.BImpl B}' class. - * - * @see org.eclipse.emf.cdo.tests.model6.impl.BImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getB() - * @generated - */ - EClass B = eINSTANCE.getB(); - - /** - * The meta object literal for the 'Owned C' containment reference feature. - * - * - * @generated - */ - EReference B__OWNED_C = eINSTANCE.getB_OwnedC(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.CImpl C}' class. - * - * @see org.eclipse.emf.cdo.tests.model6.impl.CImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getC() - * @generated - */ - EClass C = eINSTANCE.getC(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.DImpl D}' class. - * - * @see org.eclipse.emf.cdo.tests.model6.impl.DImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getD() - * @generated - */ - EClass D = eINSTANCE.getD(); - - /** - * The meta object literal for the 'Data' containment reference feature. - * - * - * @generated - */ - EReference D__DATA = eINSTANCE.getD_Data(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.EImpl E}' class. - * - * @see org.eclipse.emf.cdo.tests.model6.impl.EImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getE() - * @generated - */ - EClass E = eINSTANCE.getE(); - - /** - * The meta object literal for the 'Owned As' containment reference list feature. - * - * @generated - */ - EReference E__OWNED_AS = eINSTANCE.getE_OwnedAs(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.FImpl F}' class. - * - * @see org.eclipse.emf.cdo.tests.model6.impl.FImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getF() - * @generated - */ - EClass F = eINSTANCE.getF(); - - /** - * The meta object literal for the 'Owned Es' containment reference list feature. - * - * @generated - */ - EReference F__OWNED_ES = eINSTANCE.getF_OwnedEs(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.GImpl G}' class. - * - * - * @see org.eclipse.emf.cdo.tests.model6.impl.GImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getG() - * @generated - */ - EClass G = eINSTANCE.getG(); - - /** - * The meta object literal for the 'Dummy' attribute feature. - * - * - * @generated - */ - EAttribute G__DUMMY = eINSTANCE.getG_Dummy(); - - /** - * The meta object literal for the 'Reference' reference feature. - * - * - * @generated - */ - EReference G__REFERENCE = eINSTANCE.getG_Reference(); - - /** - * The meta object literal for the 'List' reference list feature. - * - * - * @generated - */ - EReference G__LIST = eINSTANCE.getG_List(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.MyEnumListImpl My Enum List}' class. - * - * - * @see org.eclipse.emf.cdo.tests.model6.impl.MyEnumListImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getMyEnumList() - * @generated - */ - EClass MY_ENUM_LIST = eINSTANCE.getMyEnumList(); - - /** - * The meta object literal for the 'My Enum' attribute list feature. - * - * - * @generated - */ - EAttribute MY_ENUM_LIST__MY_ENUM = eINSTANCE.getMyEnumList_MyEnum(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.MyEnumListUnsettableImpl My Enum List Unsettable}' class. - * - * - * @see org.eclipse.emf.cdo.tests.model6.impl.MyEnumListUnsettableImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getMyEnumListUnsettable() - * @generated - */ - EClass MY_ENUM_LIST_UNSETTABLE = eINSTANCE.getMyEnumListUnsettable(); - - /** - * The meta object literal for the 'My Enum' attribute list feature. - * - * - * @generated - */ - EAttribute MY_ENUM_LIST_UNSETTABLE__MY_ENUM = eINSTANCE.getMyEnumListUnsettable_MyEnum(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.HolderImpl Holder}' class. - * - * - * @see org.eclipse.emf.cdo.tests.model6.impl.HolderImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getHolder() - * @generated - */ - EClass HOLDER = eINSTANCE.getHolder(); - - /** - * The meta object literal for the 'Held' reference list feature. - * - * - * @generated - */ - EReference HOLDER__HELD = eINSTANCE.getHolder_Held(); - - /** - * The meta object literal for the 'Owned' containment reference list feature. - * - * - * @generated - */ - EReference HOLDER__OWNED = eINSTANCE.getHolder_Owned(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ThingImpl Thing}' class. - * - * - * @see org.eclipse.emf.cdo.tests.model6.impl.ThingImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getThing() - * @generated - */ - EClass THING = eINSTANCE.getThing(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.HoldableImpl Holdable}' class. - * - * - * @see org.eclipse.emf.cdo.tests.model6.impl.HoldableImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getHoldable() - * @generated - */ - EClass HOLDABLE = eINSTANCE.getHoldable(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * - * @generated - */ - EAttribute HOLDABLE__NAME = eINSTANCE.getHoldable_Name(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.HasNillableAttributeImpl Has Nillable Attribute}' class. - * - * - * @see org.eclipse.emf.cdo.tests.model6.impl.HasNillableAttributeImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getHasNillableAttribute() - * @generated - */ - EClass HAS_NILLABLE_ATTRIBUTE = eINSTANCE.getHasNillableAttribute(); - - /** - * The meta object literal for the 'Nillable' attribute feature. - * - * - * @generated - */ - EAttribute HAS_NILLABLE_ATTRIBUTE__NILLABLE = eINSTANCE.getHasNillableAttribute_Nillable(); - - /** - * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.MyEnum My Enum}' enum. - * - * - * @see org.eclipse.emf.cdo.tests.model6.MyEnum - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getMyEnum() - * @generated - */ - EEnum MY_ENUM = eINSTANCE.getMyEnum(); - - /** - * The meta object literal for the 'My String' data type. - * - * - * @see java.lang.String - * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getMyString() - * @generated - */ - EDataType MY_STRING = eINSTANCE.getMyString(); - - } - } // Model6Package diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/AImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/AImpl.java new file mode 100644 index 0000000000..2598dcb103 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/AImpl.java @@ -0,0 +1,199 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.A; +import org.eclipse.emf.cdo.tests.model6.B; +import org.eclipse.emf.cdo.tests.model6.D; + +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object 'A'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.AImpl#getOwnedDs Owned Ds}
  • + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.AImpl#getOwnedBs Owned Bs}
  • + *
+ *

+ * + * @generated + */ +public class AImpl extends EObjectImpl implements A +{ + /** + * The cached value of the '{@link #getOwnedDs() Owned Ds}' containment reference list. + * + * @see #getOwnedDs() + * @generated + * @ordered + */ + protected EList ownedDs; + + /** + * The cached value of the '{@link #getOwnedBs() Owned Bs}' containment reference list. + * + * @see #getOwnedBs() + * @generated + * @ordered + */ + protected EList ownedBs; + + /** + * + * @generated + */ + protected AImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getA(); + } + + /** + * + * @generated + */ + public EList getOwnedDs() + { + if (ownedDs == null) + { + ownedDs = new EObjectContainmentEList.Resolving(D.class, this, Model6Package.A__OWNED_DS); + } + return ownedDs; + } + + /** + * + * @generated + */ + public EList getOwnedBs() + { + if (ownedBs == null) + { + ownedBs = new EObjectContainmentEList.Resolving(B.class, this, Model6Package.A__OWNED_BS); + } + return ownedBs; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.A__OWNED_DS: + return ((InternalEList)getOwnedDs()).basicRemove(otherEnd, msgs); + case Model6Package.A__OWNED_BS: + return ((InternalEList)getOwnedBs()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.A__OWNED_DS: + return getOwnedDs(); + case Model6Package.A__OWNED_BS: + return getOwnedBs(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.A__OWNED_DS: + getOwnedDs().clear(); + getOwnedDs().addAll((Collection)newValue); + return; + case Model6Package.A__OWNED_BS: + getOwnedBs().clear(); + getOwnedBs().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.A__OWNED_DS: + getOwnedDs().clear(); + return; + case Model6Package.A__OWNED_BS: + getOwnedBs().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.A__OWNED_DS: + return ownedDs != null && !ownedDs.isEmpty(); + case Model6Package.A__OWNED_BS: + return ownedBs != null && !ownedBs.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // AImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BImpl.java new file mode 100644 index 0000000000..789b9dec56 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BImpl.java @@ -0,0 +1,226 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.B; +import org.eclipse.emf.cdo.tests.model6.C; + +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; + +/** + * An implementation of the model object 'B'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BImpl#getOwnedC Owned C}
  • + *
+ *

+ * + * @generated + */ +public class BImpl extends EObjectImpl implements B +{ + /** + * The cached value of the '{@link #getOwnedC() Owned C}' containment reference. + * + * @see #getOwnedC() + * @generated + * @ordered + */ + protected C ownedC; + + /** + * + * @generated + */ + protected BImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getB(); + } + + /** + * + * @generated + */ + public C getOwnedC() + { + if (ownedC != null && ownedC.eIsProxy()) + { + InternalEObject oldOwnedC = (InternalEObject)ownedC; + ownedC = (C)eResolveProxy(oldOwnedC); + if (ownedC != oldOwnedC) + { + InternalEObject newOwnedC = (InternalEObject)ownedC; + NotificationChain msgs = oldOwnedC.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Model6Package.B__OWNED_C, + null, null); + if (newOwnedC.eInternalContainer() == null) + { + msgs = newOwnedC.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Model6Package.B__OWNED_C, null, msgs); + } + if (msgs != null) + msgs.dispatch(); + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.B__OWNED_C, oldOwnedC, ownedC)); + } + } + return ownedC; + } + + /** + * + * + * @generated + */ + public C basicGetOwnedC() + { + return ownedC; + } + + /** + * + * @generated + */ + public NotificationChain basicSetOwnedC(C newOwnedC, NotificationChain msgs) + { + C oldOwnedC = ownedC; + ownedC = newOwnedC; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Model6Package.B__OWNED_C, + oldOwnedC, newOwnedC); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setOwnedC(C newOwnedC) + { + if (newOwnedC != ownedC) + { + NotificationChain msgs = null; + if (ownedC != null) + msgs = ((InternalEObject)ownedC).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Model6Package.B__OWNED_C, null, + msgs); + if (newOwnedC != null) + msgs = ((InternalEObject)newOwnedC).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Model6Package.B__OWNED_C, null, + msgs); + msgs = basicSetOwnedC(newOwnedC, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.B__OWNED_C, newOwnedC, newOwnedC)); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.B__OWNED_C: + return basicSetOwnedC(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.B__OWNED_C: + if (resolve) + return getOwnedC(); + return basicGetOwnedC(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.B__OWNED_C: + setOwnedC((C)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.B__OWNED_C: + setOwnedC((C)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.B__OWNED_C: + return ownedC != null; + } + return super.eIsSet(featureID); + } + +} // BImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BaseObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BaseObjectImpl.java new file mode 100644 index 0000000000..b3f248e437 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BaseObjectImpl.java @@ -0,0 +1,273 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.BaseObject; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; + +import java.util.Collection; + +/** + * An implementation of the model object ' Base Object'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BaseObjectImpl#getAttributeOptional Attribute Optional}
  • + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BaseObjectImpl#getAttributeRequired Attribute Required}
  • + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BaseObjectImpl#getAttributeList Attribute List}
  • + *
+ *

+ * + * @generated + */ +public class BaseObjectImpl extends EObjectImpl implements BaseObject +{ + /** + * The default value of the '{@link #getAttributeOptional() Attribute Optional}' attribute. + * + * @see #getAttributeOptional() + * @generated + * @ordered + */ + protected static final String ATTRIBUTE_OPTIONAL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAttributeOptional() Attribute Optional}' attribute. + * + * @see #getAttributeOptional() + * @generated + * @ordered + */ + protected String attributeOptional = ATTRIBUTE_OPTIONAL_EDEFAULT; + + /** + * The default value of the '{@link #getAttributeRequired() Attribute Required}' attribute. + * + * @see #getAttributeRequired() + * @generated + * @ordered + */ + protected static final String ATTRIBUTE_REQUIRED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAttributeRequired() Attribute Required}' attribute. + * + * @see #getAttributeRequired() + * @generated + * @ordered + */ + protected String attributeRequired = ATTRIBUTE_REQUIRED_EDEFAULT; + + /** + * The cached value of the '{@link #getAttributeList() Attribute List}' attribute list. + * + * @see #getAttributeList() + * @generated + * @ordered + */ + protected EList attributeList; + + /** + * + * @generated + */ + protected BaseObjectImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getBaseObject(); + } + + /** + * + * @generated + */ + public String getAttributeOptional() + { + return attributeOptional; + } + + /** + * + * @generated + */ + public void setAttributeOptional(String newAttributeOptional) + { + String oldAttributeOptional = attributeOptional; + attributeOptional = newAttributeOptional; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL, + oldAttributeOptional, attributeOptional)); + } + + /** + * + * @generated + */ + public String getAttributeRequired() + { + return attributeRequired; + } + + /** + * + * @generated + */ + public void setAttributeRequired(String newAttributeRequired) + { + String oldAttributeRequired = attributeRequired; + attributeRequired = newAttributeRequired; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED, + oldAttributeRequired, attributeRequired)); + } + + /** + * + * @generated + */ + public EList getAttributeList() + { + if (attributeList == null) + { + attributeList = new EDataTypeUniqueEList(String.class, this, Model6Package.BASE_OBJECT__ATTRIBUTE_LIST); + } + return attributeList; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL: + return getAttributeOptional(); + case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED: + return getAttributeRequired(); + case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST: + return getAttributeList(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL: + setAttributeOptional((String)newValue); + return; + case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED: + setAttributeRequired((String)newValue); + return; + case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST: + getAttributeList().clear(); + getAttributeList().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL: + setAttributeOptional(ATTRIBUTE_OPTIONAL_EDEFAULT); + return; + case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED: + setAttributeRequired(ATTRIBUTE_REQUIRED_EDEFAULT); + return; + case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST: + getAttributeList().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL: + return ATTRIBUTE_OPTIONAL_EDEFAULT == null ? attributeOptional != null : !ATTRIBUTE_OPTIONAL_EDEFAULT + .equals(attributeOptional); + case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED: + return ATTRIBUTE_REQUIRED_EDEFAULT == null ? attributeRequired != null : !ATTRIBUTE_REQUIRED_EDEFAULT + .equals(attributeRequired); + case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST: + return attributeList != null && !attributeList.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (attributeOptional: "); + result.append(attributeOptional); + result.append(", attributeRequired: "); + result.append(attributeRequired); + result.append(", attributeList: "); + result.append(attributeList); + result.append(')'); + return result.toString(); + } + +} // BaseObjectImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/CImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/CImpl.java new file mode 100644 index 0000000000..2de63f54b1 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/CImpl.java @@ -0,0 +1,47 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.C; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +/** + * An implementation of the model object 'C'. + *

+ *

+ * + * @generated + */ +public class CImpl extends EObjectImpl implements C +{ + /** + * + * @generated + */ + protected CImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getC(); + } + +} // CImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ContainmentObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ContainmentObjectImpl.java new file mode 100644 index 0000000000..c545cd9b95 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ContainmentObjectImpl.java @@ -0,0 +1,272 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.BaseObject; +import org.eclipse.emf.cdo.tests.model6.ContainmentObject; + +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.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object ' Containment Object'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ContainmentObjectImpl#getContainmentOptional Containment Optional}
  • + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ContainmentObjectImpl#getContainmentList Containment List}
  • + *
+ *

+ * + * @generated + */ +public class ContainmentObjectImpl extends BaseObjectImpl implements ContainmentObject +{ + /** + * The cached value of the '{@link #getContainmentOptional() Containment Optional}' containment reference. + * + * @see #getContainmentOptional() + * @generated + * @ordered + */ + protected BaseObject containmentOptional; + + /** + * The cached value of the '{@link #getContainmentList() Containment List}' containment reference list. + * + * @see #getContainmentList() + * @generated + * @ordered + */ + protected EList containmentList; + + /** + * + * @generated + */ + protected ContainmentObjectImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getContainmentObject(); + } + + /** + * + * @generated + */ + public BaseObject getContainmentOptional() + { + if (containmentOptional != null && containmentOptional.eIsProxy()) + { + InternalEObject oldContainmentOptional = (InternalEObject)containmentOptional; + containmentOptional = (BaseObject)eResolveProxy(oldContainmentOptional); + if (containmentOptional != oldContainmentOptional) + { + InternalEObject newContainmentOptional = (InternalEObject)containmentOptional; + NotificationChain msgs = oldContainmentOptional.eInverseRemove(this, EOPPOSITE_FEATURE_BASE + - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, null); + if (newContainmentOptional.eInternalContainer() == null) + { + msgs = newContainmentOptional.eInverseAdd(this, EOPPOSITE_FEATURE_BASE + - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, msgs); + } + if (msgs != null) + msgs.dispatch(); + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, oldContainmentOptional, containmentOptional)); + } + } + return containmentOptional; + } + + /** + * + * + * @generated + */ + public BaseObject basicGetContainmentOptional() + { + return containmentOptional; + } + + /** + * + * @generated + */ + public NotificationChain basicSetContainmentOptional(BaseObject newContainmentOptional, NotificationChain msgs) + { + BaseObject oldContainmentOptional = containmentOptional; + containmentOptional = newContainmentOptional; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, + Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, oldContainmentOptional, newContainmentOptional); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setContainmentOptional(BaseObject newContainmentOptional) + { + if (newContainmentOptional != containmentOptional) + { + NotificationChain msgs = null; + if (containmentOptional != null) + msgs = ((InternalEObject)containmentOptional).eInverseRemove(this, EOPPOSITE_FEATURE_BASE + - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, msgs); + if (newContainmentOptional != null) + msgs = ((InternalEObject)newContainmentOptional).eInverseAdd(this, EOPPOSITE_FEATURE_BASE + - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, msgs); + msgs = basicSetContainmentOptional(newContainmentOptional, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, + newContainmentOptional, newContainmentOptional)); + } + + /** + * + * @generated + */ + public EList getContainmentList() + { + if (containmentList == null) + { + containmentList = new EObjectContainmentEList.Resolving(BaseObject.class, this, + Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST); + } + return containmentList; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: + return basicSetContainmentOptional(null, msgs); + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: + return ((InternalEList)getContainmentList()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: + if (resolve) + return getContainmentOptional(); + return basicGetContainmentOptional(); + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: + return getContainmentList(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: + setContainmentOptional((BaseObject)newValue); + return; + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: + getContainmentList().clear(); + getContainmentList().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: + setContainmentOptional((BaseObject)null); + return; + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: + getContainmentList().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: + return containmentOptional != null; + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: + return containmentList != null && !containmentList.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // ContainmentObjectImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/DImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/DImpl.java new file mode 100644 index 0000000000..541f6a8af0 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/DImpl.java @@ -0,0 +1,193 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.D; + +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.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 'D'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.DImpl#getData Data}
  • + *
+ *

+ * + * @generated + */ +public class DImpl extends EObjectImpl implements D +{ + /** + * The cached value of the '{@link #getData() Data}' containment reference. + * + * @see #getData() + * @generated + * @ordered + */ + protected EObject data; + + /** + * + * @generated + */ + protected DImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getD(); + } + + /** + * + * @generated + */ + public EObject getData() + { + return data; + } + + /** + * + * @generated + */ + public NotificationChain basicSetData(EObject newData, NotificationChain msgs) + { + EObject oldData = data; + data = newData; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Model6Package.D__DATA, oldData, + newData); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setData(EObject newData) + { + if (newData != data) + { + NotificationChain msgs = null; + if (data != null) + msgs = ((InternalEObject)data).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Model6Package.D__DATA, null, msgs); + if (newData != null) + msgs = ((InternalEObject)newData).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Model6Package.D__DATA, null, msgs); + msgs = basicSetData(newData, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.D__DATA, newData, newData)); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.D__DATA: + return basicSetData(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.D__DATA: + return getData(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.D__DATA: + setData((EObject)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.D__DATA: + setData((EObject)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.D__DATA: + return data != null; + } + return super.eIsSet(featureID); + } + +} // DImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/EImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/EImpl.java new file mode 100644 index 0000000000..bf0a26d8bc --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/EImpl.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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.A; +import org.eclipse.emf.cdo.tests.model6.E; + +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object 'E'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.EImpl#getOwnedAs Owned As}
  • + *
+ *

+ * + * @generated + */ +public class EImpl extends EObjectImpl implements E +{ + /** + * The cached value of the '{@link #getOwnedAs() Owned As}' containment reference list. + * + * @see #getOwnedAs() + * @generated + * @ordered + */ + protected EList
ownedAs; + + /** + * + * @generated + */ + protected EImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getE(); + } + + /** + * + * @generated + */ + public EList getOwnedAs() + { + if (ownedAs == null) + { + ownedAs = new EObjectContainmentEList.Resolving(A.class, this, Model6Package.E__OWNED_AS); + } + return ownedAs; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.E__OWNED_AS: + return ((InternalEList)getOwnedAs()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.E__OWNED_AS: + return getOwnedAs(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.E__OWNED_AS: + getOwnedAs().clear(); + getOwnedAs().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.E__OWNED_AS: + getOwnedAs().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.E__OWNED_AS: + return ownedAs != null && !ownedAs.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // EImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/FImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/FImpl.java new file mode 100644 index 0000000000..7cdbe34eba --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/FImpl.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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.E; +import org.eclipse.emf.cdo.tests.model6.F; + +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object 'F'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.FImpl#getOwnedEs Owned Es}
  • + *
+ *

+ * + * @generated + */ +public class FImpl extends EObjectImpl implements F +{ + /** + * The cached value of the '{@link #getOwnedEs() Owned Es}' containment reference list. + * + * @see #getOwnedEs() + * @generated + * @ordered + */ + protected EList ownedEs; + + /** + * + * @generated + */ + protected FImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getF(); + } + + /** + * + * @generated + */ + public EList getOwnedEs() + { + if (ownedEs == null) + { + ownedEs = new EObjectContainmentEList.Resolving(E.class, this, Model6Package.F__OWNED_ES); + } + return ownedEs; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.F__OWNED_ES: + return ((InternalEList)getOwnedEs()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.F__OWNED_ES: + return getOwnedEs(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.F__OWNED_ES: + getOwnedEs().clear(); + getOwnedEs().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.F__OWNED_ES: + getOwnedEs().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.F__OWNED_ES: + return ownedEs != null && !ownedEs.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // FImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/GImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/GImpl.java new file mode 100644 index 0000000000..1faf21d1e3 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/GImpl.java @@ -0,0 +1,386 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.BaseObject; +import org.eclipse.emf.cdo.tests.model6.G; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.impl.AdapterImpl; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EStructuralFeature; +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.EObjectResolvingEList; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +/** + * + * An implementation of the model object 'G'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.GImpl#getDummy Dummy}
  • + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.GImpl#getReference Reference}
  • + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.GImpl#getList List}
  • + *
+ *

+ * + * @generated + */ +public class GImpl extends EObjectImpl implements G +{ + /** + * The default value of the '{@link #getDummy() Dummy}' attribute. + * + * + * @see #getDummy() + * @generated + * @ordered + */ + protected static final String DUMMY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDummy() Dummy}' attribute. + * + * + * @see #getDummy() + * @generated + * @ordered + */ + protected String dummy = DUMMY_EDEFAULT; + + /** + * The cached value of the '{@link #getReference() Reference}' reference. + * + * + * @see #getReference() + * @generated + * @ordered + */ + protected BaseObject reference; + + /** + * The cached value of the '{@link #getList() List}' reference list. + * + * + * @see #getList() + * @generated + * @ordered + */ + protected EList list; + + /** + * @ADDED + */ + private List notifications = new ArrayList(); + + /** + * @ADDED + */ + private boolean listModified = false; + + /** + * @ADDED + */ + private boolean referenceModified = false; + + /** + * @ADDED + */ + private boolean attributeModified = false; + + /** + * @ADDED + */ + { + eAdapters().add(new AdapterImpl() + { + @Override + public void notifyChanged(Notification msg) + { + notifications.add(msg); + + EStructuralFeature feature = (EStructuralFeature)msg.getFeature(); + if (feature != null) + { + if (feature.equals("dummy")) + { + attributeModified = true; + } + else if (feature.equals("reference")) + { + referenceModified = true; + } + else if (feature.equals("list")) + { + listModified = true; + } + } + } + }); + } + + /** + * + * + * @generated + */ + protected GImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getG(); + } + + /** + * + * + * @generated + */ + public String getDummy() + { + return dummy; + } + + /** + * + * + * @generated + */ + public void setDummy(String newDummy) + { + String oldDummy = dummy; + dummy = newDummy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.G__DUMMY, oldDummy, dummy)); + } + + /** + * + * + * @generated + */ + public BaseObject getReference() + { + if (reference != null && reference.eIsProxy()) + { + InternalEObject oldReference = (InternalEObject)reference; + reference = (BaseObject)eResolveProxy(oldReference); + if (reference != oldReference) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.G__REFERENCE, oldReference, reference)); + } + } + return reference; + } + + /** + * + * + * @generated + */ + public BaseObject basicGetReference() + { + return reference; + } + + /** + * + * + * @generated + */ + public void setReference(BaseObject newReference) + { + BaseObject oldReference = reference; + reference = newReference; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.G__REFERENCE, oldReference, reference)); + } + + /** + * + * + * @generated + */ + public EList getList() + { + if (list == null) + { + list = new EObjectResolvingEList(BaseObject.class, this, Model6Package.G__LIST); + } + return list; + } + + /** + * @ADDED + */ + public List getNotifications() + { + return notifications; + } + + /** + * + * + * @generated NOT + */ + public boolean isAttributeModified() + { + return attributeModified; + } + + /** + * + * + * @generated NOT + */ + public boolean isReferenceModified() + { + return referenceModified; + } + + /** + * + * + * @generated NOT + */ + public boolean isListModified() + { + return listModified; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.G__DUMMY: + return getDummy(); + case Model6Package.G__REFERENCE: + if (resolve) + return getReference(); + return basicGetReference(); + case Model6Package.G__LIST: + return getList(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.G__DUMMY: + setDummy((String)newValue); + return; + case Model6Package.G__REFERENCE: + setReference((BaseObject)newValue); + return; + case Model6Package.G__LIST: + getList().clear(); + getList().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.G__DUMMY: + setDummy(DUMMY_EDEFAULT); + return; + case Model6Package.G__REFERENCE: + setReference((BaseObject)null); + return; + case Model6Package.G__LIST: + getList().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.G__DUMMY: + return DUMMY_EDEFAULT == null ? dummy != null : !DUMMY_EDEFAULT.equals(dummy); + case Model6Package.G__REFERENCE: + return reference != null; + case Model6Package.G__LIST: + return list != null && !list.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (dummy: "); + result.append(dummy); + result.append(')'); + return result.toString(); + } + +} // GImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HasNillableAttributeImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HasNillableAttributeImpl.java new file mode 100644 index 0000000000..4d73ddc7e4 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HasNillableAttributeImpl.java @@ -0,0 +1,217 @@ +/** + */ +package org.eclipse.emf.cdo.tests.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.HasNillableAttribute; + +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; + +/** + * + * An implementation of the model object 'Has Nillable Attribute'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.HasNillableAttributeImpl#getNillable Nillable}
  • + *
+ *

+ * + * @generated + */ +public class HasNillableAttributeImpl extends EObjectImpl implements HasNillableAttribute +{ + /** + * The default value of the '{@link #getNillable() Nillable}' attribute. + * + * + * @see #getNillable() + * @generated + * @ordered + */ + protected static final String NILLABLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNillable() Nillable}' attribute. + * + * + * @see #getNillable() + * @generated + * @ordered + */ + protected String nillable = NILLABLE_EDEFAULT; + + /** + * This is true if the Nillable attribute has been set. + * + * + * @generated + * @ordered + */ + protected boolean nillableESet; + + /** + * + * + * @generated + */ + protected HasNillableAttributeImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getHasNillableAttribute(); + } + + /** + * + * + * @generated + */ + public String getNillable() + { + return nillable; + } + + /** + * + * + * @generated + */ + public void setNillable(String newNillable) + { + String oldNillable = nillable; + nillable = newNillable; + boolean oldNillableESet = nillableESet; + nillableESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE, + oldNillable, nillable, !oldNillableESet)); + } + + /** + * + * + * @generated + */ + public void unsetNillable() + { + String oldNillable = nillable; + boolean oldNillableESet = nillableESet; + nillable = NILLABLE_EDEFAULT; + nillableESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE, + oldNillable, NILLABLE_EDEFAULT, oldNillableESet)); + } + + /** + * + * + * @generated + */ + public boolean isSetNillable() + { + return nillableESet; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE: + return getNillable(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE: + setNillable((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE: + unsetNillable(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE: + return isSetNillable(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (nillable: "); + if (nillableESet) + result.append(nillable); + else + result.append(""); + result.append(')'); + return result.toString(); + } + +} //HasNillableAttributeImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HoldableImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HoldableImpl.java new file mode 100644 index 0000000000..484e200d19 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HoldableImpl.java @@ -0,0 +1,176 @@ +/** + */ +package org.eclipse.emf.cdo.tests.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.Holdable; + +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; + +/** + * + * An implementation of the model object 'Holdable'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.HoldableImpl#getName Name}
  • + *
+ *

+ * + * @generated + */ +public abstract class HoldableImpl extends EObjectImpl implements Holdable +{ + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected HoldableImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getHoldable(); + } + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.HOLDABLE__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.HOLDABLE__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.HOLDABLE__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.HOLDABLE__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.HOLDABLE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} // HoldableImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HolderImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HolderImpl.java new file mode 100644 index 0000000000..c0723489db --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HolderImpl.java @@ -0,0 +1,199 @@ +/** + */ +package org.eclipse.emf.cdo.tests.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.Holdable; +import org.eclipse.emf.cdo.tests.model6.Holder; + +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.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * + * An implementation of the model object 'Holder'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.HolderImpl#getHeld Held}
  • + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.HolderImpl#getOwned Owned}
  • + *
+ *

+ * + * @generated + */ +public class HolderImpl extends HoldableImpl implements Holder +{ + /** + * The cached value of the '{@link #getHeld() Held}' reference list. + * + * + * @see #getHeld() + * @generated + * @ordered + */ + protected EList held; + + /** + * The cached value of the '{@link #getOwned() Owned}' containment reference list. + * + * + * @see #getOwned() + * @generated + * @ordered + */ + protected EList owned; + + /** + * + * + * @generated + */ + protected HolderImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getHolder(); + } + + /** + * + * + * @generated + */ + public EList getHeld() + { + if (held == null) + { + held = new EObjectResolvingEList(Holdable.class, this, Model6Package.HOLDER__HELD); + } + return held; + } + + /** + * + * + * @generated + */ + public EList getOwned() + { + if (owned == null) + { + owned = new EObjectContainmentEList.Resolving(Holdable.class, this, Model6Package.HOLDER__OWNED); + } + return owned; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.HOLDER__OWNED: + return ((InternalEList)getOwned()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.HOLDER__HELD: + return getHeld(); + case Model6Package.HOLDER__OWNED: + return getOwned(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.HOLDER__HELD: + getHeld().clear(); + getHeld().addAll((Collection)newValue); + return; + case Model6Package.HOLDER__OWNED: + getOwned().clear(); + getOwned().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.HOLDER__HELD: + getHeld().clear(); + return; + case Model6Package.HOLDER__OWNED: + getOwned().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.HOLDER__HELD: + return held != null && !held.isEmpty(); + case Model6Package.HOLDER__OWNED: + return owned != null && !owned.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // HolderImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6FactoryImpl.java new file mode 100644 index 0000000000..cc398fd88c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6FactoryImpl.java @@ -0,0 +1,451 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Factory; +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.A; +import org.eclipse.emf.cdo.tests.model6.B; +import org.eclipse.emf.cdo.tests.model6.BaseObject; +import org.eclipse.emf.cdo.tests.model6.C; +import org.eclipse.emf.cdo.tests.model6.ContainmentObject; +import org.eclipse.emf.cdo.tests.model6.D; +import org.eclipse.emf.cdo.tests.model6.E; +import org.eclipse.emf.cdo.tests.model6.F; +import org.eclipse.emf.cdo.tests.model6.G; +import org.eclipse.emf.cdo.tests.model6.HasNillableAttribute; +import org.eclipse.emf.cdo.tests.model6.Holder; +import org.eclipse.emf.cdo.tests.model6.MyEnum; +import org.eclipse.emf.cdo.tests.model6.MyEnumList; +import org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable; +import org.eclipse.emf.cdo.tests.model6.PropertiesMap; +import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; +import org.eclipse.emf.cdo.tests.model6.ReferenceObject; +import org.eclipse.emf.cdo.tests.model6.Root; +import org.eclipse.emf.cdo.tests.model6.Thing; +import org.eclipse.emf.cdo.tests.model6.UnorderedList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +import java.util.Map; + +/** + * An implementation of the model Factory. + * @generated + */ +public class Model6FactoryImpl extends EFactoryImpl implements Model6Factory +{ + /** + * Creates the default factory implementation. + * + * @generated NOT + */ + public static Model6Factory init() + { + try + { + Model6Factory theModel6Factory = (Model6Factory)EPackage.Registry.INSTANCE + .getEFactory("http://www.eclipse.org/emf/CDO/tests/legacy/model6/1.0.0"); + if (theModel6Factory != null) + { + return theModel6Factory; + } + } + catch (Exception exception) + { + EcorePlugin.INSTANCE.log(exception); + } + return new Model6FactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * @generated + */ + public Model6FactoryImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + public EObject create(EClass eClass) + { + switch (eClass.getClassifierID()) + { + case Model6Package.ROOT: + return createRoot(); + case Model6Package.BASE_OBJECT: + return createBaseObject(); + case Model6Package.REFERENCE_OBJECT: + return createReferenceObject(); + case Model6Package.CONTAINMENT_OBJECT: + return createContainmentObject(); + case Model6Package.UNORDERED_LIST: + return createUnorderedList(); + case Model6Package.PROPERTIES_MAP: + return createPropertiesMap(); + case Model6Package.PROPERTIES_MAP_ENTRY: + return (EObject)createPropertiesMapEntry(); + case Model6Package.PROPERTIES_MAP_ENTRY_VALUE: + return createPropertiesMapEntryValue(); + case Model6Package.A: + return createA(); + case Model6Package.B: + return createB(); + case Model6Package.C: + return createC(); + case Model6Package.D: + return createD(); + case Model6Package.E: + return createE(); + case Model6Package.F: + return createF(); + case Model6Package.G: + return createG(); + case Model6Package.MY_ENUM_LIST: + return createMyEnumList(); + case Model6Package.MY_ENUM_LIST_UNSETTABLE: + return createMyEnumListUnsettable(); + case Model6Package.HOLDER: + return createHolder(); + case Model6Package.THING: + return createThing(); + case Model6Package.HAS_NILLABLE_ATTRIBUTE: + return createHasNillableAttribute(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) + { + switch (eDataType.getClassifierID()) + { + case Model6Package.MY_ENUM: + return createMyEnumFromString(eDataType, initialValue); + case Model6Package.MY_STRING: + return createMyStringFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) + { + switch (eDataType.getClassifierID()) + { + case Model6Package.MY_ENUM: + return convertMyEnumToString(eDataType, instanceValue); + case Model6Package.MY_STRING: + return convertMyStringToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * @generated + */ + public Root createRoot() + { + RootImpl root = new RootImpl(); + return root; + } + + /** + * + * @generated + */ + public BaseObject createBaseObject() + { + BaseObjectImpl baseObject = new BaseObjectImpl(); + return baseObject; + } + + /** + * + * @generated + */ + public ReferenceObject createReferenceObject() + { + ReferenceObjectImpl referenceObject = new ReferenceObjectImpl(); + return referenceObject; + } + + /** + * + * @generated + */ + public ContainmentObject createContainmentObject() + { + ContainmentObjectImpl containmentObject = new ContainmentObjectImpl(); + return containmentObject; + } + + /** + * + * @generated + */ + public UnorderedList createUnorderedList() + { + UnorderedListImpl unorderedList = new UnorderedListImpl(); + return unorderedList; + } + + /** + * + * + * @generated + */ + public PropertiesMap createPropertiesMap() + { + PropertiesMapImpl propertiesMap = new PropertiesMapImpl(); + return propertiesMap; + } + + /** + * + * + * @generated + */ + public Map.Entry createPropertiesMapEntry() + { + PropertiesMapEntryImpl propertiesMapEntry = new PropertiesMapEntryImpl(); + return propertiesMapEntry; + } + + /** + * + * + * @generated + */ + public PropertiesMapEntryValue createPropertiesMapEntryValue() + { + PropertiesMapEntryValueImpl propertiesMapEntryValue = new PropertiesMapEntryValueImpl(); + return propertiesMapEntryValue; + } + + /** + * + * @generated + */ + public A createA() + { + AImpl a = new AImpl(); + return a; + } + + /** + * + * @generated + */ + public B createB() + { + BImpl b = new BImpl(); + return b; + } + + /** + * + * @generated + */ + public C createC() + { + CImpl c = new CImpl(); + return c; + } + + /** + * + * @generated + */ + public D createD() + { + DImpl d = new DImpl(); + return d; + } + + /** + * + * @generated + */ + public E createE() + { + EImpl e = new EImpl(); + return e; + } + + /** + * + * @generated + */ + public F createF() + { + FImpl f = new FImpl(); + return f; + } + + /** + * + * + * @generated + */ + public G createG() + { + GImpl g = new GImpl(); + return g; + } + + /** + * + * + * @generated + */ + public MyEnumList createMyEnumList() + { + MyEnumListImpl myEnumList = new MyEnumListImpl(); + return myEnumList; + } + + /** + * + * + * @generated + */ + public MyEnumListUnsettable createMyEnumListUnsettable() + { + MyEnumListUnsettableImpl myEnumListUnsettable = new MyEnumListUnsettableImpl(); + return myEnumListUnsettable; + } + + /** + * + * + * @generated + */ + public Holder createHolder() + { + HolderImpl holder = new HolderImpl(); + return holder; + } + + /** + * + * + * @generated + */ + public Thing createThing() + { + ThingImpl thing = new ThingImpl(); + return thing; + } + + /** + * + * + * @generated + */ + public HasNillableAttribute createHasNillableAttribute() + { + HasNillableAttributeImpl hasNillableAttribute = new HasNillableAttributeImpl(); + return hasNillableAttribute; + } + + /** + * + * + * @generated + */ + public MyEnum createMyEnumFromString(EDataType eDataType, String initialValue) + { + MyEnum result = MyEnum.get(initialValue); + if (result == null) + { + throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + + eDataType.getName() + "'"); + } + return result; + } + + /** + * + * + * @generated + */ + public String convertMyEnumToString(EDataType eDataType, Object instanceValue) + { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public String createMyStringFromString(EDataType eDataType, String initialValue) + { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertMyStringToString(EDataType eDataType, Object instanceValue) + { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * @generated + */ + public Model6Package getModel6Package() + { + return (Model6Package)getEPackage(); + } + + /** + * + * @deprecated + * @generated + */ + @Deprecated + public static Model6Package getPackage() + { + return Model6Package.eINSTANCE; + } + +} // Model6FactoryImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6PackageImpl.java new file mode 100644 index 0000000000..d27b352bb5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6PackageImpl.java @@ -0,0 +1,1133 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Factory; +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.A; +import org.eclipse.emf.cdo.tests.model6.B; +import org.eclipse.emf.cdo.tests.model6.BaseObject; +import org.eclipse.emf.cdo.tests.model6.C; +import org.eclipse.emf.cdo.tests.model6.ContainmentObject; +import org.eclipse.emf.cdo.tests.model6.D; +import org.eclipse.emf.cdo.tests.model6.E; +import org.eclipse.emf.cdo.tests.model6.F; +import org.eclipse.emf.cdo.tests.model6.G; +import org.eclipse.emf.cdo.tests.model6.HasNillableAttribute; +import org.eclipse.emf.cdo.tests.model6.Holdable; +import org.eclipse.emf.cdo.tests.model6.Holder; +import org.eclipse.emf.cdo.tests.model6.MyEnum; +import org.eclipse.emf.cdo.tests.model6.MyEnumList; +import org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable; +import org.eclipse.emf.cdo.tests.model6.PropertiesMap; +import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; +import org.eclipse.emf.cdo.tests.model6.ReferenceObject; +import org.eclipse.emf.cdo.tests.model6.Root; +import org.eclipse.emf.cdo.tests.model6.Thing; +import org.eclipse.emf.cdo.tests.model6.UnorderedList; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EEnum; +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 Model6PackageImpl extends EPackageImpl implements Model6Package +{ + /** + * + * @generated + */ + private EClass rootEClass = null; + + /** + * + * @generated + */ + private EClass baseObjectEClass = null; + + /** + * + * @generated + */ + private EClass referenceObjectEClass = null; + + /** + * + * @generated + */ + private EClass containmentObjectEClass = null; + + /** + * + * @generated + */ + private EClass unorderedListEClass = null; + + /** + * + * + * @generated + */ + private EClass propertiesMapEClass = null; + + /** + * + * + * @generated + */ + private EClass propertiesMapEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass propertiesMapEntryValueEClass = null; + + /** + * + * @generated + */ + private EClass aEClass = null; + + /** + * + * @generated + */ + private EClass bEClass = null; + + /** + * + * @generated + */ + private EClass cEClass = null; + + /** + * + * @generated + */ + private EClass dEClass = null; + + /** + * + * @generated + */ + private EClass eEClass = null; + + /** + * + * @generated + */ + private EClass fEClass = null; + + /** + * + * + * @generated + */ + private EClass gEClass = null; + + /** + * + * + * @generated + */ + private EClass myEnumListEClass = null; + + /** + * + * + * @generated + */ + private EClass myEnumListUnsettableEClass = null; + + /** + * + * + * @generated + */ + private EClass holderEClass = null; + + /** + * + * + * @generated + */ + private EClass thingEClass = null; + + /** + * + * + * @generated + */ + private EClass holdableEClass = null; + + /** + * + * + * @generated + */ + private EClass hasNillableAttributeEClass = null; + + /** + * + * + * @generated + */ + private EEnum myEnumEEnum = null; + + /** + * + * + * @generated + */ + private EDataType myStringEDataType = 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.model6.Model6Package#eNS_URI + * @see #init() + * @generated + */ + private Model6PackageImpl() + { + super(eNS_URI, Model6Factory.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 Model6Package#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 Model6Package init() + { + if (isInited) + { + return (Model6Package)EPackage.Registry.INSTANCE.getEPackage(Model6Package.eNS_URI); + } + + // Obtain or create and register package + Model6PackageImpl theModel6Package = (Model6PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Model6PackageImpl ? EPackage.Registry.INSTANCE + .get(eNS_URI) : new Model6PackageImpl()); + + isInited = true; + + // Create package meta-data objects + theModel6Package.createPackageContents(); + + // Initialize created meta-data + theModel6Package.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theModel6Package.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(Model6Package.eNS_URI, theModel6Package); + return theModel6Package; + } + + /** + * + * @generated + */ + public EClass getRoot() + { + return rootEClass; + } + + /** + * + * @generated + */ + public EReference getRoot_ListA() + { + return (EReference)rootEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getRoot_ListB() + { + return (EReference)rootEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EReference getRoot_ListC() + { + return (EReference)rootEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EReference getRoot_ListD() + { + return (EReference)rootEClass.getEStructuralFeatures().get(3); + } + + /** + * + * @generated + */ + public EClass getBaseObject() + { + return baseObjectEClass; + } + + /** + * + * @generated + */ + public EAttribute getBaseObject_AttributeOptional() + { + return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getBaseObject_AttributeRequired() + { + return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EAttribute getBaseObject_AttributeList() + { + return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EClass getReferenceObject() + { + return referenceObjectEClass; + } + + /** + * + * @generated + */ + public EReference getReferenceObject_ReferenceOptional() + { + return (EReference)referenceObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getReferenceObject_ReferenceList() + { + return (EReference)referenceObjectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getContainmentObject() + { + return containmentObjectEClass; + } + + /** + * + * @generated + */ + public EReference getContainmentObject_ContainmentOptional() + { + return (EReference)containmentObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getContainmentObject_ContainmentList() + { + return (EReference)containmentObjectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getUnorderedList() + { + return unorderedListEClass; + } + + /** + * + * @generated + */ + public EReference getUnorderedList_Contained() + { + return (EReference)unorderedListEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getUnorderedList_Referenced() + { + return (EReference)unorderedListEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getPropertiesMap() + { + return propertiesMapEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPropertiesMap_Label() + { + return (EAttribute)propertiesMapEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getPropertiesMap_PersistentMap() + { + return (EReference)propertiesMapEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getPropertiesMap_TransientMap() + { + return (EReference)propertiesMapEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getPropertiesMapEntry() + { + return propertiesMapEntryEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPropertiesMapEntry_Key() + { + return (EAttribute)propertiesMapEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getPropertiesMapEntry_Value() + { + return (EReference)propertiesMapEntryEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getPropertiesMapEntryValue() + { + return propertiesMapEntryValueEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPropertiesMapEntryValue_Label() + { + return (EAttribute)propertiesMapEntryValueEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getA() + { + return aEClass; + } + + /** + * + * @generated + */ + public EReference getA_OwnedDs() + { + return (EReference)aEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getA_OwnedBs() + { + return (EReference)aEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getB() + { + return bEClass; + } + + /** + * + * @generated + */ + public EReference getB_OwnedC() + { + return (EReference)bEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getC() + { + return cEClass; + } + + /** + * + * @generated + */ + public EClass getD() + { + return dEClass; + } + + /** + * + * @generated + */ + public EReference getD_Data() + { + return (EReference)dEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getE() + { + return eEClass; + } + + /** + * + * @generated + */ + public EReference getE_OwnedAs() + { + return (EReference)eEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getF() + { + return fEClass; + } + + /** + * + * @generated + */ + public EReference getF_OwnedEs() + { + return (EReference)fEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getG() + { + return gEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getG_Dummy() + { + return (EAttribute)gEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getG_Reference() + { + return (EReference)gEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getG_List() + { + return (EReference)gEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getMyEnumList() + { + return myEnumListEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMyEnumList_MyEnum() + { + return (EAttribute)myEnumListEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getMyEnumListUnsettable() + { + return myEnumListUnsettableEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMyEnumListUnsettable_MyEnum() + { + return (EAttribute)myEnumListUnsettableEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getHolder() + { + return holderEClass; + } + + /** + * + * + * @generated + */ + public EReference getHolder_Held() + { + return (EReference)holderEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getHolder_Owned() + { + return (EReference)holderEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getThing() + { + return thingEClass; + } + + /** + * + * + * @generated + */ + public EClass getHoldable() + { + return holdableEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHoldable_Name() + { + return (EAttribute)holdableEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getHasNillableAttribute() + { + return hasNillableAttributeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHasNillableAttribute_Nillable() + { + return (EAttribute)hasNillableAttributeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EEnum getMyEnum() + { + return myEnumEEnum; + } + + /** + * + * + * @generated + */ + public EDataType getMyString() + { + return myStringEDataType; + } + + /** + * + * @generated + */ + public Model6Factory getModel6Factory() + { + return (Model6Factory)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 + rootEClass = createEClass(ROOT); + createEReference(rootEClass, ROOT__LIST_A); + createEReference(rootEClass, ROOT__LIST_B); + createEReference(rootEClass, ROOT__LIST_C); + createEReference(rootEClass, ROOT__LIST_D); + + baseObjectEClass = createEClass(BASE_OBJECT); + createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_OPTIONAL); + createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_REQUIRED); + createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_LIST); + + referenceObjectEClass = createEClass(REFERENCE_OBJECT); + createEReference(referenceObjectEClass, REFERENCE_OBJECT__REFERENCE_OPTIONAL); + createEReference(referenceObjectEClass, REFERENCE_OBJECT__REFERENCE_LIST); + + containmentObjectEClass = createEClass(CONTAINMENT_OBJECT); + createEReference(containmentObjectEClass, CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL); + createEReference(containmentObjectEClass, CONTAINMENT_OBJECT__CONTAINMENT_LIST); + + unorderedListEClass = createEClass(UNORDERED_LIST); + createEReference(unorderedListEClass, UNORDERED_LIST__CONTAINED); + createEReference(unorderedListEClass, UNORDERED_LIST__REFERENCED); + + propertiesMapEClass = createEClass(PROPERTIES_MAP); + createEAttribute(propertiesMapEClass, PROPERTIES_MAP__LABEL); + createEReference(propertiesMapEClass, PROPERTIES_MAP__PERSISTENT_MAP); + createEReference(propertiesMapEClass, PROPERTIES_MAP__TRANSIENT_MAP); + + propertiesMapEntryEClass = createEClass(PROPERTIES_MAP_ENTRY); + createEAttribute(propertiesMapEntryEClass, PROPERTIES_MAP_ENTRY__KEY); + createEReference(propertiesMapEntryEClass, PROPERTIES_MAP_ENTRY__VALUE); + + propertiesMapEntryValueEClass = createEClass(PROPERTIES_MAP_ENTRY_VALUE); + createEAttribute(propertiesMapEntryValueEClass, PROPERTIES_MAP_ENTRY_VALUE__LABEL); + + aEClass = createEClass(A); + createEReference(aEClass, A__OWNED_DS); + createEReference(aEClass, A__OWNED_BS); + + bEClass = createEClass(B); + createEReference(bEClass, B__OWNED_C); + + cEClass = createEClass(C); + + dEClass = createEClass(D); + createEReference(dEClass, D__DATA); + + eEClass = createEClass(E); + createEReference(eEClass, E__OWNED_AS); + + fEClass = createEClass(F); + createEReference(fEClass, F__OWNED_ES); + + gEClass = createEClass(G); + createEAttribute(gEClass, G__DUMMY); + createEReference(gEClass, G__REFERENCE); + createEReference(gEClass, G__LIST); + + myEnumListEClass = createEClass(MY_ENUM_LIST); + createEAttribute(myEnumListEClass, MY_ENUM_LIST__MY_ENUM); + + myEnumListUnsettableEClass = createEClass(MY_ENUM_LIST_UNSETTABLE); + createEAttribute(myEnumListUnsettableEClass, MY_ENUM_LIST_UNSETTABLE__MY_ENUM); + + holderEClass = createEClass(HOLDER); + createEReference(holderEClass, HOLDER__HELD); + createEReference(holderEClass, HOLDER__OWNED); + + thingEClass = createEClass(THING); + + holdableEClass = createEClass(HOLDABLE); + createEAttribute(holdableEClass, HOLDABLE__NAME); + + hasNillableAttributeEClass = createEClass(HAS_NILLABLE_ATTRIBUTE); + createEAttribute(hasNillableAttributeEClass, HAS_NILLABLE_ATTRIBUTE__NILLABLE); + + // Create enums + myEnumEEnum = createEEnum(MY_ENUM); + + // Create data types + myStringEDataType = createEDataType(MY_STRING); + } + + /** + * + * @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); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + referenceObjectEClass.getESuperTypes().add(getBaseObject()); + containmentObjectEClass.getESuperTypes().add(getBaseObject()); + holderEClass.getESuperTypes().add(getHoldable()); + thingEClass.getESuperTypes().add(getHoldable()); + + // Initialize classes and features; add operations and parameters + initEClass(rootEClass, Root.class, "Root", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getRoot_ListA(), getBaseObject(), null, "listA", null, 0, -1, Root.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getRoot_ListB(), getBaseObject(), null, "listB", null, 0, -1, Root.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getRoot_ListC(), getBaseObject(), null, "listC", null, 0, -1, Root.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getRoot_ListD(), getBaseObject(), null, "listD", null, 0, -1, Root.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(baseObjectEClass, BaseObject.class, "BaseObject", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getBaseObject_AttributeOptional(), ecorePackage.getEString(), "attributeOptional", null, 0, 1, + BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getBaseObject_AttributeRequired(), ecorePackage.getEString(), "attributeRequired", null, 1, 1, + BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getBaseObject_AttributeList(), ecorePackage.getEString(), "attributeList", null, 0, -1, + BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(referenceObjectEClass, ReferenceObject.class, "ReferenceObject", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getReferenceObject_ReferenceOptional(), getBaseObject(), null, "referenceOptional", null, 0, 1, + ReferenceObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getReferenceObject_ReferenceList(), getBaseObject(), null, "referenceList", null, 0, -1, + ReferenceObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(containmentObjectEClass, ContainmentObject.class, "ContainmentObject", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getContainmentObject_ContainmentOptional(), getBaseObject(), null, "containmentOptional", null, 0, + 1, ContainmentObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getContainmentObject_ContainmentList(), getBaseObject(), null, "containmentList", null, 0, -1, + ContainmentObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(unorderedListEClass, UnorderedList.class, "UnorderedList", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getUnorderedList_Contained(), getUnorderedList(), null, "contained", null, 0, -1, + UnorderedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getUnorderedList_Referenced(), getUnorderedList(), null, "referenced", null, 0, -1, + UnorderedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(propertiesMapEClass, PropertiesMap.class, "PropertiesMap", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPropertiesMap_Label(), ecorePackage.getEString(), "label", null, 0, 1, PropertiesMap.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPropertiesMap_PersistentMap(), getPropertiesMapEntry(), null, "persistentMap", null, 0, -1, + PropertiesMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPropertiesMap_TransientMap(), getPropertiesMapEntry(), null, "transientMap", null, 0, -1, + PropertiesMap.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(propertiesMapEntryEClass, Map.Entry.class, "PropertiesMapEntry", !IS_ABSTRACT, !IS_INTERFACE, + !IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPropertiesMapEntry_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(getPropertiesMapEntry_Value(), getPropertiesMapEntryValue(), 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(propertiesMapEntryValueEClass, PropertiesMapEntryValue.class, "PropertiesMapEntryValue", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPropertiesMapEntryValue_Label(), ecorePackage.getEString(), "label", null, 0, 1, + PropertiesMapEntryValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(aEClass, A.class, "A", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getA_OwnedDs(), getD(), null, "ownedDs", null, 0, -1, A.class, !IS_TRANSIENT, !IS_VOLATILE, + IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getA_OwnedBs(), getB(), null, "ownedBs", null, 0, -1, A.class, !IS_TRANSIENT, !IS_VOLATILE, + IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(bEClass, B.class, "B", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getB_OwnedC(), getC(), null, "ownedC", null, 0, 1, B.class, !IS_TRANSIENT, !IS_VOLATILE, + IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(cEClass, C.class, "C", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(dEClass, D.class, "D", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getD_Data(), ecorePackage.getEObject(), null, "data", null, 0, 1, D.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(eEClass, E.class, "E", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getE_OwnedAs(), getA(), null, "ownedAs", null, 0, -1, E.class, !IS_TRANSIENT, !IS_VOLATILE, + IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(fEClass, F.class, "F", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getF_OwnedEs(), getE(), null, "ownedEs", null, 0, -1, F.class, !IS_TRANSIENT, !IS_VOLATILE, + IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(gEClass, G.class, "G", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getG_Dummy(), ecorePackage.getEString(), "dummy", null, 1, 1, G.class, !IS_TRANSIENT, !IS_VOLATILE, + IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getG_Reference(), getBaseObject(), null, "reference", null, 1, 1, G.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getG_List(), getBaseObject(), null, "list", null, 0, -1, G.class, !IS_TRANSIENT, !IS_VOLATILE, + IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + addEOperation(gEClass, ecorePackage.getEBoolean(), "isAttributeModified", 1, 1, IS_UNIQUE, IS_ORDERED); + + addEOperation(gEClass, ecorePackage.getEBoolean(), "isReferenceModified", 1, 1, IS_UNIQUE, IS_ORDERED); + + addEOperation(gEClass, ecorePackage.getEBoolean(), "isListModified", 1, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(myEnumListEClass, MyEnumList.class, "MyEnumList", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMyEnumList_MyEnum(), getMyEnum(), "myEnum", null, 0, -1, MyEnumList.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(myEnumListUnsettableEClass, MyEnumListUnsettable.class, "MyEnumListUnsettable", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMyEnumListUnsettable_MyEnum(), getMyEnum(), "myEnum", null, 0, -1, MyEnumListUnsettable.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(holderEClass, Holder.class, "Holder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getHolder_Held(), getHoldable(), null, "held", null, 0, -1, Holder.class, IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, + IS_ORDERED); + initEReference(getHolder_Owned(), getHoldable(), null, "owned", null, 0, -1, Holder.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(thingEClass, Thing.class, "Thing", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(holdableEClass, Holdable.class, "Holdable", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHoldable_Name(), ecorePackage.getEString(), "name", null, 1, 1, Holdable.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(hasNillableAttributeEClass, HasNillableAttribute.class, "HasNillableAttribute", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHasNillableAttribute_Nillable(), getMyString(), "nillable", null, 0, 1, + HasNillableAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(myEnumEEnum, MyEnum.class, "MyEnum"); + addEEnumLiteral(myEnumEEnum, MyEnum.ZERO); + addEEnumLiteral(myEnumEEnum, MyEnum.ONE); + addEEnumLiteral(myEnumEEnum, MyEnum.TWO); + addEEnumLiteral(myEnumEEnum, MyEnum.THREE); + + // Initialize data types + initEDataType(myStringEDataType, String.class, "MyString", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/CDO + createCDOAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/CDO. + * + * + * @generated + */ + protected void createCDOAnnotations() + { + String source = "http://www.eclipse.org/emf/CDO"; + addAnnotation(getHolder_Held(), source, new String[] { "persistent", "true", "filter", "owned" }); + } + +} // Model6PackageImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListImpl.java new file mode 100644 index 0000000000..b618782c20 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListImpl.java @@ -0,0 +1,170 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.MyEnum; +import org.eclipse.emf.cdo.tests.model6.MyEnumList; + +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 'My Enum List'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.MyEnumListImpl#getMyEnum My Enum}
  • + *
+ *

+ * + * @generated + */ +public class MyEnumListImpl extends EObjectImpl implements MyEnumList +{ + /** + * The cached value of the '{@link #getMyEnum() My Enum}' attribute list. + * + * + * @see #getMyEnum() + * @generated + * @ordered + */ + protected EList myEnum; + + /** + * + * + * @generated + */ + protected MyEnumListImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getMyEnumList(); + } + + /** + * + * + * @generated + */ + public EList getMyEnum() + { + if (myEnum == null) + { + myEnum = new EDataTypeUniqueEList(MyEnum.class, this, Model6Package.MY_ENUM_LIST__MY_ENUM); + } + return myEnum; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.MY_ENUM_LIST__MY_ENUM: + return getMyEnum(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.MY_ENUM_LIST__MY_ENUM: + getMyEnum().clear(); + getMyEnum().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.MY_ENUM_LIST__MY_ENUM: + getMyEnum().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.MY_ENUM_LIST__MY_ENUM: + return myEnum != null && !myEnum.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (myEnum: "); + result.append(myEnum); + result.append(')'); + return result.toString(); + } + +} // MyEnumListImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListUnsettableImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListUnsettableImpl.java new file mode 100644 index 0000000000..bdf516cef1 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListUnsettableImpl.java @@ -0,0 +1,193 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.MyEnum; +import org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable; + +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 org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * + * An implementation of the model object 'My Enum List Unsettable'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.MyEnumListUnsettableImpl#getMyEnum My Enum}
  • + *
+ *

+ * + * @generated + */ +public class MyEnumListUnsettableImpl extends EObjectImpl implements MyEnumListUnsettable +{ + /** + * The cached value of the '{@link #getMyEnum() My Enum}' attribute list. + * + * + * @see #getMyEnum() + * @generated + * @ordered + */ + protected EList myEnum; + + /** + * + * + * @generated + */ + protected MyEnumListUnsettableImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getMyEnumListUnsettable(); + } + + /** + * + * + * @generated + */ + public EList getMyEnum() + { + if (myEnum == null) + { + myEnum = new EDataTypeUniqueEList.Unsettable(MyEnum.class, this, + Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM); + } + return myEnum; + } + + /** + * + * + * @generated + */ + public void unsetMyEnum() + { + if (myEnum != null) + ((InternalEList.Unsettable)myEnum).unset(); + } + + /** + * + * + * @generated + */ + public boolean isSetMyEnum() + { + return myEnum != null && ((InternalEList.Unsettable)myEnum).isSet(); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM: + return getMyEnum(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM: + getMyEnum().clear(); + getMyEnum().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM: + unsetMyEnum(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM: + return isSetMyEnum(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (myEnum: "); + result.append(myEnum); + result.append(')'); + return result.toString(); + } + +} // MyEnumListUnsettableImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryImpl.java new file mode 100644 index 0000000000..2f5d28965c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryImpl.java @@ -0,0 +1,401 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; + +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 'Properties Map Entry'. + * + *

+ * The following features are implemented: + *

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

+ * + * @generated + */ +public class PropertiesMapEntryImpl 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 PropertiesMapEntryValue value; + + /** + * + * + * @generated + */ + protected PropertiesMapEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getPropertiesMapEntry(); + } + + /** + * + * + * @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, Model6Package.PROPERTIES_MAP_ENTRY__KEY, oldKey, key)); + } + + /** + * + * + * @generated + */ + public PropertiesMapEntryValue getTypedValue() + { + if (value != null && value.eIsProxy()) + { + InternalEObject oldValue = (InternalEObject)value; + value = (PropertiesMapEntryValue)eResolveProxy(oldValue); + if (value != oldValue) + { + InternalEObject newValue = (InternalEObject)value; + NotificationChain msgs = oldValue.eInverseRemove(this, EOPPOSITE_FEATURE_BASE + - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, null, null); + if (newValue.eInternalContainer() == null) + { + msgs = newValue.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, null, + msgs); + } + if (msgs != null) + msgs.dispatch(); + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.PROPERTIES_MAP_ENTRY__VALUE, + oldValue, value)); + } + } + return value; + } + + /** + * + * + * @generated + */ + public PropertiesMapEntryValue basicGetTypedValue() + { + return value; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetTypedValue(PropertiesMapEntryValue newValue, NotificationChain msgs) + { + PropertiesMapEntryValue oldValue = value; + value = newValue; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, + Model6Package.PROPERTIES_MAP_ENTRY__VALUE, oldValue, newValue); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setTypedValue(PropertiesMapEntryValue newValue) + { + if (newValue != value) + { + NotificationChain msgs = null; + if (value != null) + msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE + - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, null, msgs); + if (newValue != null) + msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE + - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, null, msgs); + msgs = basicSetTypedValue(newValue, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.PROPERTIES_MAP_ENTRY__VALUE, newValue, + newValue)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP_ENTRY__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 Model6Package.PROPERTIES_MAP_ENTRY__KEY: + return getTypedKey(); + case Model6Package.PROPERTIES_MAP_ENTRY__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 Model6Package.PROPERTIES_MAP_ENTRY__KEY: + setTypedKey((String)newValue); + return; + case Model6Package.PROPERTIES_MAP_ENTRY__VALUE: + setTypedValue((PropertiesMapEntryValue)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP_ENTRY__KEY: + setTypedKey(KEY_EDEFAULT); + return; + case Model6Package.PROPERTIES_MAP_ENTRY__VALUE: + setTypedValue((PropertiesMapEntryValue)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP_ENTRY__KEY: + return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); + case Model6Package.PROPERTIES_MAP_ENTRY__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 PropertiesMapEntryValue getValue() + { + return getTypedValue(); + } + + /** + * + * + * @generated + */ + public PropertiesMapEntryValue setValue(PropertiesMapEntryValue value) + { + PropertiesMapEntryValue oldValue = getValue(); + setTypedValue(value); + return oldValue; + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + public EMap getEMap() + { + EObject container = eContainer(); + return container == null ? null : (EMap)container.eGet(eContainmentFeature()); + } + +} // PropertiesMapEntryImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryValueImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryValueImpl.java new file mode 100644 index 0000000000..6439e4f528 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryValueImpl.java @@ -0,0 +1,185 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; + +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; + +/** + * + * An implementation of the model object 'Properties Map Entry Value'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.PropertiesMapEntryValueImpl#getLabel Label}
  • + *
+ *

+ * + * @generated + */ +public class PropertiesMapEntryValueImpl extends EObjectImpl implements PropertiesMapEntryValue +{ + /** + * The default value of the '{@link #getLabel() Label}' attribute. + * + * + * @see #getLabel() + * @generated + * @ordered + */ + protected static final String LABEL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLabel() Label}' attribute. + * + * + * @see #getLabel() + * @generated + * @ordered + */ + protected String label = LABEL_EDEFAULT; + + /** + * + * + * @generated + */ + protected PropertiesMapEntryValueImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getPropertiesMapEntryValue(); + } + + /** + * + * + * @generated + */ + public String getLabel() + { + return label; + } + + /** + * + * + * @generated + */ + public void setLabel(String newLabel) + { + String oldLabel = label; + label = newLabel; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL, oldLabel, + label)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL: + return getLabel(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL: + setLabel((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL: + setLabel(LABEL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL: + return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (label: "); + result.append(label); + result.append(')'); + return result.toString(); + } + +} // PropertiesMapEntryValueImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapImpl.java new file mode 100644 index 0000000000..9487317421 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapImpl.java @@ -0,0 +1,287 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.PropertiesMap; +import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; + +import org.eclipse.emf.common.notify.Notification; +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.EStructuralFeature; +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.EcoreEMap; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Properties Map'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.PropertiesMapImpl#getLabel Label}
  • + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.PropertiesMapImpl#getPersistentMap Persistent Map}
  • + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.PropertiesMapImpl#getTransientMap Transient Map}
  • + *
+ *

+ * + * @generated + */ +public class PropertiesMapImpl extends EObjectImpl implements PropertiesMap +{ + /** + * The default value of the '{@link #getLabel() Label}' attribute. + * + * + * @see #getLabel() + * @generated + * @ordered + */ + protected static final String LABEL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLabel() Label}' attribute. + * + * + * @see #getLabel() + * @generated + * @ordered + */ + protected String label = LABEL_EDEFAULT; + + /** + * The cached value of the '{@link #getPersistentMap() Persistent Map}' map. + * + * + * @see #getPersistentMap() + * @generated + * @ordered + */ + protected EMap persistentMap; + + /** + * The cached value of the '{@link #getTransientMap() Transient Map}' map. + * + * + * @see #getTransientMap() + * @generated + * @ordered + */ + protected EMap transientMap; + + /** + * + * + * @generated + */ + protected PropertiesMapImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getPropertiesMap(); + } + + /** + * + * + * @generated + */ + public String getLabel() + { + return label; + } + + /** + * + * + * @generated + */ + public void setLabel(String newLabel) + { + String oldLabel = label; + label = newLabel; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.PROPERTIES_MAP__LABEL, oldLabel, label)); + } + + /** + * + * + * @generated + */ + public EMap getPersistentMap() + { + if (persistentMap == null) + { + persistentMap = new EcoreEMap(Model6Package.eINSTANCE.getPropertiesMapEntry(), + PropertiesMapEntryImpl.class, this, Model6Package.PROPERTIES_MAP__PERSISTENT_MAP); + } + return persistentMap; + } + + /** + * + * + * @generated + */ + public EMap getTransientMap() + { + if (transientMap == null) + { + transientMap = new EcoreEMap(Model6Package.eINSTANCE.getPropertiesMapEntry(), + PropertiesMapEntryImpl.class, this, Model6Package.PROPERTIES_MAP__TRANSIENT_MAP); + } + return transientMap; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: + return ((InternalEList)getPersistentMap()).basicRemove(otherEnd, msgs); + case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: + return ((InternalEList)getTransientMap()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP__LABEL: + return getLabel(); + case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: + if (coreType) + return getPersistentMap(); + else + return getPersistentMap().map(); + case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: + if (coreType) + return getTransientMap(); + else + return getTransientMap().map(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP__LABEL: + setLabel((String)newValue); + return; + case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: + ((EStructuralFeature.Setting)getPersistentMap()).set(newValue); + return; + case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: + ((EStructuralFeature.Setting)getTransientMap()).set(newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP__LABEL: + setLabel(LABEL_EDEFAULT); + return; + case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: + getPersistentMap().clear(); + return; + case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: + getTransientMap().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP__LABEL: + return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); + case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: + return persistentMap != null && !persistentMap.isEmpty(); + case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: + return transientMap != null && !transientMap.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (label: "); + result.append(label); + result.append(')'); + return result.toString(); + } + +} // PropertiesMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ReferenceObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ReferenceObjectImpl.java new file mode 100644 index 0000000000..a561f60a9e --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ReferenceObjectImpl.java @@ -0,0 +1,216 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.BaseObject; +import org.eclipse.emf.cdo.tests.model6.ReferenceObject; + +import org.eclipse.emf.common.notify.Notification; +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.util.EObjectResolvingEList; + +import java.util.Collection; + +/** + * An implementation of the model object ' Reference Object'. + *

+ * The following features are implemented: + *

    + *
  • + * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ReferenceObjectImpl#getReferenceOptional Reference + * Optional}
  • + *
  • + * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ReferenceObjectImpl#getReferenceList Reference List} + *
  • + *
+ *

+ * + * @generated + */ +public class ReferenceObjectImpl extends BaseObjectImpl implements ReferenceObject +{ + /** + * The cached value of the '{@link #getReferenceOptional() Reference Optional}' reference. + * + * @see #getReferenceOptional() + * @generated + * @ordered + */ + protected BaseObject referenceOptional; + + /** + * The cached value of the '{@link #getReferenceList() Reference List}' reference list. + * + * @see #getReferenceList() + * @generated + * @ordered + */ + protected EList referenceList; + + /** + * + * @generated + */ + protected ReferenceObjectImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getReferenceObject(); + } + + /** + * + * @generated + */ + public BaseObject getReferenceOptional() + { + if (referenceOptional != null && referenceOptional.eIsProxy()) + { + InternalEObject oldReferenceOptional = (InternalEObject)referenceOptional; + referenceOptional = (BaseObject)eResolveProxy(oldReferenceOptional); + if (referenceOptional != oldReferenceOptional) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL, + oldReferenceOptional, referenceOptional)); + } + } + return referenceOptional; + } + + /** + * + * @generated + */ + public BaseObject basicGetReferenceOptional() + { + return referenceOptional; + } + + /** + * + * @generated + */ + public void setReferenceOptional(BaseObject newReferenceOptional) + { + BaseObject oldReferenceOptional = referenceOptional; + referenceOptional = newReferenceOptional; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL, + oldReferenceOptional, referenceOptional)); + } + + /** + * + * @generated + */ + public EList getReferenceList() + { + if (referenceList == null) + { + referenceList = new EObjectResolvingEList(BaseObject.class, this, + Model6Package.REFERENCE_OBJECT__REFERENCE_LIST); + } + return referenceList; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL: + if (resolve) + return getReferenceOptional(); + return basicGetReferenceOptional(); + case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST: + return getReferenceList(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL: + setReferenceOptional((BaseObject)newValue); + return; + case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST: + getReferenceList().clear(); + getReferenceList().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL: + setReferenceOptional((BaseObject)null); + return; + case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST: + getReferenceList().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL: + return referenceOptional != null; + case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST: + return referenceList != null && !referenceList.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // ReferenceObjectImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/RootImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/RootImpl.java new file mode 100644 index 0000000000..20fb79b1c5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/RootImpl.java @@ -0,0 +1,272 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.BaseObject; +import org.eclipse.emf.cdo.tests.model6.Root; + +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object ' Root'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListA List A}
  • + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListB List B}
  • + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListC List C}
  • + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListD List D}
  • + *
+ *

+ * + * @generated + */ +public class RootImpl extends EObjectImpl implements Root +{ + /** + * The cached value of the '{@link #getListA() List A}' containment reference list. + * + * + * @see #getListA() + * @generated + * @ordered + */ + protected EList listA; + + /** + * The cached value of the '{@link #getListB() List B}' containment reference list. + * + * + * @see #getListB() + * @generated + * @ordered + */ + protected EList listB; + + /** + * The cached value of the '{@link #getListC() List C}' containment reference list. + * + * + * @see #getListC() + * @generated + * @ordered + */ + protected EList listC; + + /** + * The cached value of the '{@link #getListD() List D}' containment reference list. + * + * + * @see #getListD() + * @generated + * @ordered + */ + protected EList listD; + + /** + * + * @generated + */ + protected RootImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getRoot(); + } + + /** + * + * @generated + */ + public EList getListA() + { + if (listA == null) + { + listA = new EObjectContainmentEList.Resolving(BaseObject.class, this, Model6Package.ROOT__LIST_A); + } + return listA; + } + + /** + * + * @generated + */ + public EList getListB() + { + if (listB == null) + { + listB = new EObjectContainmentEList.Resolving(BaseObject.class, this, Model6Package.ROOT__LIST_B); + } + return listB; + } + + /** + * + * @generated + */ + public EList getListC() + { + if (listC == null) + { + listC = new EObjectContainmentEList.Resolving(BaseObject.class, this, Model6Package.ROOT__LIST_C); + } + return listC; + } + + /** + * + * @generated + */ + public EList getListD() + { + if (listD == null) + { + listD = new EObjectContainmentEList.Resolving(BaseObject.class, this, Model6Package.ROOT__LIST_D); + } + return listD; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.ROOT__LIST_A: + return ((InternalEList)getListA()).basicRemove(otherEnd, msgs); + case Model6Package.ROOT__LIST_B: + return ((InternalEList)getListB()).basicRemove(otherEnd, msgs); + case Model6Package.ROOT__LIST_C: + return ((InternalEList)getListC()).basicRemove(otherEnd, msgs); + case Model6Package.ROOT__LIST_D: + return ((InternalEList)getListD()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.ROOT__LIST_A: + return getListA(); + case Model6Package.ROOT__LIST_B: + return getListB(); + case Model6Package.ROOT__LIST_C: + return getListC(); + case Model6Package.ROOT__LIST_D: + return getListD(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.ROOT__LIST_A: + getListA().clear(); + getListA().addAll((Collection)newValue); + return; + case Model6Package.ROOT__LIST_B: + getListB().clear(); + getListB().addAll((Collection)newValue); + return; + case Model6Package.ROOT__LIST_C: + getListC().clear(); + getListC().addAll((Collection)newValue); + return; + case Model6Package.ROOT__LIST_D: + getListD().clear(); + getListD().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.ROOT__LIST_A: + getListA().clear(); + return; + case Model6Package.ROOT__LIST_B: + getListB().clear(); + return; + case Model6Package.ROOT__LIST_C: + getListC().clear(); + return; + case Model6Package.ROOT__LIST_D: + getListD().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.ROOT__LIST_A: + return listA != null && !listA.isEmpty(); + case Model6Package.ROOT__LIST_B: + return listB != null && !listB.isEmpty(); + case Model6Package.ROOT__LIST_C: + return listC != null && !listC.isEmpty(); + case Model6Package.ROOT__LIST_D: + return listD != null && !listD.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // RootImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ThingImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ThingImpl.java new file mode 100644 index 0000000000..750102df1f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ThingImpl.java @@ -0,0 +1,42 @@ +/** + */ +package org.eclipse.emf.cdo.tests.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.Thing; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'Thing'. + * + *

+ *

+ * + * @generated + */ +public class ThingImpl extends HoldableImpl implements Thing +{ + /** + * + * + * @generated + */ + protected ThingImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getThing(); + } + +} // ThingImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/UnorderedListImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/UnorderedListImpl.java new file mode 100644 index 0000000000..f22f45d22a --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/UnorderedListImpl.java @@ -0,0 +1,198 @@ +/* + * 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.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.UnorderedList; + +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object 'Unordered List'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.UnorderedListImpl#getContained Contained}
  • + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.UnorderedListImpl#getReferenced Referenced}
  • + *
+ *

+ * + * @generated + */ +public class UnorderedListImpl extends EObjectImpl implements UnorderedList +{ + /** + * The cached value of the '{@link #getContained() Contained}' containment reference list. + * + * @see #getContained() + * @generated + * @ordered + */ + protected EList contained; + + /** + * The cached value of the '{@link #getReferenced() Referenced}' reference list. + * + * @see #getReferenced() + * @generated + * @ordered + */ + protected EList referenced; + + /** + * + * @generated + */ + protected UnorderedListImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getUnorderedList(); + } + + /** + * + * @generated + */ + public EList getContained() + { + if (contained == null) + { + contained = new EObjectContainmentEList.Resolving(UnorderedList.class, this, + Model6Package.UNORDERED_LIST__CONTAINED); + } + return contained; + } + + /** + * + * @generated + */ + public EList getReferenced() + { + if (referenced == null) + { + referenced = new EObjectResolvingEList(UnorderedList.class, this, + Model6Package.UNORDERED_LIST__REFERENCED); + } + return referenced; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.UNORDERED_LIST__CONTAINED: + return ((InternalEList)getContained()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.UNORDERED_LIST__CONTAINED: + return getContained(); + case Model6Package.UNORDERED_LIST__REFERENCED: + return getReferenced(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.UNORDERED_LIST__CONTAINED: + getContained().clear(); + getContained().addAll((Collection)newValue); + return; + case Model6Package.UNORDERED_LIST__REFERENCED: + getReferenced().clear(); + getReferenced().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.UNORDERED_LIST__CONTAINED: + getContained().clear(); + return; + case Model6Package.UNORDERED_LIST__REFERENCED: + getReferenced().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.UNORDERED_LIST__CONTAINED: + return contained != null && !contained.isEmpty(); + case Model6Package.UNORDERED_LIST__REFERENCED: + return referenced != null && !referenced.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // UnorderedListImpl -- cgit v1.2.3 From 67aca524e2450b08350bc823dd5493680776cbf8 Mon Sep 17 00:00:00 2001 From: Eike Stepper Date: Sun, 6 Jan 2013 13:24:28 +0100 Subject: model6 --- .../META-INF/MANIFEST.MF | 17 +- .../model/model6.legacy.genmodel | 5 +- .../emf/cdo/tests/legacy/model6/Model6Factory.java | 36 - .../emf/cdo/tests/legacy/model6/Model6Package.java | 50 - .../src/org/eclipse/emf/cdo/tests/model6/A.java | 6 +- .../src/org/eclipse/emf/cdo/tests/model6/B.java | 2 +- .../eclipse/emf/cdo/tests/model6/BaseObject.java | 8 +- .../src/org/eclipse/emf/cdo/tests/model6/C.java | 2 +- .../emf/cdo/tests/model6/ContainmentObject.java | 4 +- .../src/org/eclipse/emf/cdo/tests/model6/D.java | 4 +- .../src/org/eclipse/emf/cdo/tests/model6/E.java | 4 +- .../src/org/eclipse/emf/cdo/tests/model6/F.java | 4 +- .../src/org/eclipse/emf/cdo/tests/model6/G.java | 8 +- .../emf/cdo/tests/model6/HasNillableAttribute.java | 4 +- .../org/eclipse/emf/cdo/tests/model6/Holdable.java | 4 +- .../org/eclipse/emf/cdo/tests/model6/Holder.java | 6 +- .../emf/cdo/tests/model6/Model6Factory.java | 2 +- .../emf/cdo/tests/model6/Model6Package.java | 608 +++++++- .../org/eclipse/emf/cdo/tests/model6/MyEnum.java | 2 +- .../eclipse/emf/cdo/tests/model6/MyEnumList.java | 4 +- .../emf/cdo/tests/model6/MyEnumListUnsettable.java | 4 +- .../emf/cdo/tests/model6/PropertiesMap.java | 8 +- .../cdo/tests/model6/PropertiesMapEntryValue.java | 4 +- .../emf/cdo/tests/model6/ReferenceObject.java | 4 +- .../src/org/eclipse/emf/cdo/tests/model6/Root.java | 10 +- .../org/eclipse/emf/cdo/tests/model6/Thing.java | 2 +- .../emf/cdo/tests/model6/UnorderedList.java | 6 +- .../emf/cdo/tests/model6/impl/legacy/AImpl.java | 199 --- .../emf/cdo/tests/model6/impl/legacy/BImpl.java | 226 --- .../tests/model6/impl/legacy/BaseObjectImpl.java | 273 ---- .../emf/cdo/tests/model6/impl/legacy/CImpl.java | 47 - .../model6/impl/legacy/ContainmentObjectImpl.java | 272 ---- .../emf/cdo/tests/model6/impl/legacy/DImpl.java | 193 --- .../emf/cdo/tests/model6/impl/legacy/EImpl.java | 161 --- .../emf/cdo/tests/model6/impl/legacy/FImpl.java | 161 --- .../emf/cdo/tests/model6/impl/legacy/GImpl.java | 386 ----- .../impl/legacy/HasNillableAttributeImpl.java | 217 --- .../cdo/tests/model6/impl/legacy/HoldableImpl.java | 176 --- .../cdo/tests/model6/impl/legacy/HolderImpl.java | 199 --- .../model6/impl/legacy/Model6FactoryImpl.java | 451 ------ .../model6/impl/legacy/Model6PackageImpl.java | 1133 --------------- .../tests/model6/impl/legacy/MyEnumListImpl.java | 170 --- .../impl/legacy/MyEnumListUnsettableImpl.java | 193 --- .../model6/impl/legacy/PropertiesMapEntryImpl.java | 401 ------ .../impl/legacy/PropertiesMapEntryValueImpl.java | 185 --- .../model6/impl/legacy/PropertiesMapImpl.java | 287 ---- .../model6/impl/legacy/ReferenceObjectImpl.java | 216 --- .../emf/cdo/tests/model6/impl/legacy/RootImpl.java | 272 ---- .../cdo/tests/model6/impl/legacy/ThingImpl.java | 42 - .../model6/impl/legacy/UnorderedListImpl.java | 198 --- .../emf/cdo/tests/model6/legacy/Model6Factory.java | 226 +++ .../emf/cdo/tests/model6/legacy/Model6Package.java | 1475 ++++++++++++++++++++ .../emf/cdo/tests/model6/legacy/impl/AImpl.java | 199 +++ .../emf/cdo/tests/model6/legacy/impl/BImpl.java | 226 +++ .../tests/model6/legacy/impl/BaseObjectImpl.java | 273 ++++ .../emf/cdo/tests/model6/legacy/impl/CImpl.java | 47 + .../model6/legacy/impl/ContainmentObjectImpl.java | 272 ++++ .../emf/cdo/tests/model6/legacy/impl/DImpl.java | 193 +++ .../emf/cdo/tests/model6/legacy/impl/EImpl.java | 161 +++ .../emf/cdo/tests/model6/legacy/impl/FImpl.java | 161 +++ .../emf/cdo/tests/model6/legacy/impl/GImpl.java | 386 +++++ .../legacy/impl/HasNillableAttributeImpl.java | 217 +++ .../cdo/tests/model6/legacy/impl/HoldableImpl.java | 176 +++ .../cdo/tests/model6/legacy/impl/HolderImpl.java | 199 +++ .../model6/legacy/impl/Model6FactoryImpl.java | 451 ++++++ .../model6/legacy/impl/Model6PackageImpl.java | 1135 +++++++++++++++ .../tests/model6/legacy/impl/MyEnumListImpl.java | 170 +++ .../legacy/impl/MyEnumListUnsettableImpl.java | 193 +++ .../model6/legacy/impl/PropertiesMapEntryImpl.java | 401 ++++++ .../legacy/impl/PropertiesMapEntryValueImpl.java | 185 +++ .../model6/legacy/impl/PropertiesMapImpl.java | 287 ++++ .../model6/legacy/impl/ReferenceObjectImpl.java | 216 +++ .../emf/cdo/tests/model6/legacy/impl/RootImpl.java | 272 ++++ .../cdo/tests/model6/legacy/impl/ThingImpl.java | 42 + .../model6/legacy/impl/UnorderedListImpl.java | 198 +++ .../model6/legacy/util/Model6AdapterFactory.java | 555 ++++++++ .../cdo/tests/model6/legacy/util/Model6Switch.java | 629 +++++++++ .../tests/model6/util/Model6AdapterFactory.java | 2 +- .../emf/cdo/tests/model6/util/Model6Switch.java | 2 +- .../emf/cdo/tests/config/impl/ModelConfig.java | 4 +- 80 files changed, 9575 insertions(+), 6254 deletions(-) delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Factory.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Package.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/AImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BaseObjectImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/CImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ContainmentObjectImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/DImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/EImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/FImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/GImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HasNillableAttributeImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HoldableImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HolderImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6FactoryImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6PackageImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListUnsettableImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryValueImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ReferenceObjectImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/RootImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ThingImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/UnorderedListImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/Model6Factory.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/Model6Package.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/AImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/BImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/BaseObjectImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/CImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/ContainmentObjectImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/DImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/EImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/FImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/GImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/HasNillableAttributeImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/HoldableImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/HolderImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/Model6FactoryImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/Model6PackageImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/MyEnumListImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/MyEnumListUnsettableImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/PropertiesMapEntryImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/PropertiesMapEntryValueImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/PropertiesMapImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/ReferenceObjectImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/RootImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/ThingImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/UnorderedListImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/util/Model6AdapterFactory.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/util/Model6Switch.java diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.tests.model6/META-INF/MANIFEST.MF index e76b0499ab..fa0c070504 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.emf.cdo.tests.model6/META-INF/MANIFEST.MF @@ -7,20 +7,21 @@ Bundle-ClassPath: . Bundle-Vendor: %providerName Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Export-Package: org.eclipse.emf.cdo.tests.legacy.model6;version="4.0.0";uses:="org.eclipse.emf.ecore,org.eclipse.emf.common.util", - org.eclipse.emf.cdo.tests.legacy.model6.impl;version="4.0.0"; - uses:="org.eclipse.emf.ecore, - org.eclipse.emf.common.util, - org.eclipse.emf.cdo.tests.legacy.model6, - org.eclipse.emf.common.notify, - org.eclipse.emf.ecore.impl", - org.eclipse.emf.cdo.tests.model6;version="4.0.100";uses:="org.eclipse.emf.ecore,org.eclipse.emf.common.util", +Export-Package: org.eclipse.emf.cdo.tests.model6;version="4.0.100";uses:="org.eclipse.emf.ecore,org.eclipse.emf.common.util", org.eclipse.emf.cdo.tests.model6.impl;version="4.0.100"; uses:="org.eclipse.emf.ecore, org.eclipse.emf.common.util, org.eclipse.emf.internal.cdo, org.eclipse.emf.ecore.impl, org.eclipse.emf.cdo.tests.model6", + org.eclipse.emf.cdo.tests.model6.legacy;version="4.0.100";uses:="org.eclipse.emf.ecore,org.eclipse.emf.common.util", + org.eclipse.emf.cdo.tests.model6.legacy.impl;version="4.0.100"; + uses:="org.eclipse.emf.ecore, + org.eclipse.emf.common.util, + org.eclipse.emf.cdo.tests.legacy.model6, + org.eclipse.emf.common.notify, + org.eclipse.emf.ecore.impl", + org.eclipse.emf.cdo.tests.model6.legacy.util;version="4.0.100", org.eclipse.emf.cdo.tests.model6.util;version="4.0.100"; uses:="org.eclipse.emf.ecore, org.eclipse.emf.common.notify.impl, diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/model/model6.legacy.genmodel b/plugins/org.eclipse.emf.cdo.tests.model6/model/model6.legacy.genmodel index 08e8764ce3..9641098598 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/model/model6.legacy.genmodel +++ b/plugins/org.eclipse.emf.cdo.tests.model6/model/model6.legacy.genmodel @@ -7,8 +7,9 @@ model6.ecore CDO=org.eclipse.emf.cdo + metaDataPackageSuffix="legacy" classPackageSuffix="legacy.impl" utilityPackageSuffix="legacy.util" + literalsInterface="false" extensibleProviderFactory="true" childCreationExtenders="true" + ecorePackage="model6.ecore#/"> diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Factory.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Factory.java deleted file mode 100644 index c812c2168b..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Factory.java +++ /dev/null @@ -1,36 +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.model6; - -/** - * 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.model6.Model6Package - * @generated NOT - */ -public interface Model6Factory extends org.eclipse.emf.cdo.tests.model6.Model6Factory -{ - /** - * The singleton instance of the factory. - * - * @generated - */ - Model6Factory eINSTANCE = org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6FactoryImpl.init(); - - /** - * Returns the package supported by this factory. - * - * @return the package supported by this factory. - * @generated - */ - Model6Package getModel6Package(); - -} // Model6Factory diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Package.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Package.java deleted file mode 100644 index 00a5f14a93..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Package.java +++ /dev/null @@ -1,50 +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.model6; - -/** - * 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
  • - *
- * - * @see org.eclipse.emf.cdo.tests.legacy.model6.Model6Factory - * @model kind="package" - * @generated NOT - */ -public interface Model6Package extends org.eclipse.emf.cdo.tests.model6.Model6Package -{ - /** - * The package namespace URI. - * - * @generated NOT - */ - String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/legacy/model6/1.0.0"; - - /** - * The singleton instance of the package. - * - * @generated - */ - Model6Package eINSTANCE = org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl.init(); - - /** - * Returns the factory that creates the instances of the model. - * - * @return the factory that creates the instances of the model. - * @generated - */ - Model6Factory getModel6Factory(); - -} // Model6Package diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/A.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/A.java index fc3eeb35db..51596e7796 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/A.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/A.java @@ -24,7 +24,7 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getA() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getA() * @model * @generated */ @@ -40,7 +40,7 @@ public interface A extends EObject *

* * @return the value of the 'Owned Ds' containment reference list. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getA_OwnedDs() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getA_OwnedDs() * @model containment="true" resolveProxies="true" * @generated */ @@ -56,7 +56,7 @@ public interface A extends EObject *

* * @return the value of the 'Owned Bs' containment reference list. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getA_OwnedBs() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getA_OwnedBs() * @model containment="true" resolveProxies="true" * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/B.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/B.java index eaf33bd87f..a908d08cf3 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/B.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/B.java @@ -22,7 +22,7 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getB() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getB() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/BaseObject.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/BaseObject.java index fa534eeb43..9fe196fa7c 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/BaseObject.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/BaseObject.java @@ -25,7 +25,7 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getBaseObject() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getBaseObject() * @model * @generated */ @@ -41,7 +41,7 @@ public interface BaseObject extends EObject * * @return the value of the 'Attribute Optional' attribute. * @see #setAttributeOptional(String) - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getBaseObject_AttributeOptional() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getBaseObject_AttributeOptional() * @model * @generated */ @@ -66,7 +66,7 @@ public interface BaseObject extends EObject * * @return the value of the 'Attribute Required' attribute. * @see #setAttributeRequired(String) - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getBaseObject_AttributeRequired() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getBaseObject_AttributeRequired() * @model required="true" * @generated */ @@ -91,7 +91,7 @@ public interface BaseObject extends EObject *

* * @return the value of the 'Attribute List' attribute list. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getBaseObject_AttributeList() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getBaseObject_AttributeList() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/C.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/C.java index eca1dda471..db4678b09e 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/C.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/C.java @@ -16,7 +16,7 @@ import org.eclipse.emf.ecore.EObject; * A representation of the model object 'C'. * * - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getC() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getC() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ContainmentObject.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ContainmentObject.java index fd2deaa798..3177915cb9 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ContainmentObject.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ContainmentObject.java @@ -39,7 +39,7 @@ public interface ContainmentObject extends BaseObject * * @return the value of the 'Containment Optional' containment reference. * @see #setContainmentOptional(BaseObject) - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getContainmentObject_ContainmentOptional() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getContainmentObject_ContainmentOptional() * @model containment="true" resolveProxies="true" * @generated */ @@ -64,7 +64,7 @@ public interface ContainmentObject extends BaseObject *

* * @return the value of the 'Containment List' containment reference list. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getContainmentObject_ContainmentList() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getContainmentObject_ContainmentList() * @model containment="true" resolveProxies="true" * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/D.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/D.java index b8be2f1591..62faf36b8e 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/D.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/D.java @@ -22,7 +22,7 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getD() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getD() * @model * @generated */ @@ -38,7 +38,7 @@ public interface D extends EObject * * @return the value of the 'Data' containment reference. * @see #setData(EObject) - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getD_Data() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getD_Data() * @model containment="true" * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/E.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/E.java index 4493889f3c..82171ff5f2 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/E.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/E.java @@ -23,7 +23,7 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getE() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getE() * @model * @generated */ @@ -39,7 +39,7 @@ public interface E extends EObject *

* * @return the value of the 'Owned As' containment reference list. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getE_OwnedAs() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getE_OwnedAs() * @model containment="true" resolveProxies="true" * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/F.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/F.java index 936d7adf94..a1c842b4a1 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/F.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/F.java @@ -23,7 +23,7 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getF() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getF() * @model * @generated */ @@ -39,7 +39,7 @@ public interface F extends EObject *

* * @return the value of the 'Owned Es' containment reference list. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getF_OwnedEs() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getF_OwnedEs() * @model containment="true" resolveProxies="true" * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/G.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/G.java index 0040060090..aef5a3292d 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/G.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/G.java @@ -30,7 +30,7 @@ import java.util.List; * *

* - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getG() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getG() * @model * @generated */ @@ -46,7 +46,7 @@ public interface G extends EObject * * @return the value of the 'Dummy' attribute. * @see #setDummy(String) - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getG_Dummy() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getG_Dummy() * @model required="true" * @generated */ @@ -72,7 +72,7 @@ public interface G extends EObject * * @return the value of the 'Reference' reference. * @see #setReference(BaseObject) - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getG_Reference() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getG_Reference() * @model required="true" * @generated */ @@ -98,7 +98,7 @@ public interface G extends EObject *

* * @return the value of the 'List' reference list. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getG_List() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getG_List() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/HasNillableAttribute.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/HasNillableAttribute.java index 6583cd066f..bb3767f8df 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/HasNillableAttribute.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/HasNillableAttribute.java @@ -16,7 +16,7 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getHasNillableAttribute() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getHasNillableAttribute() * @model * @generated */ @@ -34,7 +34,7 @@ public interface HasNillableAttribute extends EObject * @see #isSetNillable() * @see #unsetNillable() * @see #setNillable(String) - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getHasNillableAttribute_Nillable() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getHasNillableAttribute_Nillable() * @model unsettable="true" dataType="org.eclipse.emf.cdo.tests.model6.MyString" * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Holdable.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Holdable.java index 59c1a703cf..9856d6b787 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Holdable.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Holdable.java @@ -16,7 +16,7 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getHoldable() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getHoldable() * @model abstract="true" * @generated */ @@ -32,7 +32,7 @@ public interface Holdable extends EObject * * @return the value of the 'Name' attribute. * @see #setName(String) - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getHoldable_Name() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getHoldable_Name() * @model required="true" * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Holder.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Holder.java index d51c94f04c..8aea25cbb0 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Holder.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Holder.java @@ -17,7 +17,7 @@ import org.eclipse.emf.common.util.EList; * *

* - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getHolder() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getHolder() * @model * @generated */ @@ -33,7 +33,7 @@ public interface Holder extends Holdable *

* * @return the value of the 'Held' reference list. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getHolder_Held() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getHolder_Held() * @model transient="true" derived="true" * annotation="http://www.eclipse.org/emf/CDO persistent='true' filter='owned'" * @generated @@ -50,7 +50,7 @@ public interface Holder extends Holdable *

* * @return the value of the 'Owned' containment reference list. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getHolder_Owned() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getHolder_Owned() * @model containment="true" resolveProxies="true" * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Factory.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Factory.java index c574093ae0..df50674143 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Factory.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Factory.java @@ -25,7 +25,7 @@ public interface Model6Factory extends EFactory * * @generated */ - Model6Factory eINSTANCE = org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6FactoryImpl.init(); + Model6Factory eINSTANCE = org.eclipse.emf.cdo.tests.model6.impl.Model6FactoryImpl.init(); /** * Returns a new object of class 'Root'. diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Package.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Package.java index 0ca81a3a03..74f687f2dc 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Package.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Package.java @@ -58,7 +58,7 @@ public interface Model6Package extends EPackage * * @generated */ - Model6Package eINSTANCE = org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl.init(); + Model6Package eINSTANCE = org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl.init(); /** * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.RootImpl Root}' class. - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.BaseObjectImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getBaseObject() + * @see org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getBaseObject() * @generated */ int BASE_OBJECT = 1; @@ -160,10 +160,10 @@ public interface Model6Package extends EPackage int BASE_OBJECT_FEATURE_COUNT = 3; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.ReferenceObjectImpl Reference Object}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl Reference Object}' class. * - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.ReferenceObjectImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getReferenceObject() + * @see org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getReferenceObject() * @generated */ int REFERENCE_OBJECT = 2; @@ -223,10 +223,10 @@ public interface Model6Package extends EPackage int REFERENCE_OBJECT_FEATURE_COUNT = BASE_OBJECT_FEATURE_COUNT + 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.ContainmentObjectImpl Containment Object}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl Containment Object}' class. * - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.ContainmentObjectImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getContainmentObject() + * @see org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getContainmentObject() * @generated */ int CONTAINMENT_OBJECT = 3; @@ -286,10 +286,10 @@ public interface Model6Package extends EPackage int CONTAINMENT_OBJECT_FEATURE_COUNT = BASE_OBJECT_FEATURE_COUNT + 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.UnorderedListImpl Unordered List}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.UnorderedListImpl Unordered List}' class. * - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.UnorderedListImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getUnorderedList() + * @see org.eclipse.emf.cdo.tests.model6.impl.UnorderedListImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getUnorderedList() * @generated */ int UNORDERED_LIST = 4; @@ -321,11 +321,11 @@ public interface Model6Package extends EPackage int UNORDERED_LIST_FEATURE_COUNT = 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.PropertiesMapImpl Properties Map}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapImpl Properties Map}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.PropertiesMapImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getPropertiesMap() + * @see org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getPropertiesMap() * @generated */ int PROPERTIES_MAP = 5; @@ -367,11 +367,11 @@ public interface Model6Package extends EPackage int PROPERTIES_MAP_FEATURE_COUNT = 3; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.PropertiesMapEntryImpl Properties Map Entry}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapEntryImpl Properties Map Entry}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.PropertiesMapEntryImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getPropertiesMapEntry() + * @see org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapEntryImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getPropertiesMapEntry() * @generated */ int PROPERTIES_MAP_ENTRY = 6; @@ -404,11 +404,11 @@ public interface Model6Package extends EPackage int PROPERTIES_MAP_ENTRY_FEATURE_COUNT = 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.PropertiesMapEntryValueImpl Properties Map Entry Value}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapEntryValueImpl Properties Map Entry Value}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.PropertiesMapEntryValueImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getPropertiesMapEntryValue() + * @see org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapEntryValueImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getPropertiesMapEntryValue() * @generated */ int PROPERTIES_MAP_ENTRY_VALUE = 7; @@ -593,11 +593,11 @@ public interface Model6Package extends EPackage int F_FEATURE_COUNT = 1; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.GImpl G}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.GImpl G}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.GImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getG() + * @see org.eclipse.emf.cdo.tests.model6.impl.GImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getG() * @generated */ int G = 14; @@ -639,11 +639,11 @@ public interface Model6Package extends EPackage int G_FEATURE_COUNT = 3; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.MyEnumListImpl My Enum List}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.MyEnumListImpl My Enum List}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.MyEnumListImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getMyEnumList() + * @see org.eclipse.emf.cdo.tests.model6.impl.MyEnumListImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getMyEnumList() * @generated */ int MY_ENUM_LIST = 15; @@ -667,11 +667,11 @@ public interface Model6Package extends EPackage int MY_ENUM_LIST_FEATURE_COUNT = 1; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.MyEnumListUnsettableImpl My Enum List Unsettable}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.MyEnumListUnsettableImpl My Enum List Unsettable}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.MyEnumListUnsettableImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getMyEnumListUnsettable() + * @see org.eclipse.emf.cdo.tests.model6.impl.MyEnumListUnsettableImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getMyEnumListUnsettable() * @generated */ int MY_ENUM_LIST_UNSETTABLE = 16; @@ -695,11 +695,11 @@ public interface Model6Package extends EPackage int MY_ENUM_LIST_UNSETTABLE_FEATURE_COUNT = 1; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.HoldableImpl Holdable}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.HoldableImpl Holdable}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.HoldableImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getHoldable() + * @see org.eclipse.emf.cdo.tests.model6.impl.HoldableImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getHoldable() * @generated */ int HOLDABLE = 19; @@ -723,11 +723,11 @@ public interface Model6Package extends EPackage int HOLDABLE_FEATURE_COUNT = 1; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.HolderImpl Holder}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.HolderImpl Holder}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.HolderImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getHolder() + * @see org.eclipse.emf.cdo.tests.model6.impl.HolderImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getHolder() * @generated */ int HOLDER = 17; @@ -769,11 +769,11 @@ public interface Model6Package extends EPackage int HOLDER_FEATURE_COUNT = HOLDABLE_FEATURE_COUNT + 2; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.ThingImpl Thing}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ThingImpl Thing}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.ThingImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getThing() + * @see org.eclipse.emf.cdo.tests.model6.impl.ThingImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getThing() * @generated */ int THING = 18; @@ -797,11 +797,11 @@ public interface Model6Package extends EPackage int THING_FEATURE_COUNT = HOLDABLE_FEATURE_COUNT + 0; /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.legacy.HasNillableAttributeImpl Has Nillable Attribute}' class. + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.HasNillableAttributeImpl Has Nillable Attribute}' class. * * - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.HasNillableAttributeImpl - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getHasNillableAttribute() + * @see org.eclipse.emf.cdo.tests.model6.impl.HasNillableAttributeImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getHasNillableAttribute() * @generated */ int HAS_NILLABLE_ATTRIBUTE = 20; @@ -829,7 +829,7 @@ public interface Model6Package extends EPackage * * * @see org.eclipse.emf.cdo.tests.model6.MyEnum - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getMyEnum() + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getMyEnum() * @generated */ int MY_ENUM = 21; @@ -839,7 +839,7 @@ public interface Model6Package extends EPackage * * * @see java.lang.String - * @see org.eclipse.emf.cdo.tests.model6.impl.legacy.Model6PackageImpl#getMyString() + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getMyString() * @generated */ int MY_STRING = 22; @@ -1446,4 +1446,522 @@ public interface Model6Package extends EPackage */ Model6Factory getModel6Factory(); + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals + { + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.RootImpl Root}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.RootImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getRoot() + * @generated + */ + EClass ROOT = eINSTANCE.getRoot(); + + /** + * The meta object literal for the 'List A' containment reference list feature. + * + * + * @generated + */ + EReference ROOT__LIST_A = eINSTANCE.getRoot_ListA(); + + /** + * The meta object literal for the 'List B' containment reference list feature. + * + * + * @generated + */ + EReference ROOT__LIST_B = eINSTANCE.getRoot_ListB(); + + /** + * The meta object literal for the 'List C' containment reference list feature. + * + * + * @generated + */ + EReference ROOT__LIST_C = eINSTANCE.getRoot_ListC(); + + /** + * The meta object literal for the 'List D' containment reference list feature. + * + * + * @generated + */ + EReference ROOT__LIST_D = eINSTANCE.getRoot_ListD(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl Base Object}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getBaseObject() + * @generated + */ + EClass BASE_OBJECT = eINSTANCE.getBaseObject(); + + /** + * The meta object literal for the 'Attribute Optional' attribute feature. + * + * + * @generated + */ + EAttribute BASE_OBJECT__ATTRIBUTE_OPTIONAL = eINSTANCE.getBaseObject_AttributeOptional(); + + /** + * The meta object literal for the 'Attribute Required' attribute feature. + * + * + * @generated + */ + EAttribute BASE_OBJECT__ATTRIBUTE_REQUIRED = eINSTANCE.getBaseObject_AttributeRequired(); + + /** + * The meta object literal for the 'Attribute List' attribute list feature. + * + * + * @generated + */ + EAttribute BASE_OBJECT__ATTRIBUTE_LIST = eINSTANCE.getBaseObject_AttributeList(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl Reference Object}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getReferenceObject() + * @generated + */ + EClass REFERENCE_OBJECT = eINSTANCE.getReferenceObject(); + + /** + * The meta object literal for the 'Reference Optional' reference feature. + * + * + * @generated + */ + EReference REFERENCE_OBJECT__REFERENCE_OPTIONAL = eINSTANCE.getReferenceObject_ReferenceOptional(); + + /** + * The meta object literal for the 'Reference List' reference list feature. + * + * + * @generated + */ + EReference REFERENCE_OBJECT__REFERENCE_LIST = eINSTANCE.getReferenceObject_ReferenceList(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl Containment Object}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getContainmentObject() + * @generated + */ + EClass CONTAINMENT_OBJECT = eINSTANCE.getContainmentObject(); + + /** + * The meta object literal for the 'Containment Optional' containment reference feature. + * + * + * @generated + */ + EReference CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL = eINSTANCE.getContainmentObject_ContainmentOptional(); + + /** + * The meta object literal for the 'Containment List' containment reference list feature. + * + * + * @generated + */ + EReference CONTAINMENT_OBJECT__CONTAINMENT_LIST = eINSTANCE.getContainmentObject_ContainmentList(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.UnorderedListImpl Unordered List}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.UnorderedListImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getUnorderedList() + * @generated + */ + EClass UNORDERED_LIST = eINSTANCE.getUnorderedList(); + + /** + * The meta object literal for the 'Contained' containment reference list feature. + * + * + * @generated + */ + EReference UNORDERED_LIST__CONTAINED = eINSTANCE.getUnorderedList_Contained(); + + /** + * The meta object literal for the 'Referenced' reference list feature. + * + * + * @generated + */ + EReference UNORDERED_LIST__REFERENCED = eINSTANCE.getUnorderedList_Referenced(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapImpl Properties Map}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getPropertiesMap() + * @generated + */ + EClass PROPERTIES_MAP = eINSTANCE.getPropertiesMap(); + + /** + * The meta object literal for the 'Label' attribute feature. + * + * + * @generated + */ + EAttribute PROPERTIES_MAP__LABEL = eINSTANCE.getPropertiesMap_Label(); + + /** + * The meta object literal for the 'Persistent Map' map feature. + * + * + * @generated + */ + EReference PROPERTIES_MAP__PERSISTENT_MAP = eINSTANCE.getPropertiesMap_PersistentMap(); + + /** + * The meta object literal for the 'Transient Map' map feature. + * + * + * @generated + */ + EReference PROPERTIES_MAP__TRANSIENT_MAP = eINSTANCE.getPropertiesMap_TransientMap(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapEntryImpl Properties Map Entry}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapEntryImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getPropertiesMapEntry() + * @generated + */ + EClass PROPERTIES_MAP_ENTRY = eINSTANCE.getPropertiesMapEntry(); + + /** + * The meta object literal for the 'Key' attribute feature. + * + * + * @generated + */ + EAttribute PROPERTIES_MAP_ENTRY__KEY = eINSTANCE.getPropertiesMapEntry_Key(); + + /** + * The meta object literal for the 'Value' containment reference feature. + * + * + * @generated + */ + EReference PROPERTIES_MAP_ENTRY__VALUE = eINSTANCE.getPropertiesMapEntry_Value(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapEntryValueImpl Properties Map Entry Value}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.PropertiesMapEntryValueImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getPropertiesMapEntryValue() + * @generated + */ + EClass PROPERTIES_MAP_ENTRY_VALUE = eINSTANCE.getPropertiesMapEntryValue(); + + /** + * The meta object literal for the 'Label' attribute feature. + * + * + * @generated + */ + EAttribute PROPERTIES_MAP_ENTRY_VALUE__LABEL = eINSTANCE.getPropertiesMapEntryValue_Label(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.AImpl A}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.AImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getA() + * @generated + */ + EClass A = eINSTANCE.getA(); + + /** + * The meta object literal for the 'Owned Ds' containment reference list feature. + * + * + * @generated + */ + EReference A__OWNED_DS = eINSTANCE.getA_OwnedDs(); + + /** + * The meta object literal for the 'Owned Bs' containment reference list feature. + * + * + * @generated + */ + EReference A__OWNED_BS = eINSTANCE.getA_OwnedBs(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.BImpl B}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.BImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getB() + * @generated + */ + EClass B = eINSTANCE.getB(); + + /** + * The meta object literal for the 'Owned C' containment reference feature. + * + * + * @generated + */ + EReference B__OWNED_C = eINSTANCE.getB_OwnedC(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.CImpl C}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.CImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getC() + * @generated + */ + EClass C = eINSTANCE.getC(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.DImpl D}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.DImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getD() + * @generated + */ + EClass D = eINSTANCE.getD(); + + /** + * The meta object literal for the 'Data' containment reference feature. + * + * + * @generated + */ + EReference D__DATA = eINSTANCE.getD_Data(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.EImpl E}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.EImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getE() + * @generated + */ + EClass E = eINSTANCE.getE(); + + /** + * The meta object literal for the 'Owned As' containment reference list feature. + * + * + * @generated + */ + EReference E__OWNED_AS = eINSTANCE.getE_OwnedAs(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.FImpl F}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.FImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getF() + * @generated + */ + EClass F = eINSTANCE.getF(); + + /** + * The meta object literal for the 'Owned Es' containment reference list feature. + * + * + * @generated + */ + EReference F__OWNED_ES = eINSTANCE.getF_OwnedEs(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.GImpl G}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.GImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getG() + * @generated + */ + EClass G = eINSTANCE.getG(); + + /** + * The meta object literal for the 'Dummy' attribute feature. + * + * + * @generated + */ + EAttribute G__DUMMY = eINSTANCE.getG_Dummy(); + + /** + * The meta object literal for the 'Reference' reference feature. + * + * + * @generated + */ + EReference G__REFERENCE = eINSTANCE.getG_Reference(); + + /** + * The meta object literal for the 'List' reference list feature. + * + * + * @generated + */ + EReference G__LIST = eINSTANCE.getG_List(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.MyEnumListImpl My Enum List}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.MyEnumListImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getMyEnumList() + * @generated + */ + EClass MY_ENUM_LIST = eINSTANCE.getMyEnumList(); + + /** + * The meta object literal for the 'My Enum' attribute list feature. + * + * + * @generated + */ + EAttribute MY_ENUM_LIST__MY_ENUM = eINSTANCE.getMyEnumList_MyEnum(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.MyEnumListUnsettableImpl My Enum List Unsettable}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.MyEnumListUnsettableImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getMyEnumListUnsettable() + * @generated + */ + EClass MY_ENUM_LIST_UNSETTABLE = eINSTANCE.getMyEnumListUnsettable(); + + /** + * The meta object literal for the 'My Enum' attribute list feature. + * + * + * @generated + */ + EAttribute MY_ENUM_LIST_UNSETTABLE__MY_ENUM = eINSTANCE.getMyEnumListUnsettable_MyEnum(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.HolderImpl Holder}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.HolderImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getHolder() + * @generated + */ + EClass HOLDER = eINSTANCE.getHolder(); + + /** + * The meta object literal for the 'Held' reference list feature. + * + * + * @generated + */ + EReference HOLDER__HELD = eINSTANCE.getHolder_Held(); + + /** + * The meta object literal for the 'Owned' containment reference list feature. + * + * + * @generated + */ + EReference HOLDER__OWNED = eINSTANCE.getHolder_Owned(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ThingImpl Thing}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.ThingImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getThing() + * @generated + */ + EClass THING = eINSTANCE.getThing(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.HoldableImpl Holdable}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.HoldableImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getHoldable() + * @generated + */ + EClass HOLDABLE = eINSTANCE.getHoldable(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute HOLDABLE__NAME = eINSTANCE.getHoldable_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.HasNillableAttributeImpl Has Nillable Attribute}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.impl.HasNillableAttributeImpl + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getHasNillableAttribute() + * @generated + */ + EClass HAS_NILLABLE_ATTRIBUTE = eINSTANCE.getHasNillableAttribute(); + + /** + * The meta object literal for the 'Nillable' attribute feature. + * + * + * @generated + */ + EAttribute HAS_NILLABLE_ATTRIBUTE__NILLABLE = eINSTANCE.getHasNillableAttribute_Nillable(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.MyEnum My Enum}' enum. + * + * + * @see org.eclipse.emf.cdo.tests.model6.MyEnum + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getMyEnum() + * @generated + */ + EEnum MY_ENUM = eINSTANCE.getMyEnum(); + + /** + * The meta object literal for the 'My String' data type. + * + * + * @see java.lang.String + * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getMyString() + * @generated + */ + EDataType MY_STRING = eINSTANCE.getMyString(); + + } + } // Model6Package diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/MyEnum.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/MyEnum.java index bbd6d2de5d..1090a83579 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/MyEnum.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/MyEnum.java @@ -21,7 +21,7 @@ import java.util.List; * A representation of the literals of the enumeration 'My Enum', * and utility methods for working with them. * - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getMyEnum() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getMyEnum() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/MyEnumList.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/MyEnumList.java index bd17efd85c..d5e6caeed3 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/MyEnumList.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/MyEnumList.java @@ -25,7 +25,7 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getMyEnumList() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getMyEnumList() * @model * @generated */ @@ -43,7 +43,7 @@ public interface MyEnumList extends EObject * * @return the value of the 'My Enum' attribute list. * @see org.eclipse.emf.cdo.tests.model6.MyEnum - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getMyEnumList_MyEnum() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getMyEnumList_MyEnum() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/MyEnumListUnsettable.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/MyEnumListUnsettable.java index 6fd33f9361..0a05167c8b 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/MyEnumListUnsettable.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/MyEnumListUnsettable.java @@ -25,7 +25,7 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getMyEnumListUnsettable() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getMyEnumListUnsettable() * @model * @generated */ @@ -45,7 +45,7 @@ public interface MyEnumListUnsettable extends EObject * @see org.eclipse.emf.cdo.tests.model6.MyEnum * @see #isSetMyEnum() * @see #unsetMyEnum() - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getMyEnumListUnsettable_MyEnum() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getMyEnumListUnsettable_MyEnum() * @model unsettable="true" * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/PropertiesMap.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/PropertiesMap.java index 45d9a6d6bc..f3d470694f 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/PropertiesMap.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/PropertiesMap.java @@ -27,7 +27,7 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getPropertiesMap() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getPropertiesMap() * @model * @generated */ @@ -43,7 +43,7 @@ public interface PropertiesMap extends EObject * * @return the value of the 'Label' attribute. * @see #setLabel(String) - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getPropertiesMap_Label() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getPropertiesMap_Label() * @model * @generated */ @@ -70,7 +70,7 @@ public interface PropertiesMap extends EObject *

* * @return the value of the 'Persistent Map' map. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getPropertiesMap_PersistentMap() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getPropertiesMap_PersistentMap() * @model mapType="org.eclipse.emf.cdo.tests.model6.PropertiesMapEntry" * @generated */ @@ -87,7 +87,7 @@ public interface PropertiesMap extends EObject *

* * @return the value of the 'Transient Map' map. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getPropertiesMap_TransientMap() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getPropertiesMap_TransientMap() * @model mapType="org.eclipse.emf.cdo.tests.model6.PropertiesMapEntry" transient="true" * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/PropertiesMapEntryValue.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/PropertiesMapEntryValue.java index 9aac0e4187..0abf4b8a8d 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/PropertiesMapEntryValue.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/PropertiesMapEntryValue.java @@ -24,7 +24,7 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getPropertiesMapEntryValue() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getPropertiesMapEntryValue() * @model * @generated */ @@ -40,7 +40,7 @@ public interface PropertiesMapEntryValue extends EObject * * @return the value of the 'Label' attribute. * @see #setLabel(String) - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getPropertiesMapEntryValue_Label() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getPropertiesMapEntryValue_Label() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ReferenceObject.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ReferenceObject.java index 852f1c78f3..1da11ce08e 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ReferenceObject.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ReferenceObject.java @@ -39,7 +39,7 @@ public interface ReferenceObject extends BaseObject * * @return the value of the 'Reference Optional' reference. * @see #setReferenceOptional(BaseObject) - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getReferenceObject_ReferenceOptional() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getReferenceObject_ReferenceOptional() * @model * @generated */ @@ -64,7 +64,7 @@ public interface ReferenceObject extends BaseObject *

* * @return the value of the 'Reference List' reference list. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getReferenceObject_ReferenceList() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getReferenceObject_ReferenceList() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Root.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Root.java index 1c0c2c3b60..4a0c401801 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Root.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Root.java @@ -26,7 +26,7 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getRoot() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getRoot() * @model * @generated */ @@ -42,7 +42,7 @@ public interface Root extends EObject *

* * @return the value of the 'List A' containment reference list. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getRoot_ListA() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getRoot_ListA() * @model containment="true" resolveProxies="true" * @generated */ @@ -58,7 +58,7 @@ public interface Root extends EObject *

* * @return the value of the 'List B' containment reference list. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getRoot_ListB() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getRoot_ListB() * @model containment="true" resolveProxies="true" * @generated */ @@ -74,7 +74,7 @@ public interface Root extends EObject *

* * @return the value of the 'List C' containment reference list. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getRoot_ListC() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getRoot_ListC() * @model containment="true" resolveProxies="true" * @generated */ @@ -90,7 +90,7 @@ public interface Root extends EObject *

* * @return the value of the 'List D' containment reference list. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getRoot_ListD() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getRoot_ListD() * @model containment="true" resolveProxies="true" * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Thing.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Thing.java index 628d626eef..18d5ad75d7 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Thing.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Thing.java @@ -8,7 +8,7 @@ package org.eclipse.emf.cdo.tests.model6; * * * - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getThing() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getThing() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/UnorderedList.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/UnorderedList.java index 3dcb6e32a9..249d5ea314 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/UnorderedList.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/UnorderedList.java @@ -24,7 +24,7 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getUnorderedList() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getUnorderedList() * @model * @generated */ @@ -40,7 +40,7 @@ public interface UnorderedList extends EObject *

* * @return the value of the 'Contained' containment reference list. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getUnorderedList_Contained() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getUnorderedList_Contained() * @model containment="true" resolveProxies="true" ordered="false" * @generated */ @@ -56,7 +56,7 @@ public interface UnorderedList extends EObject *

* * @return the value of the 'Referenced' reference list. - * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getUnorderedList_Referenced() + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package#getUnorderedList_Referenced() * @model ordered="false" * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/AImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/AImpl.java deleted file mode 100644 index 2598dcb103..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/AImpl.java +++ /dev/null @@ -1,199 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.A; -import org.eclipse.emf.cdo.tests.model6.B; -import org.eclipse.emf.cdo.tests.model6.D; - -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.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object 'A'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.AImpl#getOwnedDs Owned Ds}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.AImpl#getOwnedBs Owned Bs}
  • - *
- *

- * - * @generated - */ -public class AImpl extends EObjectImpl implements A -{ - /** - * The cached value of the '{@link #getOwnedDs() Owned Ds}' containment reference list. - * - * @see #getOwnedDs() - * @generated - * @ordered - */ - protected EList ownedDs; - - /** - * The cached value of the '{@link #getOwnedBs() Owned Bs}' containment reference list. - * - * @see #getOwnedBs() - * @generated - * @ordered - */ - protected EList ownedBs; - - /** - * - * @generated - */ - protected AImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getA(); - } - - /** - * - * @generated - */ - public EList getOwnedDs() - { - if (ownedDs == null) - { - ownedDs = new EObjectContainmentEList.Resolving(D.class, this, Model6Package.A__OWNED_DS); - } - return ownedDs; - } - - /** - * - * @generated - */ - public EList getOwnedBs() - { - if (ownedBs == null) - { - ownedBs = new EObjectContainmentEList.Resolving(B.class, this, Model6Package.A__OWNED_BS); - } - return ownedBs; - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.A__OWNED_DS: - return ((InternalEList)getOwnedDs()).basicRemove(otherEnd, msgs); - case Model6Package.A__OWNED_BS: - return ((InternalEList)getOwnedBs()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.A__OWNED_DS: - return getOwnedDs(); - case Model6Package.A__OWNED_BS: - return getOwnedBs(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.A__OWNED_DS: - getOwnedDs().clear(); - getOwnedDs().addAll((Collection)newValue); - return; - case Model6Package.A__OWNED_BS: - getOwnedBs().clear(); - getOwnedBs().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.A__OWNED_DS: - getOwnedDs().clear(); - return; - case Model6Package.A__OWNED_BS: - getOwnedBs().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.A__OWNED_DS: - return ownedDs != null && !ownedDs.isEmpty(); - case Model6Package.A__OWNED_BS: - return ownedBs != null && !ownedBs.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // AImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BImpl.java deleted file mode 100644 index 789b9dec56..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BImpl.java +++ /dev/null @@ -1,226 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.B; -import org.eclipse.emf.cdo.tests.model6.C; - -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; - -/** - * An implementation of the model object 'B'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BImpl#getOwnedC Owned C}
  • - *
- *

- * - * @generated - */ -public class BImpl extends EObjectImpl implements B -{ - /** - * The cached value of the '{@link #getOwnedC() Owned C}' containment reference. - * - * @see #getOwnedC() - * @generated - * @ordered - */ - protected C ownedC; - - /** - * - * @generated - */ - protected BImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getB(); - } - - /** - * - * @generated - */ - public C getOwnedC() - { - if (ownedC != null && ownedC.eIsProxy()) - { - InternalEObject oldOwnedC = (InternalEObject)ownedC; - ownedC = (C)eResolveProxy(oldOwnedC); - if (ownedC != oldOwnedC) - { - InternalEObject newOwnedC = (InternalEObject)ownedC; - NotificationChain msgs = oldOwnedC.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Model6Package.B__OWNED_C, - null, null); - if (newOwnedC.eInternalContainer() == null) - { - msgs = newOwnedC.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Model6Package.B__OWNED_C, null, msgs); - } - if (msgs != null) - msgs.dispatch(); - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.B__OWNED_C, oldOwnedC, ownedC)); - } - } - return ownedC; - } - - /** - * - * - * @generated - */ - public C basicGetOwnedC() - { - return ownedC; - } - - /** - * - * @generated - */ - public NotificationChain basicSetOwnedC(C newOwnedC, NotificationChain msgs) - { - C oldOwnedC = ownedC; - ownedC = newOwnedC; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Model6Package.B__OWNED_C, - oldOwnedC, newOwnedC); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * @generated - */ - public void setOwnedC(C newOwnedC) - { - if (newOwnedC != ownedC) - { - NotificationChain msgs = null; - if (ownedC != null) - msgs = ((InternalEObject)ownedC).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Model6Package.B__OWNED_C, null, - msgs); - if (newOwnedC != null) - msgs = ((InternalEObject)newOwnedC).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Model6Package.B__OWNED_C, null, - msgs); - msgs = basicSetOwnedC(newOwnedC, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.B__OWNED_C, newOwnedC, newOwnedC)); - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.B__OWNED_C: - return basicSetOwnedC(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.B__OWNED_C: - if (resolve) - return getOwnedC(); - return basicGetOwnedC(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.B__OWNED_C: - setOwnedC((C)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.B__OWNED_C: - setOwnedC((C)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.B__OWNED_C: - return ownedC != null; - } - return super.eIsSet(featureID); - } - -} // BImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BaseObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BaseObjectImpl.java deleted file mode 100644 index b3f248e437..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BaseObjectImpl.java +++ /dev/null @@ -1,273 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.BaseObject; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; - -import java.util.Collection; - -/** - * An implementation of the model object ' Base Object'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BaseObjectImpl#getAttributeOptional Attribute Optional}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BaseObjectImpl#getAttributeRequired Attribute Required}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BaseObjectImpl#getAttributeList Attribute List}
  • - *
- *

- * - * @generated - */ -public class BaseObjectImpl extends EObjectImpl implements BaseObject -{ - /** - * The default value of the '{@link #getAttributeOptional() Attribute Optional}' attribute. - * - * @see #getAttributeOptional() - * @generated - * @ordered - */ - protected static final String ATTRIBUTE_OPTIONAL_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAttributeOptional() Attribute Optional}' attribute. - * - * @see #getAttributeOptional() - * @generated - * @ordered - */ - protected String attributeOptional = ATTRIBUTE_OPTIONAL_EDEFAULT; - - /** - * The default value of the '{@link #getAttributeRequired() Attribute Required}' attribute. - * - * @see #getAttributeRequired() - * @generated - * @ordered - */ - protected static final String ATTRIBUTE_REQUIRED_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAttributeRequired() Attribute Required}' attribute. - * - * @see #getAttributeRequired() - * @generated - * @ordered - */ - protected String attributeRequired = ATTRIBUTE_REQUIRED_EDEFAULT; - - /** - * The cached value of the '{@link #getAttributeList() Attribute List}' attribute list. - * - * @see #getAttributeList() - * @generated - * @ordered - */ - protected EList attributeList; - - /** - * - * @generated - */ - protected BaseObjectImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getBaseObject(); - } - - /** - * - * @generated - */ - public String getAttributeOptional() - { - return attributeOptional; - } - - /** - * - * @generated - */ - public void setAttributeOptional(String newAttributeOptional) - { - String oldAttributeOptional = attributeOptional; - attributeOptional = newAttributeOptional; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL, - oldAttributeOptional, attributeOptional)); - } - - /** - * - * @generated - */ - public String getAttributeRequired() - { - return attributeRequired; - } - - /** - * - * @generated - */ - public void setAttributeRequired(String newAttributeRequired) - { - String oldAttributeRequired = attributeRequired; - attributeRequired = newAttributeRequired; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED, - oldAttributeRequired, attributeRequired)); - } - - /** - * - * @generated - */ - public EList getAttributeList() - { - if (attributeList == null) - { - attributeList = new EDataTypeUniqueEList(String.class, this, Model6Package.BASE_OBJECT__ATTRIBUTE_LIST); - } - return attributeList; - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL: - return getAttributeOptional(); - case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED: - return getAttributeRequired(); - case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST: - return getAttributeList(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL: - setAttributeOptional((String)newValue); - return; - case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED: - setAttributeRequired((String)newValue); - return; - case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST: - getAttributeList().clear(); - getAttributeList().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL: - setAttributeOptional(ATTRIBUTE_OPTIONAL_EDEFAULT); - return; - case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED: - setAttributeRequired(ATTRIBUTE_REQUIRED_EDEFAULT); - return; - case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST: - getAttributeList().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL: - return ATTRIBUTE_OPTIONAL_EDEFAULT == null ? attributeOptional != null : !ATTRIBUTE_OPTIONAL_EDEFAULT - .equals(attributeOptional); - case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED: - return ATTRIBUTE_REQUIRED_EDEFAULT == null ? attributeRequired != null : !ATTRIBUTE_REQUIRED_EDEFAULT - .equals(attributeRequired); - case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST: - return attributeList != null && !attributeList.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (attributeOptional: "); - result.append(attributeOptional); - result.append(", attributeRequired: "); - result.append(attributeRequired); - result.append(", attributeList: "); - result.append(attributeList); - result.append(')'); - return result.toString(); - } - -} // BaseObjectImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/CImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/CImpl.java deleted file mode 100644 index 2de63f54b1..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/CImpl.java +++ /dev/null @@ -1,47 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.C; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -/** - * An implementation of the model object 'C'. - *

- *

- * - * @generated - */ -public class CImpl extends EObjectImpl implements C -{ - /** - * - * @generated - */ - protected CImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getC(); - } - -} // CImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ContainmentObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ContainmentObjectImpl.java deleted file mode 100644 index c545cd9b95..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ContainmentObjectImpl.java +++ /dev/null @@ -1,272 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.BaseObject; -import org.eclipse.emf.cdo.tests.model6.ContainmentObject; - -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.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object ' Containment Object'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ContainmentObjectImpl#getContainmentOptional Containment Optional}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ContainmentObjectImpl#getContainmentList Containment List}
  • - *
- *

- * - * @generated - */ -public class ContainmentObjectImpl extends BaseObjectImpl implements ContainmentObject -{ - /** - * The cached value of the '{@link #getContainmentOptional() Containment Optional}' containment reference. - * - * @see #getContainmentOptional() - * @generated - * @ordered - */ - protected BaseObject containmentOptional; - - /** - * The cached value of the '{@link #getContainmentList() Containment List}' containment reference list. - * - * @see #getContainmentList() - * @generated - * @ordered - */ - protected EList containmentList; - - /** - * - * @generated - */ - protected ContainmentObjectImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getContainmentObject(); - } - - /** - * - * @generated - */ - public BaseObject getContainmentOptional() - { - if (containmentOptional != null && containmentOptional.eIsProxy()) - { - InternalEObject oldContainmentOptional = (InternalEObject)containmentOptional; - containmentOptional = (BaseObject)eResolveProxy(oldContainmentOptional); - if (containmentOptional != oldContainmentOptional) - { - InternalEObject newContainmentOptional = (InternalEObject)containmentOptional; - NotificationChain msgs = oldContainmentOptional.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, null); - if (newContainmentOptional.eInternalContainer() == null) - { - msgs = newContainmentOptional.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, msgs); - } - if (msgs != null) - msgs.dispatch(); - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, oldContainmentOptional, containmentOptional)); - } - } - return containmentOptional; - } - - /** - * - * - * @generated - */ - public BaseObject basicGetContainmentOptional() - { - return containmentOptional; - } - - /** - * - * @generated - */ - public NotificationChain basicSetContainmentOptional(BaseObject newContainmentOptional, NotificationChain msgs) - { - BaseObject oldContainmentOptional = containmentOptional; - containmentOptional = newContainmentOptional; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, oldContainmentOptional, newContainmentOptional); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * @generated - */ - public void setContainmentOptional(BaseObject newContainmentOptional) - { - if (newContainmentOptional != containmentOptional) - { - NotificationChain msgs = null; - if (containmentOptional != null) - msgs = ((InternalEObject)containmentOptional).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, msgs); - if (newContainmentOptional != null) - msgs = ((InternalEObject)newContainmentOptional).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, msgs); - msgs = basicSetContainmentOptional(newContainmentOptional, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, - newContainmentOptional, newContainmentOptional)); - } - - /** - * - * @generated - */ - public EList getContainmentList() - { - if (containmentList == null) - { - containmentList = new EObjectContainmentEList.Resolving(BaseObject.class, this, - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST); - } - return containmentList; - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: - return basicSetContainmentOptional(null, msgs); - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: - return ((InternalEList)getContainmentList()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: - if (resolve) - return getContainmentOptional(); - return basicGetContainmentOptional(); - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: - return getContainmentList(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: - setContainmentOptional((BaseObject)newValue); - return; - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: - getContainmentList().clear(); - getContainmentList().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: - setContainmentOptional((BaseObject)null); - return; - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: - getContainmentList().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: - return containmentOptional != null; - case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: - return containmentList != null && !containmentList.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // ContainmentObjectImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/DImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/DImpl.java deleted file mode 100644 index 541f6a8af0..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/DImpl.java +++ /dev/null @@ -1,193 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.D; - -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.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 'D'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.DImpl#getData Data}
  • - *
- *

- * - * @generated - */ -public class DImpl extends EObjectImpl implements D -{ - /** - * The cached value of the '{@link #getData() Data}' containment reference. - * - * @see #getData() - * @generated - * @ordered - */ - protected EObject data; - - /** - * - * @generated - */ - protected DImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getD(); - } - - /** - * - * @generated - */ - public EObject getData() - { - return data; - } - - /** - * - * @generated - */ - public NotificationChain basicSetData(EObject newData, NotificationChain msgs) - { - EObject oldData = data; - data = newData; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Model6Package.D__DATA, oldData, - newData); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * @generated - */ - public void setData(EObject newData) - { - if (newData != data) - { - NotificationChain msgs = null; - if (data != null) - msgs = ((InternalEObject)data).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Model6Package.D__DATA, null, msgs); - if (newData != null) - msgs = ((InternalEObject)newData).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Model6Package.D__DATA, null, msgs); - msgs = basicSetData(newData, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.D__DATA, newData, newData)); - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.D__DATA: - return basicSetData(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.D__DATA: - return getData(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.D__DATA: - setData((EObject)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.D__DATA: - setData((EObject)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.D__DATA: - return data != null; - } - return super.eIsSet(featureID); - } - -} // DImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/EImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/EImpl.java deleted file mode 100644 index bf0a26d8bc..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/EImpl.java +++ /dev/null @@ -1,161 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.A; -import org.eclipse.emf.cdo.tests.model6.E; - -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.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object 'E'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.EImpl#getOwnedAs Owned As}
  • - *
- *

- * - * @generated - */ -public class EImpl extends EObjectImpl implements E -{ - /** - * The cached value of the '{@link #getOwnedAs() Owned As}' containment reference list. - * - * @see #getOwnedAs() - * @generated - * @ordered - */ - protected EList
ownedAs; - - /** - * - * @generated - */ - protected EImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getE(); - } - - /** - * - * @generated - */ - public EList getOwnedAs() - { - if (ownedAs == null) - { - ownedAs = new EObjectContainmentEList.Resolving(A.class, this, Model6Package.E__OWNED_AS); - } - return ownedAs; - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.E__OWNED_AS: - return ((InternalEList)getOwnedAs()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.E__OWNED_AS: - return getOwnedAs(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.E__OWNED_AS: - getOwnedAs().clear(); - getOwnedAs().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.E__OWNED_AS: - getOwnedAs().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.E__OWNED_AS: - return ownedAs != null && !ownedAs.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // EImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/FImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/FImpl.java deleted file mode 100644 index 7cdbe34eba..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/FImpl.java +++ /dev/null @@ -1,161 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.E; -import org.eclipse.emf.cdo.tests.model6.F; - -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.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object 'F'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.FImpl#getOwnedEs Owned Es}
  • - *
- *

- * - * @generated - */ -public class FImpl extends EObjectImpl implements F -{ - /** - * The cached value of the '{@link #getOwnedEs() Owned Es}' containment reference list. - * - * @see #getOwnedEs() - * @generated - * @ordered - */ - protected EList ownedEs; - - /** - * - * @generated - */ - protected FImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getF(); - } - - /** - * - * @generated - */ - public EList getOwnedEs() - { - if (ownedEs == null) - { - ownedEs = new EObjectContainmentEList.Resolving(E.class, this, Model6Package.F__OWNED_ES); - } - return ownedEs; - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.F__OWNED_ES: - return ((InternalEList)getOwnedEs()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.F__OWNED_ES: - return getOwnedEs(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.F__OWNED_ES: - getOwnedEs().clear(); - getOwnedEs().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.F__OWNED_ES: - getOwnedEs().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.F__OWNED_ES: - return ownedEs != null && !ownedEs.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // FImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/GImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/GImpl.java deleted file mode 100644 index 1faf21d1e3..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/GImpl.java +++ /dev/null @@ -1,386 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.BaseObject; -import org.eclipse.emf.cdo.tests.model6.G; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.impl.AdapterImpl; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -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.EObjectResolvingEList; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -/** - * - * An implementation of the model object 'G'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.GImpl#getDummy Dummy}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.GImpl#getReference Reference}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.GImpl#getList List}
  • - *
- *

- * - * @generated - */ -public class GImpl extends EObjectImpl implements G -{ - /** - * The default value of the '{@link #getDummy() Dummy}' attribute. - * - * - * @see #getDummy() - * @generated - * @ordered - */ - protected static final String DUMMY_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDummy() Dummy}' attribute. - * - * - * @see #getDummy() - * @generated - * @ordered - */ - protected String dummy = DUMMY_EDEFAULT; - - /** - * The cached value of the '{@link #getReference() Reference}' reference. - * - * - * @see #getReference() - * @generated - * @ordered - */ - protected BaseObject reference; - - /** - * The cached value of the '{@link #getList() List}' reference list. - * - * - * @see #getList() - * @generated - * @ordered - */ - protected EList list; - - /** - * @ADDED - */ - private List notifications = new ArrayList(); - - /** - * @ADDED - */ - private boolean listModified = false; - - /** - * @ADDED - */ - private boolean referenceModified = false; - - /** - * @ADDED - */ - private boolean attributeModified = false; - - /** - * @ADDED - */ - { - eAdapters().add(new AdapterImpl() - { - @Override - public void notifyChanged(Notification msg) - { - notifications.add(msg); - - EStructuralFeature feature = (EStructuralFeature)msg.getFeature(); - if (feature != null) - { - if (feature.equals("dummy")) - { - attributeModified = true; - } - else if (feature.equals("reference")) - { - referenceModified = true; - } - else if (feature.equals("list")) - { - listModified = true; - } - } - } - }); - } - - /** - * - * - * @generated - */ - protected GImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getG(); - } - - /** - * - * - * @generated - */ - public String getDummy() - { - return dummy; - } - - /** - * - * - * @generated - */ - public void setDummy(String newDummy) - { - String oldDummy = dummy; - dummy = newDummy; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.G__DUMMY, oldDummy, dummy)); - } - - /** - * - * - * @generated - */ - public BaseObject getReference() - { - if (reference != null && reference.eIsProxy()) - { - InternalEObject oldReference = (InternalEObject)reference; - reference = (BaseObject)eResolveProxy(oldReference); - if (reference != oldReference) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.G__REFERENCE, oldReference, reference)); - } - } - return reference; - } - - /** - * - * - * @generated - */ - public BaseObject basicGetReference() - { - return reference; - } - - /** - * - * - * @generated - */ - public void setReference(BaseObject newReference) - { - BaseObject oldReference = reference; - reference = newReference; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.G__REFERENCE, oldReference, reference)); - } - - /** - * - * - * @generated - */ - public EList getList() - { - if (list == null) - { - list = new EObjectResolvingEList(BaseObject.class, this, Model6Package.G__LIST); - } - return list; - } - - /** - * @ADDED - */ - public List getNotifications() - { - return notifications; - } - - /** - * - * - * @generated NOT - */ - public boolean isAttributeModified() - { - return attributeModified; - } - - /** - * - * - * @generated NOT - */ - public boolean isReferenceModified() - { - return referenceModified; - } - - /** - * - * - * @generated NOT - */ - public boolean isListModified() - { - return listModified; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.G__DUMMY: - return getDummy(); - case Model6Package.G__REFERENCE: - if (resolve) - return getReference(); - return basicGetReference(); - case Model6Package.G__LIST: - return getList(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.G__DUMMY: - setDummy((String)newValue); - return; - case Model6Package.G__REFERENCE: - setReference((BaseObject)newValue); - return; - case Model6Package.G__LIST: - getList().clear(); - getList().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.G__DUMMY: - setDummy(DUMMY_EDEFAULT); - return; - case Model6Package.G__REFERENCE: - setReference((BaseObject)null); - return; - case Model6Package.G__LIST: - getList().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.G__DUMMY: - return DUMMY_EDEFAULT == null ? dummy != null : !DUMMY_EDEFAULT.equals(dummy); - case Model6Package.G__REFERENCE: - return reference != null; - case Model6Package.G__LIST: - return list != null && !list.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (dummy: "); - result.append(dummy); - result.append(')'); - return result.toString(); - } - -} // GImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HasNillableAttributeImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HasNillableAttributeImpl.java deleted file mode 100644 index 4d73ddc7e4..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HasNillableAttributeImpl.java +++ /dev/null @@ -1,217 +0,0 @@ -/** - */ -package org.eclipse.emf.cdo.tests.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.HasNillableAttribute; - -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; - -/** - * - * An implementation of the model object 'Has Nillable Attribute'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.HasNillableAttributeImpl#getNillable Nillable}
  • - *
- *

- * - * @generated - */ -public class HasNillableAttributeImpl extends EObjectImpl implements HasNillableAttribute -{ - /** - * The default value of the '{@link #getNillable() Nillable}' attribute. - * - * - * @see #getNillable() - * @generated - * @ordered - */ - protected static final String NILLABLE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getNillable() Nillable}' attribute. - * - * - * @see #getNillable() - * @generated - * @ordered - */ - protected String nillable = NILLABLE_EDEFAULT; - - /** - * This is true if the Nillable attribute has been set. - * - * - * @generated - * @ordered - */ - protected boolean nillableESet; - - /** - * - * - * @generated - */ - protected HasNillableAttributeImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getHasNillableAttribute(); - } - - /** - * - * - * @generated - */ - public String getNillable() - { - return nillable; - } - - /** - * - * - * @generated - */ - public void setNillable(String newNillable) - { - String oldNillable = nillable; - nillable = newNillable; - boolean oldNillableESet = nillableESet; - nillableESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE, - oldNillable, nillable, !oldNillableESet)); - } - - /** - * - * - * @generated - */ - public void unsetNillable() - { - String oldNillable = nillable; - boolean oldNillableESet = nillableESet; - nillable = NILLABLE_EDEFAULT; - nillableESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE, - oldNillable, NILLABLE_EDEFAULT, oldNillableESet)); - } - - /** - * - * - * @generated - */ - public boolean isSetNillable() - { - return nillableESet; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE: - return getNillable(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE: - setNillable((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE: - unsetNillable(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE: - return isSetNillable(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (nillable: "); - if (nillableESet) - result.append(nillable); - else - result.append(""); - result.append(')'); - return result.toString(); - } - -} //HasNillableAttributeImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HoldableImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HoldableImpl.java deleted file mode 100644 index 484e200d19..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HoldableImpl.java +++ /dev/null @@ -1,176 +0,0 @@ -/** - */ -package org.eclipse.emf.cdo.tests.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.Holdable; - -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; - -/** - * - * An implementation of the model object 'Holdable'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.HoldableImpl#getName Name}
  • - *
- *

- * - * @generated - */ -public abstract class HoldableImpl extends EObjectImpl implements Holdable -{ - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * - * - * @generated - */ - protected HoldableImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getHoldable(); - } - - /** - * - * - * @generated - */ - public String getName() - { - return name; - } - - /** - * - * - * @generated - */ - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.HOLDABLE__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.HOLDABLE__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.HOLDABLE__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.HOLDABLE__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.HOLDABLE__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} // HoldableImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HolderImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HolderImpl.java deleted file mode 100644 index c0723489db..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HolderImpl.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - */ -package org.eclipse.emf.cdo.tests.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.Holdable; -import org.eclipse.emf.cdo.tests.model6.Holder; - -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.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * - * An implementation of the model object 'Holder'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.HolderImpl#getHeld Held}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.HolderImpl#getOwned Owned}
  • - *
- *

- * - * @generated - */ -public class HolderImpl extends HoldableImpl implements Holder -{ - /** - * The cached value of the '{@link #getHeld() Held}' reference list. - * - * - * @see #getHeld() - * @generated - * @ordered - */ - protected EList held; - - /** - * The cached value of the '{@link #getOwned() Owned}' containment reference list. - * - * - * @see #getOwned() - * @generated - * @ordered - */ - protected EList owned; - - /** - * - * - * @generated - */ - protected HolderImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getHolder(); - } - - /** - * - * - * @generated - */ - public EList getHeld() - { - if (held == null) - { - held = new EObjectResolvingEList(Holdable.class, this, Model6Package.HOLDER__HELD); - } - return held; - } - - /** - * - * - * @generated - */ - public EList getOwned() - { - if (owned == null) - { - owned = new EObjectContainmentEList.Resolving(Holdable.class, this, Model6Package.HOLDER__OWNED); - } - return owned; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.HOLDER__OWNED: - return ((InternalEList)getOwned()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.HOLDER__HELD: - return getHeld(); - case Model6Package.HOLDER__OWNED: - return getOwned(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.HOLDER__HELD: - getHeld().clear(); - getHeld().addAll((Collection)newValue); - return; - case Model6Package.HOLDER__OWNED: - getOwned().clear(); - getOwned().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.HOLDER__HELD: - getHeld().clear(); - return; - case Model6Package.HOLDER__OWNED: - getOwned().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.HOLDER__HELD: - return held != null && !held.isEmpty(); - case Model6Package.HOLDER__OWNED: - return owned != null && !owned.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // HolderImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6FactoryImpl.java deleted file mode 100644 index cc398fd88c..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6FactoryImpl.java +++ /dev/null @@ -1,451 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Factory; -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.A; -import org.eclipse.emf.cdo.tests.model6.B; -import org.eclipse.emf.cdo.tests.model6.BaseObject; -import org.eclipse.emf.cdo.tests.model6.C; -import org.eclipse.emf.cdo.tests.model6.ContainmentObject; -import org.eclipse.emf.cdo.tests.model6.D; -import org.eclipse.emf.cdo.tests.model6.E; -import org.eclipse.emf.cdo.tests.model6.F; -import org.eclipse.emf.cdo.tests.model6.G; -import org.eclipse.emf.cdo.tests.model6.HasNillableAttribute; -import org.eclipse.emf.cdo.tests.model6.Holder; -import org.eclipse.emf.cdo.tests.model6.MyEnum; -import org.eclipse.emf.cdo.tests.model6.MyEnumList; -import org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable; -import org.eclipse.emf.cdo.tests.model6.PropertiesMap; -import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; -import org.eclipse.emf.cdo.tests.model6.ReferenceObject; -import org.eclipse.emf.cdo.tests.model6.Root; -import org.eclipse.emf.cdo.tests.model6.Thing; -import org.eclipse.emf.cdo.tests.model6.UnorderedList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -import java.util.Map; - -/** - * An implementation of the model Factory. - * @generated - */ -public class Model6FactoryImpl extends EFactoryImpl implements Model6Factory -{ - /** - * Creates the default factory implementation. - * - * @generated NOT - */ - public static Model6Factory init() - { - try - { - Model6Factory theModel6Factory = (Model6Factory)EPackage.Registry.INSTANCE - .getEFactory("http://www.eclipse.org/emf/CDO/tests/legacy/model6/1.0.0"); - if (theModel6Factory != null) - { - return theModel6Factory; - } - } - catch (Exception exception) - { - EcorePlugin.INSTANCE.log(exception); - } - return new Model6FactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * @generated - */ - public Model6FactoryImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - public EObject create(EClass eClass) - { - switch (eClass.getClassifierID()) - { - case Model6Package.ROOT: - return createRoot(); - case Model6Package.BASE_OBJECT: - return createBaseObject(); - case Model6Package.REFERENCE_OBJECT: - return createReferenceObject(); - case Model6Package.CONTAINMENT_OBJECT: - return createContainmentObject(); - case Model6Package.UNORDERED_LIST: - return createUnorderedList(); - case Model6Package.PROPERTIES_MAP: - return createPropertiesMap(); - case Model6Package.PROPERTIES_MAP_ENTRY: - return (EObject)createPropertiesMapEntry(); - case Model6Package.PROPERTIES_MAP_ENTRY_VALUE: - return createPropertiesMapEntryValue(); - case Model6Package.A: - return createA(); - case Model6Package.B: - return createB(); - case Model6Package.C: - return createC(); - case Model6Package.D: - return createD(); - case Model6Package.E: - return createE(); - case Model6Package.F: - return createF(); - case Model6Package.G: - return createG(); - case Model6Package.MY_ENUM_LIST: - return createMyEnumList(); - case Model6Package.MY_ENUM_LIST_UNSETTABLE: - return createMyEnumListUnsettable(); - case Model6Package.HOLDER: - return createHolder(); - case Model6Package.THING: - return createThing(); - case Model6Package.HAS_NILLABLE_ATTRIBUTE: - return createHasNillableAttribute(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public Object createFromString(EDataType eDataType, String initialValue) - { - switch (eDataType.getClassifierID()) - { - case Model6Package.MY_ENUM: - return createMyEnumFromString(eDataType, initialValue); - case Model6Package.MY_STRING: - return createMyStringFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public String convertToString(EDataType eDataType, Object instanceValue) - { - switch (eDataType.getClassifierID()) - { - case Model6Package.MY_ENUM: - return convertMyEnumToString(eDataType, instanceValue); - case Model6Package.MY_STRING: - return convertMyStringToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * @generated - */ - public Root createRoot() - { - RootImpl root = new RootImpl(); - return root; - } - - /** - * - * @generated - */ - public BaseObject createBaseObject() - { - BaseObjectImpl baseObject = new BaseObjectImpl(); - return baseObject; - } - - /** - * - * @generated - */ - public ReferenceObject createReferenceObject() - { - ReferenceObjectImpl referenceObject = new ReferenceObjectImpl(); - return referenceObject; - } - - /** - * - * @generated - */ - public ContainmentObject createContainmentObject() - { - ContainmentObjectImpl containmentObject = new ContainmentObjectImpl(); - return containmentObject; - } - - /** - * - * @generated - */ - public UnorderedList createUnorderedList() - { - UnorderedListImpl unorderedList = new UnorderedListImpl(); - return unorderedList; - } - - /** - * - * - * @generated - */ - public PropertiesMap createPropertiesMap() - { - PropertiesMapImpl propertiesMap = new PropertiesMapImpl(); - return propertiesMap; - } - - /** - * - * - * @generated - */ - public Map.Entry createPropertiesMapEntry() - { - PropertiesMapEntryImpl propertiesMapEntry = new PropertiesMapEntryImpl(); - return propertiesMapEntry; - } - - /** - * - * - * @generated - */ - public PropertiesMapEntryValue createPropertiesMapEntryValue() - { - PropertiesMapEntryValueImpl propertiesMapEntryValue = new PropertiesMapEntryValueImpl(); - return propertiesMapEntryValue; - } - - /** - * - * @generated - */ - public A createA() - { - AImpl a = new AImpl(); - return a; - } - - /** - * - * @generated - */ - public B createB() - { - BImpl b = new BImpl(); - return b; - } - - /** - * - * @generated - */ - public C createC() - { - CImpl c = new CImpl(); - return c; - } - - /** - * - * @generated - */ - public D createD() - { - DImpl d = new DImpl(); - return d; - } - - /** - * - * @generated - */ - public E createE() - { - EImpl e = new EImpl(); - return e; - } - - /** - * - * @generated - */ - public F createF() - { - FImpl f = new FImpl(); - return f; - } - - /** - * - * - * @generated - */ - public G createG() - { - GImpl g = new GImpl(); - return g; - } - - /** - * - * - * @generated - */ - public MyEnumList createMyEnumList() - { - MyEnumListImpl myEnumList = new MyEnumListImpl(); - return myEnumList; - } - - /** - * - * - * @generated - */ - public MyEnumListUnsettable createMyEnumListUnsettable() - { - MyEnumListUnsettableImpl myEnumListUnsettable = new MyEnumListUnsettableImpl(); - return myEnumListUnsettable; - } - - /** - * - * - * @generated - */ - public Holder createHolder() - { - HolderImpl holder = new HolderImpl(); - return holder; - } - - /** - * - * - * @generated - */ - public Thing createThing() - { - ThingImpl thing = new ThingImpl(); - return thing; - } - - /** - * - * - * @generated - */ - public HasNillableAttribute createHasNillableAttribute() - { - HasNillableAttributeImpl hasNillableAttribute = new HasNillableAttributeImpl(); - return hasNillableAttribute; - } - - /** - * - * - * @generated - */ - public MyEnum createMyEnumFromString(EDataType eDataType, String initialValue) - { - MyEnum result = MyEnum.get(initialValue); - if (result == null) - { - throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" - + eDataType.getName() + "'"); - } - return result; - } - - /** - * - * - * @generated - */ - public String convertMyEnumToString(EDataType eDataType, Object instanceValue) - { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - public String createMyStringFromString(EDataType eDataType, String initialValue) - { - return (String)super.createFromString(eDataType, initialValue); - } - - /** - * - * - * @generated - */ - public String convertMyStringToString(EDataType eDataType, Object instanceValue) - { - return super.convertToString(eDataType, instanceValue); - } - - /** - * - * @generated - */ - public Model6Package getModel6Package() - { - return (Model6Package)getEPackage(); - } - - /** - * - * @deprecated - * @generated - */ - @Deprecated - public static Model6Package getPackage() - { - return Model6Package.eINSTANCE; - } - -} // Model6FactoryImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6PackageImpl.java deleted file mode 100644 index d27b352bb5..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6PackageImpl.java +++ /dev/null @@ -1,1133 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Factory; -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.A; -import org.eclipse.emf.cdo.tests.model6.B; -import org.eclipse.emf.cdo.tests.model6.BaseObject; -import org.eclipse.emf.cdo.tests.model6.C; -import org.eclipse.emf.cdo.tests.model6.ContainmentObject; -import org.eclipse.emf.cdo.tests.model6.D; -import org.eclipse.emf.cdo.tests.model6.E; -import org.eclipse.emf.cdo.tests.model6.F; -import org.eclipse.emf.cdo.tests.model6.G; -import org.eclipse.emf.cdo.tests.model6.HasNillableAttribute; -import org.eclipse.emf.cdo.tests.model6.Holdable; -import org.eclipse.emf.cdo.tests.model6.Holder; -import org.eclipse.emf.cdo.tests.model6.MyEnum; -import org.eclipse.emf.cdo.tests.model6.MyEnumList; -import org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable; -import org.eclipse.emf.cdo.tests.model6.PropertiesMap; -import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; -import org.eclipse.emf.cdo.tests.model6.ReferenceObject; -import org.eclipse.emf.cdo.tests.model6.Root; -import org.eclipse.emf.cdo.tests.model6.Thing; -import org.eclipse.emf.cdo.tests.model6.UnorderedList; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EEnum; -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 Model6PackageImpl extends EPackageImpl implements Model6Package -{ - /** - * - * @generated - */ - private EClass rootEClass = null; - - /** - * - * @generated - */ - private EClass baseObjectEClass = null; - - /** - * - * @generated - */ - private EClass referenceObjectEClass = null; - - /** - * - * @generated - */ - private EClass containmentObjectEClass = null; - - /** - * - * @generated - */ - private EClass unorderedListEClass = null; - - /** - * - * - * @generated - */ - private EClass propertiesMapEClass = null; - - /** - * - * - * @generated - */ - private EClass propertiesMapEntryEClass = null; - - /** - * - * - * @generated - */ - private EClass propertiesMapEntryValueEClass = null; - - /** - * - * @generated - */ - private EClass aEClass = null; - - /** - * - * @generated - */ - private EClass bEClass = null; - - /** - * - * @generated - */ - private EClass cEClass = null; - - /** - * - * @generated - */ - private EClass dEClass = null; - - /** - * - * @generated - */ - private EClass eEClass = null; - - /** - * - * @generated - */ - private EClass fEClass = null; - - /** - * - * - * @generated - */ - private EClass gEClass = null; - - /** - * - * - * @generated - */ - private EClass myEnumListEClass = null; - - /** - * - * - * @generated - */ - private EClass myEnumListUnsettableEClass = null; - - /** - * - * - * @generated - */ - private EClass holderEClass = null; - - /** - * - * - * @generated - */ - private EClass thingEClass = null; - - /** - * - * - * @generated - */ - private EClass holdableEClass = null; - - /** - * - * - * @generated - */ - private EClass hasNillableAttributeEClass = null; - - /** - * - * - * @generated - */ - private EEnum myEnumEEnum = null; - - /** - * - * - * @generated - */ - private EDataType myStringEDataType = 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.model6.Model6Package#eNS_URI - * @see #init() - * @generated - */ - private Model6PackageImpl() - { - super(eNS_URI, Model6Factory.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 Model6Package#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 Model6Package init() - { - if (isInited) - { - return (Model6Package)EPackage.Registry.INSTANCE.getEPackage(Model6Package.eNS_URI); - } - - // Obtain or create and register package - Model6PackageImpl theModel6Package = (Model6PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Model6PackageImpl ? EPackage.Registry.INSTANCE - .get(eNS_URI) : new Model6PackageImpl()); - - isInited = true; - - // Create package meta-data objects - theModel6Package.createPackageContents(); - - // Initialize created meta-data - theModel6Package.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theModel6Package.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(Model6Package.eNS_URI, theModel6Package); - return theModel6Package; - } - - /** - * - * @generated - */ - public EClass getRoot() - { - return rootEClass; - } - - /** - * - * @generated - */ - public EReference getRoot_ListA() - { - return (EReference)rootEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getRoot_ListB() - { - return (EReference)rootEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EReference getRoot_ListC() - { - return (EReference)rootEClass.getEStructuralFeatures().get(2); - } - - /** - * - * @generated - */ - public EReference getRoot_ListD() - { - return (EReference)rootEClass.getEStructuralFeatures().get(3); - } - - /** - * - * @generated - */ - public EClass getBaseObject() - { - return baseObjectEClass; - } - - /** - * - * @generated - */ - public EAttribute getBaseObject_AttributeOptional() - { - return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EAttribute getBaseObject_AttributeRequired() - { - return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EAttribute getBaseObject_AttributeList() - { - return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(2); - } - - /** - * - * @generated - */ - public EClass getReferenceObject() - { - return referenceObjectEClass; - } - - /** - * - * @generated - */ - public EReference getReferenceObject_ReferenceOptional() - { - return (EReference)referenceObjectEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getReferenceObject_ReferenceList() - { - return (EReference)referenceObjectEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EClass getContainmentObject() - { - return containmentObjectEClass; - } - - /** - * - * @generated - */ - public EReference getContainmentObject_ContainmentOptional() - { - return (EReference)containmentObjectEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getContainmentObject_ContainmentList() - { - return (EReference)containmentObjectEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EClass getUnorderedList() - { - return unorderedListEClass; - } - - /** - * - * @generated - */ - public EReference getUnorderedList_Contained() - { - return (EReference)unorderedListEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getUnorderedList_Referenced() - { - return (EReference)unorderedListEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getPropertiesMap() - { - return propertiesMapEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getPropertiesMap_Label() - { - return (EAttribute)propertiesMapEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getPropertiesMap_PersistentMap() - { - return (EReference)propertiesMapEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getPropertiesMap_TransientMap() - { - return (EReference)propertiesMapEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getPropertiesMapEntry() - { - return propertiesMapEntryEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getPropertiesMapEntry_Key() - { - return (EAttribute)propertiesMapEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getPropertiesMapEntry_Value() - { - return (EReference)propertiesMapEntryEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getPropertiesMapEntryValue() - { - return propertiesMapEntryValueEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getPropertiesMapEntryValue_Label() - { - return (EAttribute)propertiesMapEntryValueEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getA() - { - return aEClass; - } - - /** - * - * @generated - */ - public EReference getA_OwnedDs() - { - return (EReference)aEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getA_OwnedBs() - { - return (EReference)aEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EClass getB() - { - return bEClass; - } - - /** - * - * @generated - */ - public EReference getB_OwnedC() - { - return (EReference)bEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getC() - { - return cEClass; - } - - /** - * - * @generated - */ - public EClass getD() - { - return dEClass; - } - - /** - * - * @generated - */ - public EReference getD_Data() - { - return (EReference)dEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getE() - { - return eEClass; - } - - /** - * - * @generated - */ - public EReference getE_OwnedAs() - { - return (EReference)eEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getF() - { - return fEClass; - } - - /** - * - * @generated - */ - public EReference getF_OwnedEs() - { - return (EReference)fEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getG() - { - return gEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getG_Dummy() - { - return (EAttribute)gEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getG_Reference() - { - return (EReference)gEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getG_List() - { - return (EReference)gEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getMyEnumList() - { - return myEnumListEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getMyEnumList_MyEnum() - { - return (EAttribute)myEnumListEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getMyEnumListUnsettable() - { - return myEnumListUnsettableEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getMyEnumListUnsettable_MyEnum() - { - return (EAttribute)myEnumListUnsettableEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getHolder() - { - return holderEClass; - } - - /** - * - * - * @generated - */ - public EReference getHolder_Held() - { - return (EReference)holderEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getHolder_Owned() - { - return (EReference)holderEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getThing() - { - return thingEClass; - } - - /** - * - * - * @generated - */ - public EClass getHoldable() - { - return holdableEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getHoldable_Name() - { - return (EAttribute)holdableEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getHasNillableAttribute() - { - return hasNillableAttributeEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getHasNillableAttribute_Nillable() - { - return (EAttribute)hasNillableAttributeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EEnum getMyEnum() - { - return myEnumEEnum; - } - - /** - * - * - * @generated - */ - public EDataType getMyString() - { - return myStringEDataType; - } - - /** - * - * @generated - */ - public Model6Factory getModel6Factory() - { - return (Model6Factory)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 - rootEClass = createEClass(ROOT); - createEReference(rootEClass, ROOT__LIST_A); - createEReference(rootEClass, ROOT__LIST_B); - createEReference(rootEClass, ROOT__LIST_C); - createEReference(rootEClass, ROOT__LIST_D); - - baseObjectEClass = createEClass(BASE_OBJECT); - createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_OPTIONAL); - createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_REQUIRED); - createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_LIST); - - referenceObjectEClass = createEClass(REFERENCE_OBJECT); - createEReference(referenceObjectEClass, REFERENCE_OBJECT__REFERENCE_OPTIONAL); - createEReference(referenceObjectEClass, REFERENCE_OBJECT__REFERENCE_LIST); - - containmentObjectEClass = createEClass(CONTAINMENT_OBJECT); - createEReference(containmentObjectEClass, CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL); - createEReference(containmentObjectEClass, CONTAINMENT_OBJECT__CONTAINMENT_LIST); - - unorderedListEClass = createEClass(UNORDERED_LIST); - createEReference(unorderedListEClass, UNORDERED_LIST__CONTAINED); - createEReference(unorderedListEClass, UNORDERED_LIST__REFERENCED); - - propertiesMapEClass = createEClass(PROPERTIES_MAP); - createEAttribute(propertiesMapEClass, PROPERTIES_MAP__LABEL); - createEReference(propertiesMapEClass, PROPERTIES_MAP__PERSISTENT_MAP); - createEReference(propertiesMapEClass, PROPERTIES_MAP__TRANSIENT_MAP); - - propertiesMapEntryEClass = createEClass(PROPERTIES_MAP_ENTRY); - createEAttribute(propertiesMapEntryEClass, PROPERTIES_MAP_ENTRY__KEY); - createEReference(propertiesMapEntryEClass, PROPERTIES_MAP_ENTRY__VALUE); - - propertiesMapEntryValueEClass = createEClass(PROPERTIES_MAP_ENTRY_VALUE); - createEAttribute(propertiesMapEntryValueEClass, PROPERTIES_MAP_ENTRY_VALUE__LABEL); - - aEClass = createEClass(A); - createEReference(aEClass, A__OWNED_DS); - createEReference(aEClass, A__OWNED_BS); - - bEClass = createEClass(B); - createEReference(bEClass, B__OWNED_C); - - cEClass = createEClass(C); - - dEClass = createEClass(D); - createEReference(dEClass, D__DATA); - - eEClass = createEClass(E); - createEReference(eEClass, E__OWNED_AS); - - fEClass = createEClass(F); - createEReference(fEClass, F__OWNED_ES); - - gEClass = createEClass(G); - createEAttribute(gEClass, G__DUMMY); - createEReference(gEClass, G__REFERENCE); - createEReference(gEClass, G__LIST); - - myEnumListEClass = createEClass(MY_ENUM_LIST); - createEAttribute(myEnumListEClass, MY_ENUM_LIST__MY_ENUM); - - myEnumListUnsettableEClass = createEClass(MY_ENUM_LIST_UNSETTABLE); - createEAttribute(myEnumListUnsettableEClass, MY_ENUM_LIST_UNSETTABLE__MY_ENUM); - - holderEClass = createEClass(HOLDER); - createEReference(holderEClass, HOLDER__HELD); - createEReference(holderEClass, HOLDER__OWNED); - - thingEClass = createEClass(THING); - - holdableEClass = createEClass(HOLDABLE); - createEAttribute(holdableEClass, HOLDABLE__NAME); - - hasNillableAttributeEClass = createEClass(HAS_NILLABLE_ATTRIBUTE); - createEAttribute(hasNillableAttributeEClass, HAS_NILLABLE_ATTRIBUTE__NILLABLE); - - // Create enums - myEnumEEnum = createEEnum(MY_ENUM); - - // Create data types - myStringEDataType = createEDataType(MY_STRING); - } - - /** - * - * @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); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - referenceObjectEClass.getESuperTypes().add(getBaseObject()); - containmentObjectEClass.getESuperTypes().add(getBaseObject()); - holderEClass.getESuperTypes().add(getHoldable()); - thingEClass.getESuperTypes().add(getHoldable()); - - // Initialize classes and features; add operations and parameters - initEClass(rootEClass, Root.class, "Root", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRoot_ListA(), getBaseObject(), null, "listA", null, 0, -1, Root.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getRoot_ListB(), getBaseObject(), null, "listB", null, 0, -1, Root.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getRoot_ListC(), getBaseObject(), null, "listC", null, 0, -1, Root.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getRoot_ListD(), getBaseObject(), null, "listD", null, 0, -1, Root.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(baseObjectEClass, BaseObject.class, "BaseObject", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getBaseObject_AttributeOptional(), ecorePackage.getEString(), "attributeOptional", null, 0, 1, - BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getBaseObject_AttributeRequired(), ecorePackage.getEString(), "attributeRequired", null, 1, 1, - BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getBaseObject_AttributeList(), ecorePackage.getEString(), "attributeList", null, 0, -1, - BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(referenceObjectEClass, ReferenceObject.class, "ReferenceObject", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getReferenceObject_ReferenceOptional(), getBaseObject(), null, "referenceOptional", null, 0, 1, - ReferenceObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getReferenceObject_ReferenceList(), getBaseObject(), null, "referenceList", null, 0, -1, - ReferenceObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(containmentObjectEClass, ContainmentObject.class, "ContainmentObject", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getContainmentObject_ContainmentOptional(), getBaseObject(), null, "containmentOptional", null, 0, - 1, ContainmentObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getContainmentObject_ContainmentList(), getBaseObject(), null, "containmentList", null, 0, -1, - ContainmentObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(unorderedListEClass, UnorderedList.class, "UnorderedList", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getUnorderedList_Contained(), getUnorderedList(), null, "contained", null, 0, -1, - UnorderedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEReference(getUnorderedList_Referenced(), getUnorderedList(), null, "referenced", null, 0, -1, - UnorderedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - initEClass(propertiesMapEClass, PropertiesMap.class, "PropertiesMap", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPropertiesMap_Label(), ecorePackage.getEString(), "label", null, 0, 1, PropertiesMap.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPropertiesMap_PersistentMap(), getPropertiesMapEntry(), null, "persistentMap", null, 0, -1, - PropertiesMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPropertiesMap_TransientMap(), getPropertiesMapEntry(), null, "transientMap", null, 0, -1, - PropertiesMap.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(propertiesMapEntryEClass, Map.Entry.class, "PropertiesMapEntry", !IS_ABSTRACT, !IS_INTERFACE, - !IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPropertiesMapEntry_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(getPropertiesMapEntry_Value(), getPropertiesMapEntryValue(), 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(propertiesMapEntryValueEClass, PropertiesMapEntryValue.class, "PropertiesMapEntryValue", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPropertiesMapEntryValue_Label(), ecorePackage.getEString(), "label", null, 0, 1, - PropertiesMapEntryValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(aEClass, A.class, "A", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getA_OwnedDs(), getD(), null, "ownedDs", null, 0, -1, A.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getA_OwnedBs(), getB(), null, "ownedBs", null, 0, -1, A.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(bEClass, B.class, "B", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getB_OwnedC(), getC(), null, "ownedC", null, 0, 1, B.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(cEClass, C.class, "C", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(dEClass, D.class, "D", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getD_Data(), ecorePackage.getEObject(), null, "data", null, 0, 1, D.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(eEClass, E.class, "E", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getE_OwnedAs(), getA(), null, "ownedAs", null, 0, -1, E.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(fEClass, F.class, "F", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getF_OwnedEs(), getE(), null, "ownedEs", null, 0, -1, F.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(gEClass, G.class, "G", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getG_Dummy(), ecorePackage.getEString(), "dummy", null, 1, 1, G.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getG_Reference(), getBaseObject(), null, "reference", null, 1, 1, G.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getG_List(), getBaseObject(), null, "list", null, 0, -1, G.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - addEOperation(gEClass, ecorePackage.getEBoolean(), "isAttributeModified", 1, 1, IS_UNIQUE, IS_ORDERED); - - addEOperation(gEClass, ecorePackage.getEBoolean(), "isReferenceModified", 1, 1, IS_UNIQUE, IS_ORDERED); - - addEOperation(gEClass, ecorePackage.getEBoolean(), "isListModified", 1, 1, IS_UNIQUE, IS_ORDERED); - - initEClass(myEnumListEClass, MyEnumList.class, "MyEnumList", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMyEnumList_MyEnum(), getMyEnum(), "myEnum", null, 0, -1, MyEnumList.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(myEnumListUnsettableEClass, MyEnumListUnsettable.class, "MyEnumListUnsettable", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMyEnumListUnsettable_MyEnum(), getMyEnum(), "myEnum", null, 0, -1, MyEnumListUnsettable.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(holderEClass, Holder.class, "Holder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getHolder_Held(), getHoldable(), null, "held", null, 0, -1, Holder.class, IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, - IS_ORDERED); - initEReference(getHolder_Owned(), getHoldable(), null, "owned", null, 0, -1, Holder.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(thingEClass, Thing.class, "Thing", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(holdableEClass, Holdable.class, "Holdable", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getHoldable_Name(), ecorePackage.getEString(), "name", null, 1, 1, Holdable.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(hasNillableAttributeEClass, HasNillableAttribute.class, "HasNillableAttribute", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getHasNillableAttribute_Nillable(), getMyString(), "nillable", null, 0, 1, - HasNillableAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - // Initialize enums and add enum literals - initEEnum(myEnumEEnum, MyEnum.class, "MyEnum"); - addEEnumLiteral(myEnumEEnum, MyEnum.ZERO); - addEEnumLiteral(myEnumEEnum, MyEnum.ONE); - addEEnumLiteral(myEnumEEnum, MyEnum.TWO); - addEEnumLiteral(myEnumEEnum, MyEnum.THREE); - - // Initialize data types - initEDataType(myStringEDataType, String.class, "MyString", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); - - // Create resource - createResource(eNS_URI); - - // Create annotations - // http://www.eclipse.org/emf/CDO - createCDOAnnotations(); - } - - /** - * Initializes the annotations for http://www.eclipse.org/emf/CDO. - * - * - * @generated - */ - protected void createCDOAnnotations() - { - String source = "http://www.eclipse.org/emf/CDO"; - addAnnotation(getHolder_Held(), source, new String[] { "persistent", "true", "filter", "owned" }); - } - -} // Model6PackageImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListImpl.java deleted file mode 100644 index b618782c20..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListImpl.java +++ /dev/null @@ -1,170 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.MyEnum; -import org.eclipse.emf.cdo.tests.model6.MyEnumList; - -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 'My Enum List'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.MyEnumListImpl#getMyEnum My Enum}
  • - *
- *

- * - * @generated - */ -public class MyEnumListImpl extends EObjectImpl implements MyEnumList -{ - /** - * The cached value of the '{@link #getMyEnum() My Enum}' attribute list. - * - * - * @see #getMyEnum() - * @generated - * @ordered - */ - protected EList myEnum; - - /** - * - * - * @generated - */ - protected MyEnumListImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getMyEnumList(); - } - - /** - * - * - * @generated - */ - public EList getMyEnum() - { - if (myEnum == null) - { - myEnum = new EDataTypeUniqueEList(MyEnum.class, this, Model6Package.MY_ENUM_LIST__MY_ENUM); - } - return myEnum; - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.MY_ENUM_LIST__MY_ENUM: - return getMyEnum(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.MY_ENUM_LIST__MY_ENUM: - getMyEnum().clear(); - getMyEnum().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.MY_ENUM_LIST__MY_ENUM: - getMyEnum().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.MY_ENUM_LIST__MY_ENUM: - return myEnum != null && !myEnum.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (myEnum: "); - result.append(myEnum); - result.append(')'); - return result.toString(); - } - -} // MyEnumListImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListUnsettableImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListUnsettableImpl.java deleted file mode 100644 index bdf516cef1..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListUnsettableImpl.java +++ /dev/null @@ -1,193 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.MyEnum; -import org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable; - -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 org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * - * An implementation of the model object 'My Enum List Unsettable'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.MyEnumListUnsettableImpl#getMyEnum My Enum}
  • - *
- *

- * - * @generated - */ -public class MyEnumListUnsettableImpl extends EObjectImpl implements MyEnumListUnsettable -{ - /** - * The cached value of the '{@link #getMyEnum() My Enum}' attribute list. - * - * - * @see #getMyEnum() - * @generated - * @ordered - */ - protected EList myEnum; - - /** - * - * - * @generated - */ - protected MyEnumListUnsettableImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getMyEnumListUnsettable(); - } - - /** - * - * - * @generated - */ - public EList getMyEnum() - { - if (myEnum == null) - { - myEnum = new EDataTypeUniqueEList.Unsettable(MyEnum.class, this, - Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM); - } - return myEnum; - } - - /** - * - * - * @generated - */ - public void unsetMyEnum() - { - if (myEnum != null) - ((InternalEList.Unsettable)myEnum).unset(); - } - - /** - * - * - * @generated - */ - public boolean isSetMyEnum() - { - return myEnum != null && ((InternalEList.Unsettable)myEnum).isSet(); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM: - return getMyEnum(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM: - getMyEnum().clear(); - getMyEnum().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM: - unsetMyEnum(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM: - return isSetMyEnum(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (myEnum: "); - result.append(myEnum); - result.append(')'); - return result.toString(); - } - -} // MyEnumListUnsettableImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryImpl.java deleted file mode 100644 index 2f5d28965c..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryImpl.java +++ /dev/null @@ -1,401 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; - -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 'Properties Map Entry'. - * - *

- * The following features are implemented: - *

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

- * - * @generated - */ -public class PropertiesMapEntryImpl 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 PropertiesMapEntryValue value; - - /** - * - * - * @generated - */ - protected PropertiesMapEntryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getPropertiesMapEntry(); - } - - /** - * - * - * @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, Model6Package.PROPERTIES_MAP_ENTRY__KEY, oldKey, key)); - } - - /** - * - * - * @generated - */ - public PropertiesMapEntryValue getTypedValue() - { - if (value != null && value.eIsProxy()) - { - InternalEObject oldValue = (InternalEObject)value; - value = (PropertiesMapEntryValue)eResolveProxy(oldValue); - if (value != oldValue) - { - InternalEObject newValue = (InternalEObject)value; - NotificationChain msgs = oldValue.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, null, null); - if (newValue.eInternalContainer() == null) - { - msgs = newValue.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, null, - msgs); - } - if (msgs != null) - msgs.dispatch(); - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.PROPERTIES_MAP_ENTRY__VALUE, - oldValue, value)); - } - } - return value; - } - - /** - * - * - * @generated - */ - public PropertiesMapEntryValue basicGetTypedValue() - { - return value; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetTypedValue(PropertiesMapEntryValue newValue, NotificationChain msgs) - { - PropertiesMapEntryValue oldValue = value; - value = newValue; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, oldValue, newValue); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setTypedValue(PropertiesMapEntryValue newValue) - { - if (newValue != value) - { - NotificationChain msgs = null; - if (value != null) - msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, null, msgs); - if (newValue != null) - msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, null, msgs); - msgs = basicSetTypedValue(newValue, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.PROPERTIES_MAP_ENTRY__VALUE, newValue, - newValue)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP_ENTRY__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 Model6Package.PROPERTIES_MAP_ENTRY__KEY: - return getTypedKey(); - case Model6Package.PROPERTIES_MAP_ENTRY__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 Model6Package.PROPERTIES_MAP_ENTRY__KEY: - setTypedKey((String)newValue); - return; - case Model6Package.PROPERTIES_MAP_ENTRY__VALUE: - setTypedValue((PropertiesMapEntryValue)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP_ENTRY__KEY: - setTypedKey(KEY_EDEFAULT); - return; - case Model6Package.PROPERTIES_MAP_ENTRY__VALUE: - setTypedValue((PropertiesMapEntryValue)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP_ENTRY__KEY: - return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); - case Model6Package.PROPERTIES_MAP_ENTRY__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 PropertiesMapEntryValue getValue() - { - return getTypedValue(); - } - - /** - * - * - * @generated - */ - public PropertiesMapEntryValue setValue(PropertiesMapEntryValue value) - { - PropertiesMapEntryValue oldValue = getValue(); - setTypedValue(value); - return oldValue; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - public EMap getEMap() - { - EObject container = eContainer(); - return container == null ? null : (EMap)container.eGet(eContainmentFeature()); - } - -} // PropertiesMapEntryImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryValueImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryValueImpl.java deleted file mode 100644 index 6439e4f528..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryValueImpl.java +++ /dev/null @@ -1,185 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; - -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; - -/** - * - * An implementation of the model object 'Properties Map Entry Value'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.PropertiesMapEntryValueImpl#getLabel Label}
  • - *
- *

- * - * @generated - */ -public class PropertiesMapEntryValueImpl extends EObjectImpl implements PropertiesMapEntryValue -{ - /** - * The default value of the '{@link #getLabel() Label}' attribute. - * - * - * @see #getLabel() - * @generated - * @ordered - */ - protected static final String LABEL_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLabel() Label}' attribute. - * - * - * @see #getLabel() - * @generated - * @ordered - */ - protected String label = LABEL_EDEFAULT; - - /** - * - * - * @generated - */ - protected PropertiesMapEntryValueImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getPropertiesMapEntryValue(); - } - - /** - * - * - * @generated - */ - public String getLabel() - { - return label; - } - - /** - * - * - * @generated - */ - public void setLabel(String newLabel) - { - String oldLabel = label; - label = newLabel; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL, oldLabel, - label)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL: - return getLabel(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL: - setLabel((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL: - setLabel(LABEL_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL: - return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (label: "); - result.append(label); - result.append(')'); - return result.toString(); - } - -} // PropertiesMapEntryValueImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapImpl.java deleted file mode 100644 index 9487317421..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapImpl.java +++ /dev/null @@ -1,287 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.PropertiesMap; -import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; - -import org.eclipse.emf.common.notify.Notification; -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.EStructuralFeature; -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.EcoreEMap; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * - * An implementation of the model object 'Properties Map'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.PropertiesMapImpl#getLabel Label}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.PropertiesMapImpl#getPersistentMap Persistent Map}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.PropertiesMapImpl#getTransientMap Transient Map}
  • - *
- *

- * - * @generated - */ -public class PropertiesMapImpl extends EObjectImpl implements PropertiesMap -{ - /** - * The default value of the '{@link #getLabel() Label}' attribute. - * - * - * @see #getLabel() - * @generated - * @ordered - */ - protected static final String LABEL_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLabel() Label}' attribute. - * - * - * @see #getLabel() - * @generated - * @ordered - */ - protected String label = LABEL_EDEFAULT; - - /** - * The cached value of the '{@link #getPersistentMap() Persistent Map}' map. - * - * - * @see #getPersistentMap() - * @generated - * @ordered - */ - protected EMap persistentMap; - - /** - * The cached value of the '{@link #getTransientMap() Transient Map}' map. - * - * - * @see #getTransientMap() - * @generated - * @ordered - */ - protected EMap transientMap; - - /** - * - * - * @generated - */ - protected PropertiesMapImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getPropertiesMap(); - } - - /** - * - * - * @generated - */ - public String getLabel() - { - return label; - } - - /** - * - * - * @generated - */ - public void setLabel(String newLabel) - { - String oldLabel = label; - label = newLabel; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.PROPERTIES_MAP__LABEL, oldLabel, label)); - } - - /** - * - * - * @generated - */ - public EMap getPersistentMap() - { - if (persistentMap == null) - { - persistentMap = new EcoreEMap(Model6Package.eINSTANCE.getPropertiesMapEntry(), - PropertiesMapEntryImpl.class, this, Model6Package.PROPERTIES_MAP__PERSISTENT_MAP); - } - return persistentMap; - } - - /** - * - * - * @generated - */ - public EMap getTransientMap() - { - if (transientMap == null) - { - transientMap = new EcoreEMap(Model6Package.eINSTANCE.getPropertiesMapEntry(), - PropertiesMapEntryImpl.class, this, Model6Package.PROPERTIES_MAP__TRANSIENT_MAP); - } - return transientMap; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: - return ((InternalEList)getPersistentMap()).basicRemove(otherEnd, msgs); - case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: - return ((InternalEList)getTransientMap()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP__LABEL: - return getLabel(); - case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: - if (coreType) - return getPersistentMap(); - else - return getPersistentMap().map(); - case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: - if (coreType) - return getTransientMap(); - else - return getTransientMap().map(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP__LABEL: - setLabel((String)newValue); - return; - case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: - ((EStructuralFeature.Setting)getPersistentMap()).set(newValue); - return; - case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: - ((EStructuralFeature.Setting)getTransientMap()).set(newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP__LABEL: - setLabel(LABEL_EDEFAULT); - return; - case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: - getPersistentMap().clear(); - return; - case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: - getTransientMap().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.PROPERTIES_MAP__LABEL: - return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); - case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: - return persistentMap != null && !persistentMap.isEmpty(); - case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: - return transientMap != null && !transientMap.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (label: "); - result.append(label); - result.append(')'); - return result.toString(); - } - -} // PropertiesMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ReferenceObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ReferenceObjectImpl.java deleted file mode 100644 index a561f60a9e..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ReferenceObjectImpl.java +++ /dev/null @@ -1,216 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.BaseObject; -import org.eclipse.emf.cdo.tests.model6.ReferenceObject; - -import org.eclipse.emf.common.notify.Notification; -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.util.EObjectResolvingEList; - -import java.util.Collection; - -/** - * An implementation of the model object ' Reference Object'. - *

- * The following features are implemented: - *

    - *
  • - * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ReferenceObjectImpl#getReferenceOptional Reference - * Optional}
  • - *
  • - * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ReferenceObjectImpl#getReferenceList Reference List} - *
  • - *
- *

- * - * @generated - */ -public class ReferenceObjectImpl extends BaseObjectImpl implements ReferenceObject -{ - /** - * The cached value of the '{@link #getReferenceOptional() Reference Optional}' reference. - * - * @see #getReferenceOptional() - * @generated - * @ordered - */ - protected BaseObject referenceOptional; - - /** - * The cached value of the '{@link #getReferenceList() Reference List}' reference list. - * - * @see #getReferenceList() - * @generated - * @ordered - */ - protected EList referenceList; - - /** - * - * @generated - */ - protected ReferenceObjectImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getReferenceObject(); - } - - /** - * - * @generated - */ - public BaseObject getReferenceOptional() - { - if (referenceOptional != null && referenceOptional.eIsProxy()) - { - InternalEObject oldReferenceOptional = (InternalEObject)referenceOptional; - referenceOptional = (BaseObject)eResolveProxy(oldReferenceOptional); - if (referenceOptional != oldReferenceOptional) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL, - oldReferenceOptional, referenceOptional)); - } - } - return referenceOptional; - } - - /** - * - * @generated - */ - public BaseObject basicGetReferenceOptional() - { - return referenceOptional; - } - - /** - * - * @generated - */ - public void setReferenceOptional(BaseObject newReferenceOptional) - { - BaseObject oldReferenceOptional = referenceOptional; - referenceOptional = newReferenceOptional; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL, - oldReferenceOptional, referenceOptional)); - } - - /** - * - * @generated - */ - public EList getReferenceList() - { - if (referenceList == null) - { - referenceList = new EObjectResolvingEList(BaseObject.class, this, - Model6Package.REFERENCE_OBJECT__REFERENCE_LIST); - } - return referenceList; - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL: - if (resolve) - return getReferenceOptional(); - return basicGetReferenceOptional(); - case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST: - return getReferenceList(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL: - setReferenceOptional((BaseObject)newValue); - return; - case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST: - getReferenceList().clear(); - getReferenceList().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL: - setReferenceOptional((BaseObject)null); - return; - case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST: - getReferenceList().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL: - return referenceOptional != null; - case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST: - return referenceList != null && !referenceList.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // ReferenceObjectImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/RootImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/RootImpl.java deleted file mode 100644 index 20fb79b1c5..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/RootImpl.java +++ /dev/null @@ -1,272 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.BaseObject; -import org.eclipse.emf.cdo.tests.model6.Root; - -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.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object ' Root'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListA List A}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListB List B}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListC List C}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListD List D}
  • - *
- *

- * - * @generated - */ -public class RootImpl extends EObjectImpl implements Root -{ - /** - * The cached value of the '{@link #getListA() List A}' containment reference list. - * - * - * @see #getListA() - * @generated - * @ordered - */ - protected EList listA; - - /** - * The cached value of the '{@link #getListB() List B}' containment reference list. - * - * - * @see #getListB() - * @generated - * @ordered - */ - protected EList listB; - - /** - * The cached value of the '{@link #getListC() List C}' containment reference list. - * - * - * @see #getListC() - * @generated - * @ordered - */ - protected EList listC; - - /** - * The cached value of the '{@link #getListD() List D}' containment reference list. - * - * - * @see #getListD() - * @generated - * @ordered - */ - protected EList listD; - - /** - * - * @generated - */ - protected RootImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getRoot(); - } - - /** - * - * @generated - */ - public EList getListA() - { - if (listA == null) - { - listA = new EObjectContainmentEList.Resolving(BaseObject.class, this, Model6Package.ROOT__LIST_A); - } - return listA; - } - - /** - * - * @generated - */ - public EList getListB() - { - if (listB == null) - { - listB = new EObjectContainmentEList.Resolving(BaseObject.class, this, Model6Package.ROOT__LIST_B); - } - return listB; - } - - /** - * - * @generated - */ - public EList getListC() - { - if (listC == null) - { - listC = new EObjectContainmentEList.Resolving(BaseObject.class, this, Model6Package.ROOT__LIST_C); - } - return listC; - } - - /** - * - * @generated - */ - public EList getListD() - { - if (listD == null) - { - listD = new EObjectContainmentEList.Resolving(BaseObject.class, this, Model6Package.ROOT__LIST_D); - } - return listD; - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.ROOT__LIST_A: - return ((InternalEList)getListA()).basicRemove(otherEnd, msgs); - case Model6Package.ROOT__LIST_B: - return ((InternalEList)getListB()).basicRemove(otherEnd, msgs); - case Model6Package.ROOT__LIST_C: - return ((InternalEList)getListC()).basicRemove(otherEnd, msgs); - case Model6Package.ROOT__LIST_D: - return ((InternalEList)getListD()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.ROOT__LIST_A: - return getListA(); - case Model6Package.ROOT__LIST_B: - return getListB(); - case Model6Package.ROOT__LIST_C: - return getListC(); - case Model6Package.ROOT__LIST_D: - return getListD(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.ROOT__LIST_A: - getListA().clear(); - getListA().addAll((Collection)newValue); - return; - case Model6Package.ROOT__LIST_B: - getListB().clear(); - getListB().addAll((Collection)newValue); - return; - case Model6Package.ROOT__LIST_C: - getListC().clear(); - getListC().addAll((Collection)newValue); - return; - case Model6Package.ROOT__LIST_D: - getListD().clear(); - getListD().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.ROOT__LIST_A: - getListA().clear(); - return; - case Model6Package.ROOT__LIST_B: - getListB().clear(); - return; - case Model6Package.ROOT__LIST_C: - getListC().clear(); - return; - case Model6Package.ROOT__LIST_D: - getListD().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.ROOT__LIST_A: - return listA != null && !listA.isEmpty(); - case Model6Package.ROOT__LIST_B: - return listB != null && !listB.isEmpty(); - case Model6Package.ROOT__LIST_C: - return listC != null && !listC.isEmpty(); - case Model6Package.ROOT__LIST_D: - return listD != null && !listD.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // RootImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ThingImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ThingImpl.java deleted file mode 100644 index 750102df1f..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ThingImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - */ -package org.eclipse.emf.cdo.tests.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.Thing; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Thing'. - * - *

- *

- * - * @generated - */ -public class ThingImpl extends HoldableImpl implements Thing -{ - /** - * - * - * @generated - */ - protected ThingImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getThing(); - } - -} // ThingImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/UnorderedListImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/UnorderedListImpl.java deleted file mode 100644 index f22f45d22a..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/UnorderedListImpl.java +++ /dev/null @@ -1,198 +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.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.UnorderedList; - -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.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object 'Unordered List'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.UnorderedListImpl#getContained Contained}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.UnorderedListImpl#getReferenced Referenced}
  • - *
- *

- * - * @generated - */ -public class UnorderedListImpl extends EObjectImpl implements UnorderedList -{ - /** - * The cached value of the '{@link #getContained() Contained}' containment reference list. - * - * @see #getContained() - * @generated - * @ordered - */ - protected EList contained; - - /** - * The cached value of the '{@link #getReferenced() Referenced}' reference list. - * - * @see #getReferenced() - * @generated - * @ordered - */ - protected EList referenced; - - /** - * - * @generated - */ - protected UnorderedListImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getUnorderedList(); - } - - /** - * - * @generated - */ - public EList getContained() - { - if (contained == null) - { - contained = new EObjectContainmentEList.Resolving(UnorderedList.class, this, - Model6Package.UNORDERED_LIST__CONTAINED); - } - return contained; - } - - /** - * - * @generated - */ - public EList getReferenced() - { - if (referenced == null) - { - referenced = new EObjectResolvingEList(UnorderedList.class, this, - Model6Package.UNORDERED_LIST__REFERENCED); - } - return referenced; - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model6Package.UNORDERED_LIST__CONTAINED: - return ((InternalEList)getContained()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model6Package.UNORDERED_LIST__CONTAINED: - return getContained(); - case Model6Package.UNORDERED_LIST__REFERENCED: - return getReferenced(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model6Package.UNORDERED_LIST__CONTAINED: - getContained().clear(); - getContained().addAll((Collection)newValue); - return; - case Model6Package.UNORDERED_LIST__REFERENCED: - getReferenced().clear(); - getReferenced().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model6Package.UNORDERED_LIST__CONTAINED: - getContained().clear(); - return; - case Model6Package.UNORDERED_LIST__REFERENCED: - getReferenced().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model6Package.UNORDERED_LIST__CONTAINED: - return contained != null && !contained.isEmpty(); - case Model6Package.UNORDERED_LIST__REFERENCED: - return referenced != null && !referenced.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // UnorderedListImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/Model6Factory.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/Model6Factory.java new file mode 100644 index 0000000000..30d99739f6 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/Model6Factory.java @@ -0,0 +1,226 @@ +/** + */ +package org.eclipse.emf.cdo.tests.model6.legacy; + +import org.eclipse.emf.cdo.tests.model6.A; +import org.eclipse.emf.cdo.tests.model6.B; +import org.eclipse.emf.cdo.tests.model6.BaseObject; +import org.eclipse.emf.cdo.tests.model6.C; +import org.eclipse.emf.cdo.tests.model6.ContainmentObject; +import org.eclipse.emf.cdo.tests.model6.D; +import org.eclipse.emf.cdo.tests.model6.E; +import org.eclipse.emf.cdo.tests.model6.F; +import org.eclipse.emf.cdo.tests.model6.G; +import org.eclipse.emf.cdo.tests.model6.HasNillableAttribute; +import org.eclipse.emf.cdo.tests.model6.Holder; +import org.eclipse.emf.cdo.tests.model6.MyEnumList; +import org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable; +import org.eclipse.emf.cdo.tests.model6.PropertiesMap; +import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; +import org.eclipse.emf.cdo.tests.model6.ReferenceObject; +import org.eclipse.emf.cdo.tests.model6.Root; +import org.eclipse.emf.cdo.tests.model6.Thing; +import org.eclipse.emf.cdo.tests.model6.UnorderedList; + +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.model6.Model6Factory + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package + * @generated + */ +public interface Model6Factory extends EFactory, org.eclipse.emf.cdo.tests.model6.Model6Factory +{ + /** + * The singleton instance of the factory. + * + * + * @generated + */ + Model6Factory eINSTANCE = org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6FactoryImpl.init(); + + /** + * Returns a new object of class 'Root'. + * + * + * @return a new object of class 'Root'. + * @generated + */ + Root createRoot(); + + /** + * Returns a new object of class 'Base Object'. + * + * + * @return a new object of class 'Base Object'. + * @generated + */ + BaseObject createBaseObject(); + + /** + * Returns a new object of class 'Reference Object'. + * + * + * @return a new object of class 'Reference Object'. + * @generated + */ + ReferenceObject createReferenceObject(); + + /** + * Returns a new object of class 'Containment Object'. + * + * + * @return a new object of class 'Containment Object'. + * @generated + */ + ContainmentObject createContainmentObject(); + + /** + * Returns a new object of class 'Unordered List'. + * + * + * @return a new object of class 'Unordered List'. + * @generated + */ + UnorderedList createUnorderedList(); + + /** + * Returns a new object of class 'Properties Map'. + * + * + * @return a new object of class 'Properties Map'. + * @generated + */ + PropertiesMap createPropertiesMap(); + + /** + * Returns a new object of class 'Properties Map Entry Value'. + * + * + * @return a new object of class 'Properties Map Entry Value'. + * @generated + */ + PropertiesMapEntryValue createPropertiesMapEntryValue(); + + /** + * Returns a new object of class 'A'. + * + * + * @return a new object of class 'A'. + * @generated + */ + A createA(); + + /** + * Returns a new object of class 'B'. + * + * + * @return a new object of class 'B'. + * @generated + */ + B createB(); + + /** + * Returns a new object of class 'C'. + * + * + * @return a new object of class 'C'. + * @generated + */ + C createC(); + + /** + * Returns a new object of class 'D'. + * + * + * @return a new object of class 'D'. + * @generated + */ + D createD(); + + /** + * Returns a new object of class 'E'. + * + * + * @return a new object of class 'E'. + * @generated + */ + E createE(); + + /** + * Returns a new object of class 'F'. + * + * + * @return a new object of class 'F'. + * @generated + */ + F createF(); + + /** + * Returns a new object of class 'G'. + * + * + * @return a new object of class 'G'. + * @generated + */ + G createG(); + + /** + * Returns a new object of class 'My Enum List'. + * + * + * @return a new object of class 'My Enum List'. + * @generated + */ + MyEnumList createMyEnumList(); + + /** + * Returns a new object of class 'My Enum List Unsettable'. + * + * + * @return a new object of class 'My Enum List Unsettable'. + * @generated + */ + MyEnumListUnsettable createMyEnumListUnsettable(); + + /** + * Returns a new object of class 'Holder'. + * + * + * @return a new object of class 'Holder'. + * @generated + */ + Holder createHolder(); + + /** + * Returns a new object of class 'Thing'. + * + * + * @return a new object of class 'Thing'. + * @generated + */ + Thing createThing(); + + /** + * Returns a new object of class 'Has Nillable Attribute'. + * + * + * @return a new object of class 'Has Nillable Attribute'. + * @generated + */ + HasNillableAttribute createHasNillableAttribute(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + Model6Package getModel6Package(); + +} // Model6Factory diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/Model6Package.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/Model6Package.java new file mode 100644 index 0000000000..02e30e6a7c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/Model6Package.java @@ -0,0 +1,1475 @@ +/** + */ +package org.eclipse.emf.cdo.tests.model6.legacy; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EEnum; +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.model6.Model6Package + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Factory + * @model kind="package" + * @generated + */ +public interface Model6Package extends EPackage, org.eclipse.emf.cdo.tests.model6.Model6Package +{ + /** + * The package name. + * + * + * @generated + */ + String eNAME = "model6"; + + /** + * The package namespace URI. + * + * + * @generated NOT + */ + String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/legacy/model6/1.0.0"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "model6"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + Model6Package eINSTANCE = org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.RootImpl Root}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.RootImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getRoot() + * @generated + */ + int ROOT = 0; + + /** + * The feature id for the 'List A' containment reference list. + * + * + * @generated + * @ordered + */ + int ROOT__LIST_A = 0; + + /** + * The feature id for the 'List B' containment reference list. + * + * + * @generated + * @ordered + */ + int ROOT__LIST_B = 1; + + /** + * The feature id for the 'List C' containment reference list. + * + * + * @generated + * @ordered + */ + int ROOT__LIST_C = 2; + + /** + * The feature id for the 'List D' containment reference list. + * + * + * @generated + * @ordered + */ + int ROOT__LIST_D = 3; + + /** + * The number of structural features of the 'Root' class. + * + * + * @generated + * @ordered + */ + int ROOT_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.BaseObjectImpl Base Object}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.BaseObjectImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getBaseObject() + * @generated + */ + int BASE_OBJECT = 1; + + /** + * The feature id for the 'Attribute Optional' attribute. + * + * + * @generated + * @ordered + */ + int BASE_OBJECT__ATTRIBUTE_OPTIONAL = 0; + + /** + * The feature id for the 'Attribute Required' attribute. + * + * + * @generated + * @ordered + */ + int BASE_OBJECT__ATTRIBUTE_REQUIRED = 1; + + /** + * The feature id for the 'Attribute List' attribute list. + * + * + * @generated + * @ordered + */ + int BASE_OBJECT__ATTRIBUTE_LIST = 2; + + /** + * The number of structural features of the 'Base Object' class. + * + * + * @generated + * @ordered + */ + int BASE_OBJECT_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.ReferenceObjectImpl Reference Object}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.ReferenceObjectImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getReferenceObject() + * @generated + */ + int REFERENCE_OBJECT = 2; + + /** + * The feature id for the 'Attribute Optional' attribute. + * + * + * @generated + * @ordered + */ + int REFERENCE_OBJECT__ATTRIBUTE_OPTIONAL = BASE_OBJECT__ATTRIBUTE_OPTIONAL; + + /** + * The feature id for the 'Attribute Required' attribute. + * + * + * @generated + * @ordered + */ + int REFERENCE_OBJECT__ATTRIBUTE_REQUIRED = BASE_OBJECT__ATTRIBUTE_REQUIRED; + + /** + * The feature id for the 'Attribute List' attribute list. + * + * + * @generated + * @ordered + */ + int REFERENCE_OBJECT__ATTRIBUTE_LIST = BASE_OBJECT__ATTRIBUTE_LIST; + + /** + * The feature id for the 'Reference Optional' reference. + * + * + * @generated + * @ordered + */ + int REFERENCE_OBJECT__REFERENCE_OPTIONAL = BASE_OBJECT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Reference List' reference list. + * + * + * @generated + * @ordered + */ + int REFERENCE_OBJECT__REFERENCE_LIST = BASE_OBJECT_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Reference Object' class. + * + * + * @generated + * @ordered + */ + int REFERENCE_OBJECT_FEATURE_COUNT = BASE_OBJECT_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.ContainmentObjectImpl Containment Object}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.ContainmentObjectImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getContainmentObject() + * @generated + */ + int CONTAINMENT_OBJECT = 3; + + /** + * The feature id for the 'Attribute Optional' attribute. + * + * + * @generated + * @ordered + */ + int CONTAINMENT_OBJECT__ATTRIBUTE_OPTIONAL = BASE_OBJECT__ATTRIBUTE_OPTIONAL; + + /** + * The feature id for the 'Attribute Required' attribute. + * + * + * @generated + * @ordered + */ + int CONTAINMENT_OBJECT__ATTRIBUTE_REQUIRED = BASE_OBJECT__ATTRIBUTE_REQUIRED; + + /** + * The feature id for the 'Attribute List' attribute list. + * + * + * @generated + * @ordered + */ + int CONTAINMENT_OBJECT__ATTRIBUTE_LIST = BASE_OBJECT__ATTRIBUTE_LIST; + + /** + * The feature id for the 'Containment Optional' containment reference. + * + * + * @generated + * @ordered + */ + int CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL = BASE_OBJECT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Containment List' containment reference list. + * + * + * @generated + * @ordered + */ + int CONTAINMENT_OBJECT__CONTAINMENT_LIST = BASE_OBJECT_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Containment Object' class. + * + * + * @generated + * @ordered + */ + int CONTAINMENT_OBJECT_FEATURE_COUNT = BASE_OBJECT_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.UnorderedListImpl Unordered List}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.UnorderedListImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getUnorderedList() + * @generated + */ + int UNORDERED_LIST = 4; + + /** + * The feature id for the 'Contained' containment reference list. + * + * + * @generated + * @ordered + */ + int UNORDERED_LIST__CONTAINED = 0; + + /** + * The feature id for the 'Referenced' reference list. + * + * + * @generated + * @ordered + */ + int UNORDERED_LIST__REFERENCED = 1; + + /** + * The number of structural features of the 'Unordered List' class. + * + * + * @generated + * @ordered + */ + int UNORDERED_LIST_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.PropertiesMapImpl Properties Map}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.PropertiesMapImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getPropertiesMap() + * @generated + */ + int PROPERTIES_MAP = 5; + + /** + * The feature id for the 'Label' attribute. + * + * + * @generated + * @ordered + */ + int PROPERTIES_MAP__LABEL = 0; + + /** + * The feature id for the 'Persistent Map' map. + * + * + * @generated + * @ordered + */ + int PROPERTIES_MAP__PERSISTENT_MAP = 1; + + /** + * The feature id for the 'Transient Map' map. + * + * + * @generated + * @ordered + */ + int PROPERTIES_MAP__TRANSIENT_MAP = 2; + + /** + * The number of structural features of the 'Properties Map' class. + * + * + * @generated + * @ordered + */ + int PROPERTIES_MAP_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.PropertiesMapEntryImpl Properties Map Entry}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.PropertiesMapEntryImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getPropertiesMapEntry() + * @generated + */ + int PROPERTIES_MAP_ENTRY = 6; + + /** + * The feature id for the 'Key' attribute. + * + * + * @generated + * @ordered + */ + int PROPERTIES_MAP_ENTRY__KEY = 0; + + /** + * The feature id for the 'Value' containment reference. + * + * + * @generated + * @ordered + */ + int PROPERTIES_MAP_ENTRY__VALUE = 1; + + /** + * The number of structural features of the 'Properties Map Entry' class. + * + * + * @generated + * @ordered + */ + int PROPERTIES_MAP_ENTRY_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.PropertiesMapEntryValueImpl Properties Map Entry Value}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.PropertiesMapEntryValueImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getPropertiesMapEntryValue() + * @generated + */ + int PROPERTIES_MAP_ENTRY_VALUE = 7; + + /** + * The feature id for the 'Label' attribute. + * + * + * @generated + * @ordered + */ + int PROPERTIES_MAP_ENTRY_VALUE__LABEL = 0; + + /** + * The number of structural features of the 'Properties Map Entry Value' class. + * + * + * @generated + * @ordered + */ + int PROPERTIES_MAP_ENTRY_VALUE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.AImpl A}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.AImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getA() + * @generated + */ + int A = 8; + + /** + * The feature id for the 'Owned Ds' containment reference list. + * + * + * @generated + * @ordered + */ + int A__OWNED_DS = 0; + + /** + * The feature id for the 'Owned Bs' containment reference list. + * + * + * @generated + * @ordered + */ + int A__OWNED_BS = 1; + + /** + * The number of structural features of the 'A' class. + * + * + * @generated + * @ordered + */ + int A_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.BImpl B}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.BImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getB() + * @generated + */ + int B = 9; + + /** + * The feature id for the 'Owned C' containment reference. + * + * + * @generated + * @ordered + */ + int B__OWNED_C = 0; + + /** + * The number of structural features of the 'B' class. + * + * + * @generated + * @ordered + */ + int B_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.CImpl C}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.CImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getC() + * @generated + */ + int C = 10; + + /** + * The number of structural features of the 'C' class. + * + * + * @generated + * @ordered + */ + int C_FEATURE_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.DImpl D}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.DImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getD() + * @generated + */ + int D = 11; + + /** + * The feature id for the 'Data' containment reference. + * + * + * @generated + * @ordered + */ + int D__DATA = 0; + + /** + * The number of structural features of the 'D' class. + * + * + * @generated + * @ordered + */ + int D_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.EImpl E}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.EImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getE() + * @generated + */ + int E = 12; + + /** + * The feature id for the 'Owned As' containment reference list. + * + * + * @generated + * @ordered + */ + int E__OWNED_AS = 0; + + /** + * The number of structural features of the 'E' class. + * + * + * @generated + * @ordered + */ + int E_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.FImpl F}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.FImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getF() + * @generated + */ + int F = 13; + + /** + * The feature id for the 'Owned Es' containment reference list. + * + * + * @generated + * @ordered + */ + int F__OWNED_ES = 0; + + /** + * The number of structural features of the 'F' class. + * + * + * @generated + * @ordered + */ + int F_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.GImpl G}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.GImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getG() + * @generated + */ + int G = 14; + + /** + * The feature id for the 'Dummy' attribute. + * + * + * @generated + * @ordered + */ + int G__DUMMY = 0; + + /** + * The feature id for the 'Reference' reference. + * + * + * @generated + * @ordered + */ + int G__REFERENCE = 1; + + /** + * The feature id for the 'List' reference list. + * + * + * @generated + * @ordered + */ + int G__LIST = 2; + + /** + * The number of structural features of the 'G' class. + * + * + * @generated + * @ordered + */ + int G_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.MyEnumListImpl My Enum List}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.MyEnumListImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getMyEnumList() + * @generated + */ + int MY_ENUM_LIST = 15; + + /** + * The feature id for the 'My Enum' attribute list. + * + * + * @generated + * @ordered + */ + int MY_ENUM_LIST__MY_ENUM = 0; + + /** + * The number of structural features of the 'My Enum List' class. + * + * + * @generated + * @ordered + */ + int MY_ENUM_LIST_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.MyEnumListUnsettableImpl My Enum List Unsettable}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.MyEnumListUnsettableImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getMyEnumListUnsettable() + * @generated + */ + int MY_ENUM_LIST_UNSETTABLE = 16; + + /** + * The feature id for the 'My Enum' attribute list. + * + * + * @generated + * @ordered + */ + int MY_ENUM_LIST_UNSETTABLE__MY_ENUM = 0; + + /** + * The number of structural features of the 'My Enum List Unsettable' class. + * + * + * @generated + * @ordered + */ + int MY_ENUM_LIST_UNSETTABLE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.HoldableImpl Holdable}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.HoldableImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getHoldable() + * @generated + */ + int HOLDABLE = 19; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int HOLDABLE__NAME = 0; + + /** + * The number of structural features of the 'Holdable' class. + * + * + * @generated + * @ordered + */ + int HOLDABLE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.HolderImpl Holder}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.HolderImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getHolder() + * @generated + */ + int HOLDER = 17; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int HOLDER__NAME = HOLDABLE__NAME; + + /** + * The feature id for the 'Held' reference list. + * + * + * @generated + * @ordered + */ + int HOLDER__HELD = HOLDABLE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Owned' containment reference list. + * + * + * @generated + * @ordered + */ + int HOLDER__OWNED = HOLDABLE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Holder' class. + * + * + * @generated + * @ordered + */ + int HOLDER_FEATURE_COUNT = HOLDABLE_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.ThingImpl Thing}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.ThingImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getThing() + * @generated + */ + int THING = 18; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int THING__NAME = HOLDABLE__NAME; + + /** + * The number of structural features of the 'Thing' class. + * + * + * @generated + * @ordered + */ + int THING_FEATURE_COUNT = HOLDABLE_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.legacy.impl.HasNillableAttributeImpl Has Nillable Attribute}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.HasNillableAttributeImpl + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getHasNillableAttribute() + * @generated + */ + int HAS_NILLABLE_ATTRIBUTE = 20; + + /** + * The feature id for the 'Nillable' attribute. + * + * + * @generated + * @ordered + */ + int HAS_NILLABLE_ATTRIBUTE__NILLABLE = 0; + + /** + * The number of structural features of the 'Has Nillable Attribute' class. + * + * + * @generated + * @ordered + */ + int HAS_NILLABLE_ATTRIBUTE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.MyEnum My Enum}' enum. + * + * + * @see org.eclipse.emf.cdo.tests.model6.MyEnum + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getMyEnum() + * @generated + */ + int MY_ENUM = 21; + + /** + * The meta object id for the 'My String' data type. + * + * + * @see java.lang.String + * @see org.eclipse.emf.cdo.tests.model6.legacy.impl.Model6PackageImpl#getMyString() + * @generated + */ + int MY_STRING = 22; + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.Root Root}'. + * + * + * @return the meta object for class 'Root'. + * @see org.eclipse.emf.cdo.tests.model6.Root + * @generated + */ + EClass getRoot(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.Root#getListA List A}'. + * + * + * @return the meta object for the containment reference list 'List A'. + * @see org.eclipse.emf.cdo.tests.model6.Root#getListA() + * @see #getRoot() + * @generated + */ + EReference getRoot_ListA(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.Root#getListB List B}'. + * + * + * @return the meta object for the containment reference list 'List B'. + * @see org.eclipse.emf.cdo.tests.model6.Root#getListB() + * @see #getRoot() + * @generated + */ + EReference getRoot_ListB(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.Root#getListC List C}'. + * + * + * @return the meta object for the containment reference list 'List C'. + * @see org.eclipse.emf.cdo.tests.model6.Root#getListC() + * @see #getRoot() + * @generated + */ + EReference getRoot_ListC(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.Root#getListD List D}'. + * + * + * @return the meta object for the containment reference list 'List D'. + * @see org.eclipse.emf.cdo.tests.model6.Root#getListD() + * @see #getRoot() + * @generated + */ + EReference getRoot_ListD(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.BaseObject Base Object}'. + * + * + * @return the meta object for class 'Base Object'. + * @see org.eclipse.emf.cdo.tests.model6.BaseObject + * @generated + */ + EClass getBaseObject(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeOptional Attribute Optional}'. + * + * + * @return the meta object for the attribute 'Attribute Optional'. + * @see org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeOptional() + * @see #getBaseObject() + * @generated + */ + EAttribute getBaseObject_AttributeOptional(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeRequired Attribute Required}'. + * + * + * @return the meta object for the attribute 'Attribute Required'. + * @see org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeRequired() + * @see #getBaseObject() + * @generated + */ + EAttribute getBaseObject_AttributeRequired(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeList Attribute List}'. + * + * + * @return the meta object for the attribute list 'Attribute List'. + * @see org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeList() + * @see #getBaseObject() + * @generated + */ + EAttribute getBaseObject_AttributeList(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.ReferenceObject Reference Object}'. + * + * + * @return the meta object for class 'Reference Object'. + * @see org.eclipse.emf.cdo.tests.model6.ReferenceObject + * @generated + */ + EClass getReferenceObject(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceOptional Reference Optional}'. + * + * + * @return the meta object for the reference 'Reference Optional'. + * @see org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceOptional() + * @see #getReferenceObject() + * @generated + */ + EReference getReferenceObject_ReferenceOptional(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceList Reference List}'. + * + * + * @return the meta object for the reference list 'Reference List'. + * @see org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceList() + * @see #getReferenceObject() + * @generated + */ + EReference getReferenceObject_ReferenceList(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.ContainmentObject Containment Object}'. + * + * + * @return the meta object for class 'Containment Object'. + * @see org.eclipse.emf.cdo.tests.model6.ContainmentObject + * @generated + */ + EClass getContainmentObject(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentOptional Containment Optional}'. + * + * + * @return the meta object for the containment reference 'Containment Optional'. + * @see org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentOptional() + * @see #getContainmentObject() + * @generated + */ + EReference getContainmentObject_ContainmentOptional(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentList Containment List}'. + * + * + * @return the meta object for the containment reference list 'Containment List'. + * @see org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentList() + * @see #getContainmentObject() + * @generated + */ + EReference getContainmentObject_ContainmentList(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.UnorderedList Unordered List}'. + * + * + * @return the meta object for class 'Unordered List'. + * @see org.eclipse.emf.cdo.tests.model6.UnorderedList + * @generated + */ + EClass getUnorderedList(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.UnorderedList#getContained Contained}'. + * + * + * @return the meta object for the containment reference list 'Contained'. + * @see org.eclipse.emf.cdo.tests.model6.UnorderedList#getContained() + * @see #getUnorderedList() + * @generated + */ + EReference getUnorderedList_Contained(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.model6.UnorderedList#getReferenced Referenced}'. + * + * + * @return the meta object for the reference list 'Referenced'. + * @see org.eclipse.emf.cdo.tests.model6.UnorderedList#getReferenced() + * @see #getUnorderedList() + * @generated + */ + EReference getUnorderedList_Referenced(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.PropertiesMap Properties Map}'. + * + * + * @return the meta object for class 'Properties Map'. + * @see org.eclipse.emf.cdo.tests.model6.PropertiesMap + * @generated + */ + EClass getPropertiesMap(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model6.PropertiesMap#getLabel Label}'. + * + * + * @return the meta object for the attribute 'Label'. + * @see org.eclipse.emf.cdo.tests.model6.PropertiesMap#getLabel() + * @see #getPropertiesMap() + * @generated + */ + EAttribute getPropertiesMap_Label(); + + /** + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model6.PropertiesMap#getPersistentMap Persistent Map}'. + * + * + * @return the meta object for the map 'Persistent Map'. + * @see org.eclipse.emf.cdo.tests.model6.PropertiesMap#getPersistentMap() + * @see #getPropertiesMap() + * @generated + */ + EReference getPropertiesMap_PersistentMap(); + + /** + * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model6.PropertiesMap#getTransientMap Transient Map}'. + * + * + * @return the meta object for the map 'Transient Map'. + * @see org.eclipse.emf.cdo.tests.model6.PropertiesMap#getTransientMap() + * @see #getPropertiesMap() + * @generated + */ + EReference getPropertiesMap_TransientMap(); + + /** + * Returns the meta object for class '{@link java.util.Map.Entry Properties Map Entry}'. + * + * + * @return the meta object for class 'Properties Map Entry'. + * @see java.util.Map.Entry + * @model keyDataType="org.eclipse.emf.ecore.EString" + * valueType="org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue" valueContainment="true" valueResolveProxies="true" + * @generated + */ + EClass getPropertiesMapEntry(); + + /** + * 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 #getPropertiesMapEntry() + * @generated + */ + EAttribute getPropertiesMapEntry_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 #getPropertiesMapEntry() + * @generated + */ + EReference getPropertiesMapEntry_Value(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue Properties Map Entry Value}'. + * + * + * @return the meta object for class 'Properties Map Entry Value'. + * @see org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue + * @generated + */ + EClass getPropertiesMapEntryValue(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue#getLabel Label}'. + * + * + * @return the meta object for the attribute 'Label'. + * @see org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue#getLabel() + * @see #getPropertiesMapEntryValue() + * @generated + */ + EAttribute getPropertiesMapEntryValue_Label(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.A A}'. + * + * + * @return the meta object for class 'A'. + * @see org.eclipse.emf.cdo.tests.model6.A + * @generated + */ + EClass getA(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.A#getOwnedDs Owned Ds}'. + * + * + * @return the meta object for the containment reference list 'Owned Ds'. + * @see org.eclipse.emf.cdo.tests.model6.A#getOwnedDs() + * @see #getA() + * @generated + */ + EReference getA_OwnedDs(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.A#getOwnedBs Owned Bs}'. + * + * + * @return the meta object for the containment reference list 'Owned Bs'. + * @see org.eclipse.emf.cdo.tests.model6.A#getOwnedBs() + * @see #getA() + * @generated + */ + EReference getA_OwnedBs(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.B B}'. + * + * + * @return the meta object for class 'B'. + * @see org.eclipse.emf.cdo.tests.model6.B + * @generated + */ + EClass getB(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.cdo.tests.model6.B#getOwnedC Owned C}'. + * + * + * @return the meta object for the containment reference 'Owned C'. + * @see org.eclipse.emf.cdo.tests.model6.B#getOwnedC() + * @see #getB() + * @generated + */ + EReference getB_OwnedC(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.C C}'. + * + * + * @return the meta object for class 'C'. + * @see org.eclipse.emf.cdo.tests.model6.C + * @generated + */ + EClass getC(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.D D}'. + * + * + * @return the meta object for class 'D'. + * @see org.eclipse.emf.cdo.tests.model6.D + * @generated + */ + EClass getD(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.cdo.tests.model6.D#getData Data}'. + * + * + * @return the meta object for the containment reference 'Data'. + * @see org.eclipse.emf.cdo.tests.model6.D#getData() + * @see #getD() + * @generated + */ + EReference getD_Data(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.E E}'. + * + * + * @return the meta object for class 'E'. + * @see org.eclipse.emf.cdo.tests.model6.E + * @generated + */ + EClass getE(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.E#getOwnedAs Owned As}'. + * + * + * @return the meta object for the containment reference list 'Owned As'. + * @see org.eclipse.emf.cdo.tests.model6.E#getOwnedAs() + * @see #getE() + * @generated + */ + EReference getE_OwnedAs(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.F F}'. + * + * + * @return the meta object for class 'F'. + * @see org.eclipse.emf.cdo.tests.model6.F + * @generated + */ + EClass getF(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.F#getOwnedEs Owned Es}'. + * + * + * @return the meta object for the containment reference list 'Owned Es'. + * @see org.eclipse.emf.cdo.tests.model6.F#getOwnedEs() + * @see #getF() + * @generated + */ + EReference getF_OwnedEs(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.G G}'. + * + * + * @return the meta object for class 'G'. + * @see org.eclipse.emf.cdo.tests.model6.G + * @generated + */ + EClass getG(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model6.G#getDummy Dummy}'. + * + * + * @return the meta object for the attribute 'Dummy'. + * @see org.eclipse.emf.cdo.tests.model6.G#getDummy() + * @see #getG() + * @generated + */ + EAttribute getG_Dummy(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.model6.G#getReference Reference}'. + * + * + * @return the meta object for the reference 'Reference'. + * @see org.eclipse.emf.cdo.tests.model6.G#getReference() + * @see #getG() + * @generated + */ + EReference getG_Reference(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.model6.G#getList List}'. + * + * + * @return the meta object for the reference list 'List'. + * @see org.eclipse.emf.cdo.tests.model6.G#getList() + * @see #getG() + * @generated + */ + EReference getG_List(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.MyEnumList My Enum List}'. + * + * + * @return the meta object for class 'My Enum List'. + * @see org.eclipse.emf.cdo.tests.model6.MyEnumList + * @generated + */ + EClass getMyEnumList(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model6.MyEnumList#getMyEnum My Enum}'. + * + * + * @return the meta object for the attribute list 'My Enum'. + * @see org.eclipse.emf.cdo.tests.model6.MyEnumList#getMyEnum() + * @see #getMyEnumList() + * @generated + */ + EAttribute getMyEnumList_MyEnum(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable My Enum List Unsettable}'. + * + * + * @return the meta object for class 'My Enum List Unsettable'. + * @see org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable + * @generated + */ + EClass getMyEnumListUnsettable(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable#getMyEnum My Enum}'. + * + * + * @return the meta object for the attribute list 'My Enum'. + * @see org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable#getMyEnum() + * @see #getMyEnumListUnsettable() + * @generated + */ + EAttribute getMyEnumListUnsettable_MyEnum(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.Holder Holder}'. + * + * + * @return the meta object for class 'Holder'. + * @see org.eclipse.emf.cdo.tests.model6.Holder + * @generated + */ + EClass getHolder(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.model6.Holder#getHeld Held}'. + * + * + * @return the meta object for the reference list 'Held'. + * @see org.eclipse.emf.cdo.tests.model6.Holder#getHeld() + * @see #getHolder() + * @generated + */ + EReference getHolder_Held(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.Holder#getOwned Owned}'. + * + * + * @return the meta object for the containment reference list 'Owned'. + * @see org.eclipse.emf.cdo.tests.model6.Holder#getOwned() + * @see #getHolder() + * @generated + */ + EReference getHolder_Owned(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.Thing Thing}'. + * + * + * @return the meta object for class 'Thing'. + * @see org.eclipse.emf.cdo.tests.model6.Thing + * @generated + */ + EClass getThing(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.Holdable Holdable}'. + * + * + * @return the meta object for class 'Holdable'. + * @see org.eclipse.emf.cdo.tests.model6.Holdable + * @generated + */ + EClass getHoldable(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model6.Holdable#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.emf.cdo.tests.model6.Holdable#getName() + * @see #getHoldable() + * @generated + */ + EAttribute getHoldable_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.HasNillableAttribute Has Nillable Attribute}'. + * + * + * @return the meta object for class 'Has Nillable Attribute'. + * @see org.eclipse.emf.cdo.tests.model6.HasNillableAttribute + * @generated + */ + EClass getHasNillableAttribute(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model6.HasNillableAttribute#getNillable Nillable}'. + * + * + * @return the meta object for the attribute 'Nillable'. + * @see org.eclipse.emf.cdo.tests.model6.HasNillableAttribute#getNillable() + * @see #getHasNillableAttribute() + * @generated + */ + EAttribute getHasNillableAttribute_Nillable(); + + /** + * Returns the meta object for enum '{@link org.eclipse.emf.cdo.tests.model6.MyEnum My Enum}'. + * + * + * @return the meta object for enum 'My Enum'. + * @see org.eclipse.emf.cdo.tests.model6.MyEnum + * @generated + */ + EEnum getMyEnum(); + + /** + * Returns the meta object for data type '{@link java.lang.String My String}'. + * + * + * @return the meta object for data type 'My String'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * @generated + */ + EDataType getMyString(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + Model6Factory getModel6Factory(); + +} // Model6Package diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/AImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/AImpl.java new file mode 100644 index 0000000000..6ad1bc31a7 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/AImpl.java @@ -0,0 +1,199 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.A; +import org.eclipse.emf.cdo.tests.model6.B; +import org.eclipse.emf.cdo.tests.model6.D; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object 'A'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.AImpl#getOwnedDs Owned Ds}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.AImpl#getOwnedBs Owned Bs}
  • + *
+ *

+ * + * @generated + */ +public class AImpl extends EObjectImpl implements A +{ + /** + * The cached value of the '{@link #getOwnedDs() Owned Ds}' containment reference list. + * + * @see #getOwnedDs() + * @generated + * @ordered + */ + protected EList ownedDs; + + /** + * The cached value of the '{@link #getOwnedBs() Owned Bs}' containment reference list. + * + * @see #getOwnedBs() + * @generated + * @ordered + */ + protected EList ownedBs; + + /** + * + * @generated + */ + protected AImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getA(); + } + + /** + * + * @generated + */ + public EList getOwnedDs() + { + if (ownedDs == null) + { + ownedDs = new EObjectContainmentEList.Resolving(D.class, this, Model6Package.A__OWNED_DS); + } + return ownedDs; + } + + /** + * + * @generated + */ + public EList getOwnedBs() + { + if (ownedBs == null) + { + ownedBs = new EObjectContainmentEList.Resolving(B.class, this, Model6Package.A__OWNED_BS); + } + return ownedBs; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.A__OWNED_DS: + return ((InternalEList)getOwnedDs()).basicRemove(otherEnd, msgs); + case Model6Package.A__OWNED_BS: + return ((InternalEList)getOwnedBs()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.A__OWNED_DS: + return getOwnedDs(); + case Model6Package.A__OWNED_BS: + return getOwnedBs(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.A__OWNED_DS: + getOwnedDs().clear(); + getOwnedDs().addAll((Collection)newValue); + return; + case Model6Package.A__OWNED_BS: + getOwnedBs().clear(); + getOwnedBs().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.A__OWNED_DS: + getOwnedDs().clear(); + return; + case Model6Package.A__OWNED_BS: + getOwnedBs().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.A__OWNED_DS: + return ownedDs != null && !ownedDs.isEmpty(); + case Model6Package.A__OWNED_BS: + return ownedBs != null && !ownedBs.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // AImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/BImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/BImpl.java new file mode 100644 index 0000000000..ed32454ce3 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/BImpl.java @@ -0,0 +1,226 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.B; +import org.eclipse.emf.cdo.tests.model6.C; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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; + +/** + * An implementation of the model object 'B'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.BImpl#getOwnedC Owned C}
  • + *
+ *

+ * + * @generated + */ +public class BImpl extends EObjectImpl implements B +{ + /** + * The cached value of the '{@link #getOwnedC() Owned C}' containment reference. + * + * @see #getOwnedC() + * @generated + * @ordered + */ + protected C ownedC; + + /** + * + * @generated + */ + protected BImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getB(); + } + + /** + * + * @generated + */ + public C getOwnedC() + { + if (ownedC != null && ownedC.eIsProxy()) + { + InternalEObject oldOwnedC = (InternalEObject)ownedC; + ownedC = (C)eResolveProxy(oldOwnedC); + if (ownedC != oldOwnedC) + { + InternalEObject newOwnedC = (InternalEObject)ownedC; + NotificationChain msgs = oldOwnedC.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Model6Package.B__OWNED_C, + null, null); + if (newOwnedC.eInternalContainer() == null) + { + msgs = newOwnedC.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Model6Package.B__OWNED_C, null, msgs); + } + if (msgs != null) + msgs.dispatch(); + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.B__OWNED_C, oldOwnedC, ownedC)); + } + } + return ownedC; + } + + /** + * + * + * @generated + */ + public C basicGetOwnedC() + { + return ownedC; + } + + /** + * + * @generated + */ + public NotificationChain basicSetOwnedC(C newOwnedC, NotificationChain msgs) + { + C oldOwnedC = ownedC; + ownedC = newOwnedC; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Model6Package.B__OWNED_C, + oldOwnedC, newOwnedC); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setOwnedC(C newOwnedC) + { + if (newOwnedC != ownedC) + { + NotificationChain msgs = null; + if (ownedC != null) + msgs = ((InternalEObject)ownedC).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Model6Package.B__OWNED_C, null, + msgs); + if (newOwnedC != null) + msgs = ((InternalEObject)newOwnedC).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Model6Package.B__OWNED_C, null, + msgs); + msgs = basicSetOwnedC(newOwnedC, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.B__OWNED_C, newOwnedC, newOwnedC)); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.B__OWNED_C: + return basicSetOwnedC(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.B__OWNED_C: + if (resolve) + return getOwnedC(); + return basicGetOwnedC(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.B__OWNED_C: + setOwnedC((C)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.B__OWNED_C: + setOwnedC((C)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.B__OWNED_C: + return ownedC != null; + } + return super.eIsSet(featureID); + } + +} // BImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/BaseObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/BaseObjectImpl.java new file mode 100644 index 0000000000..d5c67a86ed --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/BaseObjectImpl.java @@ -0,0 +1,273 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.BaseObject; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; + +import java.util.Collection; + +/** + * An implementation of the model object ' Base Object'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.BaseObjectImpl#getAttributeOptional Attribute Optional}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.BaseObjectImpl#getAttributeRequired Attribute Required}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.BaseObjectImpl#getAttributeList Attribute List}
  • + *
+ *

+ * + * @generated + */ +public class BaseObjectImpl extends EObjectImpl implements BaseObject +{ + /** + * The default value of the '{@link #getAttributeOptional() Attribute Optional}' attribute. + * + * @see #getAttributeOptional() + * @generated + * @ordered + */ + protected static final String ATTRIBUTE_OPTIONAL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAttributeOptional() Attribute Optional}' attribute. + * + * @see #getAttributeOptional() + * @generated + * @ordered + */ + protected String attributeOptional = ATTRIBUTE_OPTIONAL_EDEFAULT; + + /** + * The default value of the '{@link #getAttributeRequired() Attribute Required}' attribute. + * + * @see #getAttributeRequired() + * @generated + * @ordered + */ + protected static final String ATTRIBUTE_REQUIRED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAttributeRequired() Attribute Required}' attribute. + * + * @see #getAttributeRequired() + * @generated + * @ordered + */ + protected String attributeRequired = ATTRIBUTE_REQUIRED_EDEFAULT; + + /** + * The cached value of the '{@link #getAttributeList() Attribute List}' attribute list. + * + * @see #getAttributeList() + * @generated + * @ordered + */ + protected EList attributeList; + + /** + * + * @generated + */ + protected BaseObjectImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getBaseObject(); + } + + /** + * + * @generated + */ + public String getAttributeOptional() + { + return attributeOptional; + } + + /** + * + * @generated + */ + public void setAttributeOptional(String newAttributeOptional) + { + String oldAttributeOptional = attributeOptional; + attributeOptional = newAttributeOptional; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL, + oldAttributeOptional, attributeOptional)); + } + + /** + * + * @generated + */ + public String getAttributeRequired() + { + return attributeRequired; + } + + /** + * + * @generated + */ + public void setAttributeRequired(String newAttributeRequired) + { + String oldAttributeRequired = attributeRequired; + attributeRequired = newAttributeRequired; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED, + oldAttributeRequired, attributeRequired)); + } + + /** + * + * @generated + */ + public EList getAttributeList() + { + if (attributeList == null) + { + attributeList = new EDataTypeUniqueEList(String.class, this, Model6Package.BASE_OBJECT__ATTRIBUTE_LIST); + } + return attributeList; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL: + return getAttributeOptional(); + case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED: + return getAttributeRequired(); + case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST: + return getAttributeList(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL: + setAttributeOptional((String)newValue); + return; + case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED: + setAttributeRequired((String)newValue); + return; + case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST: + getAttributeList().clear(); + getAttributeList().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL: + setAttributeOptional(ATTRIBUTE_OPTIONAL_EDEFAULT); + return; + case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED: + setAttributeRequired(ATTRIBUTE_REQUIRED_EDEFAULT); + return; + case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST: + getAttributeList().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL: + return ATTRIBUTE_OPTIONAL_EDEFAULT == null ? attributeOptional != null : !ATTRIBUTE_OPTIONAL_EDEFAULT + .equals(attributeOptional); + case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED: + return ATTRIBUTE_REQUIRED_EDEFAULT == null ? attributeRequired != null : !ATTRIBUTE_REQUIRED_EDEFAULT + .equals(attributeRequired); + case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST: + return attributeList != null && !attributeList.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (attributeOptional: "); + result.append(attributeOptional); + result.append(", attributeRequired: "); + result.append(attributeRequired); + result.append(", attributeList: "); + result.append(attributeList); + result.append(')'); + return result.toString(); + } + +} // BaseObjectImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/CImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/CImpl.java new file mode 100644 index 0000000000..293f0e344b --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/CImpl.java @@ -0,0 +1,47 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.C; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +/** + * An implementation of the model object 'C'. + *

+ *

+ * + * @generated + */ +public class CImpl extends EObjectImpl implements C +{ + /** + * + * @generated + */ + protected CImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getC(); + } + +} // CImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/ContainmentObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/ContainmentObjectImpl.java new file mode 100644 index 0000000000..5dccb0df94 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/ContainmentObjectImpl.java @@ -0,0 +1,272 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.BaseObject; +import org.eclipse.emf.cdo.tests.model6.ContainmentObject; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object ' Containment Object'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.ContainmentObjectImpl#getContainmentOptional Containment Optional}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.ContainmentObjectImpl#getContainmentList Containment List}
  • + *
+ *

+ * + * @generated + */ +public class ContainmentObjectImpl extends BaseObjectImpl implements ContainmentObject +{ + /** + * The cached value of the '{@link #getContainmentOptional() Containment Optional}' containment reference. + * + * @see #getContainmentOptional() + * @generated + * @ordered + */ + protected BaseObject containmentOptional; + + /** + * The cached value of the '{@link #getContainmentList() Containment List}' containment reference list. + * + * @see #getContainmentList() + * @generated + * @ordered + */ + protected EList containmentList; + + /** + * + * @generated + */ + protected ContainmentObjectImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getContainmentObject(); + } + + /** + * + * @generated + */ + public BaseObject getContainmentOptional() + { + if (containmentOptional != null && containmentOptional.eIsProxy()) + { + InternalEObject oldContainmentOptional = (InternalEObject)containmentOptional; + containmentOptional = (BaseObject)eResolveProxy(oldContainmentOptional); + if (containmentOptional != oldContainmentOptional) + { + InternalEObject newContainmentOptional = (InternalEObject)containmentOptional; + NotificationChain msgs = oldContainmentOptional.eInverseRemove(this, EOPPOSITE_FEATURE_BASE + - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, null); + if (newContainmentOptional.eInternalContainer() == null) + { + msgs = newContainmentOptional.eInverseAdd(this, EOPPOSITE_FEATURE_BASE + - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, msgs); + } + if (msgs != null) + msgs.dispatch(); + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, oldContainmentOptional, containmentOptional)); + } + } + return containmentOptional; + } + + /** + * + * + * @generated + */ + public BaseObject basicGetContainmentOptional() + { + return containmentOptional; + } + + /** + * + * @generated + */ + public NotificationChain basicSetContainmentOptional(BaseObject newContainmentOptional, NotificationChain msgs) + { + BaseObject oldContainmentOptional = containmentOptional; + containmentOptional = newContainmentOptional; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, + Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, oldContainmentOptional, newContainmentOptional); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setContainmentOptional(BaseObject newContainmentOptional) + { + if (newContainmentOptional != containmentOptional) + { + NotificationChain msgs = null; + if (containmentOptional != null) + msgs = ((InternalEObject)containmentOptional).eInverseRemove(this, EOPPOSITE_FEATURE_BASE + - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, msgs); + if (newContainmentOptional != null) + msgs = ((InternalEObject)newContainmentOptional).eInverseAdd(this, EOPPOSITE_FEATURE_BASE + - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, msgs); + msgs = basicSetContainmentOptional(newContainmentOptional, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, + newContainmentOptional, newContainmentOptional)); + } + + /** + * + * @generated + */ + public EList getContainmentList() + { + if (containmentList == null) + { + containmentList = new EObjectContainmentEList.Resolving(BaseObject.class, this, + Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST); + } + return containmentList; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: + return basicSetContainmentOptional(null, msgs); + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: + return ((InternalEList)getContainmentList()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: + if (resolve) + return getContainmentOptional(); + return basicGetContainmentOptional(); + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: + return getContainmentList(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: + setContainmentOptional((BaseObject)newValue); + return; + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: + getContainmentList().clear(); + getContainmentList().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: + setContainmentOptional((BaseObject)null); + return; + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: + getContainmentList().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL: + return containmentOptional != null; + case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST: + return containmentList != null && !containmentList.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // ContainmentObjectImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/DImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/DImpl.java new file mode 100644 index 0000000000..f50178c41d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/DImpl.java @@ -0,0 +1,193 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.D; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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.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 'D'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.DImpl#getData Data}
  • + *
+ *

+ * + * @generated + */ +public class DImpl extends EObjectImpl implements D +{ + /** + * The cached value of the '{@link #getData() Data}' containment reference. + * + * @see #getData() + * @generated + * @ordered + */ + protected EObject data; + + /** + * + * @generated + */ + protected DImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getD(); + } + + /** + * + * @generated + */ + public EObject getData() + { + return data; + } + + /** + * + * @generated + */ + public NotificationChain basicSetData(EObject newData, NotificationChain msgs) + { + EObject oldData = data; + data = newData; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Model6Package.D__DATA, oldData, + newData); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setData(EObject newData) + { + if (newData != data) + { + NotificationChain msgs = null; + if (data != null) + msgs = ((InternalEObject)data).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Model6Package.D__DATA, null, msgs); + if (newData != null) + msgs = ((InternalEObject)newData).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Model6Package.D__DATA, null, msgs); + msgs = basicSetData(newData, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.D__DATA, newData, newData)); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.D__DATA: + return basicSetData(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.D__DATA: + return getData(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.D__DATA: + setData((EObject)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.D__DATA: + setData((EObject)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.D__DATA: + return data != null; + } + return super.eIsSet(featureID); + } + +} // DImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/EImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/EImpl.java new file mode 100644 index 0000000000..bb5b9c093d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/EImpl.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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.A; +import org.eclipse.emf.cdo.tests.model6.E; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object 'E'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.EImpl#getOwnedAs Owned As}
  • + *
+ *

+ * + * @generated + */ +public class EImpl extends EObjectImpl implements E +{ + /** + * The cached value of the '{@link #getOwnedAs() Owned As}' containment reference list. + * + * @see #getOwnedAs() + * @generated + * @ordered + */ + protected EList
ownedAs; + + /** + * + * @generated + */ + protected EImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getE(); + } + + /** + * + * @generated + */ + public EList getOwnedAs() + { + if (ownedAs == null) + { + ownedAs = new EObjectContainmentEList.Resolving(A.class, this, Model6Package.E__OWNED_AS); + } + return ownedAs; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.E__OWNED_AS: + return ((InternalEList)getOwnedAs()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.E__OWNED_AS: + return getOwnedAs(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.E__OWNED_AS: + getOwnedAs().clear(); + getOwnedAs().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.E__OWNED_AS: + getOwnedAs().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.E__OWNED_AS: + return ownedAs != null && !ownedAs.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // EImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/FImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/FImpl.java new file mode 100644 index 0000000000..7e814bc36f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/FImpl.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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.E; +import org.eclipse.emf.cdo.tests.model6.F; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object 'F'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.FImpl#getOwnedEs Owned Es}
  • + *
+ *

+ * + * @generated + */ +public class FImpl extends EObjectImpl implements F +{ + /** + * The cached value of the '{@link #getOwnedEs() Owned Es}' containment reference list. + * + * @see #getOwnedEs() + * @generated + * @ordered + */ + protected EList ownedEs; + + /** + * + * @generated + */ + protected FImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getF(); + } + + /** + * + * @generated + */ + public EList getOwnedEs() + { + if (ownedEs == null) + { + ownedEs = new EObjectContainmentEList.Resolving(E.class, this, Model6Package.F__OWNED_ES); + } + return ownedEs; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.F__OWNED_ES: + return ((InternalEList)getOwnedEs()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.F__OWNED_ES: + return getOwnedEs(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.F__OWNED_ES: + getOwnedEs().clear(); + getOwnedEs().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.F__OWNED_ES: + getOwnedEs().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.F__OWNED_ES: + return ownedEs != null && !ownedEs.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // FImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/GImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/GImpl.java new file mode 100644 index 0000000000..cebc15f7f5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/GImpl.java @@ -0,0 +1,386 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.BaseObject; +import org.eclipse.emf.cdo.tests.model6.G; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.impl.AdapterImpl; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EStructuralFeature; +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.EObjectResolvingEList; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +/** + * + * An implementation of the model object 'G'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.GImpl#getDummy Dummy}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.GImpl#getReference Reference}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.GImpl#getList List}
  • + *
+ *

+ * + * @generated + */ +public class GImpl extends EObjectImpl implements G +{ + /** + * The default value of the '{@link #getDummy() Dummy}' attribute. + * + * + * @see #getDummy() + * @generated + * @ordered + */ + protected static final String DUMMY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDummy() Dummy}' attribute. + * + * + * @see #getDummy() + * @generated + * @ordered + */ + protected String dummy = DUMMY_EDEFAULT; + + /** + * The cached value of the '{@link #getReference() Reference}' reference. + * + * + * @see #getReference() + * @generated + * @ordered + */ + protected BaseObject reference; + + /** + * The cached value of the '{@link #getList() List}' reference list. + * + * + * @see #getList() + * @generated + * @ordered + */ + protected EList list; + + /** + * @ADDED + */ + private List notifications = new ArrayList(); + + /** + * @ADDED + */ + private boolean listModified = false; + + /** + * @ADDED + */ + private boolean referenceModified = false; + + /** + * @ADDED + */ + private boolean attributeModified = false; + + /** + * @ADDED + */ + { + eAdapters().add(new AdapterImpl() + { + @Override + public void notifyChanged(Notification msg) + { + notifications.add(msg); + + EStructuralFeature feature = (EStructuralFeature)msg.getFeature(); + if (feature != null) + { + if (feature.equals("dummy")) + { + attributeModified = true; + } + else if (feature.equals("reference")) + { + referenceModified = true; + } + else if (feature.equals("list")) + { + listModified = true; + } + } + } + }); + } + + /** + * + * + * @generated + */ + protected GImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getG(); + } + + /** + * + * + * @generated + */ + public String getDummy() + { + return dummy; + } + + /** + * + * + * @generated + */ + public void setDummy(String newDummy) + { + String oldDummy = dummy; + dummy = newDummy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.G__DUMMY, oldDummy, dummy)); + } + + /** + * + * + * @generated + */ + public BaseObject getReference() + { + if (reference != null && reference.eIsProxy()) + { + InternalEObject oldReference = (InternalEObject)reference; + reference = (BaseObject)eResolveProxy(oldReference); + if (reference != oldReference) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.G__REFERENCE, oldReference, reference)); + } + } + return reference; + } + + /** + * + * + * @generated + */ + public BaseObject basicGetReference() + { + return reference; + } + + /** + * + * + * @generated + */ + public void setReference(BaseObject newReference) + { + BaseObject oldReference = reference; + reference = newReference; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.G__REFERENCE, oldReference, reference)); + } + + /** + * + * + * @generated + */ + public EList getList() + { + if (list == null) + { + list = new EObjectResolvingEList(BaseObject.class, this, Model6Package.G__LIST); + } + return list; + } + + /** + * @ADDED + */ + public List getNotifications() + { + return notifications; + } + + /** + * + * + * @generated NOT + */ + public boolean isAttributeModified() + { + return attributeModified; + } + + /** + * + * + * @generated NOT + */ + public boolean isReferenceModified() + { + return referenceModified; + } + + /** + * + * + * @generated NOT + */ + public boolean isListModified() + { + return listModified; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.G__DUMMY: + return getDummy(); + case Model6Package.G__REFERENCE: + if (resolve) + return getReference(); + return basicGetReference(); + case Model6Package.G__LIST: + return getList(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.G__DUMMY: + setDummy((String)newValue); + return; + case Model6Package.G__REFERENCE: + setReference((BaseObject)newValue); + return; + case Model6Package.G__LIST: + getList().clear(); + getList().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.G__DUMMY: + setDummy(DUMMY_EDEFAULT); + return; + case Model6Package.G__REFERENCE: + setReference((BaseObject)null); + return; + case Model6Package.G__LIST: + getList().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.G__DUMMY: + return DUMMY_EDEFAULT == null ? dummy != null : !DUMMY_EDEFAULT.equals(dummy); + case Model6Package.G__REFERENCE: + return reference != null; + case Model6Package.G__LIST: + return list != null && !list.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (dummy: "); + result.append(dummy); + result.append(')'); + return result.toString(); + } + +} // GImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/HasNillableAttributeImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/HasNillableAttributeImpl.java new file mode 100644 index 0000000000..91eb06e4f4 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/HasNillableAttributeImpl.java @@ -0,0 +1,217 @@ +/** + */ +package org.eclipse.emf.cdo.tests.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.HasNillableAttribute; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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; + +/** + * + * An implementation of the model object 'Has Nillable Attribute'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.HasNillableAttributeImpl#getNillable Nillable}
  • + *
+ *

+ * + * @generated + */ +public class HasNillableAttributeImpl extends EObjectImpl implements HasNillableAttribute +{ + /** + * The default value of the '{@link #getNillable() Nillable}' attribute. + * + * + * @see #getNillable() + * @generated + * @ordered + */ + protected static final String NILLABLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNillable() Nillable}' attribute. + * + * + * @see #getNillable() + * @generated + * @ordered + */ + protected String nillable = NILLABLE_EDEFAULT; + + /** + * This is true if the Nillable attribute has been set. + * + * + * @generated + * @ordered + */ + protected boolean nillableESet; + + /** + * + * + * @generated + */ + protected HasNillableAttributeImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getHasNillableAttribute(); + } + + /** + * + * + * @generated + */ + public String getNillable() + { + return nillable; + } + + /** + * + * + * @generated + */ + public void setNillable(String newNillable) + { + String oldNillable = nillable; + nillable = newNillable; + boolean oldNillableESet = nillableESet; + nillableESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE, + oldNillable, nillable, !oldNillableESet)); + } + + /** + * + * + * @generated + */ + public void unsetNillable() + { + String oldNillable = nillable; + boolean oldNillableESet = nillableESet; + nillable = NILLABLE_EDEFAULT; + nillableESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE, + oldNillable, NILLABLE_EDEFAULT, oldNillableESet)); + } + + /** + * + * + * @generated + */ + public boolean isSetNillable() + { + return nillableESet; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE: + return getNillable(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE: + setNillable((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE: + unsetNillable(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.HAS_NILLABLE_ATTRIBUTE__NILLABLE: + return isSetNillable(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (nillable: "); + if (nillableESet) + result.append(nillable); + else + result.append(""); + result.append(')'); + return result.toString(); + } + +} //HasNillableAttributeImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/HoldableImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/HoldableImpl.java new file mode 100644 index 0000000000..8b877a0624 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/HoldableImpl.java @@ -0,0 +1,176 @@ +/** + */ +package org.eclipse.emf.cdo.tests.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.Holdable; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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; + +/** + * + * An implementation of the model object 'Holdable'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.HoldableImpl#getName Name}
  • + *
+ *

+ * + * @generated + */ +public abstract class HoldableImpl extends EObjectImpl implements Holdable +{ + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected HoldableImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getHoldable(); + } + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.HOLDABLE__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.HOLDABLE__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.HOLDABLE__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.HOLDABLE__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.HOLDABLE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} // HoldableImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/HolderImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/HolderImpl.java new file mode 100644 index 0000000000..94cde9ac7f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/HolderImpl.java @@ -0,0 +1,199 @@ +/** + */ +package org.eclipse.emf.cdo.tests.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.Holdable; +import org.eclipse.emf.cdo.tests.model6.Holder; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * + * An implementation of the model object 'Holder'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.HolderImpl#getHeld Held}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.HolderImpl#getOwned Owned}
  • + *
+ *

+ * + * @generated + */ +public class HolderImpl extends HoldableImpl implements Holder +{ + /** + * The cached value of the '{@link #getHeld() Held}' reference list. + * + * + * @see #getHeld() + * @generated + * @ordered + */ + protected EList held; + + /** + * The cached value of the '{@link #getOwned() Owned}' containment reference list. + * + * + * @see #getOwned() + * @generated + * @ordered + */ + protected EList owned; + + /** + * + * + * @generated + */ + protected HolderImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getHolder(); + } + + /** + * + * + * @generated + */ + public EList getHeld() + { + if (held == null) + { + held = new EObjectResolvingEList(Holdable.class, this, Model6Package.HOLDER__HELD); + } + return held; + } + + /** + * + * + * @generated + */ + public EList getOwned() + { + if (owned == null) + { + owned = new EObjectContainmentEList.Resolving(Holdable.class, this, Model6Package.HOLDER__OWNED); + } + return owned; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.HOLDER__OWNED: + return ((InternalEList)getOwned()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.HOLDER__HELD: + return getHeld(); + case Model6Package.HOLDER__OWNED: + return getOwned(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.HOLDER__HELD: + getHeld().clear(); + getHeld().addAll((Collection)newValue); + return; + case Model6Package.HOLDER__OWNED: + getOwned().clear(); + getOwned().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.HOLDER__HELD: + getHeld().clear(); + return; + case Model6Package.HOLDER__OWNED: + getOwned().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.HOLDER__HELD: + return held != null && !held.isEmpty(); + case Model6Package.HOLDER__OWNED: + return owned != null && !owned.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // HolderImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/Model6FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/Model6FactoryImpl.java new file mode 100644 index 0000000000..197aac1dce --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/Model6FactoryImpl.java @@ -0,0 +1,451 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.A; +import org.eclipse.emf.cdo.tests.model6.B; +import org.eclipse.emf.cdo.tests.model6.BaseObject; +import org.eclipse.emf.cdo.tests.model6.C; +import org.eclipse.emf.cdo.tests.model6.ContainmentObject; +import org.eclipse.emf.cdo.tests.model6.D; +import org.eclipse.emf.cdo.tests.model6.E; +import org.eclipse.emf.cdo.tests.model6.F; +import org.eclipse.emf.cdo.tests.model6.G; +import org.eclipse.emf.cdo.tests.model6.HasNillableAttribute; +import org.eclipse.emf.cdo.tests.model6.Holder; +import org.eclipse.emf.cdo.tests.model6.MyEnum; +import org.eclipse.emf.cdo.tests.model6.MyEnumList; +import org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable; +import org.eclipse.emf.cdo.tests.model6.PropertiesMap; +import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; +import org.eclipse.emf.cdo.tests.model6.ReferenceObject; +import org.eclipse.emf.cdo.tests.model6.Root; +import org.eclipse.emf.cdo.tests.model6.Thing; +import org.eclipse.emf.cdo.tests.model6.UnorderedList; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Factory; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +import java.util.Map; + +//import org.eclipse.emf.cdo.tests.model6.*; + +/** + * An implementation of the model Factory. + * @generated + */ +public class Model6FactoryImpl extends EFactoryImpl implements Model6Factory +{ + /** + * Creates the default factory implementation. + * + * @generated NOT + */ + public static Model6Factory init() + { + try + { + Model6Factory theModel6Factory = (Model6Factory)EPackage.Registry.INSTANCE + .getEFactory("http://www.eclipse.org/emf/CDO/tests/legacy/model6/1.0.0"); + if (theModel6Factory != null) + { + return theModel6Factory; + } + } + catch (Exception exception) + { + EcorePlugin.INSTANCE.log(exception); + } + return new Model6FactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * @generated + */ + public Model6FactoryImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + public EObject create(EClass eClass) + { + switch (eClass.getClassifierID()) + { + case Model6Package.ROOT: + return createRoot(); + case Model6Package.BASE_OBJECT: + return createBaseObject(); + case Model6Package.REFERENCE_OBJECT: + return createReferenceObject(); + case Model6Package.CONTAINMENT_OBJECT: + return createContainmentObject(); + case Model6Package.UNORDERED_LIST: + return createUnorderedList(); + case Model6Package.PROPERTIES_MAP: + return createPropertiesMap(); + case Model6Package.PROPERTIES_MAP_ENTRY: + return (EObject)createPropertiesMapEntry(); + case Model6Package.PROPERTIES_MAP_ENTRY_VALUE: + return createPropertiesMapEntryValue(); + case Model6Package.A: + return createA(); + case Model6Package.B: + return createB(); + case Model6Package.C: + return createC(); + case Model6Package.D: + return createD(); + case Model6Package.E: + return createE(); + case Model6Package.F: + return createF(); + case Model6Package.G: + return createG(); + case Model6Package.MY_ENUM_LIST: + return createMyEnumList(); + case Model6Package.MY_ENUM_LIST_UNSETTABLE: + return createMyEnumListUnsettable(); + case Model6Package.HOLDER: + return createHolder(); + case Model6Package.THING: + return createThing(); + case Model6Package.HAS_NILLABLE_ATTRIBUTE: + return createHasNillableAttribute(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) + { + switch (eDataType.getClassifierID()) + { + case Model6Package.MY_ENUM: + return createMyEnumFromString(eDataType, initialValue); + case Model6Package.MY_STRING: + return createMyStringFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) + { + switch (eDataType.getClassifierID()) + { + case Model6Package.MY_ENUM: + return convertMyEnumToString(eDataType, instanceValue); + case Model6Package.MY_STRING: + return convertMyStringToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * @generated + */ + public Root createRoot() + { + RootImpl root = new RootImpl(); + return root; + } + + /** + * + * @generated + */ + public BaseObject createBaseObject() + { + BaseObjectImpl baseObject = new BaseObjectImpl(); + return baseObject; + } + + /** + * + * @generated + */ + public ReferenceObject createReferenceObject() + { + ReferenceObjectImpl referenceObject = new ReferenceObjectImpl(); + return referenceObject; + } + + /** + * + * @generated + */ + public ContainmentObject createContainmentObject() + { + ContainmentObjectImpl containmentObject = new ContainmentObjectImpl(); + return containmentObject; + } + + /** + * + * @generated + */ + public UnorderedList createUnorderedList() + { + UnorderedListImpl unorderedList = new UnorderedListImpl(); + return unorderedList; + } + + /** + * + * + * @generated + */ + public PropertiesMap createPropertiesMap() + { + PropertiesMapImpl propertiesMap = new PropertiesMapImpl(); + return propertiesMap; + } + + /** + * + * + * @generated + */ + public Map.Entry createPropertiesMapEntry() + { + PropertiesMapEntryImpl propertiesMapEntry = new PropertiesMapEntryImpl(); + return propertiesMapEntry; + } + + /** + * + * + * @generated + */ + public PropertiesMapEntryValue createPropertiesMapEntryValue() + { + PropertiesMapEntryValueImpl propertiesMapEntryValue = new PropertiesMapEntryValueImpl(); + return propertiesMapEntryValue; + } + + /** + * + * @generated + */ + public A createA() + { + AImpl a = new AImpl(); + return a; + } + + /** + * + * @generated + */ + public B createB() + { + BImpl b = new BImpl(); + return b; + } + + /** + * + * @generated + */ + public C createC() + { + CImpl c = new CImpl(); + return c; + } + + /** + * + * @generated + */ + public D createD() + { + DImpl d = new DImpl(); + return d; + } + + /** + * + * @generated + */ + public E createE() + { + EImpl e = new EImpl(); + return e; + } + + /** + * + * @generated + */ + public F createF() + { + FImpl f = new FImpl(); + return f; + } + + /** + * + * + * @generated + */ + public G createG() + { + GImpl g = new GImpl(); + return g; + } + + /** + * + * + * @generated + */ + public MyEnumList createMyEnumList() + { + MyEnumListImpl myEnumList = new MyEnumListImpl(); + return myEnumList; + } + + /** + * + * + * @generated + */ + public MyEnumListUnsettable createMyEnumListUnsettable() + { + MyEnumListUnsettableImpl myEnumListUnsettable = new MyEnumListUnsettableImpl(); + return myEnumListUnsettable; + } + + /** + * + * + * @generated + */ + public Holder createHolder() + { + HolderImpl holder = new HolderImpl(); + return holder; + } + + /** + * + * + * @generated + */ + public Thing createThing() + { + ThingImpl thing = new ThingImpl(); + return thing; + } + + /** + * + * + * @generated + */ + public HasNillableAttribute createHasNillableAttribute() + { + HasNillableAttributeImpl hasNillableAttribute = new HasNillableAttributeImpl(); + return hasNillableAttribute; + } + + /** + * + * + * @generated + */ + public MyEnum createMyEnumFromString(EDataType eDataType, String initialValue) + { + MyEnum result = MyEnum.get(initialValue); + if (result == null) + throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertMyEnumToString(EDataType eDataType, Object instanceValue) + { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public String createMyStringFromString(EDataType eDataType, String initialValue) + { + return (String)super.createFromString(eDataType, initialValue); + } + + /** + * + * + * @generated + */ + public String convertMyStringToString(EDataType eDataType, Object instanceValue) + { + return super.convertToString(eDataType, instanceValue); + } + + /** + * + * @generated + */ + public Model6Package getModel6Package() + { + return (Model6Package)getEPackage(); + } + + /** + * + * @deprecated + * @generated + */ + @Deprecated + public static Model6Package getPackage() + { + return Model6Package.eINSTANCE; + } + +} // Model6FactoryImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/Model6PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/Model6PackageImpl.java new file mode 100644 index 0000000000..4d0a7db55b --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/Model6PackageImpl.java @@ -0,0 +1,1135 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.BaseObject; +import org.eclipse.emf.cdo.tests.model6.ContainmentObject; +import org.eclipse.emf.cdo.tests.model6.HasNillableAttribute; +import org.eclipse.emf.cdo.tests.model6.Holdable; +import org.eclipse.emf.cdo.tests.model6.Holder; +import org.eclipse.emf.cdo.tests.model6.MyEnum; +import org.eclipse.emf.cdo.tests.model6.MyEnumList; +import org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable; +import org.eclipse.emf.cdo.tests.model6.PropertiesMap; +import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; +import org.eclipse.emf.cdo.tests.model6.ReferenceObject; +import org.eclipse.emf.cdo.tests.model6.Root; +import org.eclipse.emf.cdo.tests.model6.Thing; +import org.eclipse.emf.cdo.tests.model6.UnorderedList; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Factory; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EEnum; +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 Model6PackageImpl extends EPackageImpl implements Model6Package +{ + /** + * + * @generated + */ + private EClass rootEClass = null; + + /** + * + * @generated + */ + private EClass baseObjectEClass = null; + + /** + * + * @generated + */ + private EClass referenceObjectEClass = null; + + /** + * + * @generated + */ + private EClass containmentObjectEClass = null; + + /** + * + * @generated + */ + private EClass unorderedListEClass = null; + + /** + * + * + * @generated + */ + private EClass propertiesMapEClass = null; + + /** + * + * + * @generated + */ + private EClass propertiesMapEntryEClass = null; + + /** + * + * + * @generated + */ + private EClass propertiesMapEntryValueEClass = null; + + /** + * + * @generated + */ + private EClass aEClass = null; + + /** + * + * @generated + */ + private EClass bEClass = null; + + /** + * + * @generated + */ + private EClass cEClass = null; + + /** + * + * @generated + */ + private EClass dEClass = null; + + /** + * + * @generated + */ + private EClass eEClass = null; + + /** + * + * @generated + */ + private EClass fEClass = null; + + /** + * + * + * @generated + */ + private EClass gEClass = null; + + /** + * + * + * @generated + */ + private EClass myEnumListEClass = null; + + /** + * + * + * @generated + */ + private EClass myEnumListUnsettableEClass = null; + + /** + * + * + * @generated + */ + private EClass holderEClass = null; + + /** + * + * + * @generated + */ + private EClass thingEClass = null; + + /** + * + * + * @generated + */ + private EClass holdableEClass = null; + + /** + * + * + * @generated + */ + private EClass hasNillableAttributeEClass = null; + + /** + * + * + * @generated + */ + private EEnum myEnumEEnum = null; + + /** + * + * + * @generated + */ + private EDataType myStringEDataType = 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.model6.Model6Package#eNS_URI + * @see #init() + * @generated + */ + private Model6PackageImpl() + { + super(eNS_URI, Model6Factory.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 Model6Package#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 Model6Package init() + { + if (isInited) + return (Model6Package)EPackage.Registry.INSTANCE.getEPackage(Model6Package.eNS_URI); + + // Obtain or create and register package + Model6PackageImpl theModel6Package = (Model6PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Model6PackageImpl ? EPackage.Registry.INSTANCE + .get(eNS_URI) : new Model6PackageImpl()); + + isInited = true; + + // Create package meta-data objects + theModel6Package.createPackageContents(); + + // Initialize created meta-data + theModel6Package.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theModel6Package.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(Model6Package.eNS_URI, theModel6Package); + return theModel6Package; + } + + /** + * + * @generated + */ + public EClass getRoot() + { + return rootEClass; + } + + /** + * + * @generated + */ + public EReference getRoot_ListA() + { + return (EReference)rootEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getRoot_ListB() + { + return (EReference)rootEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EReference getRoot_ListC() + { + return (EReference)rootEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EReference getRoot_ListD() + { + return (EReference)rootEClass.getEStructuralFeatures().get(3); + } + + /** + * + * @generated + */ + public EClass getBaseObject() + { + return baseObjectEClass; + } + + /** + * + * @generated + */ + public EAttribute getBaseObject_AttributeOptional() + { + return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getBaseObject_AttributeRequired() + { + return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EAttribute getBaseObject_AttributeList() + { + return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EClass getReferenceObject() + { + return referenceObjectEClass; + } + + /** + * + * @generated + */ + public EReference getReferenceObject_ReferenceOptional() + { + return (EReference)referenceObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getReferenceObject_ReferenceList() + { + return (EReference)referenceObjectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getContainmentObject() + { + return containmentObjectEClass; + } + + /** + * + * @generated + */ + public EReference getContainmentObject_ContainmentOptional() + { + return (EReference)containmentObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getContainmentObject_ContainmentList() + { + return (EReference)containmentObjectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getUnorderedList() + { + return unorderedListEClass; + } + + /** + * + * @generated + */ + public EReference getUnorderedList_Contained() + { + return (EReference)unorderedListEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getUnorderedList_Referenced() + { + return (EReference)unorderedListEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getPropertiesMap() + { + return propertiesMapEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPropertiesMap_Label() + { + return (EAttribute)propertiesMapEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getPropertiesMap_PersistentMap() + { + return (EReference)propertiesMapEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getPropertiesMap_TransientMap() + { + return (EReference)propertiesMapEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getPropertiesMapEntry() + { + return propertiesMapEntryEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPropertiesMapEntry_Key() + { + return (EAttribute)propertiesMapEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getPropertiesMapEntry_Value() + { + return (EReference)propertiesMapEntryEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getPropertiesMapEntryValue() + { + return propertiesMapEntryValueEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPropertiesMapEntryValue_Label() + { + return (EAttribute)propertiesMapEntryValueEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getA() + { + return aEClass; + } + + /** + * + * @generated + */ + public EReference getA_OwnedDs() + { + return (EReference)aEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getA_OwnedBs() + { + return (EReference)aEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getB() + { + return bEClass; + } + + /** + * + * @generated + */ + public EReference getB_OwnedC() + { + return (EReference)bEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getC() + { + return cEClass; + } + + /** + * + * @generated + */ + public EClass getD() + { + return dEClass; + } + + /** + * + * @generated + */ + public EReference getD_Data() + { + return (EReference)dEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getE() + { + return eEClass; + } + + /** + * + * @generated + */ + public EReference getE_OwnedAs() + { + return (EReference)eEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getF() + { + return fEClass; + } + + /** + * + * @generated + */ + public EReference getF_OwnedEs() + { + return (EReference)fEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getG() + { + return gEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getG_Dummy() + { + return (EAttribute)gEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getG_Reference() + { + return (EReference)gEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getG_List() + { + return (EReference)gEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getMyEnumList() + { + return myEnumListEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMyEnumList_MyEnum() + { + return (EAttribute)myEnumListEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getMyEnumListUnsettable() + { + return myEnumListUnsettableEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMyEnumListUnsettable_MyEnum() + { + return (EAttribute)myEnumListUnsettableEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getHolder() + { + return holderEClass; + } + + /** + * + * + * @generated + */ + public EReference getHolder_Held() + { + return (EReference)holderEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getHolder_Owned() + { + return (EReference)holderEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getThing() + { + return thingEClass; + } + + /** + * + * + * @generated + */ + public EClass getHoldable() + { + return holdableEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHoldable_Name() + { + return (EAttribute)holdableEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getHasNillableAttribute() + { + return hasNillableAttributeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHasNillableAttribute_Nillable() + { + return (EAttribute)hasNillableAttributeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EEnum getMyEnum() + { + return myEnumEEnum; + } + + /** + * + * + * @generated + */ + public EDataType getMyString() + { + return myStringEDataType; + } + + /** + * + * @generated + */ + public Model6Factory getModel6Factory() + { + return (Model6Factory)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 + rootEClass = createEClass(ROOT); + createEReference(rootEClass, ROOT__LIST_A); + createEReference(rootEClass, ROOT__LIST_B); + createEReference(rootEClass, ROOT__LIST_C); + createEReference(rootEClass, ROOT__LIST_D); + + baseObjectEClass = createEClass(BASE_OBJECT); + createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_OPTIONAL); + createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_REQUIRED); + createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_LIST); + + referenceObjectEClass = createEClass(REFERENCE_OBJECT); + createEReference(referenceObjectEClass, REFERENCE_OBJECT__REFERENCE_OPTIONAL); + createEReference(referenceObjectEClass, REFERENCE_OBJECT__REFERENCE_LIST); + + containmentObjectEClass = createEClass(CONTAINMENT_OBJECT); + createEReference(containmentObjectEClass, CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL); + createEReference(containmentObjectEClass, CONTAINMENT_OBJECT__CONTAINMENT_LIST); + + unorderedListEClass = createEClass(UNORDERED_LIST); + createEReference(unorderedListEClass, UNORDERED_LIST__CONTAINED); + createEReference(unorderedListEClass, UNORDERED_LIST__REFERENCED); + + propertiesMapEClass = createEClass(PROPERTIES_MAP); + createEAttribute(propertiesMapEClass, PROPERTIES_MAP__LABEL); + createEReference(propertiesMapEClass, PROPERTIES_MAP__PERSISTENT_MAP); + createEReference(propertiesMapEClass, PROPERTIES_MAP__TRANSIENT_MAP); + + propertiesMapEntryEClass = createEClass(PROPERTIES_MAP_ENTRY); + createEAttribute(propertiesMapEntryEClass, PROPERTIES_MAP_ENTRY__KEY); + createEReference(propertiesMapEntryEClass, PROPERTIES_MAP_ENTRY__VALUE); + + propertiesMapEntryValueEClass = createEClass(PROPERTIES_MAP_ENTRY_VALUE); + createEAttribute(propertiesMapEntryValueEClass, PROPERTIES_MAP_ENTRY_VALUE__LABEL); + + aEClass = createEClass(A); + createEReference(aEClass, A__OWNED_DS); + createEReference(aEClass, A__OWNED_BS); + + bEClass = createEClass(B); + createEReference(bEClass, B__OWNED_C); + + cEClass = createEClass(C); + + dEClass = createEClass(D); + createEReference(dEClass, D__DATA); + + eEClass = createEClass(E); + createEReference(eEClass, E__OWNED_AS); + + fEClass = createEClass(F); + createEReference(fEClass, F__OWNED_ES); + + gEClass = createEClass(G); + createEAttribute(gEClass, G__DUMMY); + createEReference(gEClass, G__REFERENCE); + createEReference(gEClass, G__LIST); + + myEnumListEClass = createEClass(MY_ENUM_LIST); + createEAttribute(myEnumListEClass, MY_ENUM_LIST__MY_ENUM); + + myEnumListUnsettableEClass = createEClass(MY_ENUM_LIST_UNSETTABLE); + createEAttribute(myEnumListUnsettableEClass, MY_ENUM_LIST_UNSETTABLE__MY_ENUM); + + holderEClass = createEClass(HOLDER); + createEReference(holderEClass, HOLDER__HELD); + createEReference(holderEClass, HOLDER__OWNED); + + thingEClass = createEClass(THING); + + holdableEClass = createEClass(HOLDABLE); + createEAttribute(holdableEClass, HOLDABLE__NAME); + + hasNillableAttributeEClass = createEClass(HAS_NILLABLE_ATTRIBUTE); + createEAttribute(hasNillableAttributeEClass, HAS_NILLABLE_ATTRIBUTE__NILLABLE); + + // Create enums + myEnumEEnum = createEEnum(MY_ENUM); + + // Create data types + myStringEDataType = createEDataType(MY_STRING); + } + + /** + * + * @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); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + referenceObjectEClass.getESuperTypes().add(this.getBaseObject()); + containmentObjectEClass.getESuperTypes().add(this.getBaseObject()); + holderEClass.getESuperTypes().add(this.getHoldable()); + thingEClass.getESuperTypes().add(this.getHoldable()); + + // Initialize classes and features; add operations and parameters + initEClass(rootEClass, Root.class, "Root", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getRoot_ListA(), this.getBaseObject(), null, "listA", null, 0, -1, Root.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getRoot_ListB(), this.getBaseObject(), null, "listB", null, 0, -1, Root.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getRoot_ListC(), this.getBaseObject(), null, "listC", null, 0, -1, Root.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getRoot_ListD(), this.getBaseObject(), null, "listD", null, 0, -1, Root.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(baseObjectEClass, BaseObject.class, "BaseObject", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getBaseObject_AttributeOptional(), ecorePackage.getEString(), "attributeOptional", null, 0, 1, + BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getBaseObject_AttributeRequired(), ecorePackage.getEString(), "attributeRequired", null, 1, 1, + BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getBaseObject_AttributeList(), ecorePackage.getEString(), "attributeList", null, 0, -1, + BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(referenceObjectEClass, ReferenceObject.class, "ReferenceObject", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getReferenceObject_ReferenceOptional(), this.getBaseObject(), null, "referenceOptional", null, 0, 1, + ReferenceObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getReferenceObject_ReferenceList(), this.getBaseObject(), null, "referenceList", null, 0, -1, + ReferenceObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(containmentObjectEClass, ContainmentObject.class, "ContainmentObject", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getContainmentObject_ContainmentOptional(), this.getBaseObject(), null, "containmentOptional", null, + 0, 1, ContainmentObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getContainmentObject_ContainmentList(), this.getBaseObject(), null, "containmentList", null, 0, -1, + ContainmentObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(unorderedListEClass, UnorderedList.class, "UnorderedList", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getUnorderedList_Contained(), this.getUnorderedList(), null, "contained", null, 0, -1, + UnorderedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getUnorderedList_Referenced(), this.getUnorderedList(), null, "referenced", null, 0, -1, + UnorderedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(propertiesMapEClass, PropertiesMap.class, "PropertiesMap", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPropertiesMap_Label(), ecorePackage.getEString(), "label", null, 0, 1, PropertiesMap.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPropertiesMap_PersistentMap(), this.getPropertiesMapEntry(), null, "persistentMap", null, 0, -1, + PropertiesMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPropertiesMap_TransientMap(), this.getPropertiesMapEntry(), null, "transientMap", null, 0, -1, + PropertiesMap.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(propertiesMapEntryEClass, Map.Entry.class, "PropertiesMapEntry", !IS_ABSTRACT, !IS_INTERFACE, + !IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPropertiesMapEntry_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(getPropertiesMapEntry_Value(), this.getPropertiesMapEntryValue(), 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(propertiesMapEntryValueEClass, PropertiesMapEntryValue.class, "PropertiesMapEntryValue", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPropertiesMapEntryValue_Label(), ecorePackage.getEString(), "label", null, 0, 1, + PropertiesMapEntryValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(aEClass, org.eclipse.emf.cdo.tests.model6.A.class, "A", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getA_OwnedDs(), this.getD(), null, "ownedDs", null, 0, -1, org.eclipse.emf.cdo.tests.model6.A.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getA_OwnedBs(), this.getB(), null, "ownedBs", null, 0, -1, org.eclipse.emf.cdo.tests.model6.A.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(bEClass, org.eclipse.emf.cdo.tests.model6.B.class, "B", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getB_OwnedC(), this.getC(), null, "ownedC", null, 0, 1, org.eclipse.emf.cdo.tests.model6.B.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(cEClass, org.eclipse.emf.cdo.tests.model6.C.class, "C", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(dEClass, org.eclipse.emf.cdo.tests.model6.D.class, "D", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getD_Data(), ecorePackage.getEObject(), null, "data", null, 0, 1, + org.eclipse.emf.cdo.tests.model6.D.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, + !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eEClass, org.eclipse.emf.cdo.tests.model6.E.class, "E", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getE_OwnedAs(), this.getA(), null, "ownedAs", null, 0, -1, org.eclipse.emf.cdo.tests.model6.E.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(fEClass, org.eclipse.emf.cdo.tests.model6.F.class, "F", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getF_OwnedEs(), this.getE(), null, "ownedEs", null, 0, -1, org.eclipse.emf.cdo.tests.model6.F.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(gEClass, org.eclipse.emf.cdo.tests.model6.G.class, "G", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getG_Dummy(), ecorePackage.getEString(), "dummy", null, 1, 1, + org.eclipse.emf.cdo.tests.model6.G.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getG_Reference(), this.getBaseObject(), null, "reference", null, 1, 1, + org.eclipse.emf.cdo.tests.model6.G.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getG_List(), this.getBaseObject(), null, "list", null, 0, -1, + org.eclipse.emf.cdo.tests.model6.G.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + addEOperation(gEClass, ecorePackage.getEBoolean(), "isAttributeModified", 1, 1, IS_UNIQUE, IS_ORDERED); + + addEOperation(gEClass, ecorePackage.getEBoolean(), "isReferenceModified", 1, 1, IS_UNIQUE, IS_ORDERED); + + addEOperation(gEClass, ecorePackage.getEBoolean(), "isListModified", 1, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(myEnumListEClass, MyEnumList.class, "MyEnumList", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMyEnumList_MyEnum(), this.getMyEnum(), "myEnum", null, 0, -1, MyEnumList.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(myEnumListUnsettableEClass, MyEnumListUnsettable.class, "MyEnumListUnsettable", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMyEnumListUnsettable_MyEnum(), this.getMyEnum(), "myEnum", null, 0, -1, + MyEnumListUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(holderEClass, Holder.class, "Holder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getHolder_Held(), this.getHoldable(), null, "held", null, 0, -1, Holder.class, IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, + IS_ORDERED); + initEReference(getHolder_Owned(), this.getHoldable(), null, "owned", null, 0, -1, Holder.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(thingEClass, Thing.class, "Thing", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(holdableEClass, Holdable.class, "Holdable", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHoldable_Name(), ecorePackage.getEString(), "name", null, 1, 1, Holdable.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(hasNillableAttributeEClass, HasNillableAttribute.class, "HasNillableAttribute", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHasNillableAttribute_Nillable(), this.getMyString(), "nillable", null, 0, 1, + HasNillableAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(myEnumEEnum, MyEnum.class, "MyEnum"); + addEEnumLiteral(myEnumEEnum, MyEnum.ZERO); + addEEnumLiteral(myEnumEEnum, MyEnum.ONE); + addEEnumLiteral(myEnumEEnum, MyEnum.TWO); + addEEnumLiteral(myEnumEEnum, MyEnum.THREE); + + // Initialize data types + initEDataType(myStringEDataType, String.class, "MyString", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/CDO + createCDOAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/CDO. + * + * + * @generated + */ + protected void createCDOAnnotations() + { + String source = "http://www.eclipse.org/emf/CDO"; + addAnnotation(getHolder_Held(), source, new String[] { "persistent", "true", "filter", "owned" }); + } + +} // Model6PackageImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/MyEnumListImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/MyEnumListImpl.java new file mode 100644 index 0000000000..66e0eed44b --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/MyEnumListImpl.java @@ -0,0 +1,170 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.MyEnum; +import org.eclipse.emf.cdo.tests.model6.MyEnumList; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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 'My Enum List'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.MyEnumListImpl#getMyEnum My Enum}
  • + *
+ *

+ * + * @generated + */ +public class MyEnumListImpl extends EObjectImpl implements MyEnumList +{ + /** + * The cached value of the '{@link #getMyEnum() My Enum}' attribute list. + * + * + * @see #getMyEnum() + * @generated + * @ordered + */ + protected EList myEnum; + + /** + * + * + * @generated + */ + protected MyEnumListImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getMyEnumList(); + } + + /** + * + * + * @generated + */ + public EList getMyEnum() + { + if (myEnum == null) + { + myEnum = new EDataTypeUniqueEList(MyEnum.class, this, Model6Package.MY_ENUM_LIST__MY_ENUM); + } + return myEnum; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.MY_ENUM_LIST__MY_ENUM: + return getMyEnum(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.MY_ENUM_LIST__MY_ENUM: + getMyEnum().clear(); + getMyEnum().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.MY_ENUM_LIST__MY_ENUM: + getMyEnum().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.MY_ENUM_LIST__MY_ENUM: + return myEnum != null && !myEnum.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (myEnum: "); + result.append(myEnum); + result.append(')'); + return result.toString(); + } + +} // MyEnumListImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/MyEnumListUnsettableImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/MyEnumListUnsettableImpl.java new file mode 100644 index 0000000000..2b8abe6d81 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/MyEnumListUnsettableImpl.java @@ -0,0 +1,193 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.MyEnum; +import org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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 org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * + * An implementation of the model object 'My Enum List Unsettable'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.MyEnumListUnsettableImpl#getMyEnum My Enum}
  • + *
+ *

+ * + * @generated + */ +public class MyEnumListUnsettableImpl extends EObjectImpl implements MyEnumListUnsettable +{ + /** + * The cached value of the '{@link #getMyEnum() My Enum}' attribute list. + * + * + * @see #getMyEnum() + * @generated + * @ordered + */ + protected EList myEnum; + + /** + * + * + * @generated + */ + protected MyEnumListUnsettableImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getMyEnumListUnsettable(); + } + + /** + * + * + * @generated + */ + public EList getMyEnum() + { + if (myEnum == null) + { + myEnum = new EDataTypeUniqueEList.Unsettable(MyEnum.class, this, + Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM); + } + return myEnum; + } + + /** + * + * + * @generated + */ + public void unsetMyEnum() + { + if (myEnum != null) + ((InternalEList.Unsettable)myEnum).unset(); + } + + /** + * + * + * @generated + */ + public boolean isSetMyEnum() + { + return myEnum != null && ((InternalEList.Unsettable)myEnum).isSet(); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM: + return getMyEnum(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM: + getMyEnum().clear(); + getMyEnum().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM: + unsetMyEnum(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.MY_ENUM_LIST_UNSETTABLE__MY_ENUM: + return isSetMyEnum(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (myEnum: "); + result.append(myEnum); + result.append(')'); + return result.toString(); + } + +} // MyEnumListUnsettableImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/PropertiesMapEntryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/PropertiesMapEntryImpl.java new file mode 100644 index 0000000000..325c52ab8b --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/PropertiesMapEntryImpl.java @@ -0,0 +1,401 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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 'Properties Map Entry'. + * + *

+ * The following features are implemented: + *

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

+ * + * @generated + */ +public class PropertiesMapEntryImpl 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 PropertiesMapEntryValue value; + + /** + * + * + * @generated + */ + protected PropertiesMapEntryImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getPropertiesMapEntry(); + } + + /** + * + * + * @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, Model6Package.PROPERTIES_MAP_ENTRY__KEY, oldKey, key)); + } + + /** + * + * + * @generated + */ + public PropertiesMapEntryValue getTypedValue() + { + if (value != null && value.eIsProxy()) + { + InternalEObject oldValue = (InternalEObject)value; + value = (PropertiesMapEntryValue)eResolveProxy(oldValue); + if (value != oldValue) + { + InternalEObject newValue = (InternalEObject)value; + NotificationChain msgs = oldValue.eInverseRemove(this, EOPPOSITE_FEATURE_BASE + - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, null, null); + if (newValue.eInternalContainer() == null) + { + msgs = newValue.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, null, + msgs); + } + if (msgs != null) + msgs.dispatch(); + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.PROPERTIES_MAP_ENTRY__VALUE, + oldValue, value)); + } + } + return value; + } + + /** + * + * + * @generated + */ + public PropertiesMapEntryValue basicGetTypedValue() + { + return value; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetTypedValue(PropertiesMapEntryValue newValue, NotificationChain msgs) + { + PropertiesMapEntryValue oldValue = value; + value = newValue; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, + Model6Package.PROPERTIES_MAP_ENTRY__VALUE, oldValue, newValue); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setTypedValue(PropertiesMapEntryValue newValue) + { + if (newValue != value) + { + NotificationChain msgs = null; + if (value != null) + msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE + - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, null, msgs); + if (newValue != null) + msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE + - Model6Package.PROPERTIES_MAP_ENTRY__VALUE, null, msgs); + msgs = basicSetTypedValue(newValue, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.PROPERTIES_MAP_ENTRY__VALUE, newValue, + newValue)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP_ENTRY__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 Model6Package.PROPERTIES_MAP_ENTRY__KEY: + return getTypedKey(); + case Model6Package.PROPERTIES_MAP_ENTRY__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 Model6Package.PROPERTIES_MAP_ENTRY__KEY: + setTypedKey((String)newValue); + return; + case Model6Package.PROPERTIES_MAP_ENTRY__VALUE: + setTypedValue((PropertiesMapEntryValue)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP_ENTRY__KEY: + setTypedKey(KEY_EDEFAULT); + return; + case Model6Package.PROPERTIES_MAP_ENTRY__VALUE: + setTypedValue((PropertiesMapEntryValue)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP_ENTRY__KEY: + return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); + case Model6Package.PROPERTIES_MAP_ENTRY__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 PropertiesMapEntryValue getValue() + { + return getTypedValue(); + } + + /** + * + * + * @generated + */ + public PropertiesMapEntryValue setValue(PropertiesMapEntryValue value) + { + PropertiesMapEntryValue oldValue = getValue(); + setTypedValue(value); + return oldValue; + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + public EMap getEMap() + { + EObject container = eContainer(); + return container == null ? null : (EMap)container.eGet(eContainmentFeature()); + } + +} // PropertiesMapEntryImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/PropertiesMapEntryValueImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/PropertiesMapEntryValueImpl.java new file mode 100644 index 0000000000..c717374ad3 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/PropertiesMapEntryValueImpl.java @@ -0,0 +1,185 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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; + +/** + * + * An implementation of the model object 'Properties Map Entry Value'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.PropertiesMapEntryValueImpl#getLabel Label}
  • + *
+ *

+ * + * @generated + */ +public class PropertiesMapEntryValueImpl extends EObjectImpl implements PropertiesMapEntryValue +{ + /** + * The default value of the '{@link #getLabel() Label}' attribute. + * + * + * @see #getLabel() + * @generated + * @ordered + */ + protected static final String LABEL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLabel() Label}' attribute. + * + * + * @see #getLabel() + * @generated + * @ordered + */ + protected String label = LABEL_EDEFAULT; + + /** + * + * + * @generated + */ + protected PropertiesMapEntryValueImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getPropertiesMapEntryValue(); + } + + /** + * + * + * @generated + */ + public String getLabel() + { + return label; + } + + /** + * + * + * @generated + */ + public void setLabel(String newLabel) + { + String oldLabel = label; + label = newLabel; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL, oldLabel, + label)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL: + return getLabel(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL: + setLabel((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL: + setLabel(LABEL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP_ENTRY_VALUE__LABEL: + return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (label: "); + result.append(label); + result.append(')'); + return result.toString(); + } + +} // PropertiesMapEntryValueImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/PropertiesMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/PropertiesMapImpl.java new file mode 100644 index 0000000000..96d6d57bd9 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/PropertiesMapImpl.java @@ -0,0 +1,287 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.PropertiesMap; +import org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +import org.eclipse.emf.common.notify.Notification; +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.EStructuralFeature; +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.EcoreEMap; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Properties Map'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.PropertiesMapImpl#getLabel Label}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.PropertiesMapImpl#getPersistentMap Persistent Map}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.PropertiesMapImpl#getTransientMap Transient Map}
  • + *
+ *

+ * + * @generated + */ +public class PropertiesMapImpl extends EObjectImpl implements PropertiesMap +{ + /** + * The default value of the '{@link #getLabel() Label}' attribute. + * + * + * @see #getLabel() + * @generated + * @ordered + */ + protected static final String LABEL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLabel() Label}' attribute. + * + * + * @see #getLabel() + * @generated + * @ordered + */ + protected String label = LABEL_EDEFAULT; + + /** + * The cached value of the '{@link #getPersistentMap() Persistent Map}' map. + * + * + * @see #getPersistentMap() + * @generated + * @ordered + */ + protected EMap persistentMap; + + /** + * The cached value of the '{@link #getTransientMap() Transient Map}' map. + * + * + * @see #getTransientMap() + * @generated + * @ordered + */ + protected EMap transientMap; + + /** + * + * + * @generated + */ + protected PropertiesMapImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getPropertiesMap(); + } + + /** + * + * + * @generated + */ + public String getLabel() + { + return label; + } + + /** + * + * + * @generated + */ + public void setLabel(String newLabel) + { + String oldLabel = label; + label = newLabel; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.PROPERTIES_MAP__LABEL, oldLabel, label)); + } + + /** + * + * + * @generated + */ + public EMap getPersistentMap() + { + if (persistentMap == null) + { + persistentMap = new EcoreEMap(Model6Package.eINSTANCE.getPropertiesMapEntry(), + PropertiesMapEntryImpl.class, this, Model6Package.PROPERTIES_MAP__PERSISTENT_MAP); + } + return persistentMap; + } + + /** + * + * + * @generated + */ + public EMap getTransientMap() + { + if (transientMap == null) + { + transientMap = new EcoreEMap(Model6Package.eINSTANCE.getPropertiesMapEntry(), + PropertiesMapEntryImpl.class, this, Model6Package.PROPERTIES_MAP__TRANSIENT_MAP); + } + return transientMap; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: + return ((InternalEList)getPersistentMap()).basicRemove(otherEnd, msgs); + case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: + return ((InternalEList)getTransientMap()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP__LABEL: + return getLabel(); + case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: + if (coreType) + return getPersistentMap(); + else + return getPersistentMap().map(); + case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: + if (coreType) + return getTransientMap(); + else + return getTransientMap().map(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP__LABEL: + setLabel((String)newValue); + return; + case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: + ((EStructuralFeature.Setting)getPersistentMap()).set(newValue); + return; + case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: + ((EStructuralFeature.Setting)getTransientMap()).set(newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP__LABEL: + setLabel(LABEL_EDEFAULT); + return; + case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: + getPersistentMap().clear(); + return; + case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: + getTransientMap().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.PROPERTIES_MAP__LABEL: + return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); + case Model6Package.PROPERTIES_MAP__PERSISTENT_MAP: + return persistentMap != null && !persistentMap.isEmpty(); + case Model6Package.PROPERTIES_MAP__TRANSIENT_MAP: + return transientMap != null && !transientMap.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (label: "); + result.append(label); + result.append(')'); + return result.toString(); + } + +} // PropertiesMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/ReferenceObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/ReferenceObjectImpl.java new file mode 100644 index 0000000000..c49b634f02 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/ReferenceObjectImpl.java @@ -0,0 +1,216 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.BaseObject; +import org.eclipse.emf.cdo.tests.model6.ReferenceObject; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +import org.eclipse.emf.common.notify.Notification; +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.util.EObjectResolvingEList; + +import java.util.Collection; + +/** + * An implementation of the model object ' Reference Object'. + *

+ * The following features are implemented: + *

    + *
  • + * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ReferenceObjectImpl#getReferenceOptional Reference + * Optional}
  • + *
  • + * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ReferenceObjectImpl#getReferenceList Reference List} + *
  • + *
+ *

+ * + * @generated + */ +public class ReferenceObjectImpl extends BaseObjectImpl implements ReferenceObject +{ + /** + * The cached value of the '{@link #getReferenceOptional() Reference Optional}' reference. + * + * @see #getReferenceOptional() + * @generated + * @ordered + */ + protected BaseObject referenceOptional; + + /** + * The cached value of the '{@link #getReferenceList() Reference List}' reference list. + * + * @see #getReferenceList() + * @generated + * @ordered + */ + protected EList referenceList; + + /** + * + * @generated + */ + protected ReferenceObjectImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getReferenceObject(); + } + + /** + * + * @generated + */ + public BaseObject getReferenceOptional() + { + if (referenceOptional != null && referenceOptional.eIsProxy()) + { + InternalEObject oldReferenceOptional = (InternalEObject)referenceOptional; + referenceOptional = (BaseObject)eResolveProxy(oldReferenceOptional); + if (referenceOptional != oldReferenceOptional) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL, + oldReferenceOptional, referenceOptional)); + } + } + return referenceOptional; + } + + /** + * + * @generated + */ + public BaseObject basicGetReferenceOptional() + { + return referenceOptional; + } + + /** + * + * @generated + */ + public void setReferenceOptional(BaseObject newReferenceOptional) + { + BaseObject oldReferenceOptional = referenceOptional; + referenceOptional = newReferenceOptional; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL, + oldReferenceOptional, referenceOptional)); + } + + /** + * + * @generated + */ + public EList getReferenceList() + { + if (referenceList == null) + { + referenceList = new EObjectResolvingEList(BaseObject.class, this, + Model6Package.REFERENCE_OBJECT__REFERENCE_LIST); + } + return referenceList; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL: + if (resolve) + return getReferenceOptional(); + return basicGetReferenceOptional(); + case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST: + return getReferenceList(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL: + setReferenceOptional((BaseObject)newValue); + return; + case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST: + getReferenceList().clear(); + getReferenceList().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL: + setReferenceOptional((BaseObject)null); + return; + case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST: + getReferenceList().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL: + return referenceOptional != null; + case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST: + return referenceList != null && !referenceList.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // ReferenceObjectImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/RootImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/RootImpl.java new file mode 100644 index 0000000000..090d7dcee4 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/RootImpl.java @@ -0,0 +1,272 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.BaseObject; +import org.eclipse.emf.cdo.tests.model6.Root; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object ' Root'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.RootImpl#getListA List A}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.RootImpl#getListB List B}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.RootImpl#getListC List C}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.RootImpl#getListD List D}
  • + *
+ *

+ * + * @generated + */ +public class RootImpl extends EObjectImpl implements Root +{ + /** + * The cached value of the '{@link #getListA() List A}' containment reference list. + * + * + * @see #getListA() + * @generated + * @ordered + */ + protected EList listA; + + /** + * The cached value of the '{@link #getListB() List B}' containment reference list. + * + * + * @see #getListB() + * @generated + * @ordered + */ + protected EList listB; + + /** + * The cached value of the '{@link #getListC() List C}' containment reference list. + * + * + * @see #getListC() + * @generated + * @ordered + */ + protected EList listC; + + /** + * The cached value of the '{@link #getListD() List D}' containment reference list. + * + * + * @see #getListD() + * @generated + * @ordered + */ + protected EList listD; + + /** + * + * @generated + */ + protected RootImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getRoot(); + } + + /** + * + * @generated + */ + public EList getListA() + { + if (listA == null) + { + listA = new EObjectContainmentEList.Resolving(BaseObject.class, this, Model6Package.ROOT__LIST_A); + } + return listA; + } + + /** + * + * @generated + */ + public EList getListB() + { + if (listB == null) + { + listB = new EObjectContainmentEList.Resolving(BaseObject.class, this, Model6Package.ROOT__LIST_B); + } + return listB; + } + + /** + * + * @generated + */ + public EList getListC() + { + if (listC == null) + { + listC = new EObjectContainmentEList.Resolving(BaseObject.class, this, Model6Package.ROOT__LIST_C); + } + return listC; + } + + /** + * + * @generated + */ + public EList getListD() + { + if (listD == null) + { + listD = new EObjectContainmentEList.Resolving(BaseObject.class, this, Model6Package.ROOT__LIST_D); + } + return listD; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.ROOT__LIST_A: + return ((InternalEList)getListA()).basicRemove(otherEnd, msgs); + case Model6Package.ROOT__LIST_B: + return ((InternalEList)getListB()).basicRemove(otherEnd, msgs); + case Model6Package.ROOT__LIST_C: + return ((InternalEList)getListC()).basicRemove(otherEnd, msgs); + case Model6Package.ROOT__LIST_D: + return ((InternalEList)getListD()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.ROOT__LIST_A: + return getListA(); + case Model6Package.ROOT__LIST_B: + return getListB(); + case Model6Package.ROOT__LIST_C: + return getListC(); + case Model6Package.ROOT__LIST_D: + return getListD(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.ROOT__LIST_A: + getListA().clear(); + getListA().addAll((Collection)newValue); + return; + case Model6Package.ROOT__LIST_B: + getListB().clear(); + getListB().addAll((Collection)newValue); + return; + case Model6Package.ROOT__LIST_C: + getListC().clear(); + getListC().addAll((Collection)newValue); + return; + case Model6Package.ROOT__LIST_D: + getListD().clear(); + getListD().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.ROOT__LIST_A: + getListA().clear(); + return; + case Model6Package.ROOT__LIST_B: + getListB().clear(); + return; + case Model6Package.ROOT__LIST_C: + getListC().clear(); + return; + case Model6Package.ROOT__LIST_D: + getListD().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.ROOT__LIST_A: + return listA != null && !listA.isEmpty(); + case Model6Package.ROOT__LIST_B: + return listB != null && !listB.isEmpty(); + case Model6Package.ROOT__LIST_C: + return listC != null && !listC.isEmpty(); + case Model6Package.ROOT__LIST_D: + return listD != null && !listD.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // RootImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/ThingImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/ThingImpl.java new file mode 100644 index 0000000000..f613104998 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/ThingImpl.java @@ -0,0 +1,42 @@ +/** + */ +package org.eclipse.emf.cdo.tests.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.Thing; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'Thing'. + * + *

+ *

+ * + * @generated + */ +public class ThingImpl extends HoldableImpl implements Thing +{ + /** + * + * + * @generated + */ + protected ThingImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getThing(); + } + +} // ThingImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/UnorderedListImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/UnorderedListImpl.java new file mode 100644 index 0000000000..cf15cad631 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/UnorderedListImpl.java @@ -0,0 +1,198 @@ +/* + * 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.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.UnorderedList; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object 'Unordered List'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.UnorderedListImpl#getContained Contained}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model6.legacy.impl.UnorderedListImpl#getReferenced Referenced}
  • + *
+ *

+ * + * @generated + */ +public class UnorderedListImpl extends EObjectImpl implements UnorderedList +{ + /** + * The cached value of the '{@link #getContained() Contained}' containment reference list. + * + * @see #getContained() + * @generated + * @ordered + */ + protected EList contained; + + /** + * The cached value of the '{@link #getReferenced() Referenced}' reference list. + * + * @see #getReferenced() + * @generated + * @ordered + */ + protected EList referenced; + + /** + * + * @generated + */ + protected UnorderedListImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getUnorderedList(); + } + + /** + * + * @generated + */ + public EList getContained() + { + if (contained == null) + { + contained = new EObjectContainmentEList.Resolving(UnorderedList.class, this, + Model6Package.UNORDERED_LIST__CONTAINED); + } + return contained; + } + + /** + * + * @generated + */ + public EList getReferenced() + { + if (referenced == null) + { + referenced = new EObjectResolvingEList(UnorderedList.class, this, + Model6Package.UNORDERED_LIST__REFERENCED); + } + return referenced; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model6Package.UNORDERED_LIST__CONTAINED: + return ((InternalEList)getContained()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model6Package.UNORDERED_LIST__CONTAINED: + return getContained(); + case Model6Package.UNORDERED_LIST__REFERENCED: + return getReferenced(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model6Package.UNORDERED_LIST__CONTAINED: + getContained().clear(); + getContained().addAll((Collection)newValue); + return; + case Model6Package.UNORDERED_LIST__REFERENCED: + getReferenced().clear(); + getReferenced().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model6Package.UNORDERED_LIST__CONTAINED: + getContained().clear(); + return; + case Model6Package.UNORDERED_LIST__REFERENCED: + getReferenced().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model6Package.UNORDERED_LIST__CONTAINED: + return contained != null && !contained.isEmpty(); + case Model6Package.UNORDERED_LIST__REFERENCED: + return referenced != null && !referenced.isEmpty(); + } + return super.eIsSet(featureID); + } + +} // UnorderedListImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/util/Model6AdapterFactory.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/util/Model6AdapterFactory.java new file mode 100644 index 0000000000..55cabdc9e0 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/util/Model6AdapterFactory.java @@ -0,0 +1,555 @@ +/** + */ +package org.eclipse.emf.cdo.tests.model6.legacy.util; + +import java.util.Map; + +import org.eclipse.emf.cdo.tests.model6.*; + +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.emf.cdo.tests.model6.legacy.Model6Package + * @generated + */ +public class Model6AdapterFactory extends AdapterFactoryImpl +{ + /** + * The cached model package. + * + * + * @generated + */ + protected static Model6Package modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public Model6AdapterFactory() + { + if (modelPackage == null) + { + modelPackage = Model6Package.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 Model6Switch modelSwitch = new Model6Switch() + { + @Override + public Adapter caseRoot(Root object) + { + return createRootAdapter(); + } + + @Override + public Adapter caseBaseObject(BaseObject object) + { + return createBaseObjectAdapter(); + } + + @Override + public Adapter caseReferenceObject(ReferenceObject object) + { + return createReferenceObjectAdapter(); + } + + @Override + public Adapter caseContainmentObject(ContainmentObject object) + { + return createContainmentObjectAdapter(); + } + + @Override + public Adapter caseUnorderedList(UnorderedList object) + { + return createUnorderedListAdapter(); + } + + @Override + public Adapter casePropertiesMap(PropertiesMap object) + { + return createPropertiesMapAdapter(); + } + + @Override + public Adapter casePropertiesMapEntry(Map.Entry object) + { + return createPropertiesMapEntryAdapter(); + } + + @Override + public Adapter casePropertiesMapEntryValue(PropertiesMapEntryValue object) + { + return createPropertiesMapEntryValueAdapter(); + } + + @Override + public Adapter caseA(A object) + { + return createAAdapter(); + } + + @Override + public Adapter caseB(B object) + { + return createBAdapter(); + } + + @Override + public Adapter caseC(C object) + { + return createCAdapter(); + } + + @Override + public Adapter caseD(D object) + { + return createDAdapter(); + } + + @Override + public Adapter caseE(E object) + { + return createEAdapter(); + } + + @Override + public Adapter caseF(F object) + { + return createFAdapter(); + } + + @Override + public Adapter caseG(G object) + { + return createGAdapter(); + } + + @Override + public Adapter caseMyEnumList(MyEnumList object) + { + return createMyEnumListAdapter(); + } + + @Override + public Adapter caseMyEnumListUnsettable(MyEnumListUnsettable object) + { + return createMyEnumListUnsettableAdapter(); + } + + @Override + public Adapter caseHolder(Holder object) + { + return createHolderAdapter(); + } + + @Override + public Adapter caseThing(Thing object) + { + return createThingAdapter(); + } + + @Override + public Adapter caseHoldable(Holdable object) + { + return createHoldableAdapter(); + } + + @Override + public Adapter caseHasNillableAttribute(HasNillableAttribute object) + { + return createHasNillableAttributeAdapter(); + } + + @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.model6.Root Root}'. + * + * 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.model6.Root + * @generated + */ + public Adapter createRootAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.BaseObject Base Object}'. + * + * 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.model6.BaseObject + * @generated + */ + public Adapter createBaseObjectAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.ReferenceObject Reference Object}'. + * + * 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.model6.ReferenceObject + * @generated + */ + public Adapter createReferenceObjectAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.ContainmentObject Containment Object}'. + * + * 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.model6.ContainmentObject + * @generated + */ + public Adapter createContainmentObjectAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.UnorderedList Unordered List}'. + * + * 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.model6.UnorderedList + * @generated + */ + public Adapter createUnorderedListAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.PropertiesMap Properties 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 org.eclipse.emf.cdo.tests.model6.PropertiesMap + * @generated + */ + public Adapter createPropertiesMapAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link java.util.Map.Entry Properties Map Entry}'. + * + * 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 createPropertiesMapEntryAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.PropertiesMapEntryValue Properties Map Entry Value}'. + * + * 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.model6.PropertiesMapEntryValue + * @generated + */ + public Adapter createPropertiesMapEntryValueAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.A A}'. + * + * 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.model6.A + * @generated + */ + public Adapter createAAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.B B}'. + * + * 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.model6.B + * @generated + */ + public Adapter createBAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.C C}'. + * + * 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.model6.C + * @generated + */ + public Adapter createCAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.D D}'. + * + * 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.model6.D + * @generated + */ + public Adapter createDAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.E E}'. + * + * 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.model6.E + * @generated + */ + public Adapter createEAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.F F}'. + * + * 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.model6.F + * @generated + */ + public Adapter createFAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.G G}'. + * + * 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.model6.G + * @generated + */ + public Adapter createGAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.MyEnumList My Enum List}'. + * + * 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.model6.MyEnumList + * @generated + */ + public Adapter createMyEnumListAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable My Enum List 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.model6.MyEnumListUnsettable + * @generated + */ + public Adapter createMyEnumListUnsettableAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.Holder 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.model6.Holder + * @generated + */ + public Adapter createHolderAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.Thing Thing}'. + * + * 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.model6.Thing + * @generated + */ + public Adapter createThingAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.Holdable Holdable}'. + * + * 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.model6.Holdable + * @generated + */ + public Adapter createHoldableAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.HasNillableAttribute Has Nillable Attribute}'. + * + * 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.model6.HasNillableAttribute + * @generated + */ + public Adapter createHasNillableAttributeAdapter() + { + 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; + } + +} //Model6AdapterFactory diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/util/Model6Switch.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/util/Model6Switch.java new file mode 100644 index 0000000000..43fd3db68e --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/util/Model6Switch.java @@ -0,0 +1,629 @@ +/** + */ +package org.eclipse.emf.cdo.tests.model6.legacy.util; + +import java.util.List; +import java.util.Map; + +import org.eclipse.emf.cdo.tests.model6.*; + +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +/** + * + * 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.model6.legacy.Model6Package + * @generated + */ +public class Model6Switch +{ + /** + * The cached model package + * + * + * @generated + */ + protected static Model6Package modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public Model6Switch() + { + if (modelPackage == null) + { + modelPackage = Model6Package.eINSTANCE; + } + } + + /** + * 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. + * @generated + */ + protected T doSwitch(EClass theEClass, EObject theEObject) + { + if (theEClass.eContainer() == modelPackage) + { + return doSwitch(theEClass.getClassifierID(), theEObject); + } + else + { + List eSuperTypes = theEClass.getESuperTypes(); + return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), 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. + * @generated + */ + protected T doSwitch(int classifierID, EObject theEObject) + { + switch (classifierID) + { + case Model6Package.ROOT: + { + Root root = (Root)theEObject; + T result = caseRoot(root); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.BASE_OBJECT: + { + BaseObject baseObject = (BaseObject)theEObject; + T result = caseBaseObject(baseObject); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.REFERENCE_OBJECT: + { + ReferenceObject referenceObject = (ReferenceObject)theEObject; + T result = caseReferenceObject(referenceObject); + if (result == null) + result = caseBaseObject(referenceObject); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.CONTAINMENT_OBJECT: + { + ContainmentObject containmentObject = (ContainmentObject)theEObject; + T result = caseContainmentObject(containmentObject); + if (result == null) + result = caseBaseObject(containmentObject); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.UNORDERED_LIST: + { + UnorderedList unorderedList = (UnorderedList)theEObject; + T result = caseUnorderedList(unorderedList); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.PROPERTIES_MAP: + { + PropertiesMap propertiesMap = (PropertiesMap)theEObject; + T result = casePropertiesMap(propertiesMap); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.PROPERTIES_MAP_ENTRY: + { + @SuppressWarnings("unchecked") + Map.Entry propertiesMapEntry = (Map.Entry)theEObject; + T result = casePropertiesMapEntry(propertiesMapEntry); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.PROPERTIES_MAP_ENTRY_VALUE: + { + PropertiesMapEntryValue propertiesMapEntryValue = (PropertiesMapEntryValue)theEObject; + T result = casePropertiesMapEntryValue(propertiesMapEntryValue); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.A: + { + A a = (A)theEObject; + T result = caseA(a); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.B: + { + B b = (B)theEObject; + T result = caseB(b); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.C: + { + C c = (C)theEObject; + T result = caseC(c); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.D: + { + D d = (D)theEObject; + T result = caseD(d); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.E: + { + E e = (E)theEObject; + T result = caseE(e); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.F: + { + F f = (F)theEObject; + T result = caseF(f); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.G: + { + G g = (G)theEObject; + T result = caseG(g); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.MY_ENUM_LIST: + { + MyEnumList myEnumList = (MyEnumList)theEObject; + T result = caseMyEnumList(myEnumList); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.MY_ENUM_LIST_UNSETTABLE: + { + MyEnumListUnsettable myEnumListUnsettable = (MyEnumListUnsettable)theEObject; + T result = caseMyEnumListUnsettable(myEnumListUnsettable); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.HOLDER: + { + Holder holder = (Holder)theEObject; + T result = caseHolder(holder); + if (result == null) + result = caseHoldable(holder); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.THING: + { + Thing thing = (Thing)theEObject; + T result = caseThing(thing); + if (result == null) + result = caseHoldable(thing); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.HOLDABLE: + { + Holdable holdable = (Holdable)theEObject; + T result = caseHoldable(holdable); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model6Package.HAS_NILLABLE_ATTRIBUTE: + { + HasNillableAttribute hasNillableAttribute = (HasNillableAttribute)theEObject; + T result = caseHasNillableAttribute(hasNillableAttribute); + if (result == null) + result = defaultCase(theEObject); + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Root'. + * + * 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 'Root'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRoot(Root object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Base Object'. + * + * 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 'Base Object'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseBaseObject(BaseObject object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Reference Object'. + * + * 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 'Reference Object'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseReferenceObject(ReferenceObject object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Containment Object'. + * + * 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 'Containment Object'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContainmentObject(ContainmentObject object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Unordered List'. + * + * 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 'Unordered List'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseUnorderedList(UnorderedList object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Properties 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 'Properties Map'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePropertiesMap(PropertiesMap object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Properties Map Entry'. + * + * 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 'Properties Map Entry'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePropertiesMapEntry(Map.Entry object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Properties Map Entry Value'. + * + * 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 'Properties Map Entry Value'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePropertiesMapEntryValue(PropertiesMapEntryValue object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'A'. + * + * 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 'A'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseA(A object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'B'. + * + * 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 'B'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseB(B object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'C'. + * + * 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 'C'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseC(C object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'D'. + * + * 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 'D'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseD(D object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'E'. + * + * 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 'E'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseE(E object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'F'. + * + * 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 'F'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseF(F object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'G'. + * + * 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 'G'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseG(G object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'My Enum List'. + * + * 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 'My Enum List'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMyEnumList(MyEnumList object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'My Enum List 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 'My Enum List Unsettable'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMyEnumListUnsettable(MyEnumListUnsettable object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '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 'Holder'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHolder(Holder object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Thing'. + * + * 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 'Thing'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseThing(Thing object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Holdable'. + * + * 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 'Holdable'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHoldable(Holdable object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Has Nillable Attribute'. + * + * 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 'Has Nillable Attribute'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHasNillableAttribute(HasNillableAttribute 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 + */ + public T defaultCase(EObject object) + { + return null; + } + +} //Model6Switch diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6AdapterFactory.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6AdapterFactory.java index fc1e2d84a9..a1b5c3eb02 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6AdapterFactory.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6AdapterFactory.java @@ -22,7 +22,6 @@ import org.eclipse.emf.cdo.tests.model6.G; import org.eclipse.emf.cdo.tests.model6.HasNillableAttribute; import org.eclipse.emf.cdo.tests.model6.Holdable; import org.eclipse.emf.cdo.tests.model6.Holder; -import org.eclipse.emf.cdo.tests.model6.Model6Package; import org.eclipse.emf.cdo.tests.model6.MyEnumList; import org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable; import org.eclipse.emf.cdo.tests.model6.PropertiesMap; @@ -31,6 +30,7 @@ import org.eclipse.emf.cdo.tests.model6.ReferenceObject; import org.eclipse.emf.cdo.tests.model6.Root; import org.eclipse.emf.cdo.tests.model6.Thing; import org.eclipse.emf.cdo.tests.model6.UnorderedList; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.common.notify.Notifier; diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6Switch.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6Switch.java index ca28eddb9a..a70064a285 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6Switch.java +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6Switch.java @@ -22,7 +22,6 @@ import org.eclipse.emf.cdo.tests.model6.G; import org.eclipse.emf.cdo.tests.model6.HasNillableAttribute; import org.eclipse.emf.cdo.tests.model6.Holdable; import org.eclipse.emf.cdo.tests.model6.Holder; -import org.eclipse.emf.cdo.tests.model6.Model6Package; import org.eclipse.emf.cdo.tests.model6.MyEnumList; import org.eclipse.emf.cdo.tests.model6.MyEnumListUnsettable; import org.eclipse.emf.cdo.tests.model6.PropertiesMap; @@ -31,6 +30,7 @@ import org.eclipse.emf.cdo.tests.model6.ReferenceObject; import org.eclipse.emf.cdo.tests.model6.Root; import org.eclipse.emf.cdo.tests.model6.Thing; import org.eclipse.emf.cdo.tests.model6.UnorderedList; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EObject; diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/config/impl/ModelConfig.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/config/impl/ModelConfig.java index 461da26ebd..1ef3788fcb 100644 --- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/config/impl/ModelConfig.java +++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/config/impl/ModelConfig.java @@ -248,12 +248,12 @@ public abstract class ModelConfig extends Config implements IModelConfig public Model6Factory getModel6Factory() { - return org.eclipse.emf.cdo.tests.legacy.model6.Model6Factory.eINSTANCE; + return org.eclipse.emf.cdo.tests.model6.legacy.Model6Factory.eINSTANCE; } public Model6Package getModel6Package() { - return org.eclipse.emf.cdo.tests.legacy.model6.Model6Package.eINSTANCE; + return org.eclipse.emf.cdo.tests.model6.legacy.Model6Package.eINSTANCE; } } } -- cgit v1.2.3 From 9a5cf3316307ab19e9afd0697df2ce26a95d7702 Mon Sep 17 00:00:00 2001 From: Eike Stepper Date: Sun, 6 Jan 2013 17:26:58 +0100 Subject: model5 --- .../META-INF/MANIFEST.MF | 7 +- .../model/model5-legacy.genmodel | 66 -- .../model/model5.legacy.genmodel | 67 ++ .../emf/cdo/tests/legacy/model5/Model5Factory.java | 189 ----- .../emf/cdo/tests/legacy/model5/Model5Package.java | 917 -------------------- .../cdo/tests/legacy/model5/impl/ChildImpl.java | 450 ---------- .../cdo/tests/legacy/model5/impl/DoctorImpl.java | 53 -- .../legacy/model5/impl/GenListOfBooleanImpl.java | 166 ---- .../legacy/model5/impl/GenListOfCharImpl.java | 166 ---- .../legacy/model5/impl/GenListOfDateImpl.java | 167 ---- .../legacy/model5/impl/GenListOfDoubleImpl.java | 166 ---- .../legacy/model5/impl/GenListOfFloatImpl.java | 166 ---- .../legacy/model5/impl/GenListOfIntArrayImpl.java | 166 ---- .../tests/legacy/model5/impl/GenListOfIntImpl.java | 166 ---- .../legacy/model5/impl/GenListOfIntegerImpl.java | 166 ---- .../legacy/model5/impl/GenListOfLongImpl.java | 166 ---- .../legacy/model5/impl/GenListOfShortImpl.java | 166 ---- .../legacy/model5/impl/GenListOfStringImpl.java | 166 ---- .../cdo/tests/legacy/model5/impl/ManagerImpl.java | 53 -- .../legacy/model5/impl/Model5FactoryImpl.java | 362 -------- .../legacy/model5/impl/Model5PackageImpl.java | 794 ------------------ .../cdo/tests/legacy/model5/impl/ParentImpl.java | 402 --------- .../legacy/model5/impl/TestFeatureMapImpl.java | 259 ------ .../org/eclipse/emf/cdo/tests/model5/Child.java | 41 +- .../org/eclipse/emf/cdo/tests/model5/Doctor.java | 9 +- .../emf/cdo/tests/model5/GenListOfBoolean.java | 9 +- .../emf/cdo/tests/model5/GenListOfChar.java | 9 +- .../emf/cdo/tests/model5/GenListOfDate.java | 9 +- .../emf/cdo/tests/model5/GenListOfDouble.java | 9 +- .../emf/cdo/tests/model5/GenListOfFloat.java | 9 +- .../eclipse/emf/cdo/tests/model5/GenListOfInt.java | 11 +- .../emf/cdo/tests/model5/GenListOfIntArray.java | 11 +- .../emf/cdo/tests/model5/GenListOfInteger.java | 9 +- .../emf/cdo/tests/model5/GenListOfLong.java | 9 +- .../emf/cdo/tests/model5/GenListOfShort.java | 9 +- .../emf/cdo/tests/model5/GenListOfString.java | 9 +- .../org/eclipse/emf/cdo/tests/model5/Manager.java | 9 +- .../emf/cdo/tests/model5/Model5Package.java | 44 +- .../org/eclipse/emf/cdo/tests/model5/Parent.java | 41 +- .../emf/cdo/tests/model5/TestFeatureMap.java | 13 +- .../emf/cdo/tests/model5/impl/ChildImpl.java | 6 +- .../cdo/tests/model5/impl/Model5FactoryImpl.java | 3 +- .../cdo/tests/model5/impl/Model5PackageImpl.java | 12 +- .../emf/cdo/tests/model5/impl/ParentImpl.java | 12 +- .../emf/cdo/tests/model5/legacy/Model5Factory.java | 192 +++++ .../emf/cdo/tests/model5/legacy/Model5Package.java | 919 +++++++++++++++++++++ .../cdo/tests/model5/legacy/impl/ChildImpl.java | 415 ++++++++++ .../cdo/tests/model5/legacy/impl/DoctorImpl.java | 53 ++ .../model5/legacy/impl/GenListOfBooleanImpl.java | 166 ++++ .../model5/legacy/impl/GenListOfCharImpl.java | 166 ++++ .../model5/legacy/impl/GenListOfDateImpl.java | 167 ++++ .../model5/legacy/impl/GenListOfDoubleImpl.java | 166 ++++ .../model5/legacy/impl/GenListOfFloatImpl.java | 166 ++++ .../model5/legacy/impl/GenListOfIntArrayImpl.java | 166 ++++ .../tests/model5/legacy/impl/GenListOfIntImpl.java | 166 ++++ .../model5/legacy/impl/GenListOfIntegerImpl.java | 166 ++++ .../model5/legacy/impl/GenListOfLongImpl.java | 166 ++++ .../model5/legacy/impl/GenListOfShortImpl.java | 166 ++++ .../model5/legacy/impl/GenListOfStringImpl.java | 166 ++++ .../cdo/tests/model5/legacy/impl/ManagerImpl.java | 53 ++ .../model5/legacy/impl/Model5FactoryImpl.java | 363 ++++++++ .../model5/legacy/impl/Model5PackageImpl.java | 794 ++++++++++++++++++ .../cdo/tests/model5/legacy/impl/ParentImpl.java | 380 +++++++++ .../model5/legacy/impl/TestFeatureMapImpl.java | 259 ++++++ .../model5/legacy/util/Model5AdapterFactory.java | 463 +++++++++++ .../cdo/tests/model5/legacy/util/Model5Switch.java | 514 ++++++++++++ .../tests/model5/util/Model5AdapterFactory.java | 3 +- .../emf/cdo/tests/model5/util/Model5Switch.java | 38 +- .../emf/cdo/tests/config/impl/ModelConfig.java | 4 +- 69 files changed, 6546 insertions(+), 5470 deletions(-) delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/model/model5-legacy.genmodel create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/model/model5.legacy.genmodel delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/Model5Factory.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/Model5Package.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/ChildImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/DoctorImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfBooleanImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfCharImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfDateImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfDoubleImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfFloatImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfIntArrayImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfIntImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfIntegerImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfLongImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfShortImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfStringImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/ManagerImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/Model5FactoryImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/Model5PackageImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/ParentImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/TestFeatureMapImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/Model5Factory.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/Model5Package.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/ChildImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/DoctorImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfBooleanImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfCharImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfDateImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfDoubleImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfFloatImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfIntArrayImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfIntImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfIntegerImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfLongImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfShortImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfStringImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/ManagerImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/Model5FactoryImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/Model5PackageImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/ParentImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/TestFeatureMapImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/util/Model5AdapterFactory.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/util/Model5Switch.java diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.tests.model5/META-INF/MANIFEST.MF index 9099ffae37..1644edb043 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.emf.cdo.tests.model5/META-INF/MANIFEST.MF @@ -10,8 +10,9 @@ Bundle-ClassPath: . Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)", org.eclipse.emf.cdo;bundle-version="[4.0.0,5.0.0)";visibility:=reexport, org.junit;bundle-version="[4.0.0,5.0.0)";visibility:=reexport -Export-Package: org.eclipse.emf.cdo.tests.legacy.model5;version="3.0.200", - org.eclipse.emf.cdo.tests.legacy.model5.impl;version="3.0.200", - org.eclipse.emf.cdo.tests.model5;version="3.0.300", +Export-Package: org.eclipse.emf.cdo.tests.model5;version="3.0.300", org.eclipse.emf.cdo.tests.model5.impl;version="3.0.300", + org.eclipse.emf.cdo.tests.model5.legacy;version="3.0.300", + org.eclipse.emf.cdo.tests.model5.legacy.impl;version="3.0.300", + org.eclipse.emf.cdo.tests.model5.legacy.util;version="3.0.300", org.eclipse.emf.cdo.tests.model5.util;version="3.0.300" diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/model/model5-legacy.genmodel b/plugins/org.eclipse.emf.cdo.tests.model5/model/model5-legacy.genmodel deleted file mode 100644 index 87db3c25ed..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/model/model5-legacy.genmodel +++ /dev/null @@ -1,66 +0,0 @@ - - - model5.ecore - CDO=org.eclipse.emf.cdo - JUNIT=org.junit - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/model/model5.legacy.genmodel b/plugins/org.eclipse.emf.cdo.tests.model5/model/model5.legacy.genmodel new file mode 100644 index 0000000000..a95f31eb03 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/model/model5.legacy.genmodel @@ -0,0 +1,67 @@ + + + model5.ecore + CDO=org.eclipse.emf.cdo + JUNIT=org.junit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/Model5Factory.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/Model5Factory.java deleted file mode 100644 index 2a47bc28dd..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/Model5Factory.java +++ /dev/null @@ -1,189 +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.model5; - -import org.eclipse.emf.cdo.tests.model5.Child; -import org.eclipse.emf.cdo.tests.model5.Doctor; -import org.eclipse.emf.cdo.tests.model5.GenListOfBoolean; -import org.eclipse.emf.cdo.tests.model5.GenListOfChar; -import org.eclipse.emf.cdo.tests.model5.GenListOfDate; -import org.eclipse.emf.cdo.tests.model5.GenListOfDouble; -import org.eclipse.emf.cdo.tests.model5.GenListOfFloat; -import org.eclipse.emf.cdo.tests.model5.GenListOfInt; -import org.eclipse.emf.cdo.tests.model5.GenListOfIntArray; -import org.eclipse.emf.cdo.tests.model5.GenListOfInteger; -import org.eclipse.emf.cdo.tests.model5.GenListOfLong; -import org.eclipse.emf.cdo.tests.model5.GenListOfShort; -import org.eclipse.emf.cdo.tests.model5.GenListOfString; -import org.eclipse.emf.cdo.tests.model5.Manager; -import org.eclipse.emf.cdo.tests.model5.Parent; -import org.eclipse.emf.cdo.tests.model5.TestFeatureMap; - -/** - * 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.model5.Model5Package - * @generated NOT - */ -public interface Model5Factory extends org.eclipse.emf.cdo.tests.model5.Model5Factory -{ - /** - * - * @generated - */ - String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * The singleton instance of the factory. - * - * @generated - */ - Model5Factory eINSTANCE = org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5FactoryImpl.init(); - - /** - * Returns a new object of class 'Test Feature Map'. - * - * @return a new object of class 'Test Feature Map'. - * @generated - */ - TestFeatureMap createTestFeatureMap(); - - /** - * Returns a new object of class 'Manager'. - * - * @return a new object of class 'Manager'. - * @generated - */ - Manager createManager(); - - /** - * Returns a new object of class 'Doctor'. - * - * @return a new object of class 'Doctor'. - * @generated - */ - Doctor createDoctor(); - - /** - * Returns a new object of class 'Gen List Of String'. - * - * @return a new object of class 'Gen List Of String'. - * @generated - */ - GenListOfString createGenListOfString(); - - /** - * Returns a new object of class 'Gen List Of Int'. - * - * @return a new object of class 'Gen List Of Int'. - * @generated - */ - GenListOfInt createGenListOfInt(); - - /** - * Returns a new object of class 'Gen List Of Integer'. - * - * @return a new object of class 'Gen List Of Integer'. - * @generated - */ - GenListOfInteger createGenListOfInteger(); - - /** - * Returns a new object of class 'Gen List Of Long'. - * - * @return a new object of class 'Gen List Of Long'. - * @generated - */ - GenListOfLong createGenListOfLong(); - - /** - * Returns a new object of class 'Gen List Of Boolean'. - * - * @return a new object of class 'Gen List Of Boolean'. - * @generated - */ - GenListOfBoolean createGenListOfBoolean(); - - /** - * Returns a new object of class 'Gen List Of Short'. - * - * @return a new object of class 'Gen List Of Short'. - * @generated - */ - GenListOfShort createGenListOfShort(); - - /** - * Returns a new object of class 'Gen List Of Float'. - * - * @return a new object of class 'Gen List Of Float'. - * @generated - */ - GenListOfFloat createGenListOfFloat(); - - /** - * Returns a new object of class 'Gen List Of Double'. - * - * @return a new object of class 'Gen List Of Double'. - * @generated - */ - GenListOfDouble createGenListOfDouble(); - - /** - * Returns a new object of class 'Gen List Of Date'. - * - * @return a new object of class 'Gen List Of Date'. - * @generated - */ - GenListOfDate createGenListOfDate(); - - /** - * Returns a new object of class 'Gen List Of Char'. - * - * @return a new object of class 'Gen List Of Char'. - * @generated - */ - GenListOfChar createGenListOfChar(); - - /** - * Returns a new object of class 'Gen List Of Int Array'. - * - * @return a new object of class 'Gen List Of Int Array'. - * @generated - */ - GenListOfIntArray createGenListOfIntArray(); - - /** - * Returns a new object of class 'Parent'. - * - * - * @return a new object of class 'Parent'. - * @generated - */ - Parent createParent(); - - /** - * Returns a new object of class 'Child'. - * - * - * @return a new object of class 'Child'. - * @generated - */ - Child createChild(); - - /** - * Returns the package supported by this factory. - * - * @return the package supported by this factory. - * @generated - */ - Model5Package getModel5Package(); - -} // Model5Factory diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/Model5Package.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/Model5Package.java deleted file mode 100644 index f4afddf53e..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/Model5Package.java +++ /dev/null @@ -1,917 +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.model5; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -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
  • - *
- * - * @see org.eclipse.emf.cdo.tests.legacy.model5.Model5Factory - * @model kind="package" - * @generated NOT - */ -public interface Model5Package extends org.eclipse.emf.cdo.tests.model5.Model5Package -{ - /** - * - * @generated - */ - String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * The package name. - * - * @generated - */ - String eNAME = "model5"; - - /** - * The package namespace URI. - * - * @generated NOT - */ - String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/legacy/model5/1.0.0"; - - /** - * The package namespace name. - * - * @generated - */ - String eNS_PREFIX = "model5"; - - /** - * The singleton instance of the package. - * - * @generated - */ - Model5Package eINSTANCE = org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model5.impl.TestFeatureMapImpl Test Feature Map}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.TestFeatureMapImpl - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getTestFeatureMap() - * @generated - */ - int TEST_FEATURE_MAP = 0; - - /** - * The feature id for the 'Managers' reference list. - * - * @generated - * @ordered - */ - int TEST_FEATURE_MAP__MANAGERS = 0; - - /** - * The feature id for the 'Doctors' reference list. - * - * @generated - * @ordered - */ - int TEST_FEATURE_MAP__DOCTORS = 1; - - /** - * The feature id for the 'People' attribute list. - * - * @generated - * @ordered - */ - int TEST_FEATURE_MAP__PEOPLE = 2; - - /** - * The number of structural features of the 'Test Feature Map' class. - * - * @generated - * @ordered - */ - int TEST_FEATURE_MAP_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model5.impl.ManagerImpl Manager}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.ManagerImpl - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getManager() - * @generated - */ - int MANAGER = 1; - - /** - * The number of structural features of the 'Manager' class. - * - * @generated - * @ordered - */ - int MANAGER_FEATURE_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model5.impl.DoctorImpl Doctor}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.DoctorImpl - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getDoctor() - * @generated - */ - int DOCTOR = 2; - - /** - * The number of structural features of the 'Doctor' class. - * - * @generated - * @ordered - */ - int DOCTOR_FEATURE_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfStringImpl Gen List Of String}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfStringImpl - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getGenListOfString() - * @generated - */ - int GEN_LIST_OF_STRING = 3; - - /** - * The feature id for the 'Elements' attribute list. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_STRING__ELEMENTS = 0; - - /** - * The number of structural features of the 'Gen List Of String' class. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_STRING_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfIntImpl Gen List Of Int}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfIntImpl - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getGenListOfInt() - * @generated - */ - int GEN_LIST_OF_INT = 4; - - /** - * The feature id for the 'Elements' attribute list. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_INT__ELEMENTS = 0; - - /** - * The number of structural features of the 'Gen List Of Int' class. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_INT_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfIntegerImpl Gen List Of Integer}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfIntegerImpl - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getGenListOfInteger() - * @generated - */ - int GEN_LIST_OF_INTEGER = 5; - - /** - * The feature id for the 'Elements' attribute list. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_INTEGER__ELEMENTS = 0; - - /** - * The number of structural features of the 'Gen List Of Integer' class. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_INTEGER_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfLongImpl Gen List Of Long}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfLongImpl - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getGenListOfLong() - * @generated - */ - int GEN_LIST_OF_LONG = 6; - - /** - * The feature id for the 'Elements' attribute list. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_LONG__ELEMENTS = 0; - - /** - * The number of structural features of the 'Gen List Of Long' class. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_LONG_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfBooleanImpl Gen List Of Boolean}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfBooleanImpl - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getGenListOfBoolean() - * @generated - */ - int GEN_LIST_OF_BOOLEAN = 7; - - /** - * The feature id for the 'Elements' attribute list. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_BOOLEAN__ELEMENTS = 0; - - /** - * The number of structural features of the 'Gen List Of Boolean' class. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_BOOLEAN_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfShortImpl Gen List Of Short}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfShortImpl - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getGenListOfShort() - * @generated - */ - int GEN_LIST_OF_SHORT = 8; - - /** - * The feature id for the 'Elements' attribute list. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_SHORT__ELEMENTS = 0; - - /** - * The number of structural features of the 'Gen List Of Short' class. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_SHORT_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfFloatImpl Gen List Of Float}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfFloatImpl - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getGenListOfFloat() - * @generated - */ - int GEN_LIST_OF_FLOAT = 9; - - /** - * The feature id for the 'Elements' attribute list. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_FLOAT__ELEMENTS = 0; - - /** - * The number of structural features of the 'Gen List Of Float' class. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_FLOAT_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfDoubleImpl Gen List Of Double}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfDoubleImpl - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getGenListOfDouble() - * @generated - */ - int GEN_LIST_OF_DOUBLE = 10; - - /** - * The feature id for the 'Elements' attribute list. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_DOUBLE__ELEMENTS = 0; - - /** - * The number of structural features of the 'Gen List Of Double' class. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_DOUBLE_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfDateImpl Gen List Of Date}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfDateImpl - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getGenListOfDate() - * @generated - */ - int GEN_LIST_OF_DATE = 11; - - /** - * The feature id for the 'Elements' attribute list. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_DATE__ELEMENTS = 0; - - /** - * The number of structural features of the 'Gen List Of Date' class. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_DATE_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfCharImpl Gen List Of Char}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfCharImpl - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getGenListOfChar() - * @generated - */ - int GEN_LIST_OF_CHAR = 12; - - /** - * The feature id for the 'Elements' attribute list. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_CHAR__ELEMENTS = 0; - - /** - * The number of structural features of the 'Gen List Of Char' class. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_CHAR_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfIntArrayImpl Gen List Of Int Array}' class. - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfIntArrayImpl - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getGenListOfIntArray() - * @generated - */ - int GEN_LIST_OF_INT_ARRAY = 13; - - /** - * The feature id for the 'Elements' attribute list. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_INT_ARRAY__ELEMENTS = 0; - - /** - * The number of structural features of the 'Gen List Of Int Array' class. - * - * @generated - * @ordered - */ - int GEN_LIST_OF_INT_ARRAY_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model5.impl.ParentImpl Parent}' class. - * - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.ParentImpl - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getParent() - * @generated - */ - int PARENT = 14; - - /** - * The feature id for the 'Children' containment reference list. - * - * - * @generated - * @ordered - */ - int PARENT__CHILDREN = 0; - - /** - * The feature id for the 'Favourite' reference. - * - * - * @generated - * @ordered - */ - int PARENT__FAVOURITE = 1; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int PARENT__NAME = 2; - - /** - * The number of structural features of the 'Parent' class. - * - * - * @generated - * @ordered - */ - int PARENT_FEATURE_COUNT = 3; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model5.impl.ChildImpl Child}' class. - * - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.ChildImpl - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getChild() - * @generated - */ - int CHILD = 15; - - /** - * The feature id for the 'Parent' container reference. - * - * - * @generated - * @ordered - */ - int CHILD__PARENT = 0; - - /** - * The feature id for the 'Preferred By' reference. - * - * - * @generated - * @ordered - */ - int CHILD__PREFERRED_BY = 1; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int CHILD__NAME = 2; - - /** - * The number of structural features of the 'Child' class. - * - * - * @generated - * @ordered - */ - int CHILD_FEATURE_COUNT = 3; - - /** - * The meta object id for the 'Int Array' data type. - * - * @see org.eclipse.emf.cdo.tests.legacy.model5.impl.Model5PackageImpl#getIntArray() - * @generated - */ - int INT_ARRAY = 16; - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.TestFeatureMap Test Feature Map}'. - * - * @return the meta object for class 'Test Feature Map'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.TestFeatureMap - * @generated - */ - EClass getTestFeatureMap(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.legacy.model5.TestFeatureMap#getManagers Managers}'. - * - * @return the meta object for the reference list 'Managers'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.TestFeatureMap#getManagers() - * @see #getTestFeatureMap() - * @generated - */ - EReference getTestFeatureMap_Managers(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.legacy.model5.TestFeatureMap#getDoctors Doctors}'. - * - * @return the meta object for the reference list 'Doctors'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.TestFeatureMap#getDoctors() - * @see #getTestFeatureMap() - * @generated - */ - EReference getTestFeatureMap_Doctors(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.legacy.model5.TestFeatureMap#getPeople People}'. - * - * - * @return the meta object for the attribute list 'People'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.TestFeatureMap#getPeople() - * @see #getTestFeatureMap() - * @generated - */ - EAttribute getTestFeatureMap_People(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.Manager Manager}'. - * - * @return the meta object for class 'Manager'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.Manager - * @generated - */ - EClass getManager(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.Doctor Doctor}'. - * - * @return the meta object for class 'Doctor'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.Doctor - * @generated - */ - EClass getDoctor(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfString Gen List Of String}'. - * - * @return the meta object for class 'Gen List Of String'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfString - * @generated - */ - EClass getGenListOfString(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfString#getElements Elements}'. - * - * @return the meta object for the attribute list 'Elements'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfString#getElements() - * @see #getGenListOfString() - * @generated - */ - EAttribute getGenListOfString_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfInt Gen List Of Int}'. - * - * @return the meta object for class 'Gen List Of Int'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfInt - * @generated - */ - EClass getGenListOfInt(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfInt#getElements Elements}'. - * - * @return the meta object for the attribute list 'Elements'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfInt#getElements() - * @see #getGenListOfInt() - * @generated - */ - EAttribute getGenListOfInt_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfInteger Gen List Of Integer}'. - * - * @return the meta object for class 'Gen List Of Integer'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfInteger - * @generated - */ - EClass getGenListOfInteger(); - - /** - * Returns the meta object for the attribute list ' - * {@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfInteger#getElements Elements}'. - * - * @return the meta object for the attribute list 'Elements'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfInteger#getElements() - * @see #getGenListOfInteger() - * @generated - */ - EAttribute getGenListOfInteger_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfLong Gen List Of Long}'. - * - * @return the meta object for class 'Gen List Of Long'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfLong - * @generated - */ - EClass getGenListOfLong(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfLong#getElements Elements}'. - * - * @return the meta object for the attribute list 'Elements'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfLong#getElements() - * @see #getGenListOfLong() - * @generated - */ - EAttribute getGenListOfLong_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfBoolean Gen List Of Boolean}'. - * - * @return the meta object for class 'Gen List Of Boolean'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfBoolean - * @generated - */ - EClass getGenListOfBoolean(); - - /** - * Returns the meta object for the attribute list ' - * {@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfBoolean#getElements Elements}'. - * - * @return the meta object for the attribute list 'Elements'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfBoolean#getElements() - * @see #getGenListOfBoolean() - * @generated - */ - EAttribute getGenListOfBoolean_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfShort Gen List Of Short}'. - * - * @return the meta object for class 'Gen List Of Short'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfShort - * @generated - */ - EClass getGenListOfShort(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfShort#getElements Elements}'. - * - * @return the meta object for the attribute list 'Elements'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfShort#getElements() - * @see #getGenListOfShort() - * @generated - */ - EAttribute getGenListOfShort_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfFloat Gen List Of Float}'. - * - * @return the meta object for class 'Gen List Of Float'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfFloat - * @generated - */ - EClass getGenListOfFloat(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfFloat#getElements Elements}'. - * - * @return the meta object for the attribute list 'Elements'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfFloat#getElements() - * @see #getGenListOfFloat() - * @generated - */ - EAttribute getGenListOfFloat_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfDouble Gen List Of Double}'. - * - * @return the meta object for class 'Gen List Of Double'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfDouble - * @generated - */ - EClass getGenListOfDouble(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfDouble#getElements Elements}'. - * - * @return the meta object for the attribute list 'Elements'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfDouble#getElements() - * @see #getGenListOfDouble() - * @generated - */ - EAttribute getGenListOfDouble_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfDate Gen List Of Date}'. - * - * @return the meta object for class 'Gen List Of Date'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfDate - * @generated - */ - EClass getGenListOfDate(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfDate#getElements Elements}'. - * - * @return the meta object for the attribute list 'Elements'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfDate#getElements() - * @see #getGenListOfDate() - * @generated - */ - EAttribute getGenListOfDate_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfChar Gen List Of Char}'. - * - * @return the meta object for class 'Gen List Of Char'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfChar - * @generated - */ - EClass getGenListOfChar(); - - /** - * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfChar#getElements Elements}'. - * - * @return the meta object for the attribute list 'Elements'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfChar#getElements() - * @see #getGenListOfChar() - * @generated - */ - EAttribute getGenListOfChar_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfIntArray Gen List Of Int Array}'. - * - * @return the meta object for class 'Gen List Of Int Array'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfIntArray - * @generated - */ - EClass getGenListOfIntArray(); - - /** - * Returns the meta object for the attribute list ' - * {@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfIntArray#getElements Elements}'. - * - * @return the meta object for the attribute list 'Elements'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfIntArray#getElements() - * @see #getGenListOfIntArray() - * @generated - */ - EAttribute getGenListOfIntArray_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.Parent Parent}'. - * - * - * @return the meta object for class 'Parent'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.Parent - * @generated - */ - EClass getParent(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.legacy.model5.Parent#getChildren Children}'. - * - * - * @return the meta object for the containment reference list 'Children'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.Parent#getChildren() - * @see #getParent() - * @generated - */ - EReference getParent_Children(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.legacy.model5.Parent#getFavourite Favourite}'. - * - * - * @return the meta object for the reference 'Favourite'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.Parent#getFavourite() - * @see #getParent() - * @generated - */ - EReference getParent_Favourite(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.legacy.model5.Parent#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.Parent#getName() - * @see #getParent() - * @generated - */ - EAttribute getParent_Name(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.Child Child}'. - * - * - * @return the meta object for class 'Child'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.Child - * @generated - */ - EClass getChild(); - - /** - * Returns the meta object for the container reference '{@link org.eclipse.emf.cdo.tests.legacy.model5.Child#getParent Parent}'. - * - * - * @return the meta object for the container reference 'Parent'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.Child#getParent() - * @see #getChild() - * @generated - */ - EReference getChild_Parent(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.legacy.model5.Child#getPreferredBy Preferred By}'. - * - * - * @return the meta object for the reference 'Preferred By'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.Child#getPreferredBy() - * @see #getChild() - * @generated - */ - EReference getChild_PreferredBy(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.legacy.model5.Child#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.emf.cdo.tests.legacy.model5.Child#getName() - * @see #getChild() - * @generated - */ - EAttribute getChild_Name(); - - /** - * Returns the meta object for data type 'Int Array'. - * - * @return the meta object for data type 'Int Array'. - * @model instanceClass="int[]" - * @generated - */ - EDataType getIntArray(); - - /** - * Returns the factory that creates the instances of the model. - * - * @return the factory that creates the instances of the model. - * @generated - */ - Model5Factory getModel5Factory(); - -} // Model5Package diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/ChildImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/ChildImpl.java deleted file mode 100644 index 9f4364a6dc..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/ChildImpl.java +++ /dev/null @@ -1,450 +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: - * Christian W. Damus (CEA) - initial API and implementation - */ -package org.eclipse.emf.cdo.tests.legacy.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.Child; -import org.eclipse.emf.cdo.tests.model5.Parent; -import org.eclipse.emf.cdo.tests.model5.util.IsLoadingTestFixture; - -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 'Child'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.ChildImpl#getParent Parent}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.ChildImpl#getPreferredBy Preferred By}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.ChildImpl#getName Name}
  • - *
- *

- * - * @generated - */ -public class ChildImpl extends EObjectImpl implements Child -{ - /** - * - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * The cached value of the '{@link #getPreferredBy() Preferred By}' reference. - * - * - * @see #getPreferredBy() - * @generated - * @ordered - */ - protected Parent preferredBy; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * - * - * @generated - */ - protected ChildImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model5Package.eINSTANCE.getChild(); - } - - /** - * - * - * @generated - */ - public Parent getParent() - { - if (eContainerFeatureID() != Model5Package.CHILD__PARENT) - { - return null; - } - return (Parent)eContainer(); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetParent(Parent newParent, NotificationChain msgs) - { - msgs = eBasicSetContainer((InternalEObject)newParent, Model5Package.CHILD__PARENT, msgs); - return msgs; - } - - /** - * - * - * @generated - */ - public void setParent(Parent newParent) - { - if (newParent != eInternalContainer() || eContainerFeatureID() != Model5Package.CHILD__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, Model5Package.PARENT__CHILDREN, Parent.class, msgs); - } - msgs = basicSetParent(newParent, msgs); - if (msgs != null) - { - msgs.dispatch(); - } - } - else if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, Model5Package.CHILD__PARENT, newParent, newParent)); - } - } - - /** - * - * - * @generated - */ - public Parent getPreferredBy() - { - if (preferredBy != null && preferredBy.eIsProxy()) - { - InternalEObject oldPreferredBy = (InternalEObject)preferredBy; - preferredBy = (Parent)eResolveProxy(oldPreferredBy); - if (preferredBy != oldPreferredBy) - { - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model5Package.CHILD__PREFERRED_BY, oldPreferredBy, - preferredBy)); - } - } - } - return preferredBy; - } - - /** - * - * - * @generated - */ - public Parent basicGetPreferredBy() - { - return preferredBy; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetPreferredBy(Parent newPreferredBy, NotificationChain msgs) - { - Parent oldPreferredBy = preferredBy; - preferredBy = newPreferredBy; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Model5Package.CHILD__PREFERRED_BY, - oldPreferredBy, newPreferredBy); - if (msgs == null) - { - msgs = notification; - } - else - { - msgs.add(notification); - } - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setPreferredBy(Parent newPreferredBy) - { - if (newPreferredBy != preferredBy) - { - NotificationChain msgs = null; - if (preferredBy != null) - { - msgs = ((InternalEObject)preferredBy).eInverseRemove(this, Model5Package.PARENT__FAVOURITE, Parent.class, msgs); - } - if (newPreferredBy != null) - { - msgs = ((InternalEObject)newPreferredBy).eInverseAdd(this, Model5Package.PARENT__FAVOURITE, Parent.class, msgs); - } - msgs = basicSetPreferredBy(newPreferredBy, msgs); - if (msgs != null) - { - msgs.dispatch(); - } - } - else if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, Model5Package.CHILD__PREFERRED_BY, newPreferredBy, - newPreferredBy)); - } - } - - /** - * - * - * @generated - */ - public String getName() - { - return name; - } - - /** - * - * - * @generated - */ - public void setNameGen(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, Model5Package.CHILD__NAME, oldName, name)); - } - } - - public void setName(String newName) - { - IsLoadingTestFixture.reportLoading(eResource(), this); - setNameGen(newName); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model5Package.CHILD__PARENT: - if (eInternalContainer() != null) - { - msgs = eBasicRemoveFromContainer(msgs); - } - return basicSetParent((Parent)otherEnd, msgs); - case Model5Package.CHILD__PREFERRED_BY: - if (preferredBy != null) - { - msgs = ((InternalEObject)preferredBy).eInverseRemove(this, Model5Package.PARENT__FAVOURITE, Parent.class, msgs); - } - return basicSetPreferredBy((Parent)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model5Package.CHILD__PARENT: - return basicSetParent(null, msgs); - case Model5Package.CHILD__PREFERRED_BY: - return basicSetPreferredBy(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) - { - switch (eContainerFeatureID()) - { - case Model5Package.CHILD__PARENT: - return eInternalContainer().eInverseRemove(this, Model5Package.PARENT__CHILDREN, Parent.class, msgs); - } - return super.eBasicRemoveFromContainerFeature(msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model5Package.CHILD__PARENT: - return getParent(); - case Model5Package.CHILD__PREFERRED_BY: - if (resolve) - { - return getPreferredBy(); - } - return basicGetPreferredBy(); - case Model5Package.CHILD__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model5Package.CHILD__PARENT: - setParent((Parent)newValue); - return; - case Model5Package.CHILD__PREFERRED_BY: - setPreferredBy((Parent)newValue); - return; - case Model5Package.CHILD__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model5Package.CHILD__PARENT: - setParent((Parent)null); - return; - case Model5Package.CHILD__PREFERRED_BY: - setPreferredBy((Parent)null); - return; - case Model5Package.CHILD__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model5Package.CHILD__PARENT: - return getParent() != null; - case Model5Package.CHILD__PREFERRED_BY: - return preferredBy != null; - case Model5Package.CHILD__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} // ChildImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/DoctorImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/DoctorImpl.java deleted file mode 100644 index b1c4d3ea38..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/DoctorImpl.java +++ /dev/null @@ -1,53 +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.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.Doctor; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -/** - * An implementation of the model object 'Doctor'. - *

- *

- * - * @generated - */ -public class DoctorImpl extends EObjectImpl implements Doctor -{ - /** - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * - * @generated - */ - protected DoctorImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model5Package.eINSTANCE.getDoctor(); - } - -} // DoctorImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfBooleanImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfBooleanImpl.java deleted file mode 100644 index 2cf32adaec..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfBooleanImpl.java +++ /dev/null @@ -1,166 +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.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.GenListOfBoolean; - -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.EDataTypeEList; - -import java.util.Collection; - -/** - * An implementation of the model object 'Gen List Of Boolean'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfBooleanImpl#getElements Elements}
  • - *
- *

- * - * @generated - */ -public class GenListOfBooleanImpl extends EObjectImpl implements GenListOfBoolean -{ - /** - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * The cached value of the '{@link #getElements() Elements}' attribute list. - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList elements; - - /** - * - * @generated - */ - protected GenListOfBooleanImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model5Package.eINSTANCE.getGenListOfBoolean(); - } - - /** - * - * @generated - */ - public EList getElements() - { - if (elements == null) - { - elements = new EDataTypeEList(Boolean.class, this, Model5Package.GEN_LIST_OF_BOOLEAN__ELEMENTS); - } - return elements; - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_BOOLEAN__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_BOOLEAN__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_BOOLEAN__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_BOOLEAN__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (elements: "); - result.append(elements); - result.append(')'); - return result.toString(); - } - -} // GenListOfBooleanImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfCharImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfCharImpl.java deleted file mode 100644 index cea79ff832..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfCharImpl.java +++ /dev/null @@ -1,166 +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.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.GenListOfChar; - -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 'Gen List Of Char'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfCharImpl#getElements Elements}
  • - *
- *

- * - * @generated - */ -public class GenListOfCharImpl extends EObjectImpl implements GenListOfChar -{ - /** - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * The cached value of the '{@link #getElements() Elements}' attribute list. - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList elements; - - /** - * - * @generated - */ - protected GenListOfCharImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model5Package.eINSTANCE.getGenListOfChar(); - } - - /** - * - * @generated - */ - public EList getElements() - { - if (elements == null) - { - elements = new EDataTypeUniqueEList(Character.class, this, Model5Package.GEN_LIST_OF_CHAR__ELEMENTS); - } - return elements; - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_CHAR__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_CHAR__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_CHAR__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_CHAR__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (elements: "); - result.append(elements); - result.append(')'); - return result.toString(); - } - -} // GenListOfCharImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfDateImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfDateImpl.java deleted file mode 100644 index bfeb22716a..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfDateImpl.java +++ /dev/null @@ -1,167 +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.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.GenListOfDate; - -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; -import java.util.Date; - -/** - * An implementation of the model object 'Gen List Of Date'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfDateImpl#getElements Elements}
  • - *
- *

- * - * @generated - */ -public class GenListOfDateImpl extends EObjectImpl implements GenListOfDate -{ - /** - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * The cached value of the '{@link #getElements() Elements}' attribute list. - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList elements; - - /** - * - * @generated - */ - protected GenListOfDateImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model5Package.eINSTANCE.getGenListOfDate(); - } - - /** - * - * @generated - */ - public EList getElements() - { - if (elements == null) - { - elements = new EDataTypeUniqueEList(Date.class, this, Model5Package.GEN_LIST_OF_DATE__ELEMENTS); - } - return elements; - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_DATE__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_DATE__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_DATE__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_DATE__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (elements: "); - result.append(elements); - result.append(')'); - return result.toString(); - } - -} // GenListOfDateImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfDoubleImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfDoubleImpl.java deleted file mode 100644 index 3f5bd88ee1..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfDoubleImpl.java +++ /dev/null @@ -1,166 +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.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.GenListOfDouble; - -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 'Gen List Of Double'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfDoubleImpl#getElements Elements}
  • - *
- *

- * - * @generated - */ -public class GenListOfDoubleImpl extends EObjectImpl implements GenListOfDouble -{ - /** - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * The cached value of the '{@link #getElements() Elements}' attribute list. - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList elements; - - /** - * - * @generated - */ - protected GenListOfDoubleImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model5Package.eINSTANCE.getGenListOfDouble(); - } - - /** - * - * @generated - */ - public EList getElements() - { - if (elements == null) - { - elements = new EDataTypeUniqueEList(Double.class, this, Model5Package.GEN_LIST_OF_DOUBLE__ELEMENTS); - } - return elements; - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_DOUBLE__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_DOUBLE__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_DOUBLE__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_DOUBLE__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (elements: "); - result.append(elements); - result.append(')'); - return result.toString(); - } - -} // GenListOfDoubleImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfFloatImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfFloatImpl.java deleted file mode 100644 index 4d16a1f14f..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfFloatImpl.java +++ /dev/null @@ -1,166 +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.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.GenListOfFloat; - -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 'Gen List Of Float'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfFloatImpl#getElements Elements}
  • - *
- *

- * - * @generated - */ -public class GenListOfFloatImpl extends EObjectImpl implements GenListOfFloat -{ - /** - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * The cached value of the '{@link #getElements() Elements}' attribute list. - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList elements; - - /** - * - * @generated - */ - protected GenListOfFloatImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model5Package.eINSTANCE.getGenListOfFloat(); - } - - /** - * - * @generated - */ - public EList getElements() - { - if (elements == null) - { - elements = new EDataTypeUniqueEList(Float.class, this, Model5Package.GEN_LIST_OF_FLOAT__ELEMENTS); - } - return elements; - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_FLOAT__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_FLOAT__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_FLOAT__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_FLOAT__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (elements: "); - result.append(elements); - result.append(')'); - return result.toString(); - } - -} // GenListOfFloatImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfIntArrayImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfIntArrayImpl.java deleted file mode 100644 index 353f756d92..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfIntArrayImpl.java +++ /dev/null @@ -1,166 +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.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.GenListOfIntArray; - -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 'Gen List Of Int Array'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfIntArrayImpl#getElements Elements}
  • - *
- *

- * - * @generated - */ -public class GenListOfIntArrayImpl extends EObjectImpl implements GenListOfIntArray -{ - /** - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * The cached value of the '{@link #getElements() Elements}' attribute list. - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList elements; - - /** - * - * @generated - */ - protected GenListOfIntArrayImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model5Package.eINSTANCE.getGenListOfIntArray(); - } - - /** - * - * @generated - */ - public EList getElements() - { - if (elements == null) - { - elements = new EDataTypeUniqueEList(int[].class, this, Model5Package.GEN_LIST_OF_INT_ARRAY__ELEMENTS); - } - return elements; - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_INT_ARRAY__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_INT_ARRAY__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_INT_ARRAY__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_INT_ARRAY__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (elements: "); - result.append(elements); - result.append(')'); - return result.toString(); - } - -} // GenListOfIntArrayImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfIntImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfIntImpl.java deleted file mode 100644 index fc671f4e83..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfIntImpl.java +++ /dev/null @@ -1,166 +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.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.GenListOfInt; - -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 'Gen List Of Int'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfIntImpl#getElements Elements}
  • - *
- *

- * - * @generated - */ -public class GenListOfIntImpl extends EObjectImpl implements GenListOfInt -{ - /** - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * The cached value of the '{@link #getElements() Elements}' attribute list. - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList elements; - - /** - * - * @generated - */ - protected GenListOfIntImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model5Package.eINSTANCE.getGenListOfInt(); - } - - /** - * - * @generated - */ - public EList getElements() - { - if (elements == null) - { - elements = new EDataTypeUniqueEList(Integer.class, this, Model5Package.GEN_LIST_OF_INT__ELEMENTS); - } - return elements; - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_INT__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_INT__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_INT__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_INT__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (elements: "); - result.append(elements); - result.append(')'); - return result.toString(); - } - -} // GenListOfIntImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfIntegerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfIntegerImpl.java deleted file mode 100644 index a8ca96e4c4..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfIntegerImpl.java +++ /dev/null @@ -1,166 +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.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.GenListOfInteger; - -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 'Gen List Of Integer'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfIntegerImpl#getElements Elements}
  • - *
- *

- * - * @generated - */ -public class GenListOfIntegerImpl extends EObjectImpl implements GenListOfInteger -{ - /** - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * The cached value of the '{@link #getElements() Elements}' attribute list. - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList elements; - - /** - * - * @generated - */ - protected GenListOfIntegerImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model5Package.eINSTANCE.getGenListOfInteger(); - } - - /** - * - * @generated - */ - public EList getElements() - { - if (elements == null) - { - elements = new EDataTypeUniqueEList(Integer.class, this, Model5Package.GEN_LIST_OF_INTEGER__ELEMENTS); - } - return elements; - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_INTEGER__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_INTEGER__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_INTEGER__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_INTEGER__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (elements: "); - result.append(elements); - result.append(')'); - return result.toString(); - } - -} // GenListOfIntegerImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfLongImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfLongImpl.java deleted file mode 100644 index 33d680fe77..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfLongImpl.java +++ /dev/null @@ -1,166 +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.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.GenListOfLong; - -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 'Gen List Of Long'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfLongImpl#getElements Elements}
  • - *
- *

- * - * @generated - */ -public class GenListOfLongImpl extends EObjectImpl implements GenListOfLong -{ - /** - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * The cached value of the '{@link #getElements() Elements}' attribute list. - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList elements; - - /** - * - * @generated - */ - protected GenListOfLongImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model5Package.eINSTANCE.getGenListOfLong(); - } - - /** - * - * @generated - */ - public EList getElements() - { - if (elements == null) - { - elements = new EDataTypeUniqueEList(Long.class, this, Model5Package.GEN_LIST_OF_LONG__ELEMENTS); - } - return elements; - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_LONG__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_LONG__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_LONG__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_LONG__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (elements: "); - result.append(elements); - result.append(')'); - return result.toString(); - } - -} // GenListOfLongImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfShortImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfShortImpl.java deleted file mode 100644 index 2ade28f973..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfShortImpl.java +++ /dev/null @@ -1,166 +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.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.GenListOfShort; - -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 'Gen List Of Short'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfShortImpl#getElements Elements}
  • - *
- *

- * - * @generated - */ -public class GenListOfShortImpl extends EObjectImpl implements GenListOfShort -{ - /** - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * The cached value of the '{@link #getElements() Elements}' attribute list. - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList elements; - - /** - * - * @generated - */ - protected GenListOfShortImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model5Package.eINSTANCE.getGenListOfShort(); - } - - /** - * - * @generated - */ - public EList getElements() - { - if (elements == null) - { - elements = new EDataTypeUniqueEList(Short.class, this, Model5Package.GEN_LIST_OF_SHORT__ELEMENTS); - } - return elements; - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_SHORT__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_SHORT__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_SHORT__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_SHORT__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (elements: "); - result.append(elements); - result.append(')'); - return result.toString(); - } - -} // GenListOfShortImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfStringImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfStringImpl.java deleted file mode 100644 index e5d0e46e19..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/GenListOfStringImpl.java +++ /dev/null @@ -1,166 +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.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.GenListOfString; - -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 'Gen List Of String'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfStringImpl#getElements Elements}
  • - *
- *

- * - * @generated - */ -public class GenListOfStringImpl extends EObjectImpl implements GenListOfString -{ - /** - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * The cached value of the '{@link #getElements() Elements}' attribute list. - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList elements; - - /** - * - * @generated - */ - protected GenListOfStringImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model5Package.eINSTANCE.getGenListOfString(); - } - - /** - * - * @generated - */ - public EList getElements() - { - if (elements == null) - { - elements = new EDataTypeUniqueEList(String.class, this, Model5Package.GEN_LIST_OF_STRING__ELEMENTS); - } - return elements; - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_STRING__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_STRING__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_STRING__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model5Package.GEN_LIST_OF_STRING__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (elements: "); - result.append(elements); - result.append(')'); - return result.toString(); - } - -} // GenListOfStringImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/ManagerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/ManagerImpl.java deleted file mode 100644 index 456c5138f2..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/ManagerImpl.java +++ /dev/null @@ -1,53 +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.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.Manager; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -/** - * An implementation of the model object 'Manager'. - *

- *

- * - * @generated - */ -public class ManagerImpl extends EObjectImpl implements Manager -{ - /** - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * - * @generated - */ - protected ManagerImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model5Package.eINSTANCE.getManager(); - } - -} // ManagerImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/Model5FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/Model5FactoryImpl.java deleted file mode 100644 index 3beaf21c38..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/Model5FactoryImpl.java +++ /dev/null @@ -1,362 +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.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Factory; -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.Child; -import org.eclipse.emf.cdo.tests.model5.Doctor; -import org.eclipse.emf.cdo.tests.model5.GenListOfBoolean; -import org.eclipse.emf.cdo.tests.model5.GenListOfChar; -import org.eclipse.emf.cdo.tests.model5.GenListOfDate; -import org.eclipse.emf.cdo.tests.model5.GenListOfDouble; -import org.eclipse.emf.cdo.tests.model5.GenListOfFloat; -import org.eclipse.emf.cdo.tests.model5.GenListOfInt; -import org.eclipse.emf.cdo.tests.model5.GenListOfIntArray; -import org.eclipse.emf.cdo.tests.model5.GenListOfInteger; -import org.eclipse.emf.cdo.tests.model5.GenListOfLong; -import org.eclipse.emf.cdo.tests.model5.GenListOfShort; -import org.eclipse.emf.cdo.tests.model5.GenListOfString; -import org.eclipse.emf.cdo.tests.model5.Manager; -import org.eclipse.emf.cdo.tests.model5.Parent; -import org.eclipse.emf.cdo.tests.model5.TestFeatureMap; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -/** - * An implementation of the model Factory. - * @generated - */ -public class Model5FactoryImpl extends EFactoryImpl implements Model5Factory -{ - /** - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * Creates the default factory implementation. - * - * @generated NOT - */ - public static Model5Factory init() - { - try - { - Model5Factory theModel5Factory = (Model5Factory)EPackage.Registry.INSTANCE - .getEFactory("http://www.eclipse.org/emf/CDO/tests/legacy/model5/1.0.0"); - if (theModel5Factory != null) - { - return theModel5Factory; - } - } - catch (Exception exception) - { - EcorePlugin.INSTANCE.log(exception); - } - return new Model5FactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * @generated - */ - public Model5FactoryImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - public EObject create(EClass eClass) - { - switch (eClass.getClassifierID()) - { - case Model5Package.TEST_FEATURE_MAP: - return createTestFeatureMap(); - case Model5Package.MANAGER: - return createManager(); - case Model5Package.DOCTOR: - return createDoctor(); - case Model5Package.GEN_LIST_OF_STRING: - return createGenListOfString(); - case Model5Package.GEN_LIST_OF_INT: - return createGenListOfInt(); - case Model5Package.GEN_LIST_OF_INTEGER: - return createGenListOfInteger(); - case Model5Package.GEN_LIST_OF_LONG: - return createGenListOfLong(); - case Model5Package.GEN_LIST_OF_BOOLEAN: - return createGenListOfBoolean(); - case Model5Package.GEN_LIST_OF_SHORT: - return createGenListOfShort(); - case Model5Package.GEN_LIST_OF_FLOAT: - return createGenListOfFloat(); - case Model5Package.GEN_LIST_OF_DOUBLE: - return createGenListOfDouble(); - case Model5Package.GEN_LIST_OF_DATE: - return createGenListOfDate(); - case Model5Package.GEN_LIST_OF_CHAR: - return createGenListOfChar(); - case Model5Package.GEN_LIST_OF_INT_ARRAY: - return createGenListOfIntArray(); - case Model5Package.PARENT: - return createParent(); - case Model5Package.CHILD: - return createChild(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * @generated - */ - @Override - public Object createFromString(EDataType eDataType, String initialValue) - { - switch (eDataType.getClassifierID()) - { - case Model5Package.INT_ARRAY: - return createIntArrayFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * @generated - */ - @Override - public String convertToString(EDataType eDataType, Object instanceValue) - { - switch (eDataType.getClassifierID()) - { - case Model5Package.INT_ARRAY: - return convertIntArrayToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * @generated - */ - public TestFeatureMap createTestFeatureMap() - { - TestFeatureMapImpl testFeatureMap = new TestFeatureMapImpl(); - return testFeatureMap; - } - - /** - * - * @generated - */ - public Manager createManager() - { - ManagerImpl manager = new ManagerImpl(); - return manager; - } - - /** - * - * @generated - */ - public Doctor createDoctor() - { - DoctorImpl doctor = new DoctorImpl(); - return doctor; - } - - /** - * - * @generated - */ - public GenListOfString createGenListOfString() - { - GenListOfStringImpl genListOfString = new GenListOfStringImpl(); - return genListOfString; - } - - /** - * - * @generated - */ - public GenListOfInt createGenListOfInt() - { - GenListOfIntImpl genListOfInt = new GenListOfIntImpl(); - return genListOfInt; - } - - /** - * - * @generated - */ - public GenListOfInteger createGenListOfInteger() - { - GenListOfIntegerImpl genListOfInteger = new GenListOfIntegerImpl(); - return genListOfInteger; - } - - /** - * - * @generated - */ - public GenListOfLong createGenListOfLong() - { - GenListOfLongImpl genListOfLong = new GenListOfLongImpl(); - return genListOfLong; - } - - /** - * - * @generated - */ - public GenListOfBoolean createGenListOfBoolean() - { - GenListOfBooleanImpl genListOfBoolean = new GenListOfBooleanImpl(); - return genListOfBoolean; - } - - /** - * - * @generated - */ - public GenListOfShort createGenListOfShort() - { - GenListOfShortImpl genListOfShort = new GenListOfShortImpl(); - return genListOfShort; - } - - /** - * - * @generated - */ - public GenListOfFloat createGenListOfFloat() - { - GenListOfFloatImpl genListOfFloat = new GenListOfFloatImpl(); - return genListOfFloat; - } - - /** - * - * @generated - */ - public GenListOfDouble createGenListOfDouble() - { - GenListOfDoubleImpl genListOfDouble = new GenListOfDoubleImpl(); - return genListOfDouble; - } - - /** - * - * @generated - */ - public GenListOfDate createGenListOfDate() - { - GenListOfDateImpl genListOfDate = new GenListOfDateImpl(); - return genListOfDate; - } - - /** - * - * @generated - */ - public GenListOfChar createGenListOfChar() - { - GenListOfCharImpl genListOfChar = new GenListOfCharImpl(); - return genListOfChar; - } - - /** - * - * @generated - */ - public GenListOfIntArray createGenListOfIntArray() - { - GenListOfIntArrayImpl genListOfIntArray = new GenListOfIntArrayImpl(); - return genListOfIntArray; - } - - /** - * - * - * @generated - */ - public Parent createParent() - { - ParentImpl parent = new ParentImpl(); - return parent; - } - - /** - * - * - * @generated - */ - public Child createChild() - { - ChildImpl child = new ChildImpl(); - return child; - } - - /** - * - * @generated - */ - public int[] createIntArrayFromString(EDataType eDataType, String initialValue) - { - return (int[])super.createFromString(initialValue); - } - - /** - * - * @generated - */ - public String convertIntArrayToString(EDataType eDataType, Object instanceValue) - { - return super.convertToString(instanceValue); - } - - /** - * - * @generated - */ - public Model5Package getModel5Package() - { - return (Model5Package)getEPackage(); - } - - /** - * - * @deprecated - * @generated - */ - @Deprecated - public static Model5Package getPackage() - { - return Model5Package.eINSTANCE; - } - -} // Model5FactoryImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/Model5PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/Model5PackageImpl.java deleted file mode 100644 index 2d6e2ce9ae..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/Model5PackageImpl.java +++ /dev/null @@ -1,794 +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.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Factory; -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.Child; -import org.eclipse.emf.cdo.tests.model5.Doctor; -import org.eclipse.emf.cdo.tests.model5.GenListOfBoolean; -import org.eclipse.emf.cdo.tests.model5.GenListOfChar; -import org.eclipse.emf.cdo.tests.model5.GenListOfDate; -import org.eclipse.emf.cdo.tests.model5.GenListOfDouble; -import org.eclipse.emf.cdo.tests.model5.GenListOfFloat; -import org.eclipse.emf.cdo.tests.model5.GenListOfInt; -import org.eclipse.emf.cdo.tests.model5.GenListOfIntArray; -import org.eclipse.emf.cdo.tests.model5.GenListOfInteger; -import org.eclipse.emf.cdo.tests.model5.GenListOfLong; -import org.eclipse.emf.cdo.tests.model5.GenListOfShort; -import org.eclipse.emf.cdo.tests.model5.GenListOfString; -import org.eclipse.emf.cdo.tests.model5.Manager; -import org.eclipse.emf.cdo.tests.model5.Parent; -import org.eclipse.emf.cdo.tests.model5.TestFeatureMap; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; - -/** - * An implementation of the model Package. - * @generated - */ -public class Model5PackageImpl extends EPackageImpl implements Model5Package -{ - /** - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * - * @generated - */ - private EClass testFeatureMapEClass = null; - - /** - * - * @generated - */ - private EClass managerEClass = null; - - /** - * - * @generated - */ - private EClass doctorEClass = null; - - /** - * - * @generated - */ - private EClass genListOfStringEClass = null; - - /** - * - * @generated - */ - private EClass genListOfIntEClass = null; - - /** - * - * @generated - */ - private EClass genListOfIntegerEClass = null; - - /** - * - * @generated - */ - private EClass genListOfLongEClass = null; - - /** - * - * @generated - */ - private EClass genListOfBooleanEClass = null; - - /** - * - * @generated - */ - private EClass genListOfShortEClass = null; - - /** - * - * @generated - */ - private EClass genListOfFloatEClass = null; - - /** - * - * @generated - */ - private EClass genListOfDoubleEClass = null; - - /** - * - * @generated - */ - private EClass genListOfDateEClass = null; - - /** - * - * @generated - */ - private EClass genListOfCharEClass = null; - - /** - * - * @generated - */ - private EClass genListOfIntArrayEClass = null; - - /** - * - * - * @generated - */ - private EClass parentEClass = null; - - /** - * - * - * @generated - */ - private EClass childEClass = null; - - /** - * - * @generated - */ - private EDataType intArrayEDataType = 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.model5.Model5Package#eNS_URI - * @see #init() - * @generated - */ - private Model5PackageImpl() - { - super(eNS_URI, Model5Factory.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 Model5Package#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 Model5Package init() - { - if (isInited) - return (Model5Package)EPackage.Registry.INSTANCE.getEPackage(Model5Package.eNS_URI); - - // Obtain or create and register package - Model5PackageImpl theModel5Package = (Model5PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Model5PackageImpl ? EPackage.Registry.INSTANCE - .get(eNS_URI) : new Model5PackageImpl()); - - isInited = true; - - // Create package meta-data objects - theModel5Package.createPackageContents(); - - // Initialize created meta-data - theModel5Package.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theModel5Package.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(Model5Package.eNS_URI, theModel5Package); - return theModel5Package; - } - - /** - * - * @generated - */ - public EClass getTestFeatureMap() - { - return testFeatureMapEClass; - } - - /** - * - * @generated - */ - public EReference getTestFeatureMap_Managers() - { - return (EReference)testFeatureMapEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getTestFeatureMap_Doctors() - { - return (EReference)testFeatureMapEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EAttribute getTestFeatureMap_People() - { - return (EAttribute)testFeatureMapEClass.getEStructuralFeatures().get(2); - } - - /** - * - * @generated - */ - public EClass getManager() - { - return managerEClass; - } - - /** - * - * @generated - */ - public EClass getDoctor() - { - return doctorEClass; - } - - /** - * - * @generated - */ - public EClass getGenListOfString() - { - return genListOfStringEClass; - } - - /** - * - * @generated - */ - public EAttribute getGenListOfString_Elements() - { - return (EAttribute)genListOfStringEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getGenListOfInt() - { - return genListOfIntEClass; - } - - /** - * - * @generated - */ - public EAttribute getGenListOfInt_Elements() - { - return (EAttribute)genListOfIntEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getGenListOfInteger() - { - return genListOfIntegerEClass; - } - - /** - * - * @generated - */ - public EAttribute getGenListOfInteger_Elements() - { - return (EAttribute)genListOfIntegerEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getGenListOfLong() - { - return genListOfLongEClass; - } - - /** - * - * @generated - */ - public EAttribute getGenListOfLong_Elements() - { - return (EAttribute)genListOfLongEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getGenListOfBoolean() - { - return genListOfBooleanEClass; - } - - /** - * - * @generated - */ - public EAttribute getGenListOfBoolean_Elements() - { - return (EAttribute)genListOfBooleanEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getGenListOfShort() - { - return genListOfShortEClass; - } - - /** - * - * @generated - */ - public EAttribute getGenListOfShort_Elements() - { - return (EAttribute)genListOfShortEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getGenListOfFloat() - { - return genListOfFloatEClass; - } - - /** - * - * @generated - */ - public EAttribute getGenListOfFloat_Elements() - { - return (EAttribute)genListOfFloatEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getGenListOfDouble() - { - return genListOfDoubleEClass; - } - - /** - * - * @generated - */ - public EAttribute getGenListOfDouble_Elements() - { - return (EAttribute)genListOfDoubleEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getGenListOfDate() - { - return genListOfDateEClass; - } - - /** - * - * @generated - */ - public EAttribute getGenListOfDate_Elements() - { - return (EAttribute)genListOfDateEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getGenListOfChar() - { - return genListOfCharEClass; - } - - /** - * - * @generated - */ - public EAttribute getGenListOfChar_Elements() - { - return (EAttribute)genListOfCharEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getGenListOfIntArray() - { - return genListOfIntArrayEClass; - } - - /** - * - * @generated - */ - public EAttribute getGenListOfIntArray_Elements() - { - return (EAttribute)genListOfIntArrayEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getParent() - { - return parentEClass; - } - - /** - * - * - * @generated - */ - public EReference getParent_Children() - { - return (EReference)parentEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getParent_Favourite() - { - return (EReference)parentEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getParent_Name() - { - return (EAttribute)parentEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getChild() - { - return childEClass; - } - - /** - * - * - * @generated - */ - public EReference getChild_Parent() - { - return (EReference)childEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getChild_PreferredBy() - { - return (EReference)childEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EAttribute getChild_Name() - { - return (EAttribute)childEClass.getEStructuralFeatures().get(2); - } - - /** - * - * @generated - */ - public EDataType getIntArray() - { - return intArrayEDataType; - } - - /** - * - * @generated - */ - public Model5Factory getModel5Factory() - { - return (Model5Factory)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 - testFeatureMapEClass = createEClass(TEST_FEATURE_MAP); - createEReference(testFeatureMapEClass, TEST_FEATURE_MAP__MANAGERS); - createEReference(testFeatureMapEClass, TEST_FEATURE_MAP__DOCTORS); - createEAttribute(testFeatureMapEClass, TEST_FEATURE_MAP__PEOPLE); - - managerEClass = createEClass(MANAGER); - - doctorEClass = createEClass(DOCTOR); - - genListOfStringEClass = createEClass(GEN_LIST_OF_STRING); - createEAttribute(genListOfStringEClass, GEN_LIST_OF_STRING__ELEMENTS); - - genListOfIntEClass = createEClass(GEN_LIST_OF_INT); - createEAttribute(genListOfIntEClass, GEN_LIST_OF_INT__ELEMENTS); - - genListOfIntegerEClass = createEClass(GEN_LIST_OF_INTEGER); - createEAttribute(genListOfIntegerEClass, GEN_LIST_OF_INTEGER__ELEMENTS); - - genListOfLongEClass = createEClass(GEN_LIST_OF_LONG); - createEAttribute(genListOfLongEClass, GEN_LIST_OF_LONG__ELEMENTS); - - genListOfBooleanEClass = createEClass(GEN_LIST_OF_BOOLEAN); - createEAttribute(genListOfBooleanEClass, GEN_LIST_OF_BOOLEAN__ELEMENTS); - - genListOfShortEClass = createEClass(GEN_LIST_OF_SHORT); - createEAttribute(genListOfShortEClass, GEN_LIST_OF_SHORT__ELEMENTS); - - genListOfFloatEClass = createEClass(GEN_LIST_OF_FLOAT); - createEAttribute(genListOfFloatEClass, GEN_LIST_OF_FLOAT__ELEMENTS); - - genListOfDoubleEClass = createEClass(GEN_LIST_OF_DOUBLE); - createEAttribute(genListOfDoubleEClass, GEN_LIST_OF_DOUBLE__ELEMENTS); - - genListOfDateEClass = createEClass(GEN_LIST_OF_DATE); - createEAttribute(genListOfDateEClass, GEN_LIST_OF_DATE__ELEMENTS); - - genListOfCharEClass = createEClass(GEN_LIST_OF_CHAR); - createEAttribute(genListOfCharEClass, GEN_LIST_OF_CHAR__ELEMENTS); - - genListOfIntArrayEClass = createEClass(GEN_LIST_OF_INT_ARRAY); - createEAttribute(genListOfIntArrayEClass, GEN_LIST_OF_INT_ARRAY__ELEMENTS); - - parentEClass = createEClass(PARENT); - createEReference(parentEClass, PARENT__CHILDREN); - createEReference(parentEClass, PARENT__FAVOURITE); - createEAttribute(parentEClass, PARENT__NAME); - - childEClass = createEClass(CHILD); - createEReference(childEClass, CHILD__PARENT); - createEReference(childEClass, CHILD__PREFERRED_BY); - createEAttribute(childEClass, CHILD__NAME); - - // Create data types - intArrayEDataType = createEDataType(INT_ARRAY); - } - - /** - * - * @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); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - - // Initialize classes and features; add operations and parameters - initEClass(testFeatureMapEClass, TestFeatureMap.class, "TestFeatureMap", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getTestFeatureMap_Managers(), this.getManager(), null, "managers", null, 0, -1, - TestFeatureMap.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getTestFeatureMap_Doctors(), this.getDoctor(), null, "doctors", null, 0, -1, TestFeatureMap.class, - IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getTestFeatureMap_People(), ecorePackage.getEFeatureMapEntry(), "people", null, 0, -1, - TestFeatureMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(managerEClass, Manager.class, "Manager", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(doctorEClass, Doctor.class, "Doctor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(genListOfStringEClass, GenListOfString.class, "GenListOfString", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getGenListOfString_Elements(), ecorePackage.getEString(), "elements", null, 0, -1, - GenListOfString.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(genListOfIntEClass, GenListOfInt.class, "GenListOfInt", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getGenListOfInt_Elements(), ecorePackage.getEInt(), "elements", null, 0, -1, GenListOfInt.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(genListOfIntegerEClass, GenListOfInteger.class, "GenListOfInteger", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getGenListOfInteger_Elements(), ecorePackage.getEIntegerObject(), "elements", null, 0, -1, - GenListOfInteger.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(genListOfLongEClass, GenListOfLong.class, "GenListOfLong", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getGenListOfLong_Elements(), ecorePackage.getELong(), "elements", null, 0, -1, GenListOfLong.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(genListOfBooleanEClass, GenListOfBoolean.class, "GenListOfBoolean", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getGenListOfBoolean_Elements(), ecorePackage.getEBoolean(), "elements", null, 0, -1, - GenListOfBoolean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(genListOfShortEClass, GenListOfShort.class, "GenListOfShort", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getGenListOfShort_Elements(), ecorePackage.getEShort(), "elements", null, 0, -1, - GenListOfShort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(genListOfFloatEClass, GenListOfFloat.class, "GenListOfFloat", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getGenListOfFloat_Elements(), ecorePackage.getEFloat(), "elements", null, 0, -1, - GenListOfFloat.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(genListOfDoubleEClass, GenListOfDouble.class, "GenListOfDouble", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getGenListOfDouble_Elements(), ecorePackage.getEDouble(), "elements", null, 0, -1, - GenListOfDouble.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(genListOfDateEClass, GenListOfDate.class, "GenListOfDate", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getGenListOfDate_Elements(), ecorePackage.getEDate(), "elements", null, 0, -1, GenListOfDate.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(genListOfCharEClass, GenListOfChar.class, "GenListOfChar", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getGenListOfChar_Elements(), ecorePackage.getEChar(), "elements", null, 0, -1, GenListOfChar.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(genListOfIntArrayEClass, GenListOfIntArray.class, "GenListOfIntArray", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getGenListOfIntArray_Elements(), this.getIntArray(), "elements", null, 0, -1, - GenListOfIntArray.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(parentEClass, Parent.class, "Parent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getParent_Children(), this.getChild(), this.getChild_Parent(), "children", null, 0, -1, - Parent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getParent_Favourite(), this.getChild(), this.getChild_PreferredBy(), "favourite", null, 0, 1, - Parent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getParent_Name(), ecorePackage.getEString(), "name", null, 0, 1, Parent.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(childEClass, Child.class, "Child", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getChild_Parent(), this.getParent(), this.getParent_Children(), "parent", null, 0, 1, Child.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getChild_PreferredBy(), this.getParent(), this.getParent_Favourite(), "preferredBy", null, 0, 1, - Child.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getChild_Name(), ecorePackage.getEString(), "name", null, 0, 1, Child.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Initialize data types - initEDataType(intArrayEDataType, int[].class, "IntArray", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); - - // Create resource - createResource(eNS_URI); - - // Create annotations - // http:///org/eclipse/emf/ecore/util/ExtendedMetaData - createExtendedMetaDataAnnotations(); - } - - /** - * Initializes the annotations for http:///org/eclipse/emf/ecore/util/ExtendedMetaData. - * - * - * @generated - */ - protected void createExtendedMetaDataAnnotations() - { - String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; - addAnnotation(getTestFeatureMap_Managers(), source, new String[] { "group", "#people" }); - addAnnotation(getTestFeatureMap_Doctors(), source, new String[] { "group", "#people" }); - addAnnotation(getTestFeatureMap_People(), source, new String[] { "kind", "group" }); - } - -} // Model5PackageImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/ParentImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/ParentImpl.java deleted file mode 100644 index 2c06232b3c..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/ParentImpl.java +++ /dev/null @@ -1,402 +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: - * Christian W. Damus (CEA) - initial API and implementation - */ -package org.eclipse.emf.cdo.tests.legacy.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.Child; -import org.eclipse.emf.cdo.tests.model5.Parent; -import org.eclipse.emf.cdo.tests.model5.util.IsLoadingTestFixture; - -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 'Parent'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.ParentImpl#getChildren Children}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.ParentImpl#getFavourite Favourite}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.ParentImpl#getName Name}
  • - *
- *

- * - * @generated - */ -public class ParentImpl extends EObjectImpl implements Parent -{ - /** - * - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * The cached value of the '{@link #getChildren() Children}' containment reference list. - * - * - * @see #getChildren() - * @generated - * @ordered - */ - protected EList children; - - /** - * The cached value of the '{@link #getFavourite() Favourite}' reference. - * - * - * @see #getFavourite() - * @generated - * @ordered - */ - protected Child favourite; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * - * - * @generated - */ - protected ParentImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model5Package.eINSTANCE.getParent(); - } - - /** - * - * - * @generated - */ - public EList getChildren() - { - if (children == null) - { - children = new EObjectContainmentWithInverseEList(Child.class, this, Model5Package.PARENT__CHILDREN, - Model5Package.CHILD__PARENT); - } - return children; - } - - /** - * - * - * @generated - */ - public Child getFavourite() - { - if (favourite != null && favourite.eIsProxy()) - { - InternalEObject oldFavourite = (InternalEObject)favourite; - favourite = (Child)eResolveProxy(oldFavourite); - if (favourite != oldFavourite) - { - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model5Package.PARENT__FAVOURITE, oldFavourite, - favourite)); - } - } - } - return favourite; - } - - /** - * - * - * @generated - */ - public Child basicGetFavourite() - { - return favourite; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetFavourite(Child newFavourite, NotificationChain msgs) - { - Child oldFavourite = favourite; - favourite = newFavourite; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Model5Package.PARENT__FAVOURITE, - oldFavourite, newFavourite); - if (msgs == null) - { - msgs = notification; - } - else - { - msgs.add(notification); - } - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setFavourite(Child newFavourite) - { - if (newFavourite != favourite) - { - NotificationChain msgs = null; - if (favourite != null) - { - msgs = ((InternalEObject)favourite).eInverseRemove(this, Model5Package.CHILD__PREFERRED_BY, Child.class, msgs); - } - if (newFavourite != null) - { - msgs = ((InternalEObject)newFavourite).eInverseAdd(this, Model5Package.CHILD__PREFERRED_BY, Child.class, msgs); - } - msgs = basicSetFavourite(newFavourite, msgs); - if (msgs != null) - { - msgs.dispatch(); - } - } - else if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, Model5Package.PARENT__FAVOURITE, newFavourite, newFavourite)); - } - } - - /** - * - * - * @generated - */ - public String getName() - { - return name; - } - - /** - * - * - * @generated - */ - public void setNameGen(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, Model5Package.PARENT__NAME, oldName, name)); - } - } - - public void setName(String newName) - { - IsLoadingTestFixture.reportLoading(eResource(), this); - setNameGen(newName); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model5Package.PARENT__CHILDREN: - return ((InternalEList)(InternalEList)getChildren()).basicAdd(otherEnd, msgs); - case Model5Package.PARENT__FAVOURITE: - if (favourite != null) - { - msgs = ((InternalEObject)favourite).eInverseRemove(this, Model5Package.CHILD__PREFERRED_BY, Child.class, msgs); - } - return basicSetFavourite((Child)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model5Package.PARENT__CHILDREN: - return ((InternalEList)getChildren()).basicRemove(otherEnd, msgs); - case Model5Package.PARENT__FAVOURITE: - return basicSetFavourite(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model5Package.PARENT__CHILDREN: - return getChildren(); - case Model5Package.PARENT__FAVOURITE: - if (resolve) - { - return getFavourite(); - } - return basicGetFavourite(); - case Model5Package.PARENT__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model5Package.PARENT__CHILDREN: - getChildren().clear(); - getChildren().addAll((Collection)newValue); - return; - case Model5Package.PARENT__FAVOURITE: - setFavourite((Child)newValue); - return; - case Model5Package.PARENT__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model5Package.PARENT__CHILDREN: - getChildren().clear(); - return; - case Model5Package.PARENT__FAVOURITE: - setFavourite((Child)null); - return; - case Model5Package.PARENT__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model5Package.PARENT__CHILDREN: - return children != null && !children.isEmpty(); - case Model5Package.PARENT__FAVOURITE: - return favourite != null; - case Model5Package.PARENT__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - { - return super.toString(); - } - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} // ParentImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/TestFeatureMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/TestFeatureMapImpl.java deleted file mode 100644 index e327968e32..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/legacy/model5/impl/TestFeatureMapImpl.java +++ /dev/null @@ -1,259 +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.model5.impl; - -import org.eclipse.emf.cdo.tests.legacy.model5.Model5Package; -import org.eclipse.emf.cdo.tests.model5.Doctor; -import org.eclipse.emf.cdo.tests.model5.Manager; -import org.eclipse.emf.cdo.tests.model5.TestFeatureMap; - -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.BasicFeatureMap; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.emf.ecore.util.FeatureMap; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object 'Test Feature Map'. - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.TestFeatureMapImpl#getManagers Managers}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.TestFeatureMapImpl#getDoctors Doctors}
  • - *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.TestFeatureMapImpl#getPeople People}
  • - *
- *

- * - * @generated - */ -public class TestFeatureMapImpl extends EObjectImpl implements TestFeatureMap -{ - /** - * - * @generated - */ - public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; - - /** - * The cached value of the '{@link #getManagers() Managers}' reference list. - * - * @see #getManagers() - * @generated - * @ordered - */ - protected EList managers; - - /** - * The cached value of the '{@link #getDoctors() Doctors}' reference list. - * - * @see #getDoctors() - * @generated - * @ordered - */ - protected EList doctors; - - /** - * The cached value of the '{@link #getPeople() People}' attribute list. - * - * @see #getPeople() - * @generated - * @ordered - */ - protected FeatureMap people; - - /** - * - * @generated - */ - protected TestFeatureMapImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model5Package.eINSTANCE.getTestFeatureMap(); - } - - /** - * - * @generated - */ - public EList getManagers() - { - if (managers == null) - { - managers = new EObjectResolvingEList(Manager.class, this, Model5Package.TEST_FEATURE_MAP__MANAGERS); - } - return managers; - } - - /** - * - * @generated - */ - public EList getDoctors() - { - if (doctors == null) - { - doctors = new EObjectResolvingEList(Doctor.class, this, Model5Package.TEST_FEATURE_MAP__DOCTORS); - } - return doctors; - } - - /** - * - * @generated - */ - public FeatureMap getPeople() - { - if (people == null) - { - people = new BasicFeatureMap(this, Model5Package.TEST_FEATURE_MAP__PEOPLE); - } - return people; - } - - /** - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case Model5Package.TEST_FEATURE_MAP__PEOPLE: - return ((InternalEList)getPeople()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case Model5Package.TEST_FEATURE_MAP__MANAGERS: - return getManagers(); - case Model5Package.TEST_FEATURE_MAP__DOCTORS: - return getDoctors(); - case Model5Package.TEST_FEATURE_MAP__PEOPLE: - if (coreType) - return getPeople(); - return ((FeatureMap.Internal)getPeople()).getWrapper(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case Model5Package.TEST_FEATURE_MAP__MANAGERS: - getManagers().clear(); - getManagers().addAll((Collection)newValue); - return; - case Model5Package.TEST_FEATURE_MAP__DOCTORS: - getDoctors().clear(); - getDoctors().addAll((Collection)newValue); - return; - case Model5Package.TEST_FEATURE_MAP__PEOPLE: - ((FeatureMap.Internal)getPeople()).set(newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case Model5Package.TEST_FEATURE_MAP__MANAGERS: - getManagers().clear(); - return; - case Model5Package.TEST_FEATURE_MAP__DOCTORS: - getDoctors().clear(); - return; - case Model5Package.TEST_FEATURE_MAP__PEOPLE: - getPeople().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case Model5Package.TEST_FEATURE_MAP__MANAGERS: - return managers != null && !managers.isEmpty(); - case Model5Package.TEST_FEATURE_MAP__DOCTORS: - return doctors != null && !doctors.isEmpty(); - case Model5Package.TEST_FEATURE_MAP__PEOPLE: - return people != null && !people.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (people: "); - result.append(people); - result.append(')'); - return result.toString(); - } - -} // TestFeatureMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Child.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Child.java index c294f3b5ab..525b6dd751 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Child.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Child.java @@ -26,12 +26,19 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getChild() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getChild() * @model * @generated */ public interface Child extends EObject { + /** + * + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + /** * Returns the value of the 'Parent' container reference. * It is bidirectional and its opposite is '{@link org.eclipse.emf.cdo.tests.model5.Parent#getChildren Children}'. @@ -43,7 +50,7 @@ public interface Child extends EObject * * @return the value of the 'Parent' container reference. * @see #setParent(Parent) - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getChild_Parent() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getChild_Parent() * @see org.eclipse.emf.cdo.tests.model5.Parent#getChildren * @model opposite="children" transient="false" * @generated @@ -71,7 +78,7 @@ public interface Child extends EObject * * @return the value of the 'Preferred By' reference. * @see #setPreferredBy(Parent) - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getChild_PreferredBy() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getChild_PreferredBy() * @see org.eclipse.emf.cdo.tests.model5.Parent#getFavourite * @model opposite="favourite" * @generated @@ -89,29 +96,29 @@ public interface Child extends EObject void setPreferredBy(Parent value); /** - * Returns the value of the 'Name' attribute. - * + * Returns the value of the 'Name' attribute. + * *

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

* - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getChild_Name() - * @model - * @generated - */ + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getChild_Name() + * @model + * @generated + */ String getName(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model5.Child#getName Name}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model5.Child#getName Name}' attribute. + * * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ void setName(String value); } // Child diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Doctor.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Doctor.java index e82a119252..30a4d7f217 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Doctor.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Doctor.java @@ -16,10 +16,17 @@ import org.eclipse.emf.ecore.EObject; * A representation of the model object 'Doctor'. * * - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getDoctor() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getDoctor() * @model * @generated */ public interface Doctor extends EObject { + + /** + * + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; } // Doctor diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfBoolean.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfBoolean.java index e9b86dc65c..0e09711bb6 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfBoolean.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfBoolean.java @@ -29,6 +29,13 @@ import org.eclipse.emf.ecore.EObject; */ public interface GenListOfBoolean extends EObject { + /** + * + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + /** * Returns the value of the 'Elements' attribute list. * The list contents are of type {@link java.lang.Boolean}. @@ -39,7 +46,7 @@ public interface GenListOfBoolean extends EObject *

* * @return the value of the 'Elements' attribute list. - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfBoolean_Elements() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getGenListOfBoolean_Elements() * @model unique="false" * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfChar.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfChar.java index 223d74a08f..c0b472caa5 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfChar.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfChar.java @@ -29,6 +29,13 @@ import org.eclipse.emf.ecore.EObject; */ public interface GenListOfChar extends EObject { + /** + * + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + /** * Returns the value of the 'Elements' attribute list. * The list contents are of type {@link java.lang.Character}. @@ -39,7 +46,7 @@ public interface GenListOfChar extends EObject *

* * @return the value of the 'Elements' attribute list. - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfChar_Elements() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getGenListOfChar_Elements() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfDate.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfDate.java index 2defe86830..6c8982c711 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfDate.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfDate.java @@ -31,6 +31,13 @@ import java.util.Date; */ public interface GenListOfDate extends EObject { + /** + * + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + /** * Returns the value of the 'Elements' attribute list. * The list contents are of type {@link java.util.Date}. @@ -41,7 +48,7 @@ public interface GenListOfDate extends EObject *

* * @return the value of the 'Elements' attribute list. - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfDate_Elements() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getGenListOfDate_Elements() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfDouble.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfDouble.java index 772df24f06..85af224855 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfDouble.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfDouble.java @@ -29,6 +29,13 @@ import org.eclipse.emf.ecore.EObject; */ public interface GenListOfDouble extends EObject { + /** + * + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + /** * Returns the value of the 'Elements' attribute list. * The list contents are of type {@link java.lang.Double}. @@ -39,7 +46,7 @@ public interface GenListOfDouble extends EObject *

* * @return the value of the 'Elements' attribute list. - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfDouble_Elements() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getGenListOfDouble_Elements() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfFloat.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfFloat.java index 884e9b54c9..19be601eab 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfFloat.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfFloat.java @@ -29,6 +29,13 @@ import org.eclipse.emf.ecore.EObject; */ public interface GenListOfFloat extends EObject { + /** + * + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + /** * Returns the value of the 'Elements' attribute list. * The list contents are of type {@link java.lang.Float}. @@ -39,7 +46,7 @@ public interface GenListOfFloat extends EObject *

* * @return the value of the 'Elements' attribute list. - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfFloat_Elements() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getGenListOfFloat_Elements() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfInt.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfInt.java index 9d703f0d9b..f45d4a0928 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfInt.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfInt.java @@ -23,12 +23,19 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfInt() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getGenListOfInt() * @model * @generated */ public interface GenListOfInt extends EObject { + /** + * + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + /** * Returns the value of the 'Elements' attribute list. * The list contents are of type {@link java.lang.Integer}. @@ -39,7 +46,7 @@ public interface GenListOfInt extends EObject *

* * @return the value of the 'Elements' attribute list. - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfInt_Elements() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getGenListOfInt_Elements() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfIntArray.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfIntArray.java index ac32a27e79..1fd17579f1 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfIntArray.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfIntArray.java @@ -24,12 +24,19 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfIntArray() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getGenListOfIntArray() * @model * @generated */ public interface GenListOfIntArray extends EObject { + /** + * + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + /** * Returns the value of the 'Elements' attribute list. * The list contents are of type {@link int}[]. @@ -40,7 +47,7 @@ public interface GenListOfIntArray extends EObject *

* * @return the value of the 'Elements' attribute list. - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfIntArray_Elements() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getGenListOfIntArray_Elements() * @model dataType="org.eclipse.emf.cdo.tests.model5.IntArray" * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfInteger.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfInteger.java index 4061fa2f26..42751ab4ec 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfInteger.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfInteger.java @@ -29,6 +29,13 @@ import org.eclipse.emf.ecore.EObject; */ public interface GenListOfInteger extends EObject { + /** + * + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + /** * Returns the value of the 'Elements' attribute list. * The list contents are of type {@link java.lang.Integer}. @@ -39,7 +46,7 @@ public interface GenListOfInteger extends EObject *

* * @return the value of the 'Elements' attribute list. - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfInteger_Elements() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getGenListOfInteger_Elements() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfLong.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfLong.java index 529cb6f6a8..c57c5b0c44 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfLong.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfLong.java @@ -29,6 +29,13 @@ import org.eclipse.emf.ecore.EObject; */ public interface GenListOfLong extends EObject { + /** + * + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + /** * Returns the value of the 'Elements' attribute list. * The list contents are of type {@link java.lang.Long}. @@ -39,7 +46,7 @@ public interface GenListOfLong extends EObject *

* * @return the value of the 'Elements' attribute list. - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfLong_Elements() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getGenListOfLong_Elements() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfShort.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfShort.java index da070672d8..eb3ccbe00d 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfShort.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfShort.java @@ -29,6 +29,13 @@ import org.eclipse.emf.ecore.EObject; */ public interface GenListOfShort extends EObject { + /** + * + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + /** * Returns the value of the 'Elements' attribute list. * The list contents are of type {@link java.lang.Short}. @@ -39,7 +46,7 @@ public interface GenListOfShort extends EObject *

* * @return the value of the 'Elements' attribute list. - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfShort_Elements() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getGenListOfShort_Elements() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfString.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfString.java index 45f324babc..a0a9b0d529 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfString.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfString.java @@ -29,6 +29,13 @@ import org.eclipse.emf.ecore.EObject; */ public interface GenListOfString extends EObject { + /** + * + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + /** * Returns the value of the 'Elements' attribute list. * The list contents are of type {@link java.lang.String}. @@ -39,7 +46,7 @@ public interface GenListOfString extends EObject *

* * @return the value of the 'Elements' attribute list. - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfString_Elements() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getGenListOfString_Elements() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Manager.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Manager.java index d7da9b126a..a662ed074e 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Manager.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Manager.java @@ -16,10 +16,17 @@ import org.eclipse.emf.ecore.EObject; * A representation of the model object 'Manager'. * * - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getManager() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getManager() * @model * @generated */ public interface Manager extends EObject { + + /** + * + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; } // Manager diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Model5Package.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Model5Package.java index 798abc6572..e9cc5003f2 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Model5Package.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Model5Package.java @@ -461,12 +461,12 @@ public interface Model5Package extends EPackage int PARENT__NAME = 2; /** - * The number of structural features of the 'Parent' class. - * + * The number of structural features of the 'Parent' class. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int PARENT_FEATURE_COUNT = 3; /** @@ -507,12 +507,12 @@ public interface Model5Package extends EPackage int CHILD__NAME = 2; /** - * The number of structural features of the 'Child' class. - * + * The number of structural features of the 'Child' class. + * * - * @generated - * @ordered - */ + * @generated + * @ordered + */ int CHILD_FEATURE_COUNT = 3; /** @@ -820,13 +820,13 @@ public interface Model5Package extends EPackage EAttribute getParent_Name(); /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.Child Child}'. - * + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.Child Child}'. + * * - * @return the meta object for class 'Child'. - * @see org.eclipse.emf.cdo.tests.model5.Child - * @generated - */ + * @return the meta object for class 'Child'. + * @see org.eclipse.emf.cdo.tests.model5.Child + * @generated + */ EClass getChild(); /** @@ -863,12 +863,12 @@ public interface Model5Package extends EPackage EAttribute getChild_Name(); /** - * Returns the meta object for data type 'Int Array'. - * - * @return the meta object for data type 'Int Array'. - * @model instanceClass="int[]" - * @generated - */ + * Returns the meta object for data type 'Int Array'. + * + * @return the meta object for data type 'Int Array'. + * @model instanceClass="int[]" + * @generated + */ EDataType getIntArray(); /** diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Parent.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Parent.java index b799c56b01..efa5bb6aca 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Parent.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Parent.java @@ -27,12 +27,19 @@ import org.eclipse.emf.ecore.EObject; * *

* - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getParent() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getParent() * @model * @generated */ public interface Parent extends EObject { + /** + * + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + /** * Returns the value of the 'Children' containment reference list. * The list contents are of type {@link org.eclipse.emf.cdo.tests.model5.Child}. @@ -44,7 +51,7 @@ public interface Parent extends EObject *

* * @return the value of the 'Children' containment reference list. - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getParent_Children() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getParent_Children() * @see org.eclipse.emf.cdo.tests.model5.Child#getParent * @model opposite="parent" containment="true" * @generated @@ -62,7 +69,7 @@ public interface Parent extends EObject * * @return the value of the 'Favourite' reference. * @see #setFavourite(Child) - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getParent_Favourite() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getParent_Favourite() * @see org.eclipse.emf.cdo.tests.model5.Child#getPreferredBy * @model opposite="preferredBy" * @generated @@ -80,29 +87,29 @@ public interface Parent extends EObject void setFavourite(Child value); /** - * Returns the value of the 'Name' attribute. - * + * Returns the value of the 'Name' attribute. + * *

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

* - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getParent_Name() - * @model - * @generated - */ + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getParent_Name() + * @model + * @generated + */ String getName(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model5.Parent#getName Name}' attribute. - * + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model5.Parent#getName Name}' attribute. + * * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ void setName(String value); } // Parent diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/TestFeatureMap.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/TestFeatureMap.java index 2f0c5d81c3..fcae78991c 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/TestFeatureMap.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/TestFeatureMap.java @@ -32,6 +32,13 @@ import org.eclipse.emf.ecore.util.FeatureMap; */ public interface TestFeatureMap extends EObject { + /** + * + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + /** * Returns the value of the 'Managers' reference list. * The list contents are of type {@link org.eclipse.emf.cdo.tests.model5.Manager}. @@ -42,7 +49,7 @@ public interface TestFeatureMap extends EObject *

* * @return the value of the 'Managers' reference list. - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getTestFeatureMap_Managers() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getTestFeatureMap_Managers() * @model transient="true" * extendedMetaData="group='#people'" * @generated @@ -59,7 +66,7 @@ public interface TestFeatureMap extends EObject *

* * @return the value of the 'Doctors' reference list. - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getTestFeatureMap_Doctors() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getTestFeatureMap_Doctors() * @model transient="true" * extendedMetaData="group='#people'" * @generated @@ -76,7 +83,7 @@ public interface TestFeatureMap extends EObject *

* * @return the value of the 'People' attribute list. - * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getTestFeatureMap_People() + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package#getTestFeatureMap_People() * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" * extendedMetaData="kind='group'" * @generated diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/ChildImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/ChildImpl.java index aaa6be398d..7f92b3d8f6 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/ChildImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/ChildImpl.java @@ -109,10 +109,10 @@ public class ChildImpl extends CDOObjectImpl implements Child } /** - * + * * - * @generated - */ + * @generated + */ public String getName() { return (String)eGet(Model5Package.eINSTANCE.getChild_Name(), true); diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5FactoryImpl.java index 3c17843d35..e53ee5ceb3 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5FactoryImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5FactoryImpl.java @@ -4,12 +4,13 @@ * 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.model5.impl; +//import org.eclipse.emf.cdo.tests.model5.*; import org.eclipse.emf.cdo.tests.model5.Child; import org.eclipse.emf.cdo.tests.model5.Doctor; import org.eclipse.emf.cdo.tests.model5.GenListOfBoolean; diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5PackageImpl.java index ff855c69b4..510a3ca697 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5PackageImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5PackageImpl.java @@ -482,10 +482,10 @@ public class Model5PackageImpl extends EPackageImpl implements Model5Package } /** - * + * * - * @generated - */ + * @generated + */ public EClass getChild() { return childEClass; @@ -522,9 +522,9 @@ public class Model5PackageImpl extends EPackageImpl implements Model5Package } /** - * - * @generated - */ + * + * @generated + */ public EDataType getIntArray() { return intArrayEDataType; diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/ParentImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/ParentImpl.java index c02be9ec4f..fc7148b2f2 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/ParentImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/ParentImpl.java @@ -101,20 +101,20 @@ public class ParentImpl extends CDOObjectImpl implements Parent } /** - * + * * - * @generated - */ + * @generated + */ public String getName() { return (String)eGet(Model5Package.eINSTANCE.getParent_Name(), true); } /** - * + * * - * @generated - */ + * @generated + */ public void setNameGen(String newName) { eSet(Model5Package.eINSTANCE.getParent_Name(), newName); diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/Model5Factory.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/Model5Factory.java new file mode 100644 index 0000000000..7d6e4b101b --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/Model5Factory.java @@ -0,0 +1,192 @@ +/* + * 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.model5.legacy; + +import org.eclipse.emf.cdo.tests.model5.Child; +import org.eclipse.emf.cdo.tests.model5.Doctor; +import org.eclipse.emf.cdo.tests.model5.GenListOfBoolean; +import org.eclipse.emf.cdo.tests.model5.GenListOfChar; +import org.eclipse.emf.cdo.tests.model5.GenListOfDate; +import org.eclipse.emf.cdo.tests.model5.GenListOfDouble; +import org.eclipse.emf.cdo.tests.model5.GenListOfFloat; +import org.eclipse.emf.cdo.tests.model5.GenListOfInt; +import org.eclipse.emf.cdo.tests.model5.GenListOfIntArray; +import org.eclipse.emf.cdo.tests.model5.GenListOfInteger; +import org.eclipse.emf.cdo.tests.model5.GenListOfLong; +import org.eclipse.emf.cdo.tests.model5.GenListOfShort; +import org.eclipse.emf.cdo.tests.model5.GenListOfString; +import org.eclipse.emf.cdo.tests.model5.Manager; +import org.eclipse.emf.cdo.tests.model5.Parent; +import org.eclipse.emf.cdo.tests.model5.TestFeatureMap; +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.model5.Model5Factory + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package + * @generated + */ +public interface Model5Factory extends EFactory, org.eclipse.emf.cdo.tests.model5.Model5Factory +{ + /** + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The singleton instance of the factory. + * + * @generated + */ + Model5Factory eINSTANCE = org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5FactoryImpl.init(); + + /** + * Returns a new object of class 'Test Feature Map'. + * + * @return a new object of class 'Test Feature Map'. + * @generated + */ + TestFeatureMap createTestFeatureMap(); + + /** + * Returns a new object of class 'Manager'. + * + * @return a new object of class 'Manager'. + * @generated + */ + Manager createManager(); + + /** + * Returns a new object of class 'Doctor'. + * + * @return a new object of class 'Doctor'. + * @generated + */ + Doctor createDoctor(); + + /** + * Returns a new object of class 'Gen List Of String'. + * + * @return a new object of class 'Gen List Of String'. + * @generated + */ + GenListOfString createGenListOfString(); + + /** + * Returns a new object of class 'Gen List Of Int'. + * + * @return a new object of class 'Gen List Of Int'. + * @generated + */ + GenListOfInt createGenListOfInt(); + + /** + * Returns a new object of class 'Gen List Of Integer'. + * + * @return a new object of class 'Gen List Of Integer'. + * @generated + */ + GenListOfInteger createGenListOfInteger(); + + /** + * Returns a new object of class 'Gen List Of Long'. + * + * @return a new object of class 'Gen List Of Long'. + * @generated + */ + GenListOfLong createGenListOfLong(); + + /** + * Returns a new object of class 'Gen List Of Boolean'. + * + * @return a new object of class 'Gen List Of Boolean'. + * @generated + */ + GenListOfBoolean createGenListOfBoolean(); + + /** + * Returns a new object of class 'Gen List Of Short'. + * + * @return a new object of class 'Gen List Of Short'. + * @generated + */ + GenListOfShort createGenListOfShort(); + + /** + * Returns a new object of class 'Gen List Of Float'. + * + * @return a new object of class 'Gen List Of Float'. + * @generated + */ + GenListOfFloat createGenListOfFloat(); + + /** + * Returns a new object of class 'Gen List Of Double'. + * + * @return a new object of class 'Gen List Of Double'. + * @generated + */ + GenListOfDouble createGenListOfDouble(); + + /** + * Returns a new object of class 'Gen List Of Date'. + * + * @return a new object of class 'Gen List Of Date'. + * @generated + */ + GenListOfDate createGenListOfDate(); + + /** + * Returns a new object of class 'Gen List Of Char'. + * + * @return a new object of class 'Gen List Of Char'. + * @generated + */ + GenListOfChar createGenListOfChar(); + + /** + * Returns a new object of class 'Gen List Of Int Array'. + * + * @return a new object of class 'Gen List Of Int Array'. + * @generated + */ + GenListOfIntArray createGenListOfIntArray(); + + /** + * Returns a new object of class 'Parent'. + * + * + * @return a new object of class 'Parent'. + * @generated + */ + Parent createParent(); + + /** + * Returns a new object of class 'Child'. + * + * + * @return a new object of class 'Child'. + * @generated + */ + Child createChild(); + + /** + * Returns the package supported by this factory. + * + * @return the package supported by this factory. + * @generated + */ + Model5Package getModel5Package(); + +} // Model5Factory diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/Model5Package.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/Model5Package.java new file mode 100644 index 0000000000..82f7fb7ca4 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/Model5Package.java @@ -0,0 +1,919 @@ +/* + * 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.model5.legacy; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +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.model5.Model5Package + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Factory + * @model kind="package" + * @generated + */ +public interface Model5Package extends EPackage, org.eclipse.emf.cdo.tests.model5.Model5Package +{ + /** + * + * @generated + */ + String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The package name. + * + * @generated + */ + String eNAME = "model5"; + + /** + * The package namespace URI. + * + * @generated NOT + */ + String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/legacy/model5/1.0.0"; + + /** + * The package namespace name. + * + * @generated + */ + String eNS_PREFIX = "model5"; + + /** + * The singleton instance of the package. + * + * @generated + */ + Model5Package eINSTANCE = org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.legacy.impl.TestFeatureMapImpl Test Feature Map}' class. + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.TestFeatureMapImpl + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getTestFeatureMap() + * @generated + */ + int TEST_FEATURE_MAP = 0; + + /** + * The feature id for the 'Managers' reference list. + * + * @generated + * @ordered + */ + int TEST_FEATURE_MAP__MANAGERS = 0; + + /** + * The feature id for the 'Doctors' reference list. + * + * @generated + * @ordered + */ + int TEST_FEATURE_MAP__DOCTORS = 1; + + /** + * The feature id for the 'People' attribute list. + * + * @generated + * @ordered + */ + int TEST_FEATURE_MAP__PEOPLE = 2; + + /** + * The number of structural features of the 'Test Feature Map' class. + * + * @generated + * @ordered + */ + int TEST_FEATURE_MAP_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.legacy.impl.ManagerImpl Manager}' class. + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.ManagerImpl + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getManager() + * @generated + */ + int MANAGER = 1; + + /** + * The number of structural features of the 'Manager' class. + * + * @generated + * @ordered + */ + int MANAGER_FEATURE_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.legacy.impl.DoctorImpl Doctor}' class. + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.DoctorImpl + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getDoctor() + * @generated + */ + int DOCTOR = 2; + + /** + * The number of structural features of the 'Doctor' class. + * + * @generated + * @ordered + */ + int DOCTOR_FEATURE_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfStringImpl Gen List Of String}' class. + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfStringImpl + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getGenListOfString() + * @generated + */ + int GEN_LIST_OF_STRING = 3; + + /** + * The feature id for the 'Elements' attribute list. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_STRING__ELEMENTS = 0; + + /** + * The number of structural features of the 'Gen List Of String' class. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_STRING_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfIntImpl Gen List Of Int}' class. + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfIntImpl + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getGenListOfInt() + * @generated + */ + int GEN_LIST_OF_INT = 4; + + /** + * The feature id for the 'Elements' attribute list. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_INT__ELEMENTS = 0; + + /** + * The number of structural features of the 'Gen List Of Int' class. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_INT_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfIntegerImpl Gen List Of Integer}' class. + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfIntegerImpl + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getGenListOfInteger() + * @generated + */ + int GEN_LIST_OF_INTEGER = 5; + + /** + * The feature id for the 'Elements' attribute list. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_INTEGER__ELEMENTS = 0; + + /** + * The number of structural features of the 'Gen List Of Integer' class. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_INTEGER_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfLongImpl Gen List Of Long}' class. + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfLongImpl + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getGenListOfLong() + * @generated + */ + int GEN_LIST_OF_LONG = 6; + + /** + * The feature id for the 'Elements' attribute list. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_LONG__ELEMENTS = 0; + + /** + * The number of structural features of the 'Gen List Of Long' class. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_LONG_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfBooleanImpl Gen List Of Boolean}' class. + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfBooleanImpl + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getGenListOfBoolean() + * @generated + */ + int GEN_LIST_OF_BOOLEAN = 7; + + /** + * The feature id for the 'Elements' attribute list. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_BOOLEAN__ELEMENTS = 0; + + /** + * The number of structural features of the 'Gen List Of Boolean' class. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_BOOLEAN_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfShortImpl Gen List Of Short}' class. + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfShortImpl + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getGenListOfShort() + * @generated + */ + int GEN_LIST_OF_SHORT = 8; + + /** + * The feature id for the 'Elements' attribute list. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_SHORT__ELEMENTS = 0; + + /** + * The number of structural features of the 'Gen List Of Short' class. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_SHORT_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfFloatImpl Gen List Of Float}' class. + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfFloatImpl + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getGenListOfFloat() + * @generated + */ + int GEN_LIST_OF_FLOAT = 9; + + /** + * The feature id for the 'Elements' attribute list. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_FLOAT__ELEMENTS = 0; + + /** + * The number of structural features of the 'Gen List Of Float' class. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_FLOAT_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfDoubleImpl Gen List Of Double}' class. + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfDoubleImpl + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getGenListOfDouble() + * @generated + */ + int GEN_LIST_OF_DOUBLE = 10; + + /** + * The feature id for the 'Elements' attribute list. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_DOUBLE__ELEMENTS = 0; + + /** + * The number of structural features of the 'Gen List Of Double' class. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_DOUBLE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfDateImpl Gen List Of Date}' class. + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfDateImpl + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getGenListOfDate() + * @generated + */ + int GEN_LIST_OF_DATE = 11; + + /** + * The feature id for the 'Elements' attribute list. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_DATE__ELEMENTS = 0; + + /** + * The number of structural features of the 'Gen List Of Date' class. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_DATE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfCharImpl Gen List Of Char}' class. + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfCharImpl + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getGenListOfChar() + * @generated + */ + int GEN_LIST_OF_CHAR = 12; + + /** + * The feature id for the 'Elements' attribute list. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_CHAR__ELEMENTS = 0; + + /** + * The number of structural features of the 'Gen List Of Char' class. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_CHAR_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfIntArrayImpl Gen List Of Int Array}' class. + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfIntArrayImpl + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getGenListOfIntArray() + * @generated + */ + int GEN_LIST_OF_INT_ARRAY = 13; + + /** + * The feature id for the 'Elements' attribute list. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_INT_ARRAY__ELEMENTS = 0; + + /** + * The number of structural features of the 'Gen List Of Int Array' class. + * + * @generated + * @ordered + */ + int GEN_LIST_OF_INT_ARRAY_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.legacy.impl.ParentImpl Parent}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.ParentImpl + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getParent() + * @generated + */ + int PARENT = 14; + + /** + * The feature id for the 'Children' containment reference list. + * + * + * @generated + * @ordered + */ + int PARENT__CHILDREN = 0; + + /** + * The feature id for the 'Favourite' reference. + * + * + * @generated + * @ordered + */ + int PARENT__FAVOURITE = 1; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int PARENT__NAME = 2; + + /** + * The number of structural features of the 'Parent' class. + * + * + * @generated + * @ordered + */ + int PARENT_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.legacy.impl.ChildImpl Child}' class. + * + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.ChildImpl + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getChild() + * @generated + */ + int CHILD = 15; + + /** + * The feature id for the 'Parent' container reference. + * + * + * @generated + * @ordered + */ + int CHILD__PARENT = 0; + + /** + * The feature id for the 'Preferred By' reference. + * + * + * @generated + * @ordered + */ + int CHILD__PREFERRED_BY = 1; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int CHILD__NAME = 2; + + /** + * The number of structural features of the 'Child' class. + * + * + * @generated + * @ordered + */ + int CHILD_FEATURE_COUNT = 3; + + /** + * The meta object id for the 'Int Array' data type. + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.impl.Model5PackageImpl#getIntArray() + * @generated + */ + int INT_ARRAY = 16; + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.TestFeatureMap Test Feature Map}'. + * + * @return the meta object for class 'Test Feature Map'. + * @see org.eclipse.emf.cdo.tests.model5.TestFeatureMap + * @generated + */ + EClass getTestFeatureMap(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.model5.TestFeatureMap#getManagers Managers}'. + * + * @return the meta object for the reference list 'Managers'. + * @see org.eclipse.emf.cdo.tests.model5.TestFeatureMap#getManagers() + * @see #getTestFeatureMap() + * @generated + */ + EReference getTestFeatureMap_Managers(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.model5.TestFeatureMap#getDoctors Doctors}'. + * + * @return the meta object for the reference list 'Doctors'. + * @see org.eclipse.emf.cdo.tests.model5.TestFeatureMap#getDoctors() + * @see #getTestFeatureMap() + * @generated + */ + EReference getTestFeatureMap_Doctors(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model5.TestFeatureMap#getPeople People}'. + * + * + * @return the meta object for the attribute list 'People'. + * @see org.eclipse.emf.cdo.tests.model5.TestFeatureMap#getPeople() + * @see #getTestFeatureMap() + * @generated + */ + EAttribute getTestFeatureMap_People(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.Manager Manager}'. + * + * @return the meta object for class 'Manager'. + * @see org.eclipse.emf.cdo.tests.legacy.model5.Manager + * @generated + */ + EClass getManager(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model5.Doctor Doctor}'. + * + * @return the meta object for class 'Doctor'. + * @see org.eclipse.emf.cdo.tests.legacy.model5.Doctor + * @generated + */ + EClass getDoctor(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfString Gen List Of String}'. + * + * @return the meta object for class 'Gen List Of String'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfString + * @generated + */ + EClass getGenListOfString(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model5.GenListOfString#getElements Elements}'. + * + * @return the meta object for the attribute list 'Elements'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfString#getElements() + * @see #getGenListOfString() + * @generated + */ + EAttribute getGenListOfString_Elements(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfInt Gen List Of Int}'. + * + * @return the meta object for class 'Gen List Of Int'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfInt + * @generated + */ + EClass getGenListOfInt(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model5.GenListOfInt#getElements Elements}'. + * + * @return the meta object for the attribute list 'Elements'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfInt#getElements() + * @see #getGenListOfInt() + * @generated + */ + EAttribute getGenListOfInt_Elements(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfInteger Gen List Of Integer}'. + * + * @return the meta object for class 'Gen List Of Integer'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfInteger + * @generated + */ + EClass getGenListOfInteger(); + + /** + * Returns the meta object for the attribute list ' + * {@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfInteger#getElements Elements}'. + * + * @return the meta object for the attribute list 'Elements'. + * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfInteger#getElements() + * @see #getGenListOfInteger() + * @generated + */ + EAttribute getGenListOfInteger_Elements(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfLong Gen List Of Long}'. + * + * @return the meta object for class 'Gen List Of Long'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfLong + * @generated + */ + EClass getGenListOfLong(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model5.GenListOfLong#getElements Elements}'. + * + * @return the meta object for the attribute list 'Elements'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfLong#getElements() + * @see #getGenListOfLong() + * @generated + */ + EAttribute getGenListOfLong_Elements(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfBoolean Gen List Of Boolean}'. + * + * @return the meta object for class 'Gen List Of Boolean'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfBoolean + * @generated + */ + EClass getGenListOfBoolean(); + + /** + * Returns the meta object for the attribute list ' + * {@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfBoolean#getElements Elements}'. + * + * @return the meta object for the attribute list 'Elements'. + * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfBoolean#getElements() + * @see #getGenListOfBoolean() + * @generated + */ + EAttribute getGenListOfBoolean_Elements(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfShort Gen List Of Short}'. + * + * @return the meta object for class 'Gen List Of Short'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfShort + * @generated + */ + EClass getGenListOfShort(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model5.GenListOfShort#getElements Elements}'. + * + * @return the meta object for the attribute list 'Elements'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfShort#getElements() + * @see #getGenListOfShort() + * @generated + */ + EAttribute getGenListOfShort_Elements(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfFloat Gen List Of Float}'. + * + * @return the meta object for class 'Gen List Of Float'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfFloat + * @generated + */ + EClass getGenListOfFloat(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model5.GenListOfFloat#getElements Elements}'. + * + * @return the meta object for the attribute list 'Elements'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfFloat#getElements() + * @see #getGenListOfFloat() + * @generated + */ + EAttribute getGenListOfFloat_Elements(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfDouble Gen List Of Double}'. + * + * @return the meta object for class 'Gen List Of Double'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfDouble + * @generated + */ + EClass getGenListOfDouble(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model5.GenListOfDouble#getElements Elements}'. + * + * @return the meta object for the attribute list 'Elements'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfDouble#getElements() + * @see #getGenListOfDouble() + * @generated + */ + EAttribute getGenListOfDouble_Elements(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfDate Gen List Of Date}'. + * + * @return the meta object for class 'Gen List Of Date'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfDate + * @generated + */ + EClass getGenListOfDate(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model5.GenListOfDate#getElements Elements}'. + * + * @return the meta object for the attribute list 'Elements'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfDate#getElements() + * @see #getGenListOfDate() + * @generated + */ + EAttribute getGenListOfDate_Elements(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfChar Gen List Of Char}'. + * + * @return the meta object for class 'Gen List Of Char'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfChar + * @generated + */ + EClass getGenListOfChar(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model5.GenListOfChar#getElements Elements}'. + * + * @return the meta object for the attribute list 'Elements'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfChar#getElements() + * @see #getGenListOfChar() + * @generated + */ + EAttribute getGenListOfChar_Elements(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfIntArray Gen List Of Int Array}'. + * + * @return the meta object for class 'Gen List Of Int Array'. + * @see org.eclipse.emf.cdo.tests.model5.GenListOfIntArray + * @generated + */ + EClass getGenListOfIntArray(); + + /** + * Returns the meta object for the attribute list ' + * {@link org.eclipse.emf.cdo.tests.legacy.model5.GenListOfIntArray#getElements Elements}'. + * + * @return the meta object for the attribute list 'Elements'. + * @see org.eclipse.emf.cdo.tests.legacy.model5.GenListOfIntArray#getElements() + * @see #getGenListOfIntArray() + * @generated + */ + EAttribute getGenListOfIntArray_Elements(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.Parent Parent}'. + * + * + * @return the meta object for class 'Parent'. + * @see org.eclipse.emf.cdo.tests.model5.Parent + * @generated + */ + EClass getParent(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model5.Parent#getChildren Children}'. + * + * + * @return the meta object for the containment reference list 'Children'. + * @see org.eclipse.emf.cdo.tests.model5.Parent#getChildren() + * @see #getParent() + * @generated + */ + EReference getParent_Children(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.model5.Parent#getFavourite Favourite}'. + * + * + * @return the meta object for the reference 'Favourite'. + * @see org.eclipse.emf.cdo.tests.model5.Parent#getFavourite() + * @see #getParent() + * @generated + */ + EReference getParent_Favourite(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model5.Parent#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.emf.cdo.tests.model5.Parent#getName() + * @see #getParent() + * @generated + */ + EAttribute getParent_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.Child Child}'. + * + * + * @return the meta object for class 'Child'. + * @see org.eclipse.emf.cdo.tests.model5.Child + * @generated + */ + EClass getChild(); + + /** + * Returns the meta object for the container reference '{@link org.eclipse.emf.cdo.tests.model5.Child#getParent Parent}'. + * + * + * @return the meta object for the container reference 'Parent'. + * @see org.eclipse.emf.cdo.tests.model5.Child#getParent() + * @see #getChild() + * @generated + */ + EReference getChild_Parent(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.model5.Child#getPreferredBy Preferred By}'. + * + * + * @return the meta object for the reference 'Preferred By'. + * @see org.eclipse.emf.cdo.tests.model5.Child#getPreferredBy() + * @see #getChild() + * @generated + */ + EReference getChild_PreferredBy(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model5.Child#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.emf.cdo.tests.model5.Child#getName() + * @see #getChild() + * @generated + */ + EAttribute getChild_Name(); + + /** + * Returns the meta object for data type 'Int Array'. + * + * @return the meta object for data type 'Int Array'. + * @model instanceClass="int[]" + * @generated + */ + EDataType getIntArray(); + + /** + * Returns the factory that creates the instances of the model. + * + * @return the factory that creates the instances of the model. + * @generated + */ + Model5Factory getModel5Factory(); + +} // Model5Package diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/ChildImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/ChildImpl.java new file mode 100644 index 0000000000..2b550e7206 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/ChildImpl.java @@ -0,0 +1,415 @@ +/* + * 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: + * Christian W. Damus (CEA) - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.Child; +import org.eclipse.emf.cdo.tests.model5.Parent; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; +import org.eclipse.emf.cdo.tests.model5.util.IsLoadingTestFixture; + +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 'Child'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model5.legacy.impl.ChildImpl#getParent Parent}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model5.legacy.impl.ChildImpl#getPreferredBy Preferred By}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model5.legacy.impl.ChildImpl#getName Name}
  • + *
+ *

+ * + * @generated + */ +public class ChildImpl extends EObjectImpl implements Child +{ + /** + * + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The cached value of the '{@link #getPreferredBy() Preferred By}' reference. + * + * + * @see #getPreferredBy() + * @generated + * @ordered + */ + protected Parent preferredBy; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected ChildImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model5Package.eINSTANCE.getChild(); + } + + /** + * + * + * @generated + */ + public Parent getParent() + { + if (eContainerFeatureID() != Model5Package.CHILD__PARENT) + return null; + return (Parent)eContainer(); + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetParent(Parent newParent, NotificationChain msgs) + { + msgs = eBasicSetContainer((InternalEObject)newParent, Model5Package.CHILD__PARENT, msgs); + return msgs; + } + + /** + * + * + * @generated + */ + public void setParent(Parent newParent) + { + if (newParent != eInternalContainer() + || (eContainerFeatureID() != Model5Package.CHILD__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, Model5Package.PARENT__CHILDREN, Parent.class, msgs); + msgs = basicSetParent(newParent, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model5Package.CHILD__PARENT, newParent, newParent)); + } + + /** + * + * + * @generated + */ + public Parent getPreferredBy() + { + if (preferredBy != null && preferredBy.eIsProxy()) + { + InternalEObject oldPreferredBy = (InternalEObject)preferredBy; + preferredBy = (Parent)eResolveProxy(oldPreferredBy); + if (preferredBy != oldPreferredBy) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model5Package.CHILD__PREFERRED_BY, oldPreferredBy, + preferredBy)); + } + } + return preferredBy; + } + + /** + * + * + * @generated + */ + public Parent basicGetPreferredBy() + { + return preferredBy; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetPreferredBy(Parent newPreferredBy, NotificationChain msgs) + { + Parent oldPreferredBy = preferredBy; + preferredBy = newPreferredBy; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Model5Package.CHILD__PREFERRED_BY, + oldPreferredBy, newPreferredBy); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setPreferredBy(Parent newPreferredBy) + { + if (newPreferredBy != preferredBy) + { + NotificationChain msgs = null; + if (preferredBy != null) + msgs = ((InternalEObject)preferredBy).eInverseRemove(this, Model5Package.PARENT__FAVOURITE, Parent.class, msgs); + if (newPreferredBy != null) + msgs = ((InternalEObject)newPreferredBy).eInverseAdd(this, Model5Package.PARENT__FAVOURITE, Parent.class, msgs); + msgs = basicSetPreferredBy(newPreferredBy, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model5Package.CHILD__PREFERRED_BY, newPreferredBy, + newPreferredBy)); + } + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + public void setNameGen(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model5Package.CHILD__NAME, oldName, name)); + } + + public void setName(String newName) + { + IsLoadingTestFixture.reportLoading(eResource(), this); + setNameGen(newName); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model5Package.CHILD__PARENT: + if (eInternalContainer() != null) + msgs = eBasicRemoveFromContainer(msgs); + return basicSetParent((Parent)otherEnd, msgs); + case Model5Package.CHILD__PREFERRED_BY: + if (preferredBy != null) + msgs = ((InternalEObject)preferredBy).eInverseRemove(this, Model5Package.PARENT__FAVOURITE, Parent.class, msgs); + return basicSetPreferredBy((Parent)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model5Package.CHILD__PARENT: + return basicSetParent(null, msgs); + case Model5Package.CHILD__PREFERRED_BY: + return basicSetPreferredBy(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) + { + switch (eContainerFeatureID()) + { + case Model5Package.CHILD__PARENT: + return eInternalContainer().eInverseRemove(this, Model5Package.PARENT__CHILDREN, Parent.class, msgs); + } + return super.eBasicRemoveFromContainerFeature(msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model5Package.CHILD__PARENT: + return getParent(); + case Model5Package.CHILD__PREFERRED_BY: + if (resolve) + return getPreferredBy(); + return basicGetPreferredBy(); + case Model5Package.CHILD__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model5Package.CHILD__PARENT: + setParent((Parent)newValue); + return; + case Model5Package.CHILD__PREFERRED_BY: + setPreferredBy((Parent)newValue); + return; + case Model5Package.CHILD__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model5Package.CHILD__PARENT: + setParent((Parent)null); + return; + case Model5Package.CHILD__PREFERRED_BY: + setPreferredBy((Parent)null); + return; + case Model5Package.CHILD__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model5Package.CHILD__PARENT: + return getParent() != null; + case Model5Package.CHILD__PREFERRED_BY: + return preferredBy != null; + case Model5Package.CHILD__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} // ChildImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/DoctorImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/DoctorImpl.java new file mode 100644 index 0000000000..b9c9a2eb0d --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/DoctorImpl.java @@ -0,0 +1,53 @@ +/* + * 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.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.Doctor; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +/** + * An implementation of the model object 'Doctor'. + *

+ *

+ * + * @generated + */ +public class DoctorImpl extends EObjectImpl implements Doctor +{ + /** + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * + * @generated + */ + protected DoctorImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model5Package.eINSTANCE.getDoctor(); + } + +} // DoctorImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfBooleanImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfBooleanImpl.java new file mode 100644 index 0000000000..f68ad70524 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfBooleanImpl.java @@ -0,0 +1,166 @@ +/* + * 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.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.GenListOfBoolean; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +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.EDataTypeEList; + +import java.util.Collection; + +/** + * An implementation of the model object 'Gen List Of Boolean'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfBooleanImpl#getElements Elements}
  • + *
+ *

+ * + * @generated + */ +public class GenListOfBooleanImpl extends EObjectImpl implements GenListOfBoolean +{ + /** + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The cached value of the '{@link #getElements() Elements}' attribute list. + * + * @see #getElements() + * @generated + * @ordered + */ + protected EList elements; + + /** + * + * @generated + */ + protected GenListOfBooleanImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model5Package.eINSTANCE.getGenListOfBoolean(); + } + + /** + * + * @generated + */ + public EList getElements() + { + if (elements == null) + { + elements = new EDataTypeEList(Boolean.class, this, Model5Package.GEN_LIST_OF_BOOLEAN__ELEMENTS); + } + return elements; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_BOOLEAN__ELEMENTS: + return getElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_BOOLEAN__ELEMENTS: + getElements().clear(); + getElements().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_BOOLEAN__ELEMENTS: + getElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_BOOLEAN__ELEMENTS: + return elements != null && !elements.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (elements: "); + result.append(elements); + result.append(')'); + return result.toString(); + } + +} // GenListOfBooleanImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfCharImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfCharImpl.java new file mode 100644 index 0000000000..b3066ceb6f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfCharImpl.java @@ -0,0 +1,166 @@ +/* + * 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.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.GenListOfChar; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +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 'Gen List Of Char'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfCharImpl#getElements Elements}
  • + *
+ *

+ * + * @generated + */ +public class GenListOfCharImpl extends EObjectImpl implements GenListOfChar +{ + /** + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The cached value of the '{@link #getElements() Elements}' attribute list. + * + * @see #getElements() + * @generated + * @ordered + */ + protected EList elements; + + /** + * + * @generated + */ + protected GenListOfCharImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model5Package.eINSTANCE.getGenListOfChar(); + } + + /** + * + * @generated + */ + public EList getElements() + { + if (elements == null) + { + elements = new EDataTypeUniqueEList(Character.class, this, Model5Package.GEN_LIST_OF_CHAR__ELEMENTS); + } + return elements; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_CHAR__ELEMENTS: + return getElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_CHAR__ELEMENTS: + getElements().clear(); + getElements().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_CHAR__ELEMENTS: + getElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_CHAR__ELEMENTS: + return elements != null && !elements.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (elements: "); + result.append(elements); + result.append(')'); + return result.toString(); + } + +} // GenListOfCharImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfDateImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfDateImpl.java new file mode 100644 index 0000000000..c857b8727f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfDateImpl.java @@ -0,0 +1,167 @@ +/* + * 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.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.GenListOfDate; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +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; +import java.util.Date; + +/** + * An implementation of the model object 'Gen List Of Date'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfDateImpl#getElements Elements}
  • + *
+ *

+ * + * @generated + */ +public class GenListOfDateImpl extends EObjectImpl implements GenListOfDate +{ + /** + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The cached value of the '{@link #getElements() Elements}' attribute list. + * + * @see #getElements() + * @generated + * @ordered + */ + protected EList elements; + + /** + * + * @generated + */ + protected GenListOfDateImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model5Package.eINSTANCE.getGenListOfDate(); + } + + /** + * + * @generated + */ + public EList getElements() + { + if (elements == null) + { + elements = new EDataTypeUniqueEList(Date.class, this, Model5Package.GEN_LIST_OF_DATE__ELEMENTS); + } + return elements; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_DATE__ELEMENTS: + return getElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_DATE__ELEMENTS: + getElements().clear(); + getElements().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_DATE__ELEMENTS: + getElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_DATE__ELEMENTS: + return elements != null && !elements.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (elements: "); + result.append(elements); + result.append(')'); + return result.toString(); + } + +} // GenListOfDateImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfDoubleImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfDoubleImpl.java new file mode 100644 index 0000000000..df1889e15e --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfDoubleImpl.java @@ -0,0 +1,166 @@ +/* + * 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.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.GenListOfDouble; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +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 'Gen List Of Double'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfDoubleImpl#getElements Elements}
  • + *
+ *

+ * + * @generated + */ +public class GenListOfDoubleImpl extends EObjectImpl implements GenListOfDouble +{ + /** + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The cached value of the '{@link #getElements() Elements}' attribute list. + * + * @see #getElements() + * @generated + * @ordered + */ + protected EList elements; + + /** + * + * @generated + */ + protected GenListOfDoubleImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model5Package.eINSTANCE.getGenListOfDouble(); + } + + /** + * + * @generated + */ + public EList getElements() + { + if (elements == null) + { + elements = new EDataTypeUniqueEList(Double.class, this, Model5Package.GEN_LIST_OF_DOUBLE__ELEMENTS); + } + return elements; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_DOUBLE__ELEMENTS: + return getElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_DOUBLE__ELEMENTS: + getElements().clear(); + getElements().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_DOUBLE__ELEMENTS: + getElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_DOUBLE__ELEMENTS: + return elements != null && !elements.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (elements: "); + result.append(elements); + result.append(')'); + return result.toString(); + } + +} // GenListOfDoubleImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfFloatImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfFloatImpl.java new file mode 100644 index 0000000000..41d23377bd --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfFloatImpl.java @@ -0,0 +1,166 @@ +/* + * 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.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.GenListOfFloat; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +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 'Gen List Of Float'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfFloatImpl#getElements Elements}
  • + *
+ *

+ * + * @generated + */ +public class GenListOfFloatImpl extends EObjectImpl implements GenListOfFloat +{ + /** + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The cached value of the '{@link #getElements() Elements}' attribute list. + * + * @see #getElements() + * @generated + * @ordered + */ + protected EList elements; + + /** + * + * @generated + */ + protected GenListOfFloatImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model5Package.eINSTANCE.getGenListOfFloat(); + } + + /** + * + * @generated + */ + public EList getElements() + { + if (elements == null) + { + elements = new EDataTypeUniqueEList(Float.class, this, Model5Package.GEN_LIST_OF_FLOAT__ELEMENTS); + } + return elements; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_FLOAT__ELEMENTS: + return getElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_FLOAT__ELEMENTS: + getElements().clear(); + getElements().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_FLOAT__ELEMENTS: + getElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_FLOAT__ELEMENTS: + return elements != null && !elements.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (elements: "); + result.append(elements); + result.append(')'); + return result.toString(); + } + +} // GenListOfFloatImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfIntArrayImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfIntArrayImpl.java new file mode 100644 index 0000000000..c9cd031e61 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfIntArrayImpl.java @@ -0,0 +1,166 @@ +/* + * 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.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.GenListOfIntArray; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +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 'Gen List Of Int Array'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfIntArrayImpl#getElements Elements}
  • + *
+ *

+ * + * @generated + */ +public class GenListOfIntArrayImpl extends EObjectImpl implements GenListOfIntArray +{ + /** + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The cached value of the '{@link #getElements() Elements}' attribute list. + * + * @see #getElements() + * @generated + * @ordered + */ + protected EList elements; + + /** + * + * @generated + */ + protected GenListOfIntArrayImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model5Package.eINSTANCE.getGenListOfIntArray(); + } + + /** + * + * @generated + */ + public EList getElements() + { + if (elements == null) + { + elements = new EDataTypeUniqueEList(int[].class, this, Model5Package.GEN_LIST_OF_INT_ARRAY__ELEMENTS); + } + return elements; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_INT_ARRAY__ELEMENTS: + return getElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_INT_ARRAY__ELEMENTS: + getElements().clear(); + getElements().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_INT_ARRAY__ELEMENTS: + getElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_INT_ARRAY__ELEMENTS: + return elements != null && !elements.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (elements: "); + result.append(elements); + result.append(')'); + return result.toString(); + } + +} // GenListOfIntArrayImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfIntImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfIntImpl.java new file mode 100644 index 0000000000..1cdb145ed0 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfIntImpl.java @@ -0,0 +1,166 @@ +/* + * 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.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.GenListOfInt; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +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 'Gen List Of Int'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfIntImpl#getElements Elements}
  • + *
+ *

+ * + * @generated + */ +public class GenListOfIntImpl extends EObjectImpl implements GenListOfInt +{ + /** + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The cached value of the '{@link #getElements() Elements}' attribute list. + * + * @see #getElements() + * @generated + * @ordered + */ + protected EList elements; + + /** + * + * @generated + */ + protected GenListOfIntImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model5Package.eINSTANCE.getGenListOfInt(); + } + + /** + * + * @generated + */ + public EList getElements() + { + if (elements == null) + { + elements = new EDataTypeUniqueEList(Integer.class, this, Model5Package.GEN_LIST_OF_INT__ELEMENTS); + } + return elements; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_INT__ELEMENTS: + return getElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_INT__ELEMENTS: + getElements().clear(); + getElements().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_INT__ELEMENTS: + getElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_INT__ELEMENTS: + return elements != null && !elements.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (elements: "); + result.append(elements); + result.append(')'); + return result.toString(); + } + +} // GenListOfIntImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfIntegerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfIntegerImpl.java new file mode 100644 index 0000000000..6d7e140643 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfIntegerImpl.java @@ -0,0 +1,166 @@ +/* + * 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.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.GenListOfInteger; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +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 'Gen List Of Integer'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model5.legacy.impl.GenListOfIntegerImpl#getElements Elements}
  • + *
+ *

+ * + * @generated + */ +public class GenListOfIntegerImpl extends EObjectImpl implements GenListOfInteger +{ + /** + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The cached value of the '{@link #getElements() Elements}' attribute list. + * + * @see #getElements() + * @generated + * @ordered + */ + protected EList elements; + + /** + * + * @generated + */ + protected GenListOfIntegerImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model5Package.eINSTANCE.getGenListOfInteger(); + } + + /** + * + * @generated + */ + public EList getElements() + { + if (elements == null) + { + elements = new EDataTypeUniqueEList(Integer.class, this, Model5Package.GEN_LIST_OF_INTEGER__ELEMENTS); + } + return elements; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_INTEGER__ELEMENTS: + return getElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_INTEGER__ELEMENTS: + getElements().clear(); + getElements().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_INTEGER__ELEMENTS: + getElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_INTEGER__ELEMENTS: + return elements != null && !elements.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (elements: "); + result.append(elements); + result.append(')'); + return result.toString(); + } + +} // GenListOfIntegerImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfLongImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfLongImpl.java new file mode 100644 index 0000000000..568f60fe05 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfLongImpl.java @@ -0,0 +1,166 @@ +/* + * 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.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.GenListOfLong; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +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 'Gen List Of Long'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfLongImpl#getElements Elements}
  • + *
+ *

+ * + * @generated + */ +public class GenListOfLongImpl extends EObjectImpl implements GenListOfLong +{ + /** + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The cached value of the '{@link #getElements() Elements}' attribute list. + * + * @see #getElements() + * @generated + * @ordered + */ + protected EList elements; + + /** + * + * @generated + */ + protected GenListOfLongImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model5Package.eINSTANCE.getGenListOfLong(); + } + + /** + * + * @generated + */ + public EList getElements() + { + if (elements == null) + { + elements = new EDataTypeUniqueEList(Long.class, this, Model5Package.GEN_LIST_OF_LONG__ELEMENTS); + } + return elements; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_LONG__ELEMENTS: + return getElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_LONG__ELEMENTS: + getElements().clear(); + getElements().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_LONG__ELEMENTS: + getElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_LONG__ELEMENTS: + return elements != null && !elements.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (elements: "); + result.append(elements); + result.append(')'); + return result.toString(); + } + +} // GenListOfLongImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfShortImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfShortImpl.java new file mode 100644 index 0000000000..2f71793da4 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfShortImpl.java @@ -0,0 +1,166 @@ +/* + * 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.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.GenListOfShort; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +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 'Gen List Of Short'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfShortImpl#getElements Elements}
  • + *
+ *

+ * + * @generated + */ +public class GenListOfShortImpl extends EObjectImpl implements GenListOfShort +{ + /** + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The cached value of the '{@link #getElements() Elements}' attribute list. + * + * @see #getElements() + * @generated + * @ordered + */ + protected EList elements; + + /** + * + * @generated + */ + protected GenListOfShortImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model5Package.eINSTANCE.getGenListOfShort(); + } + + /** + * + * @generated + */ + public EList getElements() + { + if (elements == null) + { + elements = new EDataTypeUniqueEList(Short.class, this, Model5Package.GEN_LIST_OF_SHORT__ELEMENTS); + } + return elements; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_SHORT__ELEMENTS: + return getElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_SHORT__ELEMENTS: + getElements().clear(); + getElements().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_SHORT__ELEMENTS: + getElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_SHORT__ELEMENTS: + return elements != null && !elements.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (elements: "); + result.append(elements); + result.append(')'); + return result.toString(); + } + +} // GenListOfShortImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfStringImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfStringImpl.java new file mode 100644 index 0000000000..c47b40ac58 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/GenListOfStringImpl.java @@ -0,0 +1,166 @@ +/* + * 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.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.GenListOfString; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +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 'Gen List Of String'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.GenListOfStringImpl#getElements Elements}
  • + *
+ *

+ * + * @generated + */ +public class GenListOfStringImpl extends EObjectImpl implements GenListOfString +{ + /** + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The cached value of the '{@link #getElements() Elements}' attribute list. + * + * @see #getElements() + * @generated + * @ordered + */ + protected EList elements; + + /** + * + * @generated + */ + protected GenListOfStringImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model5Package.eINSTANCE.getGenListOfString(); + } + + /** + * + * @generated + */ + public EList getElements() + { + if (elements == null) + { + elements = new EDataTypeUniqueEList(String.class, this, Model5Package.GEN_LIST_OF_STRING__ELEMENTS); + } + return elements; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_STRING__ELEMENTS: + return getElements(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_STRING__ELEMENTS: + getElements().clear(); + getElements().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_STRING__ELEMENTS: + getElements().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model5Package.GEN_LIST_OF_STRING__ELEMENTS: + return elements != null && !elements.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (elements: "); + result.append(elements); + result.append(')'); + return result.toString(); + } + +} // GenListOfStringImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/ManagerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/ManagerImpl.java new file mode 100644 index 0000000000..6b052d293f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/ManagerImpl.java @@ -0,0 +1,53 @@ +/* + * 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.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.Manager; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +/** + * An implementation of the model object 'Manager'. + *

+ *

+ * + * @generated + */ +public class ManagerImpl extends EObjectImpl implements Manager +{ + /** + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * + * @generated + */ + protected ManagerImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model5Package.eINSTANCE.getManager(); + } + +} // ManagerImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/Model5FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/Model5FactoryImpl.java new file mode 100644 index 0000000000..8b8d863da3 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/Model5FactoryImpl.java @@ -0,0 +1,363 @@ +/* + * 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.model5.legacy.impl; + +//import org.eclipse.emf.cdo.tests.model5.*; +import org.eclipse.emf.cdo.tests.model5.Child; +import org.eclipse.emf.cdo.tests.model5.Doctor; +import org.eclipse.emf.cdo.tests.model5.GenListOfBoolean; +import org.eclipse.emf.cdo.tests.model5.GenListOfChar; +import org.eclipse.emf.cdo.tests.model5.GenListOfDate; +import org.eclipse.emf.cdo.tests.model5.GenListOfDouble; +import org.eclipse.emf.cdo.tests.model5.GenListOfFloat; +import org.eclipse.emf.cdo.tests.model5.GenListOfInt; +import org.eclipse.emf.cdo.tests.model5.GenListOfIntArray; +import org.eclipse.emf.cdo.tests.model5.GenListOfInteger; +import org.eclipse.emf.cdo.tests.model5.GenListOfLong; +import org.eclipse.emf.cdo.tests.model5.GenListOfShort; +import org.eclipse.emf.cdo.tests.model5.GenListOfString; +import org.eclipse.emf.cdo.tests.model5.Manager; +import org.eclipse.emf.cdo.tests.model5.Parent; +import org.eclipse.emf.cdo.tests.model5.TestFeatureMap; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Factory; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * An implementation of the model Factory. + * @generated + */ +public class Model5FactoryImpl extends EFactoryImpl implements Model5Factory +{ + /** + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * Creates the default factory implementation. + * + * @generated NOT + */ + public static Model5Factory init() + { + try + { + Model5Factory theModel5Factory = (Model5Factory)EPackage.Registry.INSTANCE + .getEFactory("http://www.eclipse.org/emf/CDO/tests/legacy/model5/1.0.0"); + if (theModel5Factory != null) + { + return theModel5Factory; + } + } + catch (Exception exception) + { + EcorePlugin.INSTANCE.log(exception); + } + return new Model5FactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * @generated + */ + public Model5FactoryImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + public EObject create(EClass eClass) + { + switch (eClass.getClassifierID()) + { + case Model5Package.TEST_FEATURE_MAP: + return createTestFeatureMap(); + case Model5Package.MANAGER: + return createManager(); + case Model5Package.DOCTOR: + return createDoctor(); + case Model5Package.GEN_LIST_OF_STRING: + return createGenListOfString(); + case Model5Package.GEN_LIST_OF_INT: + return createGenListOfInt(); + case Model5Package.GEN_LIST_OF_INTEGER: + return createGenListOfInteger(); + case Model5Package.GEN_LIST_OF_LONG: + return createGenListOfLong(); + case Model5Package.GEN_LIST_OF_BOOLEAN: + return createGenListOfBoolean(); + case Model5Package.GEN_LIST_OF_SHORT: + return createGenListOfShort(); + case Model5Package.GEN_LIST_OF_FLOAT: + return createGenListOfFloat(); + case Model5Package.GEN_LIST_OF_DOUBLE: + return createGenListOfDouble(); + case Model5Package.GEN_LIST_OF_DATE: + return createGenListOfDate(); + case Model5Package.GEN_LIST_OF_CHAR: + return createGenListOfChar(); + case Model5Package.GEN_LIST_OF_INT_ARRAY: + return createGenListOfIntArray(); + case Model5Package.PARENT: + return createParent(); + case Model5Package.CHILD: + return createChild(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) + { + switch (eDataType.getClassifierID()) + { + case Model5Package.INT_ARRAY: + return createIntArrayFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) + { + switch (eDataType.getClassifierID()) + { + case Model5Package.INT_ARRAY: + return convertIntArrayToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * @generated + */ + public TestFeatureMap createTestFeatureMap() + { + TestFeatureMapImpl testFeatureMap = new TestFeatureMapImpl(); + return testFeatureMap; + } + + /** + * + * @generated + */ + public Manager createManager() + { + ManagerImpl manager = new ManagerImpl(); + return manager; + } + + /** + * + * @generated + */ + public Doctor createDoctor() + { + DoctorImpl doctor = new DoctorImpl(); + return doctor; + } + + /** + * + * @generated + */ + public GenListOfString createGenListOfString() + { + GenListOfStringImpl genListOfString = new GenListOfStringImpl(); + return genListOfString; + } + + /** + * + * @generated + */ + public GenListOfInt createGenListOfInt() + { + GenListOfIntImpl genListOfInt = new GenListOfIntImpl(); + return genListOfInt; + } + + /** + * + * @generated + */ + public GenListOfInteger createGenListOfInteger() + { + GenListOfIntegerImpl genListOfInteger = new GenListOfIntegerImpl(); + return genListOfInteger; + } + + /** + * + * @generated + */ + public GenListOfLong createGenListOfLong() + { + GenListOfLongImpl genListOfLong = new GenListOfLongImpl(); + return genListOfLong; + } + + /** + * + * @generated + */ + public GenListOfBoolean createGenListOfBoolean() + { + GenListOfBooleanImpl genListOfBoolean = new GenListOfBooleanImpl(); + return genListOfBoolean; + } + + /** + * + * @generated + */ + public GenListOfShort createGenListOfShort() + { + GenListOfShortImpl genListOfShort = new GenListOfShortImpl(); + return genListOfShort; + } + + /** + * + * @generated + */ + public GenListOfFloat createGenListOfFloat() + { + GenListOfFloatImpl genListOfFloat = new GenListOfFloatImpl(); + return genListOfFloat; + } + + /** + * + * @generated + */ + public GenListOfDouble createGenListOfDouble() + { + GenListOfDoubleImpl genListOfDouble = new GenListOfDoubleImpl(); + return genListOfDouble; + } + + /** + * + * @generated + */ + public GenListOfDate createGenListOfDate() + { + GenListOfDateImpl genListOfDate = new GenListOfDateImpl(); + return genListOfDate; + } + + /** + * + * @generated + */ + public GenListOfChar createGenListOfChar() + { + GenListOfCharImpl genListOfChar = new GenListOfCharImpl(); + return genListOfChar; + } + + /** + * + * @generated + */ + public GenListOfIntArray createGenListOfIntArray() + { + GenListOfIntArrayImpl genListOfIntArray = new GenListOfIntArrayImpl(); + return genListOfIntArray; + } + + /** + * + * + * @generated + */ + public Parent createParent() + { + ParentImpl parent = new ParentImpl(); + return parent; + } + + /** + * + * + * @generated + */ + public Child createChild() + { + ChildImpl child = new ChildImpl(); + return child; + } + + /** + * + * @generated + */ + public int[] createIntArrayFromString(EDataType eDataType, String initialValue) + { + return (int[])super.createFromString(initialValue); + } + + /** + * + * @generated + */ + public String convertIntArrayToString(EDataType eDataType, Object instanceValue) + { + return super.convertToString(instanceValue); + } + + /** + * + * @generated + */ + public Model5Package getModel5Package() + { + return (Model5Package)getEPackage(); + } + + /** + * + * @deprecated + * @generated + */ + @Deprecated + public static Model5Package getPackage() + { + return Model5Package.eINSTANCE; + } + +} // Model5FactoryImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/Model5PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/Model5PackageImpl.java new file mode 100644 index 0000000000..61b380a1b4 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/Model5PackageImpl.java @@ -0,0 +1,794 @@ +/* + * 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.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.Child; +import org.eclipse.emf.cdo.tests.model5.Doctor; +import org.eclipse.emf.cdo.tests.model5.GenListOfBoolean; +import org.eclipse.emf.cdo.tests.model5.GenListOfChar; +import org.eclipse.emf.cdo.tests.model5.GenListOfDate; +import org.eclipse.emf.cdo.tests.model5.GenListOfDouble; +import org.eclipse.emf.cdo.tests.model5.GenListOfFloat; +import org.eclipse.emf.cdo.tests.model5.GenListOfInt; +import org.eclipse.emf.cdo.tests.model5.GenListOfIntArray; +import org.eclipse.emf.cdo.tests.model5.GenListOfInteger; +import org.eclipse.emf.cdo.tests.model5.GenListOfLong; +import org.eclipse.emf.cdo.tests.model5.GenListOfShort; +import org.eclipse.emf.cdo.tests.model5.GenListOfString; +import org.eclipse.emf.cdo.tests.model5.Manager; +import org.eclipse.emf.cdo.tests.model5.Parent; +import org.eclipse.emf.cdo.tests.model5.TestFeatureMap; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Factory; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * An implementation of the model Package. + * @generated + */ +public class Model5PackageImpl extends EPackageImpl implements Model5Package +{ + /** + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * + * @generated + */ + private EClass testFeatureMapEClass = null; + + /** + * + * @generated + */ + private EClass managerEClass = null; + + /** + * + * @generated + */ + private EClass doctorEClass = null; + + /** + * + * @generated + */ + private EClass genListOfStringEClass = null; + + /** + * + * @generated + */ + private EClass genListOfIntEClass = null; + + /** + * + * @generated + */ + private EClass genListOfIntegerEClass = null; + + /** + * + * @generated + */ + private EClass genListOfLongEClass = null; + + /** + * + * @generated + */ + private EClass genListOfBooleanEClass = null; + + /** + * + * @generated + */ + private EClass genListOfShortEClass = null; + + /** + * + * @generated + */ + private EClass genListOfFloatEClass = null; + + /** + * + * @generated + */ + private EClass genListOfDoubleEClass = null; + + /** + * + * @generated + */ + private EClass genListOfDateEClass = null; + + /** + * + * @generated + */ + private EClass genListOfCharEClass = null; + + /** + * + * @generated + */ + private EClass genListOfIntArrayEClass = null; + + /** + * + * + * @generated + */ + private EClass parentEClass = null; + + /** + * + * + * @generated + */ + private EClass childEClass = null; + + /** + * + * @generated + */ + private EDataType intArrayEDataType = 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.model5.Model5Package#eNS_URI + * @see #init() + * @generated + */ + private Model5PackageImpl() + { + super(eNS_URI, Model5Factory.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 Model5Package#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 Model5Package init() + { + if (isInited) + return (Model5Package)EPackage.Registry.INSTANCE.getEPackage(Model5Package.eNS_URI); + + // Obtain or create and register package + Model5PackageImpl theModel5Package = (Model5PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Model5PackageImpl ? EPackage.Registry.INSTANCE + .get(eNS_URI) : new Model5PackageImpl()); + + isInited = true; + + // Create package meta-data objects + theModel5Package.createPackageContents(); + + // Initialize created meta-data + theModel5Package.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theModel5Package.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(Model5Package.eNS_URI, theModel5Package); + return theModel5Package; + } + + /** + * + * @generated + */ + public EClass getTestFeatureMap() + { + return testFeatureMapEClass; + } + + /** + * + * @generated + */ + public EReference getTestFeatureMap_Managers() + { + return (EReference)testFeatureMapEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getTestFeatureMap_Doctors() + { + return (EReference)testFeatureMapEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EAttribute getTestFeatureMap_People() + { + return (EAttribute)testFeatureMapEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EClass getManager() + { + return managerEClass; + } + + /** + * + * @generated + */ + public EClass getDoctor() + { + return doctorEClass; + } + + /** + * + * @generated + */ + public EClass getGenListOfString() + { + return genListOfStringEClass; + } + + /** + * + * @generated + */ + public EAttribute getGenListOfString_Elements() + { + return (EAttribute)genListOfStringEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getGenListOfInt() + { + return genListOfIntEClass; + } + + /** + * + * @generated + */ + public EAttribute getGenListOfInt_Elements() + { + return (EAttribute)genListOfIntEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getGenListOfInteger() + { + return genListOfIntegerEClass; + } + + /** + * + * @generated + */ + public EAttribute getGenListOfInteger_Elements() + { + return (EAttribute)genListOfIntegerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getGenListOfLong() + { + return genListOfLongEClass; + } + + /** + * + * @generated + */ + public EAttribute getGenListOfLong_Elements() + { + return (EAttribute)genListOfLongEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getGenListOfBoolean() + { + return genListOfBooleanEClass; + } + + /** + * + * @generated + */ + public EAttribute getGenListOfBoolean_Elements() + { + return (EAttribute)genListOfBooleanEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getGenListOfShort() + { + return genListOfShortEClass; + } + + /** + * + * @generated + */ + public EAttribute getGenListOfShort_Elements() + { + return (EAttribute)genListOfShortEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getGenListOfFloat() + { + return genListOfFloatEClass; + } + + /** + * + * @generated + */ + public EAttribute getGenListOfFloat_Elements() + { + return (EAttribute)genListOfFloatEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getGenListOfDouble() + { + return genListOfDoubleEClass; + } + + /** + * + * @generated + */ + public EAttribute getGenListOfDouble_Elements() + { + return (EAttribute)genListOfDoubleEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getGenListOfDate() + { + return genListOfDateEClass; + } + + /** + * + * @generated + */ + public EAttribute getGenListOfDate_Elements() + { + return (EAttribute)genListOfDateEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getGenListOfChar() + { + return genListOfCharEClass; + } + + /** + * + * @generated + */ + public EAttribute getGenListOfChar_Elements() + { + return (EAttribute)genListOfCharEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getGenListOfIntArray() + { + return genListOfIntArrayEClass; + } + + /** + * + * @generated + */ + public EAttribute getGenListOfIntArray_Elements() + { + return (EAttribute)genListOfIntArrayEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getParent() + { + return parentEClass; + } + + /** + * + * + * @generated + */ + public EReference getParent_Children() + { + return (EReference)parentEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getParent_Favourite() + { + return (EReference)parentEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getParent_Name() + { + return (EAttribute)parentEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getChild() + { + return childEClass; + } + + /** + * + * + * @generated + */ + public EReference getChild_Parent() + { + return (EReference)childEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getChild_PreferredBy() + { + return (EReference)childEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getChild_Name() + { + return (EAttribute)childEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EDataType getIntArray() + { + return intArrayEDataType; + } + + /** + * + * @generated + */ + public Model5Factory getModel5Factory() + { + return (Model5Factory)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 + testFeatureMapEClass = createEClass(TEST_FEATURE_MAP); + createEReference(testFeatureMapEClass, TEST_FEATURE_MAP__MANAGERS); + createEReference(testFeatureMapEClass, TEST_FEATURE_MAP__DOCTORS); + createEAttribute(testFeatureMapEClass, TEST_FEATURE_MAP__PEOPLE); + + managerEClass = createEClass(MANAGER); + + doctorEClass = createEClass(DOCTOR); + + genListOfStringEClass = createEClass(GEN_LIST_OF_STRING); + createEAttribute(genListOfStringEClass, GEN_LIST_OF_STRING__ELEMENTS); + + genListOfIntEClass = createEClass(GEN_LIST_OF_INT); + createEAttribute(genListOfIntEClass, GEN_LIST_OF_INT__ELEMENTS); + + genListOfIntegerEClass = createEClass(GEN_LIST_OF_INTEGER); + createEAttribute(genListOfIntegerEClass, GEN_LIST_OF_INTEGER__ELEMENTS); + + genListOfLongEClass = createEClass(GEN_LIST_OF_LONG); + createEAttribute(genListOfLongEClass, GEN_LIST_OF_LONG__ELEMENTS); + + genListOfBooleanEClass = createEClass(GEN_LIST_OF_BOOLEAN); + createEAttribute(genListOfBooleanEClass, GEN_LIST_OF_BOOLEAN__ELEMENTS); + + genListOfShortEClass = createEClass(GEN_LIST_OF_SHORT); + createEAttribute(genListOfShortEClass, GEN_LIST_OF_SHORT__ELEMENTS); + + genListOfFloatEClass = createEClass(GEN_LIST_OF_FLOAT); + createEAttribute(genListOfFloatEClass, GEN_LIST_OF_FLOAT__ELEMENTS); + + genListOfDoubleEClass = createEClass(GEN_LIST_OF_DOUBLE); + createEAttribute(genListOfDoubleEClass, GEN_LIST_OF_DOUBLE__ELEMENTS); + + genListOfDateEClass = createEClass(GEN_LIST_OF_DATE); + createEAttribute(genListOfDateEClass, GEN_LIST_OF_DATE__ELEMENTS); + + genListOfCharEClass = createEClass(GEN_LIST_OF_CHAR); + createEAttribute(genListOfCharEClass, GEN_LIST_OF_CHAR__ELEMENTS); + + genListOfIntArrayEClass = createEClass(GEN_LIST_OF_INT_ARRAY); + createEAttribute(genListOfIntArrayEClass, GEN_LIST_OF_INT_ARRAY__ELEMENTS); + + parentEClass = createEClass(PARENT); + createEReference(parentEClass, PARENT__CHILDREN); + createEReference(parentEClass, PARENT__FAVOURITE); + createEAttribute(parentEClass, PARENT__NAME); + + childEClass = createEClass(CHILD); + createEReference(childEClass, CHILD__PARENT); + createEReference(childEClass, CHILD__PREFERRED_BY); + createEAttribute(childEClass, CHILD__NAME); + + // Create data types + intArrayEDataType = createEDataType(INT_ARRAY); + } + + /** + * + * @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); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + + // Initialize classes and features; add operations and parameters + initEClass(testFeatureMapEClass, TestFeatureMap.class, "TestFeatureMap", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getTestFeatureMap_Managers(), this.getManager(), null, "managers", null, 0, -1, + TestFeatureMap.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTestFeatureMap_Doctors(), this.getDoctor(), null, "doctors", null, 0, -1, TestFeatureMap.class, + IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getTestFeatureMap_People(), ecorePackage.getEFeatureMapEntry(), "people", null, 0, -1, + TestFeatureMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(managerEClass, Manager.class, "Manager", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(doctorEClass, Doctor.class, "Doctor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(genListOfStringEClass, GenListOfString.class, "GenListOfString", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGenListOfString_Elements(), ecorePackage.getEString(), "elements", null, 0, -1, + GenListOfString.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(genListOfIntEClass, GenListOfInt.class, "GenListOfInt", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGenListOfInt_Elements(), ecorePackage.getEInt(), "elements", null, 0, -1, GenListOfInt.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(genListOfIntegerEClass, GenListOfInteger.class, "GenListOfInteger", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGenListOfInteger_Elements(), ecorePackage.getEIntegerObject(), "elements", null, 0, -1, + GenListOfInteger.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(genListOfLongEClass, GenListOfLong.class, "GenListOfLong", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGenListOfLong_Elements(), ecorePackage.getELong(), "elements", null, 0, -1, GenListOfLong.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(genListOfBooleanEClass, GenListOfBoolean.class, "GenListOfBoolean", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGenListOfBoolean_Elements(), ecorePackage.getEBoolean(), "elements", null, 0, -1, + GenListOfBoolean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(genListOfShortEClass, GenListOfShort.class, "GenListOfShort", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGenListOfShort_Elements(), ecorePackage.getEShort(), "elements", null, 0, -1, + GenListOfShort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(genListOfFloatEClass, GenListOfFloat.class, "GenListOfFloat", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGenListOfFloat_Elements(), ecorePackage.getEFloat(), "elements", null, 0, -1, + GenListOfFloat.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(genListOfDoubleEClass, GenListOfDouble.class, "GenListOfDouble", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGenListOfDouble_Elements(), ecorePackage.getEDouble(), "elements", null, 0, -1, + GenListOfDouble.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(genListOfDateEClass, GenListOfDate.class, "GenListOfDate", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGenListOfDate_Elements(), ecorePackage.getEDate(), "elements", null, 0, -1, GenListOfDate.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(genListOfCharEClass, GenListOfChar.class, "GenListOfChar", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGenListOfChar_Elements(), ecorePackage.getEChar(), "elements", null, 0, -1, GenListOfChar.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(genListOfIntArrayEClass, GenListOfIntArray.class, "GenListOfIntArray", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGenListOfIntArray_Elements(), this.getIntArray(), "elements", null, 0, -1, + GenListOfIntArray.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(parentEClass, Parent.class, "Parent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getParent_Children(), this.getChild(), this.getChild_Parent(), "children", null, 0, -1, + Parent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getParent_Favourite(), this.getChild(), this.getChild_PreferredBy(), "favourite", null, 0, 1, + Parent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getParent_Name(), ecorePackage.getEString(), "name", null, 0, 1, Parent.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(childEClass, Child.class, "Child", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getChild_Parent(), this.getParent(), this.getParent_Children(), "parent", null, 0, 1, Child.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getChild_PreferredBy(), this.getParent(), this.getParent_Favourite(), "preferredBy", null, 0, 1, + Child.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getChild_Name(), ecorePackage.getEString(), "name", null, 0, 1, Child.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize data types + initEDataType(intArrayEDataType, int[].class, "IntArray", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http:///org/eclipse/emf/ecore/util/ExtendedMetaData + createExtendedMetaDataAnnotations(); + } + + /** + * Initializes the annotations for http:///org/eclipse/emf/ecore/util/ExtendedMetaData. + * + * + * @generated + */ + protected void createExtendedMetaDataAnnotations() + { + String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; + addAnnotation(getTestFeatureMap_Managers(), source, new String[] { "group", "#people" }); + addAnnotation(getTestFeatureMap_Doctors(), source, new String[] { "group", "#people" }); + addAnnotation(getTestFeatureMap_People(), source, new String[] { "kind", "group" }); + } + +} // Model5PackageImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/ParentImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/ParentImpl.java new file mode 100644 index 0000000000..04ac655d06 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/ParentImpl.java @@ -0,0 +1,380 @@ +/* + * 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: + * Christian W. Damus (CEA) - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.Child; +import org.eclipse.emf.cdo.tests.model5.Parent; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; +import org.eclipse.emf.cdo.tests.model5.util.IsLoadingTestFixture; + +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 'Parent'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.model5.legacy.impl.ParentImpl#getChildren Children}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model5.legacy.impl.ParentImpl#getFavourite Favourite}
  • + *
  • {@link org.eclipse.emf.cdo.tests.model5.legacy.impl.ParentImpl#getName Name}
  • + *
+ *

+ * + * @generated + */ +public class ParentImpl extends EObjectImpl implements Parent +{ + /** + * + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The cached value of the '{@link #getChildren() Children}' containment reference list. + * + * + * @see #getChildren() + * @generated + * @ordered + */ + protected EList children; + + /** + * The cached value of the '{@link #getFavourite() Favourite}' reference. + * + * + * @see #getFavourite() + * @generated + * @ordered + */ + protected Child favourite; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected ParentImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model5Package.eINSTANCE.getParent(); + } + + /** + * + * + * @generated + */ + public EList getChildren() + { + if (children == null) + { + children = new EObjectContainmentWithInverseEList(Child.class, this, Model5Package.PARENT__CHILDREN, + Model5Package.CHILD__PARENT); + } + return children; + } + + /** + * + * + * @generated + */ + public Child getFavourite() + { + if (favourite != null && favourite.eIsProxy()) + { + InternalEObject oldFavourite = (InternalEObject)favourite; + favourite = (Child)eResolveProxy(oldFavourite); + if (favourite != oldFavourite) + { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model5Package.PARENT__FAVOURITE, oldFavourite, + favourite)); + } + } + return favourite; + } + + /** + * + * + * @generated + */ + public Child basicGetFavourite() + { + return favourite; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetFavourite(Child newFavourite, NotificationChain msgs) + { + Child oldFavourite = favourite; + favourite = newFavourite; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Model5Package.PARENT__FAVOURITE, + oldFavourite, newFavourite); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setFavourite(Child newFavourite) + { + if (newFavourite != favourite) + { + NotificationChain msgs = null; + if (favourite != null) + msgs = ((InternalEObject)favourite).eInverseRemove(this, Model5Package.CHILD__PREFERRED_BY, Child.class, msgs); + if (newFavourite != null) + msgs = ((InternalEObject)newFavourite).eInverseAdd(this, Model5Package.CHILD__PREFERRED_BY, Child.class, msgs); + msgs = basicSetFavourite(newFavourite, msgs); + if (msgs != null) + msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model5Package.PARENT__FAVOURITE, newFavourite, newFavourite)); + } + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + public void setNameGen(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, Model5Package.PARENT__NAME, oldName, name)); + } + + public void setName(String newName) + { + IsLoadingTestFixture.reportLoading(eResource(), this); + setNameGen(newName); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model5Package.PARENT__CHILDREN: + return ((InternalEList)(InternalEList)getChildren()).basicAdd(otherEnd, msgs); + case Model5Package.PARENT__FAVOURITE: + if (favourite != null) + msgs = ((InternalEObject)favourite).eInverseRemove(this, Model5Package.CHILD__PREFERRED_BY, Child.class, msgs); + return basicSetFavourite((Child)otherEnd, msgs); + } + return super.eInverseAdd(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model5Package.PARENT__CHILDREN: + return ((InternalEList)getChildren()).basicRemove(otherEnd, msgs); + case Model5Package.PARENT__FAVOURITE: + return basicSetFavourite(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model5Package.PARENT__CHILDREN: + return getChildren(); + case Model5Package.PARENT__FAVOURITE: + if (resolve) + return getFavourite(); + return basicGetFavourite(); + case Model5Package.PARENT__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model5Package.PARENT__CHILDREN: + getChildren().clear(); + getChildren().addAll((Collection)newValue); + return; + case Model5Package.PARENT__FAVOURITE: + setFavourite((Child)newValue); + return; + case Model5Package.PARENT__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model5Package.PARENT__CHILDREN: + getChildren().clear(); + return; + case Model5Package.PARENT__FAVOURITE: + setFavourite((Child)null); + return; + case Model5Package.PARENT__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model5Package.PARENT__CHILDREN: + return children != null && !children.isEmpty(); + case Model5Package.PARENT__FAVOURITE: + return favourite != null; + case Model5Package.PARENT__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} // ParentImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/TestFeatureMapImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/TestFeatureMapImpl.java new file mode 100644 index 0000000000..9f43ea28bc --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/impl/TestFeatureMapImpl.java @@ -0,0 +1,259 @@ +/* + * 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.model5.legacy.impl; + +import org.eclipse.emf.cdo.tests.model5.Doctor; +import org.eclipse.emf.cdo.tests.model5.Manager; +import org.eclipse.emf.cdo.tests.model5.TestFeatureMap; +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +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.BasicFeatureMap; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.FeatureMap; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object 'Test Feature Map'. + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.TestFeatureMapImpl#getManagers Managers}
  • + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.TestFeatureMapImpl#getDoctors Doctors}
  • + *
  • {@link org.eclipse.emf.cdo.tests.legacy.model5.impl.TestFeatureMapImpl#getPeople People}
  • + *
+ *

+ * + * @generated + */ +public class TestFeatureMapImpl extends EObjectImpl implements TestFeatureMap +{ + /** + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The cached value of the '{@link #getManagers() Managers}' reference list. + * + * @see #getManagers() + * @generated + * @ordered + */ + protected EList managers; + + /** + * The cached value of the '{@link #getDoctors() Doctors}' reference list. + * + * @see #getDoctors() + * @generated + * @ordered + */ + protected EList doctors; + + /** + * The cached value of the '{@link #getPeople() People}' attribute list. + * + * @see #getPeople() + * @generated + * @ordered + */ + protected FeatureMap people; + + /** + * + * @generated + */ + protected TestFeatureMapImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model5Package.eINSTANCE.getTestFeatureMap(); + } + + /** + * + * @generated + */ + public EList getManagers() + { + if (managers == null) + { + managers = new EObjectResolvingEList(Manager.class, this, Model5Package.TEST_FEATURE_MAP__MANAGERS); + } + return managers; + } + + /** + * + * @generated + */ + public EList getDoctors() + { + if (doctors == null) + { + doctors = new EObjectResolvingEList(Doctor.class, this, Model5Package.TEST_FEATURE_MAP__DOCTORS); + } + return doctors; + } + + /** + * + * @generated + */ + public FeatureMap getPeople() + { + if (people == null) + { + people = new BasicFeatureMap(this, Model5Package.TEST_FEATURE_MAP__PEOPLE); + } + return people; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case Model5Package.TEST_FEATURE_MAP__PEOPLE: + return ((InternalEList)getPeople()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case Model5Package.TEST_FEATURE_MAP__MANAGERS: + return getManagers(); + case Model5Package.TEST_FEATURE_MAP__DOCTORS: + return getDoctors(); + case Model5Package.TEST_FEATURE_MAP__PEOPLE: + if (coreType) + return getPeople(); + return ((FeatureMap.Internal)getPeople()).getWrapper(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case Model5Package.TEST_FEATURE_MAP__MANAGERS: + getManagers().clear(); + getManagers().addAll((Collection)newValue); + return; + case Model5Package.TEST_FEATURE_MAP__DOCTORS: + getDoctors().clear(); + getDoctors().addAll((Collection)newValue); + return; + case Model5Package.TEST_FEATURE_MAP__PEOPLE: + ((FeatureMap.Internal)getPeople()).set(newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case Model5Package.TEST_FEATURE_MAP__MANAGERS: + getManagers().clear(); + return; + case Model5Package.TEST_FEATURE_MAP__DOCTORS: + getDoctors().clear(); + return; + case Model5Package.TEST_FEATURE_MAP__PEOPLE: + getPeople().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case Model5Package.TEST_FEATURE_MAP__MANAGERS: + return managers != null && !managers.isEmpty(); + case Model5Package.TEST_FEATURE_MAP__DOCTORS: + return doctors != null && !doctors.isEmpty(); + case Model5Package.TEST_FEATURE_MAP__PEOPLE: + return people != null && !people.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (people: "); + result.append(people); + result.append(')'); + return result.toString(); + } + +} // TestFeatureMapImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/util/Model5AdapterFactory.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/util/Model5AdapterFactory.java new file mode 100644 index 0000000000..643020688c --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/util/Model5AdapterFactory.java @@ -0,0 +1,463 @@ +/** + * 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.model5.legacy.util; + +import org.eclipse.emf.cdo.tests.model5.*; + +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +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; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.emf.cdo.tests.model5.legacy.Model5Package + * @generated + */ +public class Model5AdapterFactory extends AdapterFactoryImpl +{ + /** + * + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The cached model package. + * + * + * @generated + */ + protected static Model5Package modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public Model5AdapterFactory() + { + if (modelPackage == null) + { + modelPackage = Model5Package.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 Model5Switch modelSwitch = new Model5Switch() + { + @Override + public Adapter caseTestFeatureMap(TestFeatureMap object) + { + return createTestFeatureMapAdapter(); + } + + @Override + public Adapter caseManager(Manager object) + { + return createManagerAdapter(); + } + + @Override + public Adapter caseDoctor(Doctor object) + { + return createDoctorAdapter(); + } + + @Override + public Adapter caseGenListOfString(GenListOfString object) + { + return createGenListOfStringAdapter(); + } + + @Override + public Adapter caseGenListOfInt(GenListOfInt object) + { + return createGenListOfIntAdapter(); + } + + @Override + public Adapter caseGenListOfInteger(GenListOfInteger object) + { + return createGenListOfIntegerAdapter(); + } + + @Override + public Adapter caseGenListOfLong(GenListOfLong object) + { + return createGenListOfLongAdapter(); + } + + @Override + public Adapter caseGenListOfBoolean(GenListOfBoolean object) + { + return createGenListOfBooleanAdapter(); + } + + @Override + public Adapter caseGenListOfShort(GenListOfShort object) + { + return createGenListOfShortAdapter(); + } + + @Override + public Adapter caseGenListOfFloat(GenListOfFloat object) + { + return createGenListOfFloatAdapter(); + } + + @Override + public Adapter caseGenListOfDouble(GenListOfDouble object) + { + return createGenListOfDoubleAdapter(); + } + + @Override + public Adapter caseGenListOfDate(GenListOfDate object) + { + return createGenListOfDateAdapter(); + } + + @Override + public Adapter caseGenListOfChar(GenListOfChar object) + { + return createGenListOfCharAdapter(); + } + + @Override + public Adapter caseGenListOfIntArray(GenListOfIntArray object) + { + return createGenListOfIntArrayAdapter(); + } + + @Override + public Adapter caseParent(Parent object) + { + return createParentAdapter(); + } + + @Override + public Adapter caseChild(Child object) + { + return createChildAdapter(); + } + + @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.model5.TestFeatureMap Test Feature 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 org.eclipse.emf.cdo.tests.model5.TestFeatureMap + * @generated + */ + public Adapter createTestFeatureMapAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.Manager Manager}'. + * + * 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.model5.Manager + * @generated + */ + public Adapter createManagerAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.Doctor Doctor}'. + * + * 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.model5.Doctor + * @generated + */ + public Adapter createDoctorAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfString Gen List Of String}'. + * + * 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.model5.GenListOfString + * @generated + */ + public Adapter createGenListOfStringAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfInt Gen List Of Int}'. + * + * 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.model5.GenListOfInt + * @generated + */ + public Adapter createGenListOfIntAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfInteger Gen List Of Integer}'. + * + * 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.model5.GenListOfInteger + * @generated + */ + public Adapter createGenListOfIntegerAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfLong Gen List Of Long}'. + * + * 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.model5.GenListOfLong + * @generated + */ + public Adapter createGenListOfLongAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfBoolean Gen List Of Boolean}'. + * + * 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.model5.GenListOfBoolean + * @generated + */ + public Adapter createGenListOfBooleanAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfShort Gen List Of Short}'. + * + * 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.model5.GenListOfShort + * @generated + */ + public Adapter createGenListOfShortAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfFloat Gen List Of Float}'. + * + * 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.model5.GenListOfFloat + * @generated + */ + public Adapter createGenListOfFloatAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfDouble Gen List Of Double}'. + * + * 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.model5.GenListOfDouble + * @generated + */ + public Adapter createGenListOfDoubleAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfDate Gen List Of Date}'. + * + * 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.model5.GenListOfDate + * @generated + */ + public Adapter createGenListOfDateAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfChar Gen List Of Char}'. + * + * 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.model5.GenListOfChar + * @generated + */ + public Adapter createGenListOfCharAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfIntArray Gen List Of Int Array}'. + * + * 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.model5.GenListOfIntArray + * @generated + */ + public Adapter createGenListOfIntArrayAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.Parent Parent}'. + * + * 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.model5.Parent + * @generated + */ + public Adapter createParentAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.Child Child}'. + * + * 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.model5.Child + * @generated + */ + public Adapter createChildAdapter() + { + 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; + } + +} //Model5AdapterFactory diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/util/Model5Switch.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/util/Model5Switch.java new file mode 100644 index 0000000000..fa28488069 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/legacy/util/Model5Switch.java @@ -0,0 +1,514 @@ +/** + * 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.model5.legacy.util; + +import java.util.List; + +import org.eclipse.emf.cdo.tests.model5.*; + +import org.eclipse.emf.cdo.tests.model5.legacy.Model5Package; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +/** + * + * 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.model5.legacy.Model5Package + * @generated + */ +public class Model5Switch +{ + /** + * + * + * @generated + */ + public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation"; + + /** + * The cached model package + * + * + * @generated + */ + protected static Model5Package modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public Model5Switch() + { + if (modelPackage == null) + { + modelPackage = Model5Package.eINSTANCE; + } + } + + /** + * 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. + * @generated + */ + protected T doSwitch(EClass theEClass, EObject theEObject) + { + if (theEClass.eContainer() == modelPackage) + { + return doSwitch(theEClass.getClassifierID(), theEObject); + } + else + { + List eSuperTypes = theEClass.getESuperTypes(); + return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), 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. + * @generated + */ + protected T doSwitch(int classifierID, EObject theEObject) + { + switch (classifierID) + { + case Model5Package.TEST_FEATURE_MAP: + { + TestFeatureMap testFeatureMap = (TestFeatureMap)theEObject; + T result = caseTestFeatureMap(testFeatureMap); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model5Package.MANAGER: + { + Manager manager = (Manager)theEObject; + T result = caseManager(manager); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model5Package.DOCTOR: + { + Doctor doctor = (Doctor)theEObject; + T result = caseDoctor(doctor); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model5Package.GEN_LIST_OF_STRING: + { + GenListOfString genListOfString = (GenListOfString)theEObject; + T result = caseGenListOfString(genListOfString); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model5Package.GEN_LIST_OF_INT: + { + GenListOfInt genListOfInt = (GenListOfInt)theEObject; + T result = caseGenListOfInt(genListOfInt); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model5Package.GEN_LIST_OF_INTEGER: + { + GenListOfInteger genListOfInteger = (GenListOfInteger)theEObject; + T result = caseGenListOfInteger(genListOfInteger); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model5Package.GEN_LIST_OF_LONG: + { + GenListOfLong genListOfLong = (GenListOfLong)theEObject; + T result = caseGenListOfLong(genListOfLong); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model5Package.GEN_LIST_OF_BOOLEAN: + { + GenListOfBoolean genListOfBoolean = (GenListOfBoolean)theEObject; + T result = caseGenListOfBoolean(genListOfBoolean); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model5Package.GEN_LIST_OF_SHORT: + { + GenListOfShort genListOfShort = (GenListOfShort)theEObject; + T result = caseGenListOfShort(genListOfShort); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model5Package.GEN_LIST_OF_FLOAT: + { + GenListOfFloat genListOfFloat = (GenListOfFloat)theEObject; + T result = caseGenListOfFloat(genListOfFloat); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model5Package.GEN_LIST_OF_DOUBLE: + { + GenListOfDouble genListOfDouble = (GenListOfDouble)theEObject; + T result = caseGenListOfDouble(genListOfDouble); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model5Package.GEN_LIST_OF_DATE: + { + GenListOfDate genListOfDate = (GenListOfDate)theEObject; + T result = caseGenListOfDate(genListOfDate); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model5Package.GEN_LIST_OF_CHAR: + { + GenListOfChar genListOfChar = (GenListOfChar)theEObject; + T result = caseGenListOfChar(genListOfChar); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model5Package.GEN_LIST_OF_INT_ARRAY: + { + GenListOfIntArray genListOfIntArray = (GenListOfIntArray)theEObject; + T result = caseGenListOfIntArray(genListOfIntArray); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model5Package.PARENT: + { + Parent parent = (Parent)theEObject; + T result = caseParent(parent); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case Model5Package.CHILD: + { + Child child = (Child)theEObject; + T result = caseChild(child); + if (result == null) + result = defaultCase(theEObject); + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Test Feature 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 'Test Feature Map'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTestFeatureMap(TestFeatureMap object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Manager'. + * + * 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 'Manager'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseManager(Manager object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Doctor'. + * + * 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 'Doctor'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDoctor(Doctor object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Gen List Of String'. + * + * 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 'Gen List Of String'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGenListOfString(GenListOfString object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Gen List Of Int'. + * + * 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 'Gen List Of Int'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGenListOfInt(GenListOfInt object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Gen List Of Integer'. + * + * 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 'Gen List Of Integer'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGenListOfInteger(GenListOfInteger object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Gen List Of Long'. + * + * 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 'Gen List Of Long'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGenListOfLong(GenListOfLong object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Gen List Of Boolean'. + * + * 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 'Gen List Of Boolean'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGenListOfBoolean(GenListOfBoolean object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Gen List Of Short'. + * + * 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 'Gen List Of Short'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGenListOfShort(GenListOfShort object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Gen List Of Float'. + * + * 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 'Gen List Of Float'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGenListOfFloat(GenListOfFloat object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Gen List Of Double'. + * + * 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 'Gen List Of Double'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGenListOfDouble(GenListOfDouble object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Gen List Of Date'. + * + * 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 'Gen List Of Date'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGenListOfDate(GenListOfDate object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Gen List Of Char'. + * + * 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 'Gen List Of Char'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGenListOfChar(GenListOfChar object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Gen List Of Int Array'. + * + * 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 'Gen List Of Int Array'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGenListOfIntArray(GenListOfIntArray object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Parent'. + * + * 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 'Parent'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseParent(Parent object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Child'. + * + * 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 'Child'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseChild(Child 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 + */ + public T defaultCase(EObject object) + { + return null; + } + +} //Model5Switch diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5AdapterFactory.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5AdapterFactory.java index f76ddb0637..27e7e9e1b8 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5AdapterFactory.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5AdapterFactory.java @@ -4,12 +4,13 @@ * 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.model5.util; +//import org.eclipse.emf.cdo.tests.model5.*; import org.eclipse.emf.cdo.tests.model5.Child; import org.eclipse.emf.cdo.tests.model5.Doctor; import org.eclipse.emf.cdo.tests.model5.GenListOfBoolean; diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5Switch.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5Switch.java index 8cbd014f6a..ce5848c55a 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5Switch.java +++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5Switch.java @@ -4,7 +4,7 @@ * 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 */ @@ -33,6 +33,8 @@ import org.eclipse.emf.ecore.EObject; import java.util.List; +//import org.eclipse.emf.cdo.tests.model5.*; + /** * 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, @@ -108,7 +110,9 @@ public class Model5Switch TestFeatureMap testFeatureMap = (TestFeatureMap)theEObject; T result = caseTestFeatureMap(testFeatureMap); if (result == null) + { result = defaultCase(theEObject); + } return result; } case Model5Package.MANAGER: @@ -116,7 +120,9 @@ public class Model5Switch Manager manager = (Manager)theEObject; T result = caseManager(manager); if (result == null) + { result = defaultCase(theEObject); + } return result; } case Model5Package.DOCTOR: @@ -124,7 +130,9 @@ public class Model5Switch Doctor doctor = (Doctor)theEObject; T result = caseDoctor(doctor); if (result == null) + { result = defaultCase(theEObject); + } return result; } case Model5Package.GEN_LIST_OF_STRING: @@ -132,7 +140,9 @@ public class Model5Switch GenListOfString genListOfString = (GenListOfString)theEObject; T result = caseGenListOfString(genListOfString); if (result == null) + { result = defaultCase(theEObject); + } return result; } case Model5Package.GEN_LIST_OF_INT: @@ -140,7 +150,9 @@ public class Model5Switch GenListOfInt genListOfInt = (GenListOfInt)theEObject; T result = caseGenListOfInt(genListOfInt); if (result == null) + { result = defaultCase(theEObject); + } return result; } case Model5Package.GEN_LIST_OF_INTEGER: @@ -148,7 +160,9 @@ public class Model5Switch GenListOfInteger genListOfInteger = (GenListOfInteger)theEObject; T result = caseGenListOfInteger(genListOfInteger); if (result == null) + { result = defaultCase(theEObject); + } return result; } case Model5Package.GEN_LIST_OF_LONG: @@ -156,7 +170,9 @@ public class Model5Switch GenListOfLong genListOfLong = (GenListOfLong)theEObject; T result = caseGenListOfLong(genListOfLong); if (result == null) + { result = defaultCase(theEObject); + } return result; } case Model5Package.GEN_LIST_OF_BOOLEAN: @@ -164,7 +180,9 @@ public class Model5Switch GenListOfBoolean genListOfBoolean = (GenListOfBoolean)theEObject; T result = caseGenListOfBoolean(genListOfBoolean); if (result == null) + { result = defaultCase(theEObject); + } return result; } case Model5Package.GEN_LIST_OF_SHORT: @@ -172,7 +190,9 @@ public class Model5Switch GenListOfShort genListOfShort = (GenListOfShort)theEObject; T result = caseGenListOfShort(genListOfShort); if (result == null) + { result = defaultCase(theEObject); + } return result; } case Model5Package.GEN_LIST_OF_FLOAT: @@ -180,7 +200,9 @@ public class Model5Switch GenListOfFloat genListOfFloat = (GenListOfFloat)theEObject; T result = caseGenListOfFloat(genListOfFloat); if (result == null) + { result = defaultCase(theEObject); + } return result; } case Model5Package.GEN_LIST_OF_DOUBLE: @@ -188,7 +210,9 @@ public class Model5Switch GenListOfDouble genListOfDouble = (GenListOfDouble)theEObject; T result = caseGenListOfDouble(genListOfDouble); if (result == null) + { result = defaultCase(theEObject); + } return result; } case Model5Package.GEN_LIST_OF_DATE: @@ -196,7 +220,9 @@ public class Model5Switch GenListOfDate genListOfDate = (GenListOfDate)theEObject; T result = caseGenListOfDate(genListOfDate); if (result == null) + { result = defaultCase(theEObject); + } return result; } case Model5Package.GEN_LIST_OF_CHAR: @@ -204,7 +230,9 @@ public class Model5Switch GenListOfChar genListOfChar = (GenListOfChar)theEObject; T result = caseGenListOfChar(genListOfChar); if (result == null) + { result = defaultCase(theEObject); + } return result; } case Model5Package.GEN_LIST_OF_INT_ARRAY: @@ -212,7 +240,9 @@ public class Model5Switch GenListOfIntArray genListOfIntArray = (GenListOfIntArray)theEObject; T result = caseGenListOfIntArray(genListOfIntArray); if (result == null) + { result = defaultCase(theEObject); + } return result; } case Model5Package.PARENT: @@ -220,7 +250,9 @@ public class Model5Switch Parent parent = (Parent)theEObject; T result = caseParent(parent); if (result == null) + { result = defaultCase(theEObject); + } return result; } case Model5Package.CHILD: @@ -228,7 +260,9 @@ public class Model5Switch Child child = (Child)theEObject; T result = caseChild(child); if (result == null) + { result = defaultCase(theEObject); + } return result; } default: @@ -408,7 +442,7 @@ public class Model5Switch * Returns the result of interpreting the object as an instance of 'Gen List Of Int Array'. 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 'Gen List Of Int Array'. diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/config/impl/ModelConfig.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/config/impl/ModelConfig.java index 1ef3788fcb..621ba58c5f 100644 --- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/config/impl/ModelConfig.java +++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/config/impl/ModelConfig.java @@ -238,12 +238,12 @@ public abstract class ModelConfig extends Config implements IModelConfig public Model5Factory getModel5Factory() { - return org.eclipse.emf.cdo.tests.legacy.model5.Model5Factory.eINSTANCE; + return org.eclipse.emf.cdo.tests.model5.legacy.Model5Factory.eINSTANCE; } public Model5Package getModel5Package() { - return org.eclipse.emf.cdo.tests.legacy.model5.Model5Package.eINSTANCE; + return org.eclipse.emf.cdo.tests.model5.legacy.Model5Package.eINSTANCE; } public Model6Factory getModel6Factory() -- cgit v1.2.3 From f9106643cc014fb508decb834bd54608aa5f7d23 Mon Sep 17 00:00:00 2001 From: Eike Stepper Date: Sun, 6 Jan 2013 17:58:23 +0100 Subject: model4interfaces --- .../.settings/org.eclipse.core.resources.prefs | 3 +- .../META-INF/MANIFEST.MF | 7 +- .../model/interfaces.legacy-genmodel | 89 --- .../model/interfaces.legacy.genmodel | 56 ++ .../model/org.eclipse.core.resources.prefs | 3 - .../model/org.eclipse.jdt.core.prefs | 360 ---------- .../model/org.eclipse.jdt.ui.prefs | 120 ---- .../model/org.eclipse.ltk.core.refactoring.prefs | 3 - .../model/org.eclipse.mylyn.tasks.ui.prefs | 4 - .../model/org.eclipse.mylyn.team.ui.prefs | 3 - .../model/org.eclipse.pde.api.tools.prefs | 94 --- .../model/org.eclipse.pde.prefs | 31 - .../impl/model4interfacesFactoryImpl.java | 99 --- .../impl/model4interfacesPackageImpl.java | 669 ------------------ .../model4interfaces/model4interfacesFactory.java | 38 -- .../model4interfaces/model4interfacesPackage.java | 747 --------------------- .../IContainedElementNoParentLink.java | 5 +- .../IMultiRefContainedElement.java | 15 +- .../tests/model4interfaces/IMultiRefContainer.java | 7 +- .../model4interfaces/IMultiRefContainerNPL.java | 15 +- .../IMultiRefNonContainedElement.java | 15 +- .../model4interfaces/IMultiRefNonContainer.java | 18 +- .../model4interfaces/IMultiRefNonContainerNPL.java | 15 +- .../cdo/tests/model4interfaces/INamedElement.java | 21 +- .../ISingleRefContainedElement.java | 15 +- .../model4interfaces/ISingleRefContainer.java | 15 +- .../model4interfaces/ISingleRefContainerNPL.java | 21 +- .../ISingleRefNonContainedElement.java | 15 +- .../model4interfaces/ISingleRefNonContainer.java | 15 +- .../ISingleRefNonContainerNPL.java | 21 +- .../impl/model4interfacesFactoryImpl.java | 15 +- .../impl/model4interfacesPackageImpl.java | 58 +- .../legacy/impl/model4interfacesFactoryImpl.java | 96 +++ .../legacy/impl/model4interfacesPackageImpl.java | 623 +++++++++++++++++ .../legacy/model4interfacesFactory.java | 40 ++ .../legacy/model4interfacesPackage.java | 697 +++++++++++++++++++ .../util/model4interfacesAdapterFactory.java | 424 ++++++++++++ .../legacy/util/model4interfacesSwitch.java | 471 +++++++++++++ .../model4interfaces/model4interfacesFactory.java | 9 +- .../model4interfaces/model4interfacesPackage.java | 262 ++++---- .../util/model4interfacesAdapterFactory.java | 91 +-- .../util/model4interfacesSwitch.java | 84 ++- 42 files changed, 2739 insertions(+), 2670 deletions(-) delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/interfaces.legacy-genmodel create mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/interfaces.legacy.genmodel delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.core.resources.prefs delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.jdt.core.prefs delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.jdt.ui.prefs delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.ltk.core.refactoring.prefs delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.mylyn.tasks.ui.prefs delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.mylyn.team.ui.prefs delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.pde.api.tools.prefs delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.pde.prefs delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/legacy/model4interfaces/impl/model4interfacesFactoryImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/legacy/model4interfaces/impl/model4interfacesPackageImpl.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/legacy/model4interfaces/model4interfacesFactory.java delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/legacy/model4interfaces/model4interfacesPackage.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/impl/model4interfacesFactoryImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/impl/model4interfacesPackageImpl.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/model4interfacesFactory.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/model4interfacesPackage.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/util/model4interfacesAdapterFactory.java create mode 100644 plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/util/model4interfacesSwitch.java diff --git a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/.settings/org.eclipse.core.resources.prefs index ec86fda83f..845a3b0679 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/.settings/org.eclipse.core.resources.prefs +++ b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/.settings/org.eclipse.core.resources.prefs @@ -1,3 +1,2 @@ -#Mon Jul 04 12:56:45 CEST 2011 eclipse.preferences.version=1 - +encoding//model/interfaces.legacy.genmodel=UTF-8 diff --git a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/META-INF/MANIFEST.MF index 2bf2d50e54..ddc7d0679f 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/META-INF/MANIFEST.MF @@ -7,10 +7,11 @@ Bundle-ClassPath: . Bundle-Vendor: %providerName Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Export-Package: org.eclipse.emf.cdo.tests.legacy.model4interfaces;version="3.0.200", - org.eclipse.emf.cdo.tests.legacy.model4interfaces.impl;version="3.0.200", - org.eclipse.emf.cdo.tests.model4interfaces;version="3.0.300", +Export-Package: org.eclipse.emf.cdo.tests.model4interfaces;version="3.0.300", org.eclipse.emf.cdo.tests.model4interfaces.impl;version="3.0.300", + org.eclipse.emf.cdo.tests.model4interfaces.legacy;version="3.0.300", + org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl;version="3.0.300", + org.eclipse.emf.cdo.tests.model4interfaces.legacy.util;version="3.0.300", org.eclipse.emf.cdo.tests.model4interfaces.util;version="3.0.300" 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, diff --git a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/interfaces.legacy-genmodel b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/interfaces.legacy-genmodel deleted file mode 100644 index c05e9b1f36..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/interfaces.legacy-genmodel +++ /dev/null @@ -1,89 +0,0 @@ - - - interfaces.ecore - CDO=org.eclipse.emf.cdo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/interfaces.legacy.genmodel b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/interfaces.legacy.genmodel new file mode 100644 index 0000000000..c10f40b611 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/interfaces.legacy.genmodel @@ -0,0 +1,56 @@ + + + interfaces.ecore + CDO=org.eclipse.emf.cdo + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.core.resources.prefs b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.core.resources.prefs deleted file mode 100644 index 5979ae026a..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Thu Dec 18 13:30:26 CET 2008 -eclipse.preferences.version=1 - diff --git a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.jdt.core.prefs deleted file mode 100644 index a21bc80fc2..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,360 +0,0 @@ -#Thu Feb 04 09:44:24 CET 2010 -eclipse.preferences.version=1 -org.eclipse.jdt.core.codeComplete.argumentPrefixes= -org.eclipse.jdt.core.codeComplete.argumentSuffixes= -org.eclipse.jdt.core.codeComplete.fieldPrefixes= -org.eclipse.jdt.core.codeComplete.fieldSuffixes= -org.eclipse.jdt.core.codeComplete.localPrefixes= -org.eclipse.jdt.core.codeComplete.localSuffixes= -org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= -org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= -org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes= -org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes= -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.doc.comment.support=enabled -org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.autoboxing=ignore -org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning -org.eclipse.jdt.core.compiler.problem.deadCode=warning -org.eclipse.jdt.core.compiler.problem.deprecation=warning -org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled -org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled -org.eclipse.jdt.core.compiler.problem.discouragedReference=warning -org.eclipse.jdt.core.compiler.problem.emptyStatement=warning -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning -org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled -org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore -org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning -org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning -org.eclipse.jdt.core.compiler.problem.forbiddenReference=error -org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning -org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning -org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore -org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore -org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning -org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled -org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled -org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled -org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public -org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore -org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning -org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning -org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=warning -org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore -org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled -org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public -org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag -org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore -org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled -org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public -org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning -org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled -org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning -org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=warning -org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning -org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning -org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore -org.eclipse.jdt.core.compiler.problem.nullReference=warning -org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning -org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore -org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning -org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore -org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning -org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning -org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore -org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled -org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning -org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled -org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore -org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning -org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning -org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore -org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning -org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore -org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning -org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled -org.eclipse.jdt.core.compiler.problem.unusedImport=warning -org.eclipse.jdt.core.compiler.problem.unusedLabel=warning -org.eclipse.jdt.core.compiler.problem.unusedLocal=warning -org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore -org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore -org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled -org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning -org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning -org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning -org.eclipse.jdt.core.compiler.source=1.5 -org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled -org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,HIGH,LOW,LOW,LOW,LOW,LOW -org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX,PERF,MEM,POLISH,@generated NOT,@ADDED -org.eclipse.jdt.core.formatter.align_type_members_on_columns=false -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_assignment=0 -org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 -org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 -org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 -org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 -org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=1 -org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 -org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 -org.eclipse.jdt.core.formatter.blank_lines_before_method=1 -org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 -org.eclipse.jdt.core.formatter.blank_lines_before_package=0 -org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 -org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 -org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=next_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=next_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=next_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=next_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=next_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=next_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true -org.eclipse.jdt.core.formatter.comment.format_block_comments=true -org.eclipse.jdt.core.formatter.comment.format_header=false -org.eclipse.jdt.core.formatter.comment.format_html=true -org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true -org.eclipse.jdt.core.formatter.comment.format_line_comments=true -org.eclipse.jdt.core.formatter.comment.format_source_code=true -org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true -org.eclipse.jdt.core.formatter.comment.indent_root_tags=true -org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert -org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert -org.eclipse.jdt.core.formatter.comment.line_length=120 -org.eclipse.jdt.core.formatter.compact_else_if=true -org.eclipse.jdt.core.formatter.continuation_indentation=2 -org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 -org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true -org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_empty_lines=false -org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true -org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false -org.eclipse.jdt.core.formatter.indentation.size=2 -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert -org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.join_lines_in_comments=true -org.eclipse.jdt.core.formatter.join_wrapped_lines=true -org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false -org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false -org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=120 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=space -org.eclipse.jdt.core.formatter.tabulation.size=2 -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true diff --git a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 1246644f9f..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/model/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,120 +0,0 @@ -#Thu Feb 04 09:44:24 CET 2010 -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=true -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=true -cleanup.format_source_code=true -cleanup.format_source_code_changes_only=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=true -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=false -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_trailing_whitespaces=true -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_blocks=true -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_parentheses_in_expressions=true -cleanup.use_this_for_non_static_field_access=true -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=true -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup_profile=_EMFT -cleanup_settings_version=2 -eclipse.preferences.version=1 -editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true -formatter_profile=_EMFT -formatter_settings_version=11 -org.eclipse.jdt.ui.exception.name=ex -org.eclipse.jdt.ui.gettersetter.use.is=true -org.eclipse.jdt.ui.ignorelowercasenames=true -org.eclipse.jdt.ui.importorder=org.eclipse.emf.cdo;org.eclipse.emf.internal.cdo;org.eclipse.net4j;org.eclipse.internal.net4j;org.eclipse.emf;org.eclipse;com;org;javax;java; -org.eclipse.jdt.ui.javadoc=true -org.eclipse.jdt.ui.keywordthis=false -org.eclipse.jdt.ui.ondemandthreshold=99 -org.eclipse.jdt.ui.overrideannotation=true -org.eclipse.jdt.ui.staticondemandthreshold=99 -org.eclipse.jdt.ui.text.custom_code_templates=