Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2018-04-22 00:29:35 -0400
committerEike Stepper2018-04-22 00:29:35 -0400
commit5f582b20c8a4602fc0cc4f554e5098aa2cc7e8c9 (patch)
tree95144ddf237338d3e57a2458274016a88b19b46f /plugins/org.eclipse.emf.cdo.tests.model2
parent0b250f569edeb1ea983aa761337b7d57057ac328 (diff)
downloadcdo-5f582b20c8a4602fc0cc4f554e5098aa2cc7e8c9.tar.gz
cdo-5f582b20c8a4602fc0cc4f554e5098aa2cc7e8c9.tar.xz
cdo-5f582b20c8a4602fc0cc4f554e5098aa2cc7e8c9.zip
[533909] Unsettable features that are set to null can't be committed
https://bugs.eclipse.org/bugs/show_bug.cgi?id=533909
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests.model2')
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model2/model/model2.ecore2
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model2/model/model2.genmodel1
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy.genmodel1
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Model2Package.java22
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Unsettable1.java54
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Model2PackageImpl.java13
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Unsettable1Impl.java42
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/Model2Package.java22
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Model2PackageImpl.java13
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Unsettable1Impl.java114
10 files changed, 282 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.ecore b/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.ecore
index 5fcf7ef17a..c4c87b99a5 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.ecore
+++ b/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.ecore
@@ -40,6 +40,8 @@
unsettable="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="unsettableVAT" eType="ecore:EEnum ../../org.eclipse.emf.cdo.tests.model1/model/model1.ecore#//VAT"
unsettable="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="unsettableElement" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"
+ unsettable="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Unsettable2WithDefault">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="unsettableBoolean" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.genmodel b/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.genmodel
index 8481c79fd0..468ffde371 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.genmodel
+++ b/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.genmodel
@@ -37,6 +37,7 @@
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model2.ecore#//Unsettable1/unsettableShort"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model2.ecore#//Unsettable1/unsettableString"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model2.ecore#//Unsettable1/unsettableVAT"/>
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference model2.ecore#//Unsettable1/unsettableElement"/>
</genClasses>
<genClasses ecoreClass="model2.ecore#//Unsettable2WithDefault">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model2.ecore#//Unsettable2WithDefault/unsettableBoolean"/>
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy.genmodel b/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy.genmodel
index ffe90972c8..8db015b996 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy.genmodel
+++ b/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy.genmodel
@@ -35,6 +35,7 @@
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model2.ecore#//Unsettable1/unsettableShort"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model2.ecore#//Unsettable1/unsettableString"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model2.ecore#//Unsettable1/unsettableVAT"/>
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference model2.ecore#//Unsettable1/unsettableElement"/>
</genClasses>
<genClasses ecoreClass="model2.ecore#//Unsettable2WithDefault">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute model2.ecore#//Unsettable2WithDefault/unsettableBoolean"/>
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Model2Package.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Model2Package.java
index b0cb9d2300..39e87b4d4d 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Model2Package.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Model2Package.java
@@ -298,13 +298,22 @@ public interface Model2Package extends EPackage
int UNSETTABLE1__UNSETTABLE_VAT = 10;
/**
+ * The feature id for the '<em><b>Unsettable Element</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE1__UNSETTABLE_ELEMENT = 11;
+
+ /**
* The number of structural features of the '<em>Unsettable1</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
* -->
*
* @generated
* @ordered
*/
- int UNSETTABLE1_FEATURE_COUNT = 11;
+ int UNSETTABLE1_FEATURE_COUNT = 12;
/**
* The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable2WithDefaultImpl <em>Unsettable2 With Default</em>}' class.
@@ -1372,6 +1381,17 @@ public interface Model2Package extends EPackage
EAttribute getUnsettable1_UnsettableVAT();
/**
+ * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableElement <em>Unsettable Element</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Unsettable Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableElement()
+ * @see #getUnsettable1()
+ * @generated
+ */
+ EReference getUnsettable1_UnsettableElement();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault <em>Unsettable2 With Default</em>}'.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @return the meta object for class '<em>Unsettable2 With Default</em>'.
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Unsettable1.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Unsettable1.java
index 7268748c2f..381b50e4e2 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Unsettable1.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/Unsettable1.java
@@ -34,6 +34,7 @@ import java.util.Date;
* <li>{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableShort <em>Unsettable Short</em>}</li>
* <li>{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableString <em>Unsettable String</em>}</li>
* <li>{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableVAT <em>Unsettable VAT</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableElement <em>Unsettable Element</em>}</li>
* </ul>
*
* @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable1()
@@ -595,4 +596,57 @@ public interface Unsettable1 extends EObject
*/
boolean isSetUnsettableVAT();
+ /**
+ * Returns the value of the '<em><b>Unsettable Element</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Unsettable Element</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Unsettable Element</em>' reference.
+ * @see #isSetUnsettableElement()
+ * @see #unsetUnsettableElement()
+ * @see #setUnsettableElement(EObject)
+ * @see org.eclipse.emf.cdo.tests.model2.Model2Package#getUnsettable1_UnsettableElement()
+ * @model unsettable="true"
+ * @generated
+ */
+ EObject getUnsettableElement();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableElement <em>Unsettable Element</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Unsettable Element</em>' reference.
+ * @see #isSetUnsettableElement()
+ * @see #unsetUnsettableElement()
+ * @see #getUnsettableElement()
+ * @generated
+ */
+ void setUnsettableElement(EObject value);
+
+ /**
+ * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableElement <em>Unsettable Element</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetUnsettableElement()
+ * @see #getUnsettableElement()
+ * @see #setUnsettableElement(EObject)
+ * @generated
+ */
+ void unsetUnsettableElement();
+
+ /**
+ * Returns whether the value of the '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableElement <em>Unsettable Element</em>}' reference is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Unsettable Element</em>' reference is set.
+ * @see #unsetUnsettableElement()
+ * @see #getUnsettableElement()
+ * @see #setUnsettableElement(EObject)
+ * @generated
+ */
+ boolean isSetUnsettableElement();
+
} // Unsettable1
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Model2PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Model2PackageImpl.java
index 77f3521d55..d63b0d1054 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Model2PackageImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Model2PackageImpl.java
@@ -416,6 +416,16 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package
}
/**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getUnsettable1_UnsettableElement()
+ {
+ return (EReference)unsettable1EClass.getEStructuralFeatures().get(11);
+ }
+
+ /**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@@ -1216,6 +1226,7 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package
createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_SHORT);
createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_STRING);
createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_VAT);
+ createEReference(unsettable1EClass, UNSETTABLE1__UNSETTABLE_ELEMENT);
unsettable2WithDefaultEClass = createEClass(UNSETTABLE2_WITH_DEFAULT);
createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN);
@@ -1394,6 +1405,8 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package
IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getUnsettable1_UnsettableVAT(), theModel1Package.getVAT(), "unsettableVAT", null, 0, 1, Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getUnsettable1_UnsettableElement(), ecorePackage.getEObject(), null, "unsettableElement", null, 0, 1, Unsettable1.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(unsettable2WithDefaultEClass, Unsettable2WithDefault.class, "Unsettable2WithDefault", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getUnsettable2WithDefault_UnsettableBoolean(), ecorePackage.getEBoolean(), "unsettableBoolean", "true", 0, 1, Unsettable2WithDefault.class,
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Unsettable1Impl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Unsettable1Impl.java
index 5a4e65c852..f0d8944ee8 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Unsettable1Impl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/impl/Unsettable1Impl.java
@@ -17,6 +17,7 @@ import org.eclipse.emf.cdo.tests.model2.Unsettable1;
import org.eclipse.emf.internal.cdo.CDOObjectImpl;
import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
import java.util.Date;
@@ -37,6 +38,7 @@ import java.util.Date;
* <li>{@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableShort <em>Unsettable Short</em>}</li>
* <li>{@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableString <em>Unsettable String</em>}</li>
* <li>{@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableVAT <em>Unsettable VAT</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model2.impl.Unsettable1Impl#getUnsettableElement <em>Unsettable Element</em>}</li>
* </ul>
*
* @generated
@@ -468,4 +470,44 @@ public class Unsettable1Impl extends CDOObjectImpl implements Unsettable1
return eIsSet(Model2Package.eINSTANCE.getUnsettable1_UnsettableVAT());
}
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EObject getUnsettableElement()
+ {
+ return (EObject)eGet(Model2Package.eINSTANCE.getUnsettable1_UnsettableElement(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setUnsettableElement(EObject newUnsettableElement)
+ {
+ eSet(Model2Package.eINSTANCE.getUnsettable1_UnsettableElement(), newUnsettableElement);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetUnsettableElement()
+ {
+ eUnset(Model2Package.eINSTANCE.getUnsettable1_UnsettableElement());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetUnsettableElement()
+ {
+ return eIsSet(Model2Package.eINSTANCE.getUnsettable1_UnsettableElement());
+ }
+
} // Unsettable1Impl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/Model2Package.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/Model2Package.java
index b12fdf3f0b..89172c97a5 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/Model2Package.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/Model2Package.java
@@ -298,13 +298,22 @@ public interface Model2Package extends EPackage, org.eclipse.emf.cdo.tests.model
int UNSETTABLE1__UNSETTABLE_VAT = 10;
/**
+ * The feature id for the '<em><b>Unsettable Element</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE1__UNSETTABLE_ELEMENT = 11;
+
+ /**
* The number of structural features of the '<em>Unsettable1</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
* -->
*
* @generated
* @ordered
*/
- int UNSETTABLE1_FEATURE_COUNT = 11;
+ int UNSETTABLE1_FEATURE_COUNT = 12;
/**
* The meta object id for the '{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable2WithDefaultImpl <em>Unsettable2 With Default</em>}' class.
@@ -1392,6 +1401,17 @@ public interface Model2Package extends EPackage, org.eclipse.emf.cdo.tests.model
EAttribute getUnsettable1_UnsettableVAT();
/**
+ * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableElement <em>Unsettable Element</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Unsettable Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model2.Unsettable1#getUnsettableElement()
+ * @see #getUnsettable1()
+ * @generated
+ */
+ EReference getUnsettable1_UnsettableElement();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault <em>Unsettable2 With Default</em>}'.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @return the meta object for class '<em>Unsettable2 With Default</em>'.
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Model2PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Model2PackageImpl.java
index 8582c1e2ec..019d5edd94 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Model2PackageImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Model2PackageImpl.java
@@ -416,6 +416,16 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package
}
/**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getUnsettable1_UnsettableElement()
+ {
+ return (EReference)unsettable1EClass.getEStructuralFeatures().get(11);
+ }
+
+ /**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@@ -1216,6 +1226,7 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package
createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_SHORT);
createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_STRING);
createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_VAT);
+ createEReference(unsettable1EClass, UNSETTABLE1__UNSETTABLE_ELEMENT);
unsettable2WithDefaultEClass = createEClass(UNSETTABLE2_WITH_DEFAULT);
createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN);
@@ -1394,6 +1405,8 @@ public class Model2PackageImpl extends EPackageImpl implements Model2Package
IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getUnsettable1_UnsettableVAT(), theModel1Package.getVAT(), "unsettableVAT", null, 0, 1, Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getUnsettable1_UnsettableElement(), ecorePackage.getEObject(), null, "unsettableElement", null, 0, 1, Unsettable1.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(unsettable2WithDefaultEClass, Unsettable2WithDefault.class, "Unsettable2WithDefault", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getUnsettable2WithDefault_UnsettableBoolean(), ecorePackage.getEBoolean(), "unsettableBoolean", "true", 0, 1, Unsettable2WithDefault.class,
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Unsettable1Impl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Unsettable1Impl.java
index 8b05fd968f..bed4b8bf6b 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Unsettable1Impl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/legacy/impl/Unsettable1Impl.java
@@ -16,6 +16,8 @@ import org.eclipse.emf.cdo.tests.model2.legacy.Model2Package;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
@@ -38,6 +40,7 @@ import java.util.Date;
* <li>{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl#getUnsettableShort <em>Unsettable Short</em>}</li>
* <li>{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl#getUnsettableString <em>Unsettable String</em>}</li>
* <li>{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl#getUnsettableVAT <em>Unsettable VAT</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model2.legacy.impl.Unsettable1Impl#getUnsettableElement <em>Unsettable Element</em>}</li>
* </ul>
*
* @generated
@@ -353,6 +356,25 @@ public class Unsettable1Impl extends EObjectImpl implements Unsettable1
protected boolean unsettableVATESet;
/**
+ * The cached value of the '{@link #getUnsettableElement() <em>Unsettable Element</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUnsettableElement()
+ * @generated
+ * @ordered
+ */
+ protected EObject unsettableElement;
+
+ /**
+ * This is true if the Unsettable Element reference has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean unsettableElementESet;
+
+ /**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@@ -942,6 +964,84 @@ public class Unsettable1Impl extends EObjectImpl implements Unsettable1
}
/**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EObject getUnsettableElement()
+ {
+ if (unsettableElement != null && unsettableElement.eIsProxy())
+ {
+ InternalEObject oldUnsettableElement = (InternalEObject)unsettableElement;
+ unsettableElement = eResolveProxy(oldUnsettableElement);
+ if (unsettableElement != oldUnsettableElement)
+ {
+ if (eNotificationRequired())
+ {
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model2Package.UNSETTABLE1__UNSETTABLE_ELEMENT, oldUnsettableElement, unsettableElement));
+ }
+ }
+ }
+ return unsettableElement;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EObject basicGetUnsettableElement()
+ {
+ return unsettableElement;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setUnsettableElement(EObject newUnsettableElement)
+ {
+ EObject oldUnsettableElement = unsettableElement;
+ unsettableElement = newUnsettableElement;
+ boolean oldUnsettableElementESet = unsettableElementESet;
+ unsettableElementESet = true;
+ if (eNotificationRequired())
+ {
+ eNotify(new ENotificationImpl(this, Notification.SET, Model2Package.UNSETTABLE1__UNSETTABLE_ELEMENT, oldUnsettableElement, unsettableElement,
+ !oldUnsettableElementESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetUnsettableElement()
+ {
+ EObject oldUnsettableElement = unsettableElement;
+ boolean oldUnsettableElementESet = unsettableElementESet;
+ unsettableElement = null;
+ unsettableElementESet = false;
+ if (eNotificationRequired())
+ {
+ eNotify(
+ new ENotificationImpl(this, Notification.UNSET, Model2Package.UNSETTABLE1__UNSETTABLE_ELEMENT, oldUnsettableElement, null, oldUnsettableElementESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetUnsettableElement()
+ {
+ return unsettableElementESet;
+ }
+
+ /**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@@ -972,6 +1072,12 @@ public class Unsettable1Impl extends EObjectImpl implements Unsettable1
return getUnsettableString();
case Model2Package.UNSETTABLE1__UNSETTABLE_VAT:
return getUnsettableVAT();
+ case Model2Package.UNSETTABLE1__UNSETTABLE_ELEMENT:
+ if (resolve)
+ {
+ return getUnsettableElement();
+ }
+ return basicGetUnsettableElement();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -1018,6 +1124,9 @@ public class Unsettable1Impl extends EObjectImpl implements Unsettable1
case Model2Package.UNSETTABLE1__UNSETTABLE_VAT:
setUnsettableVAT((VAT)newValue);
return;
+ case Model2Package.UNSETTABLE1__UNSETTABLE_ELEMENT:
+ setUnsettableElement((EObject)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -1064,6 +1173,9 @@ public class Unsettable1Impl extends EObjectImpl implements Unsettable1
case Model2Package.UNSETTABLE1__UNSETTABLE_VAT:
unsetUnsettableVAT();
return;
+ case Model2Package.UNSETTABLE1__UNSETTABLE_ELEMENT:
+ unsetUnsettableElement();
+ return;
}
super.eUnset(featureID);
}
@@ -1099,6 +1211,8 @@ public class Unsettable1Impl extends EObjectImpl implements Unsettable1
return isSetUnsettableString();
case Model2Package.UNSETTABLE1__UNSETTABLE_VAT:
return isSetUnsettableVAT();
+ case Model2Package.UNSETTABLE1__UNSETTABLE_ELEMENT:
+ return isSetUnsettableElement();
}
return super.eIsSet(featureID);
}

Back to the top