Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2006-08-20 05:44:44 -0400
committerEike Stepper2006-08-20 05:44:44 -0400
commit54136e4fa8ea5039f0f42fcc933e993abfb1d576 (patch)
tree53e2e04c73e7d216e3402d417524e9303b82f6f3 /plugins/org.eclipse.emf.cdo.tests/src/testmodel1
parentf3b24fde9eac46af2b49314ffeac98bedebf1327 (diff)
downloadcdo-54136e4fa8ea5039f0f42fcc933e993abfb1d576.tar.gz
cdo-54136e4fa8ea5039f0f42fcc933e993abfb1d576.tar.xz
cdo-54136e4fa8ea5039f0f42fcc933e993abfb1d576.zip
[154389] attributes in super class returned by server, ignored by client
https://bugs.eclipse.org/bugs/show_bug.cgi?id=154389
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests/src/testmodel1')
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/testmodel1/EmptyRefNode.java47
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/testmodel1/impl/EmptyRefNodeImpl.java145
2 files changed, 192 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/testmodel1/EmptyRefNode.java b/plugins/org.eclipse.emf.cdo.tests/src/testmodel1/EmptyRefNode.java
new file mode 100644
index 0000000000..76938f1b82
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests/src/testmodel1/EmptyRefNode.java
@@ -0,0 +1,47 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package testmodel1;
+
+
+import org.eclipse.emf.common.util.EList;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Empty Ref Node</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link testmodel1.EmptyRefNode#getMoreReferences <em>More References</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see testmodel1.TestModel1Package#getEmptyRefNode()
+ * @model
+ * @generated
+ */
+public interface EmptyRefNode extends TreeNode
+{
+ /**
+ * Returns the value of the '<em><b>More References</b></em>' reference list.
+ * The list contents are of type {@link testmodel1.TreeNode}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>More References</em>' reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>More References</em>' reference list.
+ * @see testmodel1.TestModel1Package#getEmptyRefNode_MoreReferences()
+ * @model type="testmodel1.TreeNode"
+ * @generated
+ */
+ EList getMoreReferences();
+
+} // EmptyRefNode \ No newline at end of file
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/testmodel1/impl/EmptyRefNodeImpl.java b/plugins/org.eclipse.emf.cdo.tests/src/testmodel1/impl/EmptyRefNodeImpl.java
new file mode 100644
index 0000000000..6d6c6c5118
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests/src/testmodel1/impl/EmptyRefNodeImpl.java
@@ -0,0 +1,145 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package testmodel1.impl;
+
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.util.EObjectResolvingEList;
+
+import testmodel1.EmptyRefNode;
+import testmodel1.TestModel1Package;
+import testmodel1.TreeNode;
+
+import java.util.Collection;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Empty Ref Node</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link testmodel1.impl.EmptyRefNodeImpl#getMoreReferences <em>More References</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EmptyRefNodeImpl extends TreeNodeImpl implements EmptyRefNode
+{
+ /**
+ * The cached value of the '{@link #getMoreReferences() <em>More References</em>}' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMoreReferences()
+ * @generated
+ * @ordered
+ */
+ protected EList moreReferences = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EmptyRefNodeImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EClass eStaticClass()
+ {
+ return TestModel1Package.Literals.EMPTY_REF_NODE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList getMoreReferences()
+ {
+ cdoLoad();
+ if (moreReferences == null)
+ {
+ moreReferences = new EObjectResolvingEList(TreeNode.class, this,
+ TestModel1Package.EMPTY_REF_NODE__MORE_REFERENCES);
+ }
+ return moreReferences;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case TestModel1Package.EMPTY_REF_NODE__MORE_REFERENCES:
+ return getMoreReferences();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case TestModel1Package.EMPTY_REF_NODE__MORE_REFERENCES:
+ getMoreReferences().clear();
+ getMoreReferences().addAll((Collection) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case TestModel1Package.EMPTY_REF_NODE__MORE_REFERENCES:
+ getMoreReferences().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case TestModel1Package.EMPTY_REF_NODE__MORE_REFERENCES:
+ return moreReferences != null && !moreReferences.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //EmptyRefNodeImpl \ No newline at end of file

Back to the top