diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo')
147 files changed, 24853 insertions, 24853 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ContainedElementNoOppositeImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ContainedElementNoOppositeImpl.java index 208579a59b..2157a3312f 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ContainedElementNoOppositeImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ContainedElementNoOppositeImpl.java @@ -1,183 +1,183 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Contained Element No Opposite</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ContainedElementNoOppositeImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ContainedElementNoOppositeImpl extends EObjectImpl implements ContainedElementNoOpposite -{ - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ContainedElementNoOppositeImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getContainedElementNoOpposite(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return name; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.CONTAINED_ELEMENT_NO_OPPOSITE__NAME, oldName, - name)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.CONTAINED_ELEMENT_NO_OPPOSITE__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.CONTAINED_ELEMENT_NO_OPPOSITE__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.CONTAINED_ELEMENT_NO_OPPOSITE__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.CONTAINED_ELEMENT_NO_OPPOSITE__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} // ContainedElementNoOppositeImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Contained Element No Opposite</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ContainedElementNoOppositeImpl#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ContainedElementNoOppositeImpl extends EObjectImpl implements ContainedElementNoOpposite
+{
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ContainedElementNoOppositeImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getContainedElementNoOpposite();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.CONTAINED_ELEMENT_NO_OPPOSITE__NAME, oldName,
+ name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.CONTAINED_ELEMENT_NO_OPPOSITE__NAME:
+ return getName();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.CONTAINED_ELEMENT_NO_OPPOSITE__NAME:
+ setName((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.CONTAINED_ELEMENT_NO_OPPOSITE__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.CONTAINED_ELEMENT_NO_OPPOSITE__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(')');
+ return result.toString();
+ }
+
+} // ContainedElementNoOppositeImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefMapNonContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefMapNonContainedImpl.java index f24b4d1396..d728e33a08 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefMapNonContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefMapNonContainedImpl.java @@ -1,171 +1,171 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EMap; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EcoreEMap; -import org.eclipse.emf.ecore.util.InternalEList; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Map Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMapNonContainedImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class GenRefMapNonContainedImpl extends EObjectImpl implements GenRefMapNonContained -{ - /** - * The cached value of the '{@link #getElements() <em>Elements</em>}' map. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getElements() - * @generated - * @ordered - */ - protected EMap<String, EObject> elements; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected GenRefMapNonContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getGenRefMapNonContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EMap<String, EObject> getElements() - { - if (elements == null) - { - elements = new EcoreEMap<String, EObject>(model4Package.eINSTANCE.getStringToEObject(), - StringToEObjectImpl.class, this, model4Package.GEN_REF_MAP_NON_CONTAINED__ELEMENTS); - } - return elements; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.GEN_REF_MAP_NON_CONTAINED__ELEMENTS: - return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.GEN_REF_MAP_NON_CONTAINED__ELEMENTS: - if (coreType) - return getElements(); - else - return getElements().map(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.GEN_REF_MAP_NON_CONTAINED__ELEMENTS: - ((EStructuralFeature.Setting)getElements()).set(newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.GEN_REF_MAP_NON_CONTAINED__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.GEN_REF_MAP_NON_CONTAINED__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // GenRefMapNonContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.common.util.EMap;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.util.EcoreEMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Map Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMapNonContainedImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GenRefMapNonContainedImpl extends EObjectImpl implements GenRefMapNonContained
+{
+ /**
+ * The cached value of the '{@link #getElements() <em>Elements</em>}' map. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getElements()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, EObject> elements;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected GenRefMapNonContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getGenRefMapNonContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EMap<String, EObject> getElements()
+ {
+ if (elements == null)
+ {
+ elements = new EcoreEMap<String, EObject>(model4Package.eINSTANCE.getStringToEObject(),
+ StringToEObjectImpl.class, this, model4Package.GEN_REF_MAP_NON_CONTAINED__ELEMENTS);
+ }
+ return elements;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MAP_NON_CONTAINED__ELEMENTS:
+ return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MAP_NON_CONTAINED__ELEMENTS:
+ if (coreType)
+ return getElements();
+ else
+ return getElements().map();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MAP_NON_CONTAINED__ELEMENTS:
+ ((EStructuralFeature.Setting)getElements()).set(newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MAP_NON_CONTAINED__ELEMENTS:
+ getElements().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MAP_NON_CONTAINED__ELEMENTS:
+ return elements != null && !elements.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // GenRefMapNonContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefMultiContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefMultiContainedImpl.java index ab5ba8e191..1abfa73502 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefMultiContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefMultiContainedImpl.java @@ -1,171 +1,171 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained; - -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.EObject; -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Multi Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiContainedImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class GenRefMultiContainedImpl extends EObjectImpl implements GenRefMultiContained -{ - /** - * The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList<EObject> elements; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected GenRefMultiContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getGenRefMultiContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EList<EObject> getElements() - { - if (elements == null) - { - elements = new EObjectContainmentEList<EObject>(EObject.class, this, - model4Package.GEN_REF_MULTI_CONTAINED__ELEMENTS); - } - return elements; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.GEN_REF_MULTI_CONTAINED__ELEMENTS: - return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.GEN_REF_MULTI_CONTAINED__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.GEN_REF_MULTI_CONTAINED__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection<? extends EObject>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.GEN_REF_MULTI_CONTAINED__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.GEN_REF_MULTI_CONTAINED__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // GenRefMultiContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained;
+
+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.EObject;
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Multi Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiContainedImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GenRefMultiContainedImpl extends EObjectImpl implements GenRefMultiContained
+{
+ /**
+ * The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getElements()
+ * @generated
+ * @ordered
+ */
+ protected EList<EObject> elements;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected GenRefMultiContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getGenRefMultiContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<EObject> getElements()
+ {
+ if (elements == null)
+ {
+ elements = new EObjectContainmentEList<EObject>(EObject.class, this,
+ model4Package.GEN_REF_MULTI_CONTAINED__ELEMENTS);
+ }
+ return elements;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MULTI_CONTAINED__ELEMENTS:
+ return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MULTI_CONTAINED__ELEMENTS:
+ return getElements();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MULTI_CONTAINED__ELEMENTS:
+ getElements().clear();
+ getElements().addAll((Collection<? extends EObject>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MULTI_CONTAINED__ELEMENTS:
+ getElements().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MULTI_CONTAINED__ELEMENTS:
+ return elements != null && !elements.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // GenRefMultiContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefMultiNUNonContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefMultiNUNonContainedImpl.java index 7e7d582932..89c99741aa 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefMultiNUNonContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefMultiNUNonContainedImpl.java @@ -1,151 +1,151 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectEList; - -import java.util.Collection; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Multi NU Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiNUNonContainedImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class GenRefMultiNUNonContainedImpl extends EObjectImpl implements GenRefMultiNUNonContained -{ - /** - * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList<EObject> elements; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected GenRefMultiNUNonContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getGenRefMultiNUNonContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EList<EObject> getElements() - { - if (elements == null) - { - elements = new EObjectEList<EObject>(EObject.class, this, model4Package.GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS); - } - return elements; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection<? extends EObject>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // GenRefMultiNUNonContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.util.EObjectEList;
+
+import java.util.Collection;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Multi NU Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiNUNonContainedImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GenRefMultiNUNonContainedImpl extends EObjectImpl implements GenRefMultiNUNonContained
+{
+ /**
+ * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getElements()
+ * @generated
+ * @ordered
+ */
+ protected EList<EObject> elements;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected GenRefMultiNUNonContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getGenRefMultiNUNonContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<EObject> getElements()
+ {
+ if (elements == null)
+ {
+ elements = new EObjectEList<EObject>(EObject.class, this, model4Package.GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS);
+ }
+ return elements;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS:
+ return getElements();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS:
+ getElements().clear();
+ getElements().addAll((Collection<? extends EObject>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS:
+ getElements().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS:
+ return elements != null && !elements.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // GenRefMultiNUNonContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefMultiNonContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefMultiNonContainedImpl.java index 73edaaf66b..0d94f45d74 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefMultiNonContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefMultiNonContainedImpl.java @@ -1,152 +1,152 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; - -import java.util.Collection; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Multi Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiNonContainedImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class GenRefMultiNonContainedImpl extends EObjectImpl implements GenRefMultiNonContained -{ - /** - * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList<EObject> elements; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected GenRefMultiNonContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getGenRefMultiNonContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EList<EObject> getElements() - { - if (elements == null) - { - elements = new EObjectResolvingEList<EObject>(EObject.class, this, - model4Package.GEN_REF_MULTI_NON_CONTAINED__ELEMENTS); - } - return elements; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.GEN_REF_MULTI_NON_CONTAINED__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.GEN_REF_MULTI_NON_CONTAINED__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection<? extends EObject>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.GEN_REF_MULTI_NON_CONTAINED__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.GEN_REF_MULTI_NON_CONTAINED__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // GenRefMultiNonContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.util.EObjectResolvingEList;
+
+import java.util.Collection;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Multi Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiNonContainedImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GenRefMultiNonContainedImpl extends EObjectImpl implements GenRefMultiNonContained
+{
+ /**
+ * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getElements()
+ * @generated
+ * @ordered
+ */
+ protected EList<EObject> elements;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected GenRefMultiNonContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getGenRefMultiNonContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<EObject> getElements()
+ {
+ if (elements == null)
+ {
+ elements = new EObjectResolvingEList<EObject>(EObject.class, this,
+ model4Package.GEN_REF_MULTI_NON_CONTAINED__ELEMENTS);
+ }
+ return elements;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MULTI_NON_CONTAINED__ELEMENTS:
+ return getElements();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MULTI_NON_CONTAINED__ELEMENTS:
+ getElements().clear();
+ getElements().addAll((Collection<? extends EObject>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MULTI_NON_CONTAINED__ELEMENTS:
+ getElements().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_MULTI_NON_CONTAINED__ELEMENTS:
+ return elements != null && !elements.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // GenRefMultiNonContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefSingleContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefSingleContainedImpl.java index cc6b532814..2ada2fa475 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefSingleContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefSingleContainedImpl.java @@ -1,207 +1,207 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Single Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefSingleContainedImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class GenRefSingleContainedImpl extends EObjectImpl implements GenRefSingleContained -{ - /** - * The cached value of the '{@link #getElement() <em>Element</em>}' containment reference. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @see #getElement() - * @generated - * @ordered - */ - protected EObject element; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected GenRefSingleContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getGenRefSingleContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EObject getElement() - { - return element; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetElement(EObject newElement, NotificationChain msgs) - { - EObject oldElement = element; - element = newElement; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT, oldElement, newElement); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(EObject newElement) - { - if (newElement != element) - { - NotificationChain msgs = null; - if (element != null) - msgs = ((InternalEObject)element).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT, null, msgs); - if (newElement != null) - msgs = ((InternalEObject)newElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - - model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT, null, msgs); - msgs = basicSetElement(newElement, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT, - newElement, newElement)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT: - return basicSetElement(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT: - return getElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT: - setElement((EObject)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT: - setElement((EObject)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT: - return element != null; - } - return super.eIsSet(featureID); - } - -} // GenRefSingleContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Single Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefSingleContainedImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GenRefSingleContainedImpl extends EObjectImpl implements GenRefSingleContained
+{
+ /**
+ * The cached value of the '{@link #getElement() <em>Element</em>}' containment reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getElement()
+ * @generated
+ * @ordered
+ */
+ protected EObject element;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected GenRefSingleContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getGenRefSingleContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EObject getElement()
+ {
+ return element;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetElement(EObject newElement, NotificationChain msgs)
+ {
+ EObject oldElement = element;
+ element = newElement;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT, oldElement, newElement);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(EObject newElement)
+ {
+ if (newElement != element)
+ {
+ NotificationChain msgs = null;
+ if (element != null)
+ msgs = ((InternalEObject)element).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT, null, msgs);
+ if (newElement != null)
+ msgs = ((InternalEObject)newElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT, null, msgs);
+ msgs = basicSetElement(newElement, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT,
+ newElement, newElement));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT:
+ return basicSetElement(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT:
+ return getElement();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT:
+ setElement((EObject)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT:
+ setElement((EObject)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_SINGLE_CONTAINED__ELEMENT:
+ return element != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // GenRefSingleContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefSingleNonContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefSingleNonContainedImpl.java index e460632326..2ed707230b 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefSingleNonContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/GenRefSingleNonContainedImpl.java @@ -1,181 +1,181 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Single Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefSingleNonContainedImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class GenRefSingleNonContainedImpl extends EObjectImpl implements GenRefSingleNonContained -{ - /** - * The cached value of the '{@link #getElement() <em>Element</em>}' reference. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @see #getElement() - * @generated - * @ordered - */ - protected EObject element; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected GenRefSingleNonContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getGenRefSingleNonContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EObject getElement() - { - if (element != null && element.eIsProxy()) - { - InternalEObject oldElement = (InternalEObject)element; - element = eResolveProxy(oldElement); - if (element != oldElement) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, - model4Package.GEN_REF_SINGLE_NON_CONTAINED__ELEMENT, oldElement, element)); - } - } - return element; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EObject basicGetElement() - { - return element; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(EObject newElement) - { - EObject oldElement = element; - element = newElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.GEN_REF_SINGLE_NON_CONTAINED__ELEMENT, - oldElement, element)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.GEN_REF_SINGLE_NON_CONTAINED__ELEMENT: - if (resolve) - return getElement(); - return basicGetElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.GEN_REF_SINGLE_NON_CONTAINED__ELEMENT: - setElement((EObject)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.GEN_REF_SINGLE_NON_CONTAINED__ELEMENT: - setElement((EObject)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.GEN_REF_SINGLE_NON_CONTAINED__ELEMENT: - return element != null; - } - return super.eIsSet(featureID); - } - -} // GenRefSingleNonContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Single Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefSingleNonContainedImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GenRefSingleNonContainedImpl extends EObjectImpl implements GenRefSingleNonContained
+{
+ /**
+ * The cached value of the '{@link #getElement() <em>Element</em>}' reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getElement()
+ * @generated
+ * @ordered
+ */
+ protected EObject element;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected GenRefSingleNonContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getGenRefSingleNonContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EObject getElement()
+ {
+ if (element != null && element.eIsProxy())
+ {
+ InternalEObject oldElement = (InternalEObject)element;
+ element = eResolveProxy(oldElement);
+ if (element != oldElement)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE,
+ model4Package.GEN_REF_SINGLE_NON_CONTAINED__ELEMENT, oldElement, element));
+ }
+ }
+ return element;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EObject basicGetElement()
+ {
+ return element;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(EObject newElement)
+ {
+ EObject oldElement = element;
+ element = newElement;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.GEN_REF_SINGLE_NON_CONTAINED__ELEMENT,
+ oldElement, element));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_SINGLE_NON_CONTAINED__ELEMENT:
+ if (resolve)
+ return getElement();
+ return basicGetElement();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_SINGLE_NON_CONTAINED__ELEMENT:
+ setElement((EObject)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_SINGLE_NON_CONTAINED__ELEMENT:
+ setElement((EObject)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.GEN_REF_SINGLE_NON_CONTAINED__ELEMENT:
+ return element != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // GenRefSingleNonContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplContainedElementNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplContainedElementNPLImpl.java index 3ab4c12feb..58c83a82a0 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplContainedElementNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplContainedElementNPLImpl.java @@ -1,227 +1,227 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage; -import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL; -import org.eclipse.emf.cdo.tests.model4interfaces.INamedElement; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Contained Element NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplContainedElementNPLImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplContainedElementNPLImpl extends EObjectImpl implements ImplContainedElementNPL -{ - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplContainedElementNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplContainedElementNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return name; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME, oldName, - name)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) - { - if (baseClass == INamedElement.class) - { - switch (derivedFeatureID) - { - case model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME: - return model4interfacesPackage.INAMED_ELEMENT__NAME; - default: - return -1; - } - } - return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) - { - if (baseClass == INamedElement.class) - { - switch (baseFeatureID) - { - case model4interfacesPackage.INAMED_ELEMENT__NAME: - return model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME; - default: - return -1; - } - } - return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @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(); - } - -} // ImplContainedElementNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage;
+import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL;
+import org.eclipse.emf.cdo.tests.model4interfaces.INamedElement;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Contained Element NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplContainedElementNPLImpl#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplContainedElementNPLImpl extends EObjectImpl implements ImplContainedElementNPL
+{
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplContainedElementNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplContainedElementNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME, oldName,
+ name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME:
+ return getName();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME:
+ setName((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass)
+ {
+ if (baseClass == INamedElement.class)
+ {
+ switch (derivedFeatureID)
+ {
+ case model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME:
+ return model4interfacesPackage.INAMED_ELEMENT__NAME;
+ default:
+ return -1;
+ }
+ }
+ return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass)
+ {
+ if (baseClass == INamedElement.class)
+ {
+ switch (baseFeatureID)
+ {
+ case model4interfacesPackage.INAMED_ELEMENT__NAME:
+ return model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME;
+ default:
+ return -1;
+ }
+ }
+ return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @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();
+ }
+
+} // ImplContainedElementNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefContainedElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefContainedElementImpl.java index fa2be3ffa9..bbee77637a 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefContainedElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefContainedElementImpl.java @@ -1,300 +1,300 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Contained Element</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainedElementImpl#getParent <em>Parent</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainedElementImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplMultiRefContainedElementImpl extends EObjectImpl implements ImplMultiRefContainedElement -{ - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplMultiRefContainedElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplMultiRefContainedElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public IMultiRefContainer getParent() - { - if (eContainerFeatureID() != model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT) - return null; - return (IMultiRefContainer)eContainer(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetParent(IMultiRefContainer newParent, NotificationChain msgs) - { - msgs = eBasicSetContainer((InternalEObject)newParent, model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT, msgs); - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(IMultiRefContainer newParent) - { - if (newParent != eInternalContainer() - || (eContainerFeatureID() != model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__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, model4interfacesPackage.IMULTI_REF_CONTAINER__ELEMENTS, - IMultiRefContainer.class, msgs); - msgs = basicSetParent(newParent, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT, - newParent, newParent)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return name; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME, - oldName, name)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT: - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - return basicSetParent((IMultiRefContainer)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT: - return basicSetParent(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) - { - switch (eContainerFeatureID()) - { - case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT: - return eInternalContainer().eInverseRemove(this, model4interfacesPackage.IMULTI_REF_CONTAINER__ELEMENTS, - IMultiRefContainer.class, msgs); - } - return super.eBasicRemoveFromContainerFeature(msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT: - return getParent(); - case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT: - setParent((IMultiRefContainer)newValue); - return; - case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT: - setParent((IMultiRefContainer)null); - return; - case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT: - return getParent() != null; - case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} // ImplMultiRefContainedElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Contained Element</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainedElementImpl#getParent <em>Parent</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainedElementImpl#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplMultiRefContainedElementImpl extends EObjectImpl implements ImplMultiRefContainedElement
+{
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplMultiRefContainedElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplMultiRefContainedElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public IMultiRefContainer getParent()
+ {
+ if (eContainerFeatureID() != model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT)
+ return null;
+ return (IMultiRefContainer)eContainer();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetParent(IMultiRefContainer newParent, NotificationChain msgs)
+ {
+ msgs = eBasicSetContainer((InternalEObject)newParent, model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT, msgs);
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(IMultiRefContainer newParent)
+ {
+ if (newParent != eInternalContainer()
+ || (eContainerFeatureID() != model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__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, model4interfacesPackage.IMULTI_REF_CONTAINER__ELEMENTS,
+ IMultiRefContainer.class, msgs);
+ msgs = basicSetParent(newParent, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT,
+ newParent, newParent));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME,
+ oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT:
+ if (eInternalContainer() != null)
+ msgs = eBasicRemoveFromContainer(msgs);
+ return basicSetParent((IMultiRefContainer)otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT:
+ return basicSetParent(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
+ {
+ switch (eContainerFeatureID())
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT:
+ return eInternalContainer().eInverseRemove(this, model4interfacesPackage.IMULTI_REF_CONTAINER__ELEMENTS,
+ IMultiRefContainer.class, msgs);
+ }
+ return super.eBasicRemoveFromContainerFeature(msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT:
+ return getParent();
+ case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME:
+ return getName();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT:
+ setParent((IMultiRefContainer)newValue);
+ return;
+ case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME:
+ setName((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT:
+ setParent((IMultiRefContainer)null);
+ return;
+ case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT:
+ return getParent() != null;
+ case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(')');
+ return result.toString();
+ }
+
+} // ImplMultiRefContainedElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefContainerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefContainerImpl.java index a22ae1fefd..bd1a4943b1 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefContainerImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefContainerImpl.java @@ -1,190 +1,190 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Container</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainerImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplMultiRefContainerImpl extends EObjectImpl implements ImplMultiRefContainer -{ - /** - * The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList<IMultiRefContainedElement> elements; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplMultiRefContainerImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplMultiRefContainer(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EList<IMultiRefContainedElement> getElements() - { - if (elements == null) - { - elements = new EObjectContainmentWithInverseEList<IMultiRefContainedElement>(IMultiRefContainedElement.class, - this, model4Package.IMPL_MULTI_REF_CONTAINER__ELEMENTS, - model4interfacesPackage.IMULTI_REF_CONTAINED_ELEMENT__PARENT); - } - return elements; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINER__ELEMENTS: - return ((InternalEList<InternalEObject>)(InternalEList<?>)getElements()).basicAdd(otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINER__ELEMENTS: - return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINER__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINER__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection<? extends IMultiRefContainedElement>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINER__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINER__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // ImplMultiRefContainerImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import java.util.Collection;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Container</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainerImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplMultiRefContainerImpl extends EObjectImpl implements ImplMultiRefContainer
+{
+ /**
+ * The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getElements()
+ * @generated
+ * @ordered
+ */
+ protected EList<IMultiRefContainedElement> elements;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplMultiRefContainerImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplMultiRefContainer();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<IMultiRefContainedElement> getElements()
+ {
+ if (elements == null)
+ {
+ elements = new EObjectContainmentWithInverseEList<IMultiRefContainedElement>(IMultiRefContainedElement.class,
+ this, model4Package.IMPL_MULTI_REF_CONTAINER__ELEMENTS,
+ model4interfacesPackage.IMULTI_REF_CONTAINED_ELEMENT__PARENT);
+ }
+ return elements;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINER__ELEMENTS:
+ return ((InternalEList<InternalEObject>)(InternalEList<?>)getElements()).basicAdd(otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINER__ELEMENTS:
+ return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINER__ELEMENTS:
+ return getElements();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINER__ELEMENTS:
+ getElements().clear();
+ getElements().addAll((Collection<? extends IMultiRefContainedElement>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINER__ELEMENTS:
+ getElements().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINER__ELEMENTS:
+ return elements != null && !elements.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // ImplMultiRefContainerImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefContainerNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefContainerNPLImpl.java index 8ca4717b41..51ccae6f3e 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefContainerNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefContainerNPLImpl.java @@ -1,171 +1,171 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Container NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainerNPLImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplMultiRefContainerNPLImpl extends EObjectImpl implements ImplMultiRefContainerNPL -{ - /** - * The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList<IContainedElementNoParentLink> elements; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplMultiRefContainerNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplMultiRefContainerNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EList<IContainedElementNoParentLink> getElements() - { - if (elements == null) - { - elements = new EObjectContainmentEList<IContainedElementNoParentLink>(IContainedElementNoParentLink.class, this, - model4Package.IMPL_MULTI_REF_CONTAINER_NPL__ELEMENTS); - } - return elements; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINER_NPL__ELEMENTS: - return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINER_NPL__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINER_NPL__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection<? extends IContainedElementNoParentLink>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINER_NPL__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_CONTAINER_NPL__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // ImplMultiRefContainerNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Container NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainerNPLImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplMultiRefContainerNPLImpl extends EObjectImpl implements ImplMultiRefContainerNPL
+{
+ /**
+ * The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getElements()
+ * @generated
+ * @ordered
+ */
+ protected EList<IContainedElementNoParentLink> elements;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplMultiRefContainerNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplMultiRefContainerNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<IContainedElementNoParentLink> getElements()
+ {
+ if (elements == null)
+ {
+ elements = new EObjectContainmentEList<IContainedElementNoParentLink>(IContainedElementNoParentLink.class, this,
+ model4Package.IMPL_MULTI_REF_CONTAINER_NPL__ELEMENTS);
+ }
+ return elements;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINER_NPL__ELEMENTS:
+ return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINER_NPL__ELEMENTS:
+ return getElements();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINER_NPL__ELEMENTS:
+ getElements().clear();
+ getElements().addAll((Collection<? extends IContainedElementNoParentLink>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINER_NPL__ELEMENTS:
+ getElements().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_CONTAINER_NPL__ELEMENTS:
+ return elements != null && !elements.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // ImplMultiRefContainerNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefNonContainedElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefNonContainedElementImpl.java index e99a25b2f5..e8a34a99f5 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefNonContainedElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefNonContainedElementImpl.java @@ -1,323 +1,323 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Non Contained Element</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainedElementImpl#getParent <em>Parent - * </em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainedElementImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplMultiRefNonContainedElementImpl extends EObjectImpl implements ImplMultiRefNonContainedElement -{ - /** - * The cached value of the '{@link #getParent() <em>Parent</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getParent() - * @generated - * @ordered - */ - protected IMultiRefNonContainer parent; - - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplMultiRefNonContainedElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplMultiRefNonContainedElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public IMultiRefNonContainer getParent() - { - if (parent != null && parent.eIsProxy()) - { - InternalEObject oldParent = (InternalEObject)parent; - parent = (IMultiRefNonContainer)eResolveProxy(oldParent); - if (parent != oldParent) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, - model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT, oldParent, parent)); - } - } - return parent; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public IMultiRefNonContainer basicGetParent() - { - return parent; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetParent(IMultiRefNonContainer newParent, NotificationChain msgs) - { - IMultiRefNonContainer oldParent = parent; - parent = newParent; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT, oldParent, newParent); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(IMultiRefNonContainer newParent) - { - if (newParent != parent) - { - NotificationChain msgs = null; - if (parent != null) - msgs = ((InternalEObject)parent).eInverseRemove(this, - model4interfacesPackage.IMULTI_REF_NON_CONTAINER__ELEMENTS, IMultiRefNonContainer.class, msgs); - if (newParent != null) - msgs = ((InternalEObject)newParent).eInverseAdd(this, - model4interfacesPackage.IMULTI_REF_NON_CONTAINER__ELEMENTS, IMultiRefNonContainer.class, msgs); - msgs = basicSetParent(newParent, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT, - newParent, newParent)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return name; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME, - oldName, name)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT: - if (parent != null) - msgs = ((InternalEObject)parent).eInverseRemove(this, - model4interfacesPackage.IMULTI_REF_NON_CONTAINER__ELEMENTS, IMultiRefNonContainer.class, msgs); - return basicSetParent((IMultiRefNonContainer)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT: - return basicSetParent(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT: - if (resolve) - return getParent(); - return basicGetParent(); - case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT: - setParent((IMultiRefNonContainer)newValue); - return; - case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT: - setParent((IMultiRefNonContainer)null); - return; - case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT: - return parent != null; - case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} // ImplMultiRefNonContainedElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Non Contained Element</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainedElementImpl#getParent <em>Parent
+ * </em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainedElementImpl#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplMultiRefNonContainedElementImpl extends EObjectImpl implements ImplMultiRefNonContainedElement
+{
+ /**
+ * The cached value of the '{@link #getParent() <em>Parent</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getParent()
+ * @generated
+ * @ordered
+ */
+ protected IMultiRefNonContainer parent;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplMultiRefNonContainedElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplMultiRefNonContainedElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public IMultiRefNonContainer getParent()
+ {
+ if (parent != null && parent.eIsProxy())
+ {
+ InternalEObject oldParent = (InternalEObject)parent;
+ parent = (IMultiRefNonContainer)eResolveProxy(oldParent);
+ if (parent != oldParent)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE,
+ model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT, oldParent, parent));
+ }
+ }
+ return parent;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public IMultiRefNonContainer basicGetParent()
+ {
+ return parent;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetParent(IMultiRefNonContainer newParent, NotificationChain msgs)
+ {
+ IMultiRefNonContainer oldParent = parent;
+ parent = newParent;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT, oldParent, newParent);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(IMultiRefNonContainer newParent)
+ {
+ if (newParent != parent)
+ {
+ NotificationChain msgs = null;
+ if (parent != null)
+ msgs = ((InternalEObject)parent).eInverseRemove(this,
+ model4interfacesPackage.IMULTI_REF_NON_CONTAINER__ELEMENTS, IMultiRefNonContainer.class, msgs);
+ if (newParent != null)
+ msgs = ((InternalEObject)newParent).eInverseAdd(this,
+ model4interfacesPackage.IMULTI_REF_NON_CONTAINER__ELEMENTS, IMultiRefNonContainer.class, msgs);
+ msgs = basicSetParent(newParent, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT,
+ newParent, newParent));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME,
+ oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT:
+ if (parent != null)
+ msgs = ((InternalEObject)parent).eInverseRemove(this,
+ model4interfacesPackage.IMULTI_REF_NON_CONTAINER__ELEMENTS, IMultiRefNonContainer.class, msgs);
+ return basicSetParent((IMultiRefNonContainer)otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT:
+ return basicSetParent(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT:
+ if (resolve)
+ return getParent();
+ return basicGetParent();
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME:
+ return getName();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT:
+ setParent((IMultiRefNonContainer)newValue);
+ return;
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME:
+ setName((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT:
+ setParent((IMultiRefNonContainer)null);
+ return;
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT:
+ return parent != null;
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(')');
+ return result.toString();
+ }
+
+} // ImplMultiRefNonContainedElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefNonContainerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefNonContainerImpl.java index 38df49318e..4859ce8ba3 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefNonContainerImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefNonContainerImpl.java @@ -1,190 +1,190 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement; - -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.EObjectWithInverseResolvingEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Non Container</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainerImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplMultiRefNonContainerImpl extends EObjectImpl implements ImplMultiRefNonContainer -{ - /** - * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList<IMultiRefNonContainedElement> elements; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplMultiRefNonContainerImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplMultiRefNonContainer(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EList<IMultiRefNonContainedElement> getElements() - { - if (elements == null) - { - elements = new EObjectWithInverseResolvingEList<IMultiRefNonContainedElement>(IMultiRefNonContainedElement.class, - this, model4Package.IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS, - model4interfacesPackage.IMULTI_REF_NON_CONTAINED_ELEMENT__PARENT); - } - return elements; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS: - return ((InternalEList<InternalEObject>)(InternalEList<?>)getElements()).basicAdd(otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS: - return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection<? extends IMultiRefNonContainedElement>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // ImplMultiRefNonContainerImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement;
+
+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.EObjectWithInverseResolvingEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import java.util.Collection;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Non Container</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainerImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplMultiRefNonContainerImpl extends EObjectImpl implements ImplMultiRefNonContainer
+{
+ /**
+ * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getElements()
+ * @generated
+ * @ordered
+ */
+ protected EList<IMultiRefNonContainedElement> elements;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplMultiRefNonContainerImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplMultiRefNonContainer();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<IMultiRefNonContainedElement> getElements()
+ {
+ if (elements == null)
+ {
+ elements = new EObjectWithInverseResolvingEList<IMultiRefNonContainedElement>(IMultiRefNonContainedElement.class,
+ this, model4Package.IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS,
+ model4interfacesPackage.IMULTI_REF_NON_CONTAINED_ELEMENT__PARENT);
+ }
+ return elements;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS:
+ return ((InternalEList<InternalEObject>)(InternalEList<?>)getElements()).basicAdd(otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS:
+ return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS:
+ return getElements();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS:
+ getElements().clear();
+ getElements().addAll((Collection<? extends IMultiRefNonContainedElement>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS:
+ getElements().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS:
+ return elements != null && !elements.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // ImplMultiRefNonContainerImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefNonContainerNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefNonContainerNPLImpl.java index 217777b857..6d7a8d1c54 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefNonContainerNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplMultiRefNonContainerNPLImpl.java @@ -1,153 +1,153 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink; - -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.EObjectResolvingEList; - -import java.util.Collection; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Non Container NPL</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainerNPLImpl#getElements <em>Elements - * </em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplMultiRefNonContainerNPLImpl extends EObjectImpl implements ImplMultiRefNonContainerNPL -{ - /** - * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList<IContainedElementNoParentLink> elements; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplMultiRefNonContainerNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplMultiRefNonContainerNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EList<IContainedElementNoParentLink> getElements() - { - if (elements == null) - { - elements = new EObjectResolvingEList<IContainedElementNoParentLink>(IContainedElementNoParentLink.class, this, - model4Package.IMPL_MULTI_REF_NON_CONTAINER_NPL__ELEMENTS); - } - return elements; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_NON_CONTAINER_NPL__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_NON_CONTAINER_NPL__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection<? extends IContainedElementNoParentLink>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_NON_CONTAINER_NPL__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_MULTI_REF_NON_CONTAINER_NPL__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // ImplMultiRefNonContainerNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink;
+
+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.EObjectResolvingEList;
+
+import java.util.Collection;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Non Container NPL</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainerNPLImpl#getElements <em>Elements
+ * </em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplMultiRefNonContainerNPLImpl extends EObjectImpl implements ImplMultiRefNonContainerNPL
+{
+ /**
+ * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getElements()
+ * @generated
+ * @ordered
+ */
+ protected EList<IContainedElementNoParentLink> elements;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplMultiRefNonContainerNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplMultiRefNonContainerNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<IContainedElementNoParentLink> getElements()
+ {
+ if (elements == null)
+ {
+ elements = new EObjectResolvingEList<IContainedElementNoParentLink>(IContainedElementNoParentLink.class, this,
+ model4Package.IMPL_MULTI_REF_NON_CONTAINER_NPL__ELEMENTS);
+ }
+ return elements;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINER_NPL__ELEMENTS:
+ return getElements();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINER_NPL__ELEMENTS:
+ getElements().clear();
+ getElements().addAll((Collection<? extends IContainedElementNoParentLink>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINER_NPL__ELEMENTS:
+ getElements().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINER_NPL__ELEMENTS:
+ return elements != null && !elements.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // ImplMultiRefNonContainerNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefContainedElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefContainedElementImpl.java index db99ab3be2..763d708889 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefContainedElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefContainedElementImpl.java @@ -1,300 +1,300 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Contained Element</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainedElementImpl#getParent <em>Parent</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainedElementImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplSingleRefContainedElementImpl extends EObjectImpl implements ImplSingleRefContainedElement -{ - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplSingleRefContainedElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplSingleRefContainedElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ISingleRefContainer getParent() - { - if (eContainerFeatureID() != model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT) - return null; - return (ISingleRefContainer)eContainer(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetParent(ISingleRefContainer newParent, NotificationChain msgs) - { - msgs = eBasicSetContainer((InternalEObject)newParent, model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT, msgs); - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(ISingleRefContainer newParent) - { - if (newParent != eInternalContainer() - || (eContainerFeatureID() != model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__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, model4interfacesPackage.ISINGLE_REF_CONTAINER__ELEMENT, - ISingleRefContainer.class, msgs); - msgs = basicSetParent(newParent, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT, - newParent, newParent)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return name; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME, - oldName, name)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT: - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - return basicSetParent((ISingleRefContainer)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT: - return basicSetParent(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) - { - switch (eContainerFeatureID()) - { - case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT: - return eInternalContainer().eInverseRemove(this, model4interfacesPackage.ISINGLE_REF_CONTAINER__ELEMENT, - ISingleRefContainer.class, msgs); - } - return super.eBasicRemoveFromContainerFeature(msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT: - return getParent(); - case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT: - setParent((ISingleRefContainer)newValue); - return; - case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT: - setParent((ISingleRefContainer)null); - return; - case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT: - return getParent() != null; - case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} // ImplSingleRefContainedElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Contained Element</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainedElementImpl#getParent <em>Parent</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainedElementImpl#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplSingleRefContainedElementImpl extends EObjectImpl implements ImplSingleRefContainedElement
+{
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplSingleRefContainedElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplSingleRefContainedElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ISingleRefContainer getParent()
+ {
+ if (eContainerFeatureID() != model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT)
+ return null;
+ return (ISingleRefContainer)eContainer();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetParent(ISingleRefContainer newParent, NotificationChain msgs)
+ {
+ msgs = eBasicSetContainer((InternalEObject)newParent, model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT, msgs);
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(ISingleRefContainer newParent)
+ {
+ if (newParent != eInternalContainer()
+ || (eContainerFeatureID() != model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__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, model4interfacesPackage.ISINGLE_REF_CONTAINER__ELEMENT,
+ ISingleRefContainer.class, msgs);
+ msgs = basicSetParent(newParent, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT,
+ newParent, newParent));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME,
+ oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT:
+ if (eInternalContainer() != null)
+ msgs = eBasicRemoveFromContainer(msgs);
+ return basicSetParent((ISingleRefContainer)otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT:
+ return basicSetParent(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
+ {
+ switch (eContainerFeatureID())
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT:
+ return eInternalContainer().eInverseRemove(this, model4interfacesPackage.ISINGLE_REF_CONTAINER__ELEMENT,
+ ISingleRefContainer.class, msgs);
+ }
+ return super.eBasicRemoveFromContainerFeature(msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT:
+ return getParent();
+ case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME:
+ return getName();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT:
+ setParent((ISingleRefContainer)newValue);
+ return;
+ case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME:
+ setName((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT:
+ setParent((ISingleRefContainer)null);
+ return;
+ case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT:
+ return getParent() != null;
+ case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(')');
+ return result.toString();
+ }
+
+} // ImplSingleRefContainedElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefContainerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefContainerImpl.java index 78209b61d8..1ba1588d99 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefContainerImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefContainerImpl.java @@ -1,227 +1,227 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Container</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainerImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplSingleRefContainerImpl extends EObjectImpl implements ImplSingleRefContainer -{ - /** - * The cached value of the '{@link #getElement() <em>Element</em>}' containment reference. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @see #getElement() - * @generated - * @ordered - */ - protected ISingleRefContainedElement element; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplSingleRefContainerImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplSingleRefContainer(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ISingleRefContainedElement getElement() - { - return element; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetElement(ISingleRefContainedElement newElement, NotificationChain msgs) - { - ISingleRefContainedElement oldElement = element; - element = newElement; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT, oldElement, newElement); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(ISingleRefContainedElement newElement) - { - if (newElement != element) - { - NotificationChain msgs = null; - if (element != null) - msgs = ((InternalEObject)element).eInverseRemove(this, - model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT__PARENT, ISingleRefContainedElement.class, msgs); - if (newElement != null) - msgs = ((InternalEObject)newElement).eInverseAdd(this, - model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT__PARENT, ISingleRefContainedElement.class, msgs); - msgs = basicSetElement(newElement, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT, - newElement, newElement)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT: - if (element != null) - msgs = ((InternalEObject)element).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT, null, msgs); - return basicSetElement((ISingleRefContainedElement)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT: - return basicSetElement(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT: - return getElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT: - setElement((ISingleRefContainedElement)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT: - setElement((ISingleRefContainedElement)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT: - return element != null; - } - return super.eIsSet(featureID); - } - -} // ImplSingleRefContainerImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Container</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainerImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplSingleRefContainerImpl extends EObjectImpl implements ImplSingleRefContainer
+{
+ /**
+ * The cached value of the '{@link #getElement() <em>Element</em>}' containment reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getElement()
+ * @generated
+ * @ordered
+ */
+ protected ISingleRefContainedElement element;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplSingleRefContainerImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplSingleRefContainer();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ISingleRefContainedElement getElement()
+ {
+ return element;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetElement(ISingleRefContainedElement newElement, NotificationChain msgs)
+ {
+ ISingleRefContainedElement oldElement = element;
+ element = newElement;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT, oldElement, newElement);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(ISingleRefContainedElement newElement)
+ {
+ if (newElement != element)
+ {
+ NotificationChain msgs = null;
+ if (element != null)
+ msgs = ((InternalEObject)element).eInverseRemove(this,
+ model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT__PARENT, ISingleRefContainedElement.class, msgs);
+ if (newElement != null)
+ msgs = ((InternalEObject)newElement).eInverseAdd(this,
+ model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT__PARENT, ISingleRefContainedElement.class, msgs);
+ msgs = basicSetElement(newElement, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT,
+ newElement, newElement));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT:
+ if (element != null)
+ msgs = ((InternalEObject)element).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT, null, msgs);
+ return basicSetElement((ISingleRefContainedElement)otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT:
+ return basicSetElement(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT:
+ return getElement();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT:
+ setElement((ISingleRefContainedElement)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT:
+ setElement((ISingleRefContainedElement)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINER__ELEMENT:
+ return element != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // ImplSingleRefContainerImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefContainerNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefContainerNPLImpl.java index 5e8134c009..6c404f3914 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefContainerNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefContainerNPLImpl.java @@ -1,207 +1,207 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Container NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainerNPLImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplSingleRefContainerNPLImpl extends EObjectImpl implements ImplSingleRefContainerNPL -{ - /** - * The cached value of the '{@link #getElement() <em>Element</em>}' containment reference. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @see #getElement() - * @generated - * @ordered - */ - protected IContainedElementNoParentLink element; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplSingleRefContainerNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplSingleRefContainerNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public IContainedElementNoParentLink getElement() - { - return element; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetElement(IContainedElementNoParentLink newElement, NotificationChain msgs) - { - IContainedElementNoParentLink oldElement = element; - element = newElement; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT, oldElement, newElement); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(IContainedElementNoParentLink newElement) - { - if (newElement != element) - { - NotificationChain msgs = null; - if (element != null) - msgs = ((InternalEObject)element).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT, null, msgs); - if (newElement != null) - msgs = ((InternalEObject)newElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - - model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT, null, msgs); - msgs = basicSetElement(newElement, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT, - newElement, newElement)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT: - return basicSetElement(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT: - return getElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT: - setElement((IContainedElementNoParentLink)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT: - setElement((IContainedElementNoParentLink)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT: - return element != null; - } - return super.eIsSet(featureID); - } - -} // ImplSingleRefContainerNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Container NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainerNPLImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplSingleRefContainerNPLImpl extends EObjectImpl implements ImplSingleRefContainerNPL
+{
+ /**
+ * The cached value of the '{@link #getElement() <em>Element</em>}' containment reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getElement()
+ * @generated
+ * @ordered
+ */
+ protected IContainedElementNoParentLink element;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplSingleRefContainerNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplSingleRefContainerNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public IContainedElementNoParentLink getElement()
+ {
+ return element;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetElement(IContainedElementNoParentLink newElement, NotificationChain msgs)
+ {
+ IContainedElementNoParentLink oldElement = element;
+ element = newElement;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT, oldElement, newElement);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(IContainedElementNoParentLink newElement)
+ {
+ if (newElement != element)
+ {
+ NotificationChain msgs = null;
+ if (element != null)
+ msgs = ((InternalEObject)element).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT, null, msgs);
+ if (newElement != null)
+ msgs = ((InternalEObject)newElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT, null, msgs);
+ msgs = basicSetElement(newElement, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT,
+ newElement, newElement));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT:
+ return basicSetElement(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT:
+ return getElement();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT:
+ setElement((IContainedElementNoParentLink)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT:
+ setElement((IContainedElementNoParentLink)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT:
+ return element != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // ImplSingleRefContainerNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefNonContainedElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefNonContainedElementImpl.java index d3b0df7fa9..e03c2c92bc 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefNonContainedElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefNonContainedElementImpl.java @@ -1,323 +1,323 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Non Contained Element</b></em> - * '. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainedElementImpl#getParent <em>Parent - * </em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainedElementImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplSingleRefNonContainedElementImpl extends EObjectImpl implements ImplSingleRefNonContainedElement -{ - /** - * The cached value of the '{@link #getParent() <em>Parent</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getParent() - * @generated - * @ordered - */ - protected ISingleRefNonContainer parent; - - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplSingleRefNonContainedElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplSingleRefNonContainedElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ISingleRefNonContainer getParent() - { - if (parent != null && parent.eIsProxy()) - { - InternalEObject oldParent = (InternalEObject)parent; - parent = (ISingleRefNonContainer)eResolveProxy(oldParent); - if (parent != oldParent) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, - model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT, oldParent, parent)); - } - } - return parent; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ISingleRefNonContainer basicGetParent() - { - return parent; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetParent(ISingleRefNonContainer newParent, NotificationChain msgs) - { - ISingleRefNonContainer oldParent = parent; - parent = newParent; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT, oldParent, newParent); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(ISingleRefNonContainer newParent) - { - if (newParent != parent) - { - NotificationChain msgs = null; - if (parent != null) - msgs = ((InternalEObject)parent).eInverseRemove(this, - model4interfacesPackage.ISINGLE_REF_NON_CONTAINER__ELEMENT, ISingleRefNonContainer.class, msgs); - if (newParent != null) - msgs = ((InternalEObject)newParent).eInverseAdd(this, - model4interfacesPackage.ISINGLE_REF_NON_CONTAINER__ELEMENT, ISingleRefNonContainer.class, msgs); - msgs = basicSetParent(newParent, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT, newParent, newParent)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return name; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME, - oldName, name)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT: - if (parent != null) - msgs = ((InternalEObject)parent).eInverseRemove(this, - model4interfacesPackage.ISINGLE_REF_NON_CONTAINER__ELEMENT, ISingleRefNonContainer.class, msgs); - return basicSetParent((ISingleRefNonContainer)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT: - return basicSetParent(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT: - if (resolve) - return getParent(); - return basicGetParent(); - case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT: - setParent((ISingleRefNonContainer)newValue); - return; - case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT: - setParent((ISingleRefNonContainer)null); - return; - case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT: - return parent != null; - case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} // ImplSingleRefNonContainedElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Non Contained Element</b></em>
+ * '. <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainedElementImpl#getParent <em>Parent
+ * </em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainedElementImpl#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplSingleRefNonContainedElementImpl extends EObjectImpl implements ImplSingleRefNonContainedElement
+{
+ /**
+ * The cached value of the '{@link #getParent() <em>Parent</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getParent()
+ * @generated
+ * @ordered
+ */
+ protected ISingleRefNonContainer parent;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplSingleRefNonContainedElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplSingleRefNonContainedElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ISingleRefNonContainer getParent()
+ {
+ if (parent != null && parent.eIsProxy())
+ {
+ InternalEObject oldParent = (InternalEObject)parent;
+ parent = (ISingleRefNonContainer)eResolveProxy(oldParent);
+ if (parent != oldParent)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE,
+ model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT, oldParent, parent));
+ }
+ }
+ return parent;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ISingleRefNonContainer basicGetParent()
+ {
+ return parent;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetParent(ISingleRefNonContainer newParent, NotificationChain msgs)
+ {
+ ISingleRefNonContainer oldParent = parent;
+ parent = newParent;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT, oldParent, newParent);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(ISingleRefNonContainer newParent)
+ {
+ if (newParent != parent)
+ {
+ NotificationChain msgs = null;
+ if (parent != null)
+ msgs = ((InternalEObject)parent).eInverseRemove(this,
+ model4interfacesPackage.ISINGLE_REF_NON_CONTAINER__ELEMENT, ISingleRefNonContainer.class, msgs);
+ if (newParent != null)
+ msgs = ((InternalEObject)newParent).eInverseAdd(this,
+ model4interfacesPackage.ISINGLE_REF_NON_CONTAINER__ELEMENT, ISingleRefNonContainer.class, msgs);
+ msgs = basicSetParent(newParent, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT, newParent, newParent));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME,
+ oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT:
+ if (parent != null)
+ msgs = ((InternalEObject)parent).eInverseRemove(this,
+ model4interfacesPackage.ISINGLE_REF_NON_CONTAINER__ELEMENT, ISingleRefNonContainer.class, msgs);
+ return basicSetParent((ISingleRefNonContainer)otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT:
+ return basicSetParent(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT:
+ if (resolve)
+ return getParent();
+ return basicGetParent();
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME:
+ return getName();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT:
+ setParent((ISingleRefNonContainer)newValue);
+ return;
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME:
+ setName((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT:
+ setParent((ISingleRefNonContainer)null);
+ return;
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT:
+ return parent != null;
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(')');
+ return result.toString();
+ }
+
+} // ImplSingleRefNonContainedElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefNonContainerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefNonContainerImpl.java index 61b3c8a552..647980dda0 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefNonContainerImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefNonContainerImpl.java @@ -1,253 +1,253 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Non Container</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainerImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplSingleRefNonContainerImpl extends EObjectImpl implements ImplSingleRefNonContainer -{ - /** - * The cached value of the '{@link #getElement() <em>Element</em>}' reference. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @see #getElement() - * @generated - * @ordered - */ - protected ISingleRefNonContainedElement element; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplSingleRefNonContainerImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplSingleRefNonContainer(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ISingleRefNonContainedElement getElement() - { - if (element != null && element.eIsProxy()) - { - InternalEObject oldElement = (InternalEObject)element; - element = (ISingleRefNonContainedElement)eResolveProxy(oldElement); - if (element != oldElement) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, - model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT, oldElement, element)); - } - } - return element; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ISingleRefNonContainedElement basicGetElement() - { - return element; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetElement(ISingleRefNonContainedElement newElement, NotificationChain msgs) - { - ISingleRefNonContainedElement oldElement = element; - element = newElement; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT, oldElement, newElement); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(ISingleRefNonContainedElement newElement) - { - if (newElement != element) - { - NotificationChain msgs = null; - if (element != null) - msgs = ((InternalEObject)element).eInverseRemove(this, - model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT__PARENT, ISingleRefNonContainedElement.class, - msgs); - if (newElement != null) - msgs = ((InternalEObject)newElement).eInverseAdd(this, - model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT__PARENT, ISingleRefNonContainedElement.class, - msgs); - msgs = basicSetElement(newElement, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT, - newElement, newElement)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT: - if (element != null) - msgs = ((InternalEObject)element).eInverseRemove(this, - model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT__PARENT, ISingleRefNonContainedElement.class, - msgs); - return basicSetElement((ISingleRefNonContainedElement)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT: - return basicSetElement(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT: - if (resolve) - return getElement(); - return basicGetElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT: - setElement((ISingleRefNonContainedElement)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT: - setElement((ISingleRefNonContainedElement)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT: - return element != null; - } - return super.eIsSet(featureID); - } - -} // ImplSingleRefNonContainerImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Non Container</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainerImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplSingleRefNonContainerImpl extends EObjectImpl implements ImplSingleRefNonContainer
+{
+ /**
+ * The cached value of the '{@link #getElement() <em>Element</em>}' reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getElement()
+ * @generated
+ * @ordered
+ */
+ protected ISingleRefNonContainedElement element;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplSingleRefNonContainerImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplSingleRefNonContainer();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ISingleRefNonContainedElement getElement()
+ {
+ if (element != null && element.eIsProxy())
+ {
+ InternalEObject oldElement = (InternalEObject)element;
+ element = (ISingleRefNonContainedElement)eResolveProxy(oldElement);
+ if (element != oldElement)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE,
+ model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT, oldElement, element));
+ }
+ }
+ return element;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ISingleRefNonContainedElement basicGetElement()
+ {
+ return element;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetElement(ISingleRefNonContainedElement newElement, NotificationChain msgs)
+ {
+ ISingleRefNonContainedElement oldElement = element;
+ element = newElement;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT, oldElement, newElement);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(ISingleRefNonContainedElement newElement)
+ {
+ if (newElement != element)
+ {
+ NotificationChain msgs = null;
+ if (element != null)
+ msgs = ((InternalEObject)element).eInverseRemove(this,
+ model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT__PARENT, ISingleRefNonContainedElement.class,
+ msgs);
+ if (newElement != null)
+ msgs = ((InternalEObject)newElement).eInverseAdd(this,
+ model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT__PARENT, ISingleRefNonContainedElement.class,
+ msgs);
+ msgs = basicSetElement(newElement, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT,
+ newElement, newElement));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT:
+ if (element != null)
+ msgs = ((InternalEObject)element).eInverseRemove(this,
+ model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT__PARENT, ISingleRefNonContainedElement.class,
+ msgs);
+ return basicSetElement((ISingleRefNonContainedElement)otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT:
+ return basicSetElement(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT:
+ if (resolve)
+ return getElement();
+ return basicGetElement();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT:
+ setElement((ISingleRefNonContainedElement)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT:
+ setElement((ISingleRefNonContainedElement)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT:
+ return element != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // ImplSingleRefNonContainerImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefNonContainerNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefNonContainerNPLImpl.java index ffc51ae8b1..47915b3fa4 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefNonContainerNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/ImplSingleRefNonContainerNPLImpl.java @@ -1,182 +1,182 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink; - -import org.eclipse.emf.common.notify.Notification; -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Non Container NPL</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainerNPLImpl#getElement <em>Element</em>} - * </li> - * </ul> - * </p> - * - * @generated - */ -public class ImplSingleRefNonContainerNPLImpl extends EObjectImpl implements ImplSingleRefNonContainerNPL -{ - /** - * The cached value of the '{@link #getElement() <em>Element</em>}' reference. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @see #getElement() - * @generated - * @ordered - */ - protected IContainedElementNoParentLink element; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplSingleRefNonContainerNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplSingleRefNonContainerNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public IContainedElementNoParentLink getElement() - { - if (element != null && element.eIsProxy()) - { - InternalEObject oldElement = (InternalEObject)element; - element = (IContainedElementNoParentLink)eResolveProxy(oldElement); - if (element != oldElement) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, - model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL__ELEMENT, oldElement, element)); - } - } - return element; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public IContainedElementNoParentLink basicGetElement() - { - return element; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(IContainedElementNoParentLink newElement) - { - IContainedElementNoParentLink oldElement = element; - element = newElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL__ELEMENT, - oldElement, element)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL__ELEMENT: - if (resolve) - return getElement(); - return basicGetElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL__ELEMENT: - setElement((IContainedElementNoParentLink)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL__ELEMENT: - setElement((IContainedElementNoParentLink)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL__ELEMENT: - return element != null; - } - return super.eIsSet(featureID); - } - -} // ImplSingleRefNonContainerNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink;
+
+import org.eclipse.emf.common.notify.Notification;
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Non Container NPL</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainerNPLImpl#getElement <em>Element</em>}
+ * </li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplSingleRefNonContainerNPLImpl extends EObjectImpl implements ImplSingleRefNonContainerNPL
+{
+ /**
+ * The cached value of the '{@link #getElement() <em>Element</em>}' reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getElement()
+ * @generated
+ * @ordered
+ */
+ protected IContainedElementNoParentLink element;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplSingleRefNonContainerNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplSingleRefNonContainerNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public IContainedElementNoParentLink getElement()
+ {
+ if (element != null && element.eIsProxy())
+ {
+ InternalEObject oldElement = (InternalEObject)element;
+ element = (IContainedElementNoParentLink)eResolveProxy(oldElement);
+ if (element != oldElement)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE,
+ model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL__ELEMENT, oldElement, element));
+ }
+ }
+ return element;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public IContainedElementNoParentLink basicGetElement()
+ {
+ return element;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(IContainedElementNoParentLink newElement)
+ {
+ IContainedElementNoParentLink oldElement = element;
+ element = newElement;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL__ELEMENT,
+ oldElement, element));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL__ELEMENT:
+ if (resolve)
+ return getElement();
+ return basicGetElement();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL__ELEMENT:
+ setElement((IContainedElementNoParentLink)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL__ELEMENT:
+ setElement((IContainedElementNoParentLink)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL__ELEMENT:
+ return element != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // ImplSingleRefNonContainerNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/MultiContainedElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/MultiContainedElementImpl.java index 69087df14e..c5dfe8ee1f 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/MultiContainedElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/MultiContainedElementImpl.java @@ -1,298 +1,298 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.MultiContainedElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiContained; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Multi Contained Element</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiContainedElementImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiContainedElementImpl#getParent <em>Parent</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MultiContainedElementImpl extends EObjectImpl implements MultiContainedElement -{ - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected MultiContainedElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getMultiContainedElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return name; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.MULTI_CONTAINED_ELEMENT__NAME, oldName, name)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiContained getParent() - { - if (eContainerFeatureID() != model4Package.MULTI_CONTAINED_ELEMENT__PARENT) - return null; - return (RefMultiContained)eContainer(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetParent(RefMultiContained newParent, NotificationChain msgs) - { - msgs = eBasicSetContainer((InternalEObject)newParent, model4Package.MULTI_CONTAINED_ELEMENT__PARENT, msgs); - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(RefMultiContained newParent) - { - if (newParent != eInternalContainer() - || (eContainerFeatureID() != model4Package.MULTI_CONTAINED_ELEMENT__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, model4Package.REF_MULTI_CONTAINED__ELEMENTS, - RefMultiContained.class, msgs); - msgs = basicSetParent(newParent, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.MULTI_CONTAINED_ELEMENT__PARENT, newParent, - newParent)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.MULTI_CONTAINED_ELEMENT__PARENT: - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - return basicSetParent((RefMultiContained)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.MULTI_CONTAINED_ELEMENT__PARENT: - return basicSetParent(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) - { - switch (eContainerFeatureID()) - { - case model4Package.MULTI_CONTAINED_ELEMENT__PARENT: - return eInternalContainer().eInverseRemove(this, model4Package.REF_MULTI_CONTAINED__ELEMENTS, - RefMultiContained.class, msgs); - } - return super.eBasicRemoveFromContainerFeature(msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.MULTI_CONTAINED_ELEMENT__NAME: - return getName(); - case model4Package.MULTI_CONTAINED_ELEMENT__PARENT: - return getParent(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.MULTI_CONTAINED_ELEMENT__NAME: - setName((String)newValue); - return; - case model4Package.MULTI_CONTAINED_ELEMENT__PARENT: - setParent((RefMultiContained)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.MULTI_CONTAINED_ELEMENT__NAME: - setName(NAME_EDEFAULT); - return; - case model4Package.MULTI_CONTAINED_ELEMENT__PARENT: - setParent((RefMultiContained)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.MULTI_CONTAINED_ELEMENT__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case model4Package.MULTI_CONTAINED_ELEMENT__PARENT: - return getParent() != null; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} // MultiContainedElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.MultiContainedElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContained;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Multi Contained Element</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiContainedElementImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiContainedElementImpl#getParent <em>Parent</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class MultiContainedElementImpl extends EObjectImpl implements MultiContainedElement
+{
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected MultiContainedElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getMultiContainedElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.MULTI_CONTAINED_ELEMENT__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiContained getParent()
+ {
+ if (eContainerFeatureID() != model4Package.MULTI_CONTAINED_ELEMENT__PARENT)
+ return null;
+ return (RefMultiContained)eContainer();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetParent(RefMultiContained newParent, NotificationChain msgs)
+ {
+ msgs = eBasicSetContainer((InternalEObject)newParent, model4Package.MULTI_CONTAINED_ELEMENT__PARENT, msgs);
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(RefMultiContained newParent)
+ {
+ if (newParent != eInternalContainer()
+ || (eContainerFeatureID() != model4Package.MULTI_CONTAINED_ELEMENT__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, model4Package.REF_MULTI_CONTAINED__ELEMENTS,
+ RefMultiContained.class, msgs);
+ msgs = basicSetParent(newParent, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.MULTI_CONTAINED_ELEMENT__PARENT, newParent,
+ newParent));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_CONTAINED_ELEMENT__PARENT:
+ if (eInternalContainer() != null)
+ msgs = eBasicRemoveFromContainer(msgs);
+ return basicSetParent((RefMultiContained)otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_CONTAINED_ELEMENT__PARENT:
+ return basicSetParent(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
+ {
+ switch (eContainerFeatureID())
+ {
+ case model4Package.MULTI_CONTAINED_ELEMENT__PARENT:
+ return eInternalContainer().eInverseRemove(this, model4Package.REF_MULTI_CONTAINED__ELEMENTS,
+ RefMultiContained.class, msgs);
+ }
+ return super.eBasicRemoveFromContainerFeature(msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_CONTAINED_ELEMENT__NAME:
+ return getName();
+ case model4Package.MULTI_CONTAINED_ELEMENT__PARENT:
+ return getParent();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_CONTAINED_ELEMENT__NAME:
+ setName((String)newValue);
+ return;
+ case model4Package.MULTI_CONTAINED_ELEMENT__PARENT:
+ setParent((RefMultiContained)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_CONTAINED_ELEMENT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case model4Package.MULTI_CONTAINED_ELEMENT__PARENT:
+ setParent((RefMultiContained)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_CONTAINED_ELEMENT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case model4Package.MULTI_CONTAINED_ELEMENT__PARENT:
+ return getParent() != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(')');
+ return result.toString();
+ }
+
+} // MultiContainedElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/MultiNonContainedElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/MultiNonContainedElementImpl.java index 1f186728a0..590bd08d31 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/MultiNonContainedElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/MultiNonContainedElementImpl.java @@ -1,321 +1,321 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Multi Non Contained Element</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiNonContainedElementImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiNonContainedElementImpl#getParent <em>Parent</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MultiNonContainedElementImpl extends EObjectImpl implements MultiNonContainedElement -{ - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getParent() <em>Parent</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getParent() - * @generated - * @ordered - */ - protected RefMultiNonContained parent; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected MultiNonContainedElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getMultiNonContainedElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return name; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.MULTI_NON_CONTAINED_ELEMENT__NAME, oldName, - name)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiNonContained getParent() - { - if (parent != null && parent.eIsProxy()) - { - InternalEObject oldParent = (InternalEObject)parent; - parent = (RefMultiNonContained)eResolveProxy(oldParent); - if (parent != oldParent) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT, - oldParent, parent)); - } - } - return parent; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiNonContained basicGetParent() - { - return parent; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetParent(RefMultiNonContained newParent, NotificationChain msgs) - { - RefMultiNonContained oldParent = parent; - parent = newParent; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT, oldParent, newParent); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(RefMultiNonContained newParent) - { - if (newParent != parent) - { - NotificationChain msgs = null; - if (parent != null) - msgs = ((InternalEObject)parent).eInverseRemove(this, model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS, - RefMultiNonContained.class, msgs); - if (newParent != null) - msgs = ((InternalEObject)newParent).eInverseAdd(this, model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS, - RefMultiNonContained.class, msgs); - msgs = basicSetParent(newParent, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT, - newParent, newParent)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT: - if (parent != null) - msgs = ((InternalEObject)parent).eInverseRemove(this, model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS, - RefMultiNonContained.class, msgs); - return basicSetParent((RefMultiNonContained)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT: - return basicSetParent(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.MULTI_NON_CONTAINED_ELEMENT__NAME: - return getName(); - case model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT: - if (resolve) - return getParent(); - return basicGetParent(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.MULTI_NON_CONTAINED_ELEMENT__NAME: - setName((String)newValue); - return; - case model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT: - setParent((RefMultiNonContained)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.MULTI_NON_CONTAINED_ELEMENT__NAME: - setName(NAME_EDEFAULT); - return; - case model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT: - setParent((RefMultiNonContained)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.MULTI_NON_CONTAINED_ELEMENT__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT: - return parent != null; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} // MultiNonContainedElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Multi Non Contained Element</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiNonContainedElementImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiNonContainedElementImpl#getParent <em>Parent</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class MultiNonContainedElementImpl extends EObjectImpl implements MultiNonContainedElement
+{
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getParent() <em>Parent</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getParent()
+ * @generated
+ * @ordered
+ */
+ protected RefMultiNonContained parent;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected MultiNonContainedElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getMultiNonContainedElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.MULTI_NON_CONTAINED_ELEMENT__NAME, oldName,
+ name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiNonContained getParent()
+ {
+ if (parent != null && parent.eIsProxy())
+ {
+ InternalEObject oldParent = (InternalEObject)parent;
+ parent = (RefMultiNonContained)eResolveProxy(oldParent);
+ if (parent != oldParent)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT,
+ oldParent, parent));
+ }
+ }
+ return parent;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiNonContained basicGetParent()
+ {
+ return parent;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetParent(RefMultiNonContained newParent, NotificationChain msgs)
+ {
+ RefMultiNonContained oldParent = parent;
+ parent = newParent;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT, oldParent, newParent);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(RefMultiNonContained newParent)
+ {
+ if (newParent != parent)
+ {
+ NotificationChain msgs = null;
+ if (parent != null)
+ msgs = ((InternalEObject)parent).eInverseRemove(this, model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS,
+ RefMultiNonContained.class, msgs);
+ if (newParent != null)
+ msgs = ((InternalEObject)newParent).eInverseAdd(this, model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS,
+ RefMultiNonContained.class, msgs);
+ msgs = basicSetParent(newParent, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT,
+ newParent, newParent));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT:
+ if (parent != null)
+ msgs = ((InternalEObject)parent).eInverseRemove(this, model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS,
+ RefMultiNonContained.class, msgs);
+ return basicSetParent((RefMultiNonContained)otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT:
+ return basicSetParent(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_NON_CONTAINED_ELEMENT__NAME:
+ return getName();
+ case model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT:
+ if (resolve)
+ return getParent();
+ return basicGetParent();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_NON_CONTAINED_ELEMENT__NAME:
+ setName((String)newValue);
+ return;
+ case model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT:
+ setParent((RefMultiNonContained)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_NON_CONTAINED_ELEMENT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT:
+ setParent((RefMultiNonContained)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_NON_CONTAINED_ELEMENT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT:
+ return parent != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(')');
+ return result.toString();
+ }
+
+} // MultiNonContainedElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/MultiNonContainedUnsettableElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/MultiNonContainedUnsettableElementImpl.java index 3bd982ab2e..87da8650eb 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/MultiNonContainedUnsettableElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/MultiNonContainedUnsettableElementImpl.java @@ -1,397 +1,397 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Multi Non Contained Unsettable Element</b></em> - * '. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiNonContainedUnsettableElementImpl#getName <em>Name</em>} - * </li> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiNonContainedUnsettableElementImpl#getParent <em>Parent - * </em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MultiNonContainedUnsettableElementImpl extends EObjectImpl implements MultiNonContainedUnsettableElement -{ - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getParent() <em>Parent</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getParent() - * @generated - * @ordered - */ - protected RefMultiNonContainedUnsettable parent; - - /** - * This is true if the Parent reference has been set. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - protected boolean parentESet; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected MultiNonContainedUnsettableElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getMultiNonContainedUnsettableElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return name; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME, - oldName, name)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiNonContainedUnsettable getParent() - { - if (parent != null && parent.eIsProxy()) - { - InternalEObject oldParent = (InternalEObject)parent; - parent = (RefMultiNonContainedUnsettable)eResolveProxy(oldParent); - if (parent != oldParent) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, - model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT, oldParent, parent)); - } - } - return parent; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiNonContainedUnsettable basicGetParent() - { - return parent; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetParent(RefMultiNonContainedUnsettable newParent, NotificationChain msgs) - { - RefMultiNonContainedUnsettable oldParent = parent; - parent = newParent; - boolean oldParentESet = parentESet; - parentESet = true; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT, oldParent, newParent, !oldParentESet); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(RefMultiNonContainedUnsettable newParent) - { - if (newParent != parent) - { - NotificationChain msgs = null; - if (parent != null) - msgs = ((InternalEObject)parent).eInverseRemove(this, - model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS, RefMultiNonContainedUnsettable.class, msgs); - if (newParent != null) - msgs = ((InternalEObject)newParent).eInverseAdd(this, - model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS, RefMultiNonContainedUnsettable.class, msgs); - msgs = basicSetParent(newParent, msgs); - if (msgs != null) - msgs.dispatch(); - } - else - { - boolean oldParentESet = parentESet; - parentESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT, newParent, newParent, !oldParentESet)); - } - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicUnsetParent(NotificationChain msgs) - { - RefMultiNonContainedUnsettable oldParent = parent; - parent = null; - boolean oldParentESet = parentESet; - parentESet = false; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET, - model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT, oldParent, null, oldParentESet); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void unsetParent() - { - if (parent != null) - { - NotificationChain msgs = null; - msgs = ((InternalEObject)parent).eInverseRemove(this, model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS, - RefMultiNonContainedUnsettable.class, msgs); - msgs = basicUnsetParent(msgs); - if (msgs != null) - msgs.dispatch(); - } - else - { - boolean oldParentESet = parentESet; - parentESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, - model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT, null, null, oldParentESet)); - } - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public boolean isSetParent() - { - return parentESet; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT: - if (parent != null) - msgs = ((InternalEObject)parent).eInverseRemove(this, - model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS, RefMultiNonContainedUnsettable.class, msgs); - return basicSetParent((RefMultiNonContainedUnsettable)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT: - return basicUnsetParent(msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME: - return getName(); - case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT: - if (resolve) - return getParent(); - return basicGetParent(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME: - setName((String)newValue); - return; - case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT: - setParent((RefMultiNonContainedUnsettable)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME: - setName(NAME_EDEFAULT); - return; - case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT: - unsetParent(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT: - return isSetParent(); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} // MultiNonContainedUnsettableElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Multi Non Contained Unsettable Element</b></em>
+ * '. <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiNonContainedUnsettableElementImpl#getName <em>Name</em>}
+ * </li>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiNonContainedUnsettableElementImpl#getParent <em>Parent
+ * </em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class MultiNonContainedUnsettableElementImpl extends EObjectImpl implements MultiNonContainedUnsettableElement
+{
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getParent() <em>Parent</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getParent()
+ * @generated
+ * @ordered
+ */
+ protected RefMultiNonContainedUnsettable parent;
+
+ /**
+ * This is true if the Parent reference has been set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ protected boolean parentESet;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected MultiNonContainedUnsettableElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getMultiNonContainedUnsettableElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME,
+ oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiNonContainedUnsettable getParent()
+ {
+ if (parent != null && parent.eIsProxy())
+ {
+ InternalEObject oldParent = (InternalEObject)parent;
+ parent = (RefMultiNonContainedUnsettable)eResolveProxy(oldParent);
+ if (parent != oldParent)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE,
+ model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT, oldParent, parent));
+ }
+ }
+ return parent;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiNonContainedUnsettable basicGetParent()
+ {
+ return parent;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetParent(RefMultiNonContainedUnsettable newParent, NotificationChain msgs)
+ {
+ RefMultiNonContainedUnsettable oldParent = parent;
+ parent = newParent;
+ boolean oldParentESet = parentESet;
+ parentESet = true;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT, oldParent, newParent, !oldParentESet);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(RefMultiNonContainedUnsettable newParent)
+ {
+ if (newParent != parent)
+ {
+ NotificationChain msgs = null;
+ if (parent != null)
+ msgs = ((InternalEObject)parent).eInverseRemove(this,
+ model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS, RefMultiNonContainedUnsettable.class, msgs);
+ if (newParent != null)
+ msgs = ((InternalEObject)newParent).eInverseAdd(this,
+ model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS, RefMultiNonContainedUnsettable.class, msgs);
+ msgs = basicSetParent(newParent, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else
+ {
+ boolean oldParentESet = parentESet;
+ parentESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT, newParent, newParent, !oldParentESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicUnsetParent(NotificationChain msgs)
+ {
+ RefMultiNonContainedUnsettable oldParent = parent;
+ parent = null;
+ boolean oldParentESet = parentESet;
+ parentESet = false;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.UNSET,
+ model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT, oldParent, null, oldParentESet);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetParent()
+ {
+ if (parent != null)
+ {
+ NotificationChain msgs = null;
+ msgs = ((InternalEObject)parent).eInverseRemove(this, model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS,
+ RefMultiNonContainedUnsettable.class, msgs);
+ msgs = basicUnsetParent(msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else
+ {
+ boolean oldParentESet = parentESet;
+ parentESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
+ model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT, null, null, oldParentESet));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetParent()
+ {
+ return parentESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT:
+ if (parent != null)
+ msgs = ((InternalEObject)parent).eInverseRemove(this,
+ model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS, RefMultiNonContainedUnsettable.class, msgs);
+ return basicSetParent((RefMultiNonContainedUnsettable)otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT:
+ return basicUnsetParent(msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME:
+ return getName();
+ case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT:
+ if (resolve)
+ return getParent();
+ return basicGetParent();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME:
+ setName((String)newValue);
+ return;
+ case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT:
+ setParent((RefMultiNonContainedUnsettable)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT:
+ unsetParent();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT:
+ return isSetParent();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(')');
+ return result.toString();
+ }
+
+} // MultiNonContainedUnsettableElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiContainedImpl.java index 0859c656ef..57e6ad8d76 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiContainedImpl.java @@ -1,188 +1,188 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.MultiContainedElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiContained; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiContainedImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefMultiContainedImpl extends EObjectImpl implements RefMultiContained -{ - /** - * The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList<MultiContainedElement> elements; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefMultiContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefMultiContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EList<MultiContainedElement> getElements() - { - if (elements == null) - { - elements = new EObjectContainmentWithInverseEList<MultiContainedElement>(MultiContainedElement.class, this, - model4Package.REF_MULTI_CONTAINED__ELEMENTS, model4Package.MULTI_CONTAINED_ELEMENT__PARENT); - } - return elements; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.REF_MULTI_CONTAINED__ELEMENTS: - return ((InternalEList<InternalEObject>)(InternalEList<?>)getElements()).basicAdd(otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.REF_MULTI_CONTAINED__ELEMENTS: - return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.REF_MULTI_CONTAINED__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.REF_MULTI_CONTAINED__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection<? extends MultiContainedElement>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.REF_MULTI_CONTAINED__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.REF_MULTI_CONTAINED__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // RefMultiContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.MultiContainedElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContained;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import java.util.Collection;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiContainedImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefMultiContainedImpl extends EObjectImpl implements RefMultiContained
+{
+ /**
+ * The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getElements()
+ * @generated
+ * @ordered
+ */
+ protected EList<MultiContainedElement> elements;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefMultiContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefMultiContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<MultiContainedElement> getElements()
+ {
+ if (elements == null)
+ {
+ elements = new EObjectContainmentWithInverseEList<MultiContainedElement>(MultiContainedElement.class, this,
+ model4Package.REF_MULTI_CONTAINED__ELEMENTS, model4Package.MULTI_CONTAINED_ELEMENT__PARENT);
+ }
+ return elements;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_CONTAINED__ELEMENTS:
+ return ((InternalEList<InternalEObject>)(InternalEList<?>)getElements()).basicAdd(otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_CONTAINED__ELEMENTS:
+ return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_CONTAINED__ELEMENTS:
+ return getElements();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_CONTAINED__ELEMENTS:
+ getElements().clear();
+ getElements().addAll((Collection<? extends MultiContainedElement>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_CONTAINED__ELEMENTS:
+ getElements().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_CONTAINED__ELEMENTS:
+ return elements != null && !elements.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // RefMultiContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiContainedNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiContainedNPLImpl.java index dba1c19b12..093d90a6e4 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiContainedNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiContainedNPLImpl.java @@ -1,171 +1,171 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; -import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Contained NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiContainedNPLImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefMultiContainedNPLImpl extends EObjectImpl implements RefMultiContainedNPL -{ - /** - * The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList<ContainedElementNoOpposite> elements; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefMultiContainedNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefMultiContainedNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EList<ContainedElementNoOpposite> getElements() - { - if (elements == null) - { - elements = new EObjectContainmentEList<ContainedElementNoOpposite>(ContainedElementNoOpposite.class, this, - model4Package.REF_MULTI_CONTAINED_NPL__ELEMENTS); - } - return elements; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.REF_MULTI_CONTAINED_NPL__ELEMENTS: - return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.REF_MULTI_CONTAINED_NPL__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.REF_MULTI_CONTAINED_NPL__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection<? extends ContainedElementNoOpposite>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.REF_MULTI_CONTAINED_NPL__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.REF_MULTI_CONTAINED_NPL__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // RefMultiContainedNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Contained NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiContainedNPLImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefMultiContainedNPLImpl extends EObjectImpl implements RefMultiContainedNPL
+{
+ /**
+ * The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getElements()
+ * @generated
+ * @ordered
+ */
+ protected EList<ContainedElementNoOpposite> elements;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefMultiContainedNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefMultiContainedNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<ContainedElementNoOpposite> getElements()
+ {
+ if (elements == null)
+ {
+ elements = new EObjectContainmentEList<ContainedElementNoOpposite>(ContainedElementNoOpposite.class, this,
+ model4Package.REF_MULTI_CONTAINED_NPL__ELEMENTS);
+ }
+ return elements;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_CONTAINED_NPL__ELEMENTS:
+ return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_CONTAINED_NPL__ELEMENTS:
+ return getElements();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_CONTAINED_NPL__ELEMENTS:
+ getElements().clear();
+ getElements().addAll((Collection<? extends ContainedElementNoOpposite>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_CONTAINED_NPL__ELEMENTS:
+ getElements().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_CONTAINED_NPL__ELEMENTS:
+ return elements != null && !elements.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // RefMultiContainedNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiNonContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiNonContainedImpl.java index 90143307f3..af5365b361 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiNonContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiNonContainedImpl.java @@ -1,188 +1,188 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained; - -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.EObjectWithInverseResolvingEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefMultiNonContainedImpl extends EObjectImpl implements RefMultiNonContained -{ - /** - * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList<MultiNonContainedElement> elements; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefMultiNonContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefMultiNonContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EList<MultiNonContainedElement> getElements() - { - if (elements == null) - { - elements = new EObjectWithInverseResolvingEList<MultiNonContainedElement>(MultiNonContainedElement.class, this, - model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS, model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT); - } - return elements; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS: - return ((InternalEList<InternalEObject>)(InternalEList<?>)getElements()).basicAdd(otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS: - return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection<? extends MultiNonContainedElement>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // RefMultiNonContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained;
+
+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.EObjectWithInverseResolvingEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import java.util.Collection;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefMultiNonContainedImpl extends EObjectImpl implements RefMultiNonContained
+{
+ /**
+ * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getElements()
+ * @generated
+ * @ordered
+ */
+ protected EList<MultiNonContainedElement> elements;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefMultiNonContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefMultiNonContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<MultiNonContainedElement> getElements()
+ {
+ if (elements == null)
+ {
+ elements = new EObjectWithInverseResolvingEList<MultiNonContainedElement>(MultiNonContainedElement.class, this,
+ model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS, model4Package.MULTI_NON_CONTAINED_ELEMENT__PARENT);
+ }
+ return elements;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS:
+ return ((InternalEList<InternalEObject>)(InternalEList<?>)getElements()).basicAdd(otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS:
+ return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS:
+ return getElements();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS:
+ getElements().clear();
+ getElements().addAll((Collection<? extends MultiNonContainedElement>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS:
+ getElements().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_NON_CONTAINED__ELEMENTS:
+ return elements != null && !elements.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // RefMultiNonContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiNonContainedNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiNonContainedNPLImpl.java index 16c16a01e8..12c5def390 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiNonContainedNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiNonContainedNPLImpl.java @@ -1,152 +1,152 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL; - -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.EObjectResolvingEList; - -import java.util.Collection; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Non Contained NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedNPLImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefMultiNonContainedNPLImpl extends EObjectImpl implements RefMultiNonContainedNPL -{ - /** - * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList<ContainedElementNoOpposite> elements; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefMultiNonContainedNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefMultiNonContainedNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EList<ContainedElementNoOpposite> getElements() - { - if (elements == null) - { - elements = new EObjectResolvingEList<ContainedElementNoOpposite>(ContainedElementNoOpposite.class, this, - model4Package.REF_MULTI_NON_CONTAINED_NPL__ELEMENTS); - } - return elements; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.REF_MULTI_NON_CONTAINED_NPL__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.REF_MULTI_NON_CONTAINED_NPL__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection<? extends ContainedElementNoOpposite>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.REF_MULTI_NON_CONTAINED_NPL__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.REF_MULTI_NON_CONTAINED_NPL__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - -} // RefMultiNonContainedNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL;
+
+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.EObjectResolvingEList;
+
+import java.util.Collection;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Non Contained NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedNPLImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefMultiNonContainedNPLImpl extends EObjectImpl implements RefMultiNonContainedNPL
+{
+ /**
+ * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getElements()
+ * @generated
+ * @ordered
+ */
+ protected EList<ContainedElementNoOpposite> elements;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefMultiNonContainedNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefMultiNonContainedNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<ContainedElementNoOpposite> getElements()
+ {
+ if (elements == null)
+ {
+ elements = new EObjectResolvingEList<ContainedElementNoOpposite>(ContainedElementNoOpposite.class, this,
+ model4Package.REF_MULTI_NON_CONTAINED_NPL__ELEMENTS);
+ }
+ return elements;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_NON_CONTAINED_NPL__ELEMENTS:
+ return getElements();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_NON_CONTAINED_NPL__ELEMENTS:
+ getElements().clear();
+ getElements().addAll((Collection<? extends ContainedElementNoOpposite>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_NON_CONTAINED_NPL__ELEMENTS:
+ getElements().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_NON_CONTAINED_NPL__ELEMENTS:
+ return elements != null && !elements.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // RefMultiNonContainedNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiNonContainedUnsettableImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiNonContainedUnsettableImpl.java index 2703460d10..e7849574d9 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiNonContainedUnsettableImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefMultiNonContainedUnsettableImpl.java @@ -1,211 +1,211 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable; - -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.EObjectWithInverseResolvingEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Non Contained Unsettable</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedUnsettableImpl#getElements <em>Elements - * </em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefMultiNonContainedUnsettableImpl extends EObjectImpl implements RefMultiNonContainedUnsettable -{ - /** - * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList<MultiNonContainedUnsettableElement> elements; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefMultiNonContainedUnsettableImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefMultiNonContainedUnsettable(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EList<MultiNonContainedUnsettableElement> getElements() - { - if (elements == null) - { - elements = new EObjectWithInverseResolvingEList.Unsettable<MultiNonContainedUnsettableElement>( - MultiNonContainedUnsettableElement.class, this, model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS, - model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT); - } - return elements; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void unsetElements() - { - if (elements != null) - ((InternalEList.Unsettable<?>)elements).unset(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public boolean isSetElements() - { - return elements != null && ((InternalEList.Unsettable<?>)elements).isSet(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS: - return ((InternalEList<InternalEObject>)(InternalEList<?>)getElements()).basicAdd(otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS: - return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection<? extends MultiNonContainedUnsettableElement>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS: - unsetElements(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS: - return isSetElements(); - } - return super.eIsSet(featureID); - } - -} // RefMultiNonContainedUnsettableImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable;
+
+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.EObjectWithInverseResolvingEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import java.util.Collection;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Non Contained Unsettable</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedUnsettableImpl#getElements <em>Elements
+ * </em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefMultiNonContainedUnsettableImpl extends EObjectImpl implements RefMultiNonContainedUnsettable
+{
+ /**
+ * The cached value of the '{@link #getElements() <em>Elements</em>}' reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getElements()
+ * @generated
+ * @ordered
+ */
+ protected EList<MultiNonContainedUnsettableElement> elements;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefMultiNonContainedUnsettableImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefMultiNonContainedUnsettable();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<MultiNonContainedUnsettableElement> getElements()
+ {
+ if (elements == null)
+ {
+ elements = new EObjectWithInverseResolvingEList.Unsettable<MultiNonContainedUnsettableElement>(
+ MultiNonContainedUnsettableElement.class, this, model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS,
+ model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT);
+ }
+ return elements;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetElements()
+ {
+ if (elements != null)
+ ((InternalEList.Unsettable<?>)elements).unset();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetElements()
+ {
+ return elements != null && ((InternalEList.Unsettable<?>)elements).isSet();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS:
+ return ((InternalEList<InternalEObject>)(InternalEList<?>)getElements()).basicAdd(otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS:
+ return ((InternalEList<?>)getElements()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS:
+ return getElements();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS:
+ getElements().clear();
+ getElements().addAll((Collection<? extends MultiNonContainedUnsettableElement>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS:
+ unsetElements();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS:
+ return isSetElements();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // RefMultiNonContainedUnsettableImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefSingleContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefSingleContainedImpl.java index 462b781abe..ebe16a7af0 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefSingleContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefSingleContainedImpl.java @@ -1,226 +1,226 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.RefSingleContained; -import org.eclipse.emf.cdo.tests.model4.SingleContainedElement; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Single Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleContainedImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefSingleContainedImpl extends EObjectImpl implements RefSingleContained -{ - /** - * The cached value of the '{@link #getElement() <em>Element</em>}' containment reference. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @see #getElement() - * @generated - * @ordered - */ - protected SingleContainedElement element; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefSingleContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefSingleContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public SingleContainedElement getElement() - { - return element; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetElement(SingleContainedElement newElement, NotificationChain msgs) - { - SingleContainedElement oldElement = element; - element = newElement; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - model4Package.REF_SINGLE_CONTAINED__ELEMENT, oldElement, newElement); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(SingleContainedElement newElement) - { - if (newElement != element) - { - NotificationChain msgs = null; - if (element != null) - msgs = ((InternalEObject)element).eInverseRemove(this, model4Package.SINGLE_CONTAINED_ELEMENT__PARENT, - SingleContainedElement.class, msgs); - if (newElement != null) - msgs = ((InternalEObject)newElement).eInverseAdd(this, model4Package.SINGLE_CONTAINED_ELEMENT__PARENT, - SingleContainedElement.class, msgs); - msgs = basicSetElement(newElement, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.REF_SINGLE_CONTAINED__ELEMENT, newElement, - newElement)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.REF_SINGLE_CONTAINED__ELEMENT: - if (element != null) - msgs = ((InternalEObject)element).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - model4Package.REF_SINGLE_CONTAINED__ELEMENT, null, msgs); - return basicSetElement((SingleContainedElement)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.REF_SINGLE_CONTAINED__ELEMENT: - return basicSetElement(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.REF_SINGLE_CONTAINED__ELEMENT: - return getElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.REF_SINGLE_CONTAINED__ELEMENT: - setElement((SingleContainedElement)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.REF_SINGLE_CONTAINED__ELEMENT: - setElement((SingleContainedElement)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.REF_SINGLE_CONTAINED__ELEMENT: - return element != null; - } - return super.eIsSet(featureID); - } - -} // RefSingleContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.SingleContainedElement;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Single Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleContainedImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefSingleContainedImpl extends EObjectImpl implements RefSingleContained
+{
+ /**
+ * The cached value of the '{@link #getElement() <em>Element</em>}' containment reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getElement()
+ * @generated
+ * @ordered
+ */
+ protected SingleContainedElement element;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefSingleContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefSingleContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public SingleContainedElement getElement()
+ {
+ return element;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetElement(SingleContainedElement newElement, NotificationChain msgs)
+ {
+ SingleContainedElement oldElement = element;
+ element = newElement;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ model4Package.REF_SINGLE_CONTAINED__ELEMENT, oldElement, newElement);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(SingleContainedElement newElement)
+ {
+ if (newElement != element)
+ {
+ NotificationChain msgs = null;
+ if (element != null)
+ msgs = ((InternalEObject)element).eInverseRemove(this, model4Package.SINGLE_CONTAINED_ELEMENT__PARENT,
+ SingleContainedElement.class, msgs);
+ if (newElement != null)
+ msgs = ((InternalEObject)newElement).eInverseAdd(this, model4Package.SINGLE_CONTAINED_ELEMENT__PARENT,
+ SingleContainedElement.class, msgs);
+ msgs = basicSetElement(newElement, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.REF_SINGLE_CONTAINED__ELEMENT, newElement,
+ newElement));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_CONTAINED__ELEMENT:
+ if (element != null)
+ msgs = ((InternalEObject)element).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - model4Package.REF_SINGLE_CONTAINED__ELEMENT, null, msgs);
+ return basicSetElement((SingleContainedElement)otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_CONTAINED__ELEMENT:
+ return basicSetElement(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_CONTAINED__ELEMENT:
+ return getElement();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_CONTAINED__ELEMENT:
+ setElement((SingleContainedElement)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_CONTAINED__ELEMENT:
+ setElement((SingleContainedElement)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_CONTAINED__ELEMENT:
+ return element != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // RefSingleContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefSingleContainedNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefSingleContainedNPLImpl.java index ec3c4d5d92..84b6adbe5d 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefSingleContainedNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefSingleContainedNPLImpl.java @@ -1,207 +1,207 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; -import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Single Contained NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleContainedNPLImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefSingleContainedNPLImpl extends EObjectImpl implements RefSingleContainedNPL -{ - /** - * The cached value of the '{@link #getElement() <em>Element</em>}' containment reference. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @see #getElement() - * @generated - * @ordered - */ - protected ContainedElementNoOpposite element; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefSingleContainedNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefSingleContainedNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ContainedElementNoOpposite getElement() - { - return element; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetElement(ContainedElementNoOpposite newElement, NotificationChain msgs) - { - ContainedElementNoOpposite oldElement = element; - element = newElement; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT, oldElement, newElement); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(ContainedElementNoOpposite newElement) - { - if (newElement != element) - { - NotificationChain msgs = null; - if (element != null) - msgs = ((InternalEObject)element).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - - model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT, null, msgs); - if (newElement != null) - msgs = ((InternalEObject)newElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - - model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT, null, msgs); - msgs = basicSetElement(newElement, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT, - newElement, newElement)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT: - return basicSetElement(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT: - return getElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT: - setElement((ContainedElementNoOpposite)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT: - setElement((ContainedElementNoOpposite)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT: - return element != null; - } - return super.eIsSet(featureID); - } - -} // RefSingleContainedNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Single Contained NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleContainedNPLImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefSingleContainedNPLImpl extends EObjectImpl implements RefSingleContainedNPL
+{
+ /**
+ * The cached value of the '{@link #getElement() <em>Element</em>}' containment reference. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getElement()
+ * @generated
+ * @ordered
+ */
+ protected ContainedElementNoOpposite element;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefSingleContainedNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefSingleContainedNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ContainedElementNoOpposite getElement()
+ {
+ return element;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetElement(ContainedElementNoOpposite newElement, NotificationChain msgs)
+ {
+ ContainedElementNoOpposite oldElement = element;
+ element = newElement;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT, oldElement, newElement);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(ContainedElementNoOpposite newElement)
+ {
+ if (newElement != element)
+ {
+ NotificationChain msgs = null;
+ if (element != null)
+ msgs = ((InternalEObject)element).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT, null, msgs);
+ if (newElement != null)
+ msgs = ((InternalEObject)newElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT, null, msgs);
+ msgs = basicSetElement(newElement, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT,
+ newElement, newElement));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT:
+ return basicSetElement(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT:
+ return getElement();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT:
+ setElement((ContainedElementNoOpposite)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT:
+ setElement((ContainedElementNoOpposite)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_CONTAINED_NPL__ELEMENT:
+ return element != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // RefSingleContainedNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefSingleNonContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefSingleNonContainedImpl.java index 0e39c0deca..c8b672569c 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefSingleNonContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefSingleNonContainedImpl.java @@ -1,249 +1,249 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Single Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleNonContainedImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefSingleNonContainedImpl extends EObjectImpl implements RefSingleNonContained -{ - /** - * The cached value of the '{@link #getElement() <em>Element</em>}' reference. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @see #getElement() - * @generated - * @ordered - */ - protected SingleNonContainedElement element; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefSingleNonContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefSingleNonContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public SingleNonContainedElement getElement() - { - if (element != null && element.eIsProxy()) - { - InternalEObject oldElement = (InternalEObject)element; - element = (SingleNonContainedElement)eResolveProxy(oldElement); - if (element != oldElement) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT, - oldElement, element)); - } - } - return element; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public SingleNonContainedElement basicGetElement() - { - return element; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetElement(SingleNonContainedElement newElement, NotificationChain msgs) - { - SingleNonContainedElement oldElement = element; - element = newElement; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT, oldElement, newElement); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(SingleNonContainedElement newElement) - { - if (newElement != element) - { - NotificationChain msgs = null; - if (element != null) - msgs = ((InternalEObject)element).eInverseRemove(this, model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT, - SingleNonContainedElement.class, msgs); - if (newElement != null) - msgs = ((InternalEObject)newElement).eInverseAdd(this, model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT, - SingleNonContainedElement.class, msgs); - msgs = basicSetElement(newElement, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT, - newElement, newElement)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT: - if (element != null) - msgs = ((InternalEObject)element).eInverseRemove(this, model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT, - SingleNonContainedElement.class, msgs); - return basicSetElement((SingleNonContainedElement)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT: - return basicSetElement(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT: - if (resolve) - return getElement(); - return basicGetElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT: - setElement((SingleNonContainedElement)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT: - setElement((SingleNonContainedElement)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT: - return element != null; - } - return super.eIsSet(featureID); - } - -} // RefSingleNonContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Single Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleNonContainedImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefSingleNonContainedImpl extends EObjectImpl implements RefSingleNonContained
+{
+ /**
+ * The cached value of the '{@link #getElement() <em>Element</em>}' reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getElement()
+ * @generated
+ * @ordered
+ */
+ protected SingleNonContainedElement element;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefSingleNonContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefSingleNonContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public SingleNonContainedElement getElement()
+ {
+ if (element != null && element.eIsProxy())
+ {
+ InternalEObject oldElement = (InternalEObject)element;
+ element = (SingleNonContainedElement)eResolveProxy(oldElement);
+ if (element != oldElement)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT,
+ oldElement, element));
+ }
+ }
+ return element;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public SingleNonContainedElement basicGetElement()
+ {
+ return element;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetElement(SingleNonContainedElement newElement, NotificationChain msgs)
+ {
+ SingleNonContainedElement oldElement = element;
+ element = newElement;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT, oldElement, newElement);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(SingleNonContainedElement newElement)
+ {
+ if (newElement != element)
+ {
+ NotificationChain msgs = null;
+ if (element != null)
+ msgs = ((InternalEObject)element).eInverseRemove(this, model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT,
+ SingleNonContainedElement.class, msgs);
+ if (newElement != null)
+ msgs = ((InternalEObject)newElement).eInverseAdd(this, model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT,
+ SingleNonContainedElement.class, msgs);
+ msgs = basicSetElement(newElement, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT,
+ newElement, newElement));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT:
+ if (element != null)
+ msgs = ((InternalEObject)element).eInverseRemove(this, model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT,
+ SingleNonContainedElement.class, msgs);
+ return basicSetElement((SingleNonContainedElement)otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT:
+ return basicSetElement(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT:
+ if (resolve)
+ return getElement();
+ return basicGetElement();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT:
+ setElement((SingleNonContainedElement)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT:
+ setElement((SingleNonContainedElement)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT:
+ return element != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // RefSingleNonContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefSingleNonContainedNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefSingleNonContainedNPLImpl.java index 7ce64dd4ed..3e7d90bb62 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefSingleNonContainedNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/RefSingleNonContainedNPLImpl.java @@ -1,181 +1,181 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL; - -import org.eclipse.emf.common.notify.Notification; -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Single Non Contained NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleNonContainedNPLImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefSingleNonContainedNPLImpl extends EObjectImpl implements RefSingleNonContainedNPL -{ - /** - * The cached value of the '{@link #getElement() <em>Element</em>}' reference. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @see #getElement() - * @generated - * @ordered - */ - protected ContainedElementNoOpposite element; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefSingleNonContainedNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefSingleNonContainedNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ContainedElementNoOpposite getElement() - { - if (element != null && element.eIsProxy()) - { - InternalEObject oldElement = (InternalEObject)element; - element = (ContainedElementNoOpposite)eResolveProxy(oldElement); - if (element != oldElement) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, - model4Package.REF_SINGLE_NON_CONTAINED_NPL__ELEMENT, oldElement, element)); - } - } - return element; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ContainedElementNoOpposite basicGetElement() - { - return element; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(ContainedElementNoOpposite newElement) - { - ContainedElementNoOpposite oldElement = element; - element = newElement; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.REF_SINGLE_NON_CONTAINED_NPL__ELEMENT, - oldElement, element)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.REF_SINGLE_NON_CONTAINED_NPL__ELEMENT: - if (resolve) - return getElement(); - return basicGetElement(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.REF_SINGLE_NON_CONTAINED_NPL__ELEMENT: - setElement((ContainedElementNoOpposite)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.REF_SINGLE_NON_CONTAINED_NPL__ELEMENT: - setElement((ContainedElementNoOpposite)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.REF_SINGLE_NON_CONTAINED_NPL__ELEMENT: - return element != null; - } - return super.eIsSet(featureID); - } - -} // RefSingleNonContainedNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL;
+
+import org.eclipse.emf.common.notify.Notification;
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Single Non Contained NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleNonContainedNPLImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefSingleNonContainedNPLImpl extends EObjectImpl implements RefSingleNonContainedNPL
+{
+ /**
+ * The cached value of the '{@link #getElement() <em>Element</em>}' reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getElement()
+ * @generated
+ * @ordered
+ */
+ protected ContainedElementNoOpposite element;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefSingleNonContainedNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefSingleNonContainedNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ContainedElementNoOpposite getElement()
+ {
+ if (element != null && element.eIsProxy())
+ {
+ InternalEObject oldElement = (InternalEObject)element;
+ element = (ContainedElementNoOpposite)eResolveProxy(oldElement);
+ if (element != oldElement)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE,
+ model4Package.REF_SINGLE_NON_CONTAINED_NPL__ELEMENT, oldElement, element));
+ }
+ }
+ return element;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ContainedElementNoOpposite basicGetElement()
+ {
+ return element;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(ContainedElementNoOpposite newElement)
+ {
+ ContainedElementNoOpposite oldElement = element;
+ element = newElement;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.REF_SINGLE_NON_CONTAINED_NPL__ELEMENT,
+ oldElement, element));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_NON_CONTAINED_NPL__ELEMENT:
+ if (resolve)
+ return getElement();
+ return basicGetElement();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_NON_CONTAINED_NPL__ELEMENT:
+ setElement((ContainedElementNoOpposite)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_NON_CONTAINED_NPL__ELEMENT:
+ setElement((ContainedElementNoOpposite)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.REF_SINGLE_NON_CONTAINED_NPL__ELEMENT:
+ return element != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // RefSingleNonContainedNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/SingleContainedElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/SingleContainedElementImpl.java index 28f13bd8b3..753ba9f91f 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/SingleContainedElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/SingleContainedElementImpl.java @@ -1,298 +1,298 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.RefSingleContained; -import org.eclipse.emf.cdo.tests.model4.SingleContainedElement; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Single Contained Element</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.SingleContainedElementImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.SingleContainedElementImpl#getParent <em>Parent</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class SingleContainedElementImpl extends EObjectImpl implements SingleContainedElement -{ - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected SingleContainedElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getSingleContainedElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return name; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.SINGLE_CONTAINED_ELEMENT__NAME, oldName, name)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefSingleContained getParent() - { - if (eContainerFeatureID() != model4Package.SINGLE_CONTAINED_ELEMENT__PARENT) - return null; - return (RefSingleContained)eContainer(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetParent(RefSingleContained newParent, NotificationChain msgs) - { - msgs = eBasicSetContainer((InternalEObject)newParent, model4Package.SINGLE_CONTAINED_ELEMENT__PARENT, msgs); - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(RefSingleContained newParent) - { - if (newParent != eInternalContainer() - || (eContainerFeatureID() != model4Package.SINGLE_CONTAINED_ELEMENT__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, model4Package.REF_SINGLE_CONTAINED__ELEMENT, - RefSingleContained.class, msgs); - msgs = basicSetParent(newParent, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.SINGLE_CONTAINED_ELEMENT__PARENT, newParent, - newParent)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.SINGLE_CONTAINED_ELEMENT__PARENT: - if (eInternalContainer() != null) - msgs = eBasicRemoveFromContainer(msgs); - return basicSetParent((RefSingleContained)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.SINGLE_CONTAINED_ELEMENT__PARENT: - return basicSetParent(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) - { - switch (eContainerFeatureID()) - { - case model4Package.SINGLE_CONTAINED_ELEMENT__PARENT: - return eInternalContainer().eInverseRemove(this, model4Package.REF_SINGLE_CONTAINED__ELEMENT, - RefSingleContained.class, msgs); - } - return super.eBasicRemoveFromContainerFeature(msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.SINGLE_CONTAINED_ELEMENT__NAME: - return getName(); - case model4Package.SINGLE_CONTAINED_ELEMENT__PARENT: - return getParent(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.SINGLE_CONTAINED_ELEMENT__NAME: - setName((String)newValue); - return; - case model4Package.SINGLE_CONTAINED_ELEMENT__PARENT: - setParent((RefSingleContained)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.SINGLE_CONTAINED_ELEMENT__NAME: - setName(NAME_EDEFAULT); - return; - case model4Package.SINGLE_CONTAINED_ELEMENT__PARENT: - setParent((RefSingleContained)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.SINGLE_CONTAINED_ELEMENT__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case model4Package.SINGLE_CONTAINED_ELEMENT__PARENT: - return getParent() != null; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} // SingleContainedElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.SingleContainedElement;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Single Contained Element</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.SingleContainedElementImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.SingleContainedElementImpl#getParent <em>Parent</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class SingleContainedElementImpl extends EObjectImpl implements SingleContainedElement
+{
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected SingleContainedElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getSingleContainedElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.SINGLE_CONTAINED_ELEMENT__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefSingleContained getParent()
+ {
+ if (eContainerFeatureID() != model4Package.SINGLE_CONTAINED_ELEMENT__PARENT)
+ return null;
+ return (RefSingleContained)eContainer();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetParent(RefSingleContained newParent, NotificationChain msgs)
+ {
+ msgs = eBasicSetContainer((InternalEObject)newParent, model4Package.SINGLE_CONTAINED_ELEMENT__PARENT, msgs);
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(RefSingleContained newParent)
+ {
+ if (newParent != eInternalContainer()
+ || (eContainerFeatureID() != model4Package.SINGLE_CONTAINED_ELEMENT__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, model4Package.REF_SINGLE_CONTAINED__ELEMENT,
+ RefSingleContained.class, msgs);
+ msgs = basicSetParent(newParent, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.SINGLE_CONTAINED_ELEMENT__PARENT, newParent,
+ newParent));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.SINGLE_CONTAINED_ELEMENT__PARENT:
+ if (eInternalContainer() != null)
+ msgs = eBasicRemoveFromContainer(msgs);
+ return basicSetParent((RefSingleContained)otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.SINGLE_CONTAINED_ELEMENT__PARENT:
+ return basicSetParent(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
+ {
+ switch (eContainerFeatureID())
+ {
+ case model4Package.SINGLE_CONTAINED_ELEMENT__PARENT:
+ return eInternalContainer().eInverseRemove(this, model4Package.REF_SINGLE_CONTAINED__ELEMENT,
+ RefSingleContained.class, msgs);
+ }
+ return super.eBasicRemoveFromContainerFeature(msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.SINGLE_CONTAINED_ELEMENT__NAME:
+ return getName();
+ case model4Package.SINGLE_CONTAINED_ELEMENT__PARENT:
+ return getParent();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.SINGLE_CONTAINED_ELEMENT__NAME:
+ setName((String)newValue);
+ return;
+ case model4Package.SINGLE_CONTAINED_ELEMENT__PARENT:
+ setParent((RefSingleContained)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.SINGLE_CONTAINED_ELEMENT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case model4Package.SINGLE_CONTAINED_ELEMENT__PARENT:
+ setParent((RefSingleContained)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.SINGLE_CONTAINED_ELEMENT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case model4Package.SINGLE_CONTAINED_ELEMENT__PARENT:
+ return getParent() != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(')');
+ return result.toString();
+ }
+
+} // SingleContainedElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/SingleNonContainedElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/SingleNonContainedElementImpl.java index 02f60ed89f..b3103fc36f 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/SingleNonContainedElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/SingleNonContainedElementImpl.java @@ -1,321 +1,321 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Single Non Contained Element</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.SingleNonContainedElementImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.SingleNonContainedElementImpl#getParent <em>Parent</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class SingleNonContainedElementImpl extends EObjectImpl implements SingleNonContainedElement -{ - /** - * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getParent() <em>Parent</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getParent() - * @generated - * @ordered - */ - protected RefSingleNonContained parent; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected SingleNonContainedElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getSingleNonContainedElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return name; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.SINGLE_NON_CONTAINED_ELEMENT__NAME, oldName, - name)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefSingleNonContained getParent() - { - if (parent != null && parent.eIsProxy()) - { - InternalEObject oldParent = (InternalEObject)parent; - parent = (RefSingleNonContained)eResolveProxy(oldParent); - if (parent != oldParent) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT, - oldParent, parent)); - } - } - return parent; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefSingleNonContained basicGetParent() - { - return parent; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetParent(RefSingleNonContained newParent, NotificationChain msgs) - { - RefSingleNonContained oldParent = parent; - parent = newParent; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT, oldParent, newParent); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(RefSingleNonContained newParent) - { - if (newParent != parent) - { - NotificationChain msgs = null; - if (parent != null) - msgs = ((InternalEObject)parent).eInverseRemove(this, model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT, - RefSingleNonContained.class, msgs); - if (newParent != null) - msgs = ((InternalEObject)newParent).eInverseAdd(this, model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT, - RefSingleNonContained.class, msgs); - msgs = basicSetParent(newParent, msgs); - if (msgs != null) - msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT, - newParent, newParent)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT: - if (parent != null) - msgs = ((InternalEObject)parent).eInverseRemove(this, model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT, - RefSingleNonContained.class, msgs); - return basicSetParent((RefSingleNonContained)otherEnd, msgs); - } - return super.eInverseAdd(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT: - return basicSetParent(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.SINGLE_NON_CONTAINED_ELEMENT__NAME: - return getName(); - case model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT: - if (resolve) - return getParent(); - return basicGetParent(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.SINGLE_NON_CONTAINED_ELEMENT__NAME: - setName((String)newValue); - return; - case model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT: - setParent((RefSingleNonContained)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.SINGLE_NON_CONTAINED_ELEMENT__NAME: - setName(NAME_EDEFAULT); - return; - case model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT: - setParent((RefSingleNonContained)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.SINGLE_NON_CONTAINED_ELEMENT__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT: - return parent != null; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} // SingleNonContainedElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Single Non Contained Element</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.SingleNonContainedElementImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.SingleNonContainedElementImpl#getParent <em>Parent</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class SingleNonContainedElementImpl extends EObjectImpl implements SingleNonContainedElement
+{
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getParent() <em>Parent</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getParent()
+ * @generated
+ * @ordered
+ */
+ protected RefSingleNonContained parent;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected SingleNonContainedElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getSingleNonContainedElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.SINGLE_NON_CONTAINED_ELEMENT__NAME, oldName,
+ name));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefSingleNonContained getParent()
+ {
+ if (parent != null && parent.eIsProxy())
+ {
+ InternalEObject oldParent = (InternalEObject)parent;
+ parent = (RefSingleNonContained)eResolveProxy(oldParent);
+ if (parent != oldParent)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT,
+ oldParent, parent));
+ }
+ }
+ return parent;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefSingleNonContained basicGetParent()
+ {
+ return parent;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetParent(RefSingleNonContained newParent, NotificationChain msgs)
+ {
+ RefSingleNonContained oldParent = parent;
+ parent = newParent;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT, oldParent, newParent);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(RefSingleNonContained newParent)
+ {
+ if (newParent != parent)
+ {
+ NotificationChain msgs = null;
+ if (parent != null)
+ msgs = ((InternalEObject)parent).eInverseRemove(this, model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT,
+ RefSingleNonContained.class, msgs);
+ if (newParent != null)
+ msgs = ((InternalEObject)newParent).eInverseAdd(this, model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT,
+ RefSingleNonContained.class, msgs);
+ msgs = basicSetParent(newParent, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT,
+ newParent, newParent));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT:
+ if (parent != null)
+ msgs = ((InternalEObject)parent).eInverseRemove(this, model4Package.REF_SINGLE_NON_CONTAINED__ELEMENT,
+ RefSingleNonContained.class, msgs);
+ return basicSetParent((RefSingleNonContained)otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT:
+ return basicSetParent(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.SINGLE_NON_CONTAINED_ELEMENT__NAME:
+ return getName();
+ case model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT:
+ if (resolve)
+ return getParent();
+ return basicGetParent();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.SINGLE_NON_CONTAINED_ELEMENT__NAME:
+ setName((String)newValue);
+ return;
+ case model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT:
+ setParent((RefSingleNonContained)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.SINGLE_NON_CONTAINED_ELEMENT__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT:
+ setParent((RefSingleNonContained)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.SINGLE_NON_CONTAINED_ELEMENT__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case model4Package.SINGLE_NON_CONTAINED_ELEMENT__PARENT:
+ return parent != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (name: ");
+ result.append(name);
+ result.append(')');
+ return result.toString();
+ }
+
+} // SingleNonContainedElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/StringToEObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/StringToEObjectImpl.java index 3a53782c2b..72b37d0180 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/StringToEObjectImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/StringToEObjectImpl.java @@ -1,315 +1,315 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.BasicEMap; -import org.eclipse.emf.common.util.EMap; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>String To EObject</b></em>'. <!-- end-user-doc - * --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.StringToEObjectImpl#getTypedKey <em>Key</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.StringToEObjectImpl#getTypedValue <em>Value</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class StringToEObjectImpl extends EObjectImpl implements BasicEMap.Entry<String, EObject> -{ - /** - * The default value of the '{@link #getTypedKey() <em>Key</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getTypedKey() - * @generated - * @ordered - */ - protected static final String KEY_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTypedKey() <em>Key</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @see #getTypedKey() - * @generated - * @ordered - */ - protected String key = KEY_EDEFAULT; - - /** - * The cached value of the '{@link #getTypedValue() <em>Value</em>}' reference. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @see #getTypedValue() - * @generated - * @ordered - */ - protected EObject value; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected StringToEObjectImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getStringToEObject(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getTypedKey() - { - return key; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setTypedKey(String newKey) - { - String oldKey = key; - key = newKey; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.STRING_TO_EOBJECT__KEY, oldKey, key)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EObject getTypedValue() - { - return value; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setTypedValue(EObject newValue) - { - EObject oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, model4Package.STRING_TO_EOBJECT__VALUE, oldValue, value)); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case model4Package.STRING_TO_EOBJECT__KEY: - return getTypedKey(); - case model4Package.STRING_TO_EOBJECT__VALUE: - return getTypedValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case model4Package.STRING_TO_EOBJECT__KEY: - setTypedKey((String)newValue); - return; - case model4Package.STRING_TO_EOBJECT__VALUE: - setTypedValue((EObject)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case model4Package.STRING_TO_EOBJECT__KEY: - setTypedKey(KEY_EDEFAULT); - return; - case model4Package.STRING_TO_EOBJECT__VALUE: - setTypedValue((EObject)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case model4Package.STRING_TO_EOBJECT__KEY: - return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); - case model4Package.STRING_TO_EOBJECT__VALUE: - return value != null; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (key: "); - result.append(key); - result.append(')'); - return result.toString(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected int hash = -1; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public int getHash() - { - if (hash == -1) - { - Object theKey = getKey(); - hash = (theKey == null ? 0 : theKey.hashCode()); - } - return hash; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setHash(int hash) - { - this.hash = hash; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getKey() - { - return getTypedKey(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setKey(String key) - { - setTypedKey(key); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EObject getValue() - { - return getTypedValue(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EObject setValue(EObject value) - { - EObject oldValue = getValue(); - setTypedValue(value); - return oldValue; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EMap<String, EObject> getEMap() - { - EObject container = eContainer(); - return container == null ? null : (EMap<String, EObject>)container.eGet(eContainmentFeature()); - } - -} // StringToEObjectImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.util.BasicEMap;
+import org.eclipse.emf.common.util.EMap;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>String To EObject</b></em>'. <!-- end-user-doc
+ * -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.StringToEObjectImpl#getTypedKey <em>Key</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.StringToEObjectImpl#getTypedValue <em>Value</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class StringToEObjectImpl extends EObjectImpl implements BasicEMap.Entry<String, EObject>
+{
+ /**
+ * The default value of the '{@link #getTypedKey() <em>Key</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getTypedKey()
+ * @generated
+ * @ordered
+ */
+ protected static final String KEY_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTypedKey() <em>Key</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getTypedKey()
+ * @generated
+ * @ordered
+ */
+ protected String key = KEY_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getTypedValue() <em>Value</em>}' reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getTypedValue()
+ * @generated
+ * @ordered
+ */
+ protected EObject value;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected StringToEObjectImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getStringToEObject();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getTypedKey()
+ {
+ return key;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setTypedKey(String newKey)
+ {
+ String oldKey = key;
+ key = newKey;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.STRING_TO_EOBJECT__KEY, oldKey, key));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EObject getTypedValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setTypedValue(EObject newValue)
+ {
+ EObject oldValue = value;
+ value = newValue;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, model4Package.STRING_TO_EOBJECT__VALUE, oldValue, value));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case model4Package.STRING_TO_EOBJECT__KEY:
+ return getTypedKey();
+ case model4Package.STRING_TO_EOBJECT__VALUE:
+ return getTypedValue();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case model4Package.STRING_TO_EOBJECT__KEY:
+ setTypedKey((String)newValue);
+ return;
+ case model4Package.STRING_TO_EOBJECT__VALUE:
+ setTypedValue((EObject)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.STRING_TO_EOBJECT__KEY:
+ setTypedKey(KEY_EDEFAULT);
+ return;
+ case model4Package.STRING_TO_EOBJECT__VALUE:
+ setTypedValue((EObject)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case model4Package.STRING_TO_EOBJECT__KEY:
+ return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key);
+ case model4Package.STRING_TO_EOBJECT__VALUE:
+ return value != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (key: ");
+ result.append(key);
+ result.append(')');
+ return result.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected int hash = -1;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public int getHash()
+ {
+ if (hash == -1)
+ {
+ Object theKey = getKey();
+ hash = (theKey == null ? 0 : theKey.hashCode());
+ }
+ return hash;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setHash(int hash)
+ {
+ this.hash = hash;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getKey()
+ {
+ return getTypedKey();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setKey(String key)
+ {
+ setTypedKey(key);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EObject getValue()
+ {
+ return getTypedValue();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EObject setValue(EObject value)
+ {
+ EObject oldValue = getValue();
+ setTypedValue(value);
+ return oldValue;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EMap<String, EObject> getEMap()
+ {
+ EObject container = eContainer();
+ return container == null ? null : (EMap<String, EObject>)container.eGet(eContainmentFeature());
+ }
+
+} // StringToEObjectImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/model4FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/model4FactoryImpl.java index 3c4d2b71cc..47e5899822 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/model4FactoryImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/model4FactoryImpl.java @@ -1,590 +1,590 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Factory; -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; -import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained; -import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4.MultiContainedElement; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiContained; -import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable; -import org.eclipse.emf.cdo.tests.model4.RefSingleContained; -import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL; -import org.eclipse.emf.cdo.tests.model4.SingleContainedElement; -import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -import java.util.Map; - -/** - * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc --> - * - * @generated - */ -public class model4FactoryImpl extends EFactoryImpl implements model4Factory -{ - /** - * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated NOT - */ - public static model4Factory init() - { - try - { - model4Factory themodel4Factory = (model4Factory)EPackage.Registry.INSTANCE - .getEFactory("http://www.eclipse.org/emf/CDO/tests/legacy/model4/1.0.0"); - if (themodel4Factory != null) - { - return themodel4Factory; - } - } - catch (Exception exception) - { - EcorePlugin.INSTANCE.log(exception); - } - return new model4FactoryImpl(); - } - - /** - * Creates an instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public model4FactoryImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public EObject create(EClass eClass) - { - switch (eClass.getClassifierID()) - { - case model4Package.REF_SINGLE_CONTAINED: - return createRefSingleContained(); - case model4Package.SINGLE_CONTAINED_ELEMENT: - return createSingleContainedElement(); - case model4Package.REF_SINGLE_NON_CONTAINED: - return createRefSingleNonContained(); - case model4Package.SINGLE_NON_CONTAINED_ELEMENT: - return createSingleNonContainedElement(); - case model4Package.REF_MULTI_CONTAINED: - return createRefMultiContained(); - case model4Package.MULTI_CONTAINED_ELEMENT: - return createMultiContainedElement(); - case model4Package.REF_MULTI_NON_CONTAINED: - return createRefMultiNonContained(); - case model4Package.MULTI_NON_CONTAINED_ELEMENT: - return createMultiNonContainedElement(); - case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE: - return createRefMultiNonContainedUnsettable(); - case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT: - return createMultiNonContainedUnsettableElement(); - case model4Package.REF_SINGLE_CONTAINED_NPL: - return createRefSingleContainedNPL(); - case model4Package.REF_SINGLE_NON_CONTAINED_NPL: - return createRefSingleNonContainedNPL(); - case model4Package.REF_MULTI_CONTAINED_NPL: - return createRefMultiContainedNPL(); - case model4Package.REF_MULTI_NON_CONTAINED_NPL: - return createRefMultiNonContainedNPL(); - case model4Package.CONTAINED_ELEMENT_NO_OPPOSITE: - return createContainedElementNoOpposite(); - case model4Package.GEN_REF_SINGLE_CONTAINED: - return createGenRefSingleContained(); - case model4Package.GEN_REF_SINGLE_NON_CONTAINED: - return createGenRefSingleNonContained(); - case model4Package.GEN_REF_MULTI_CONTAINED: - return createGenRefMultiContained(); - case model4Package.GEN_REF_MULTI_NON_CONTAINED: - return createGenRefMultiNonContained(); - case model4Package.IMPL_SINGLE_REF_CONTAINER: - return createImplSingleRefContainer(); - case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT: - return createImplSingleRefContainedElement(); - case model4Package.IMPL_SINGLE_REF_NON_CONTAINER: - return createImplSingleRefNonContainer(); - case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT: - return createImplSingleRefNonContainedElement(); - case model4Package.IMPL_MULTI_REF_NON_CONTAINER: - return createImplMultiRefNonContainer(); - case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT: - return createImplMultiRefNonContainedElement(); - case model4Package.IMPL_MULTI_REF_CONTAINER: - return createImplMultiRefContainer(); - case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT: - return createImplMultiRefContainedElement(); - case model4Package.IMPL_SINGLE_REF_CONTAINER_NPL: - return createImplSingleRefContainerNPL(); - case model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL: - return createImplSingleRefNonContainerNPL(); - case model4Package.IMPL_MULTI_REF_CONTAINER_NPL: - return createImplMultiRefContainerNPL(); - case model4Package.IMPL_MULTI_REF_NON_CONTAINER_NPL: - return createImplMultiRefNonContainerNPL(); - case model4Package.IMPL_CONTAINED_ELEMENT_NPL: - return createImplContainedElementNPL(); - case model4Package.GEN_REF_MULTI_NU_NON_CONTAINED: - return createGenRefMultiNUNonContained(); - case model4Package.GEN_REF_MAP_NON_CONTAINED: - return createGenRefMapNonContained(); - case model4Package.STRING_TO_EOBJECT: - return (EObject)createStringToEObject(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefSingleContained createRefSingleContained() - { - RefSingleContainedImpl refSingleContained = new RefSingleContainedImpl(); - return refSingleContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public SingleContainedElement createSingleContainedElement() - { - SingleContainedElementImpl singleContainedElement = new SingleContainedElementImpl(); - return singleContainedElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefSingleNonContained createRefSingleNonContained() - { - RefSingleNonContainedImpl refSingleNonContained = new RefSingleNonContainedImpl(); - return refSingleNonContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public SingleNonContainedElement createSingleNonContainedElement() - { - SingleNonContainedElementImpl singleNonContainedElement = new SingleNonContainedElementImpl(); - return singleNonContainedElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiContained createRefMultiContained() - { - RefMultiContainedImpl refMultiContained = new RefMultiContainedImpl(); - return refMultiContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public MultiContainedElement createMultiContainedElement() - { - MultiContainedElementImpl multiContainedElement = new MultiContainedElementImpl(); - return multiContainedElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiNonContained createRefMultiNonContained() - { - RefMultiNonContainedImpl refMultiNonContained = new RefMultiNonContainedImpl(); - return refMultiNonContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public MultiNonContainedElement createMultiNonContainedElement() - { - MultiNonContainedElementImpl multiNonContainedElement = new MultiNonContainedElementImpl(); - return multiNonContainedElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiNonContainedUnsettable createRefMultiNonContainedUnsettable() - { - RefMultiNonContainedUnsettableImpl refMultiNonContainedUnsettable = new RefMultiNonContainedUnsettableImpl(); - return refMultiNonContainedUnsettable; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public MultiNonContainedUnsettableElement createMultiNonContainedUnsettableElement() - { - MultiNonContainedUnsettableElementImpl multiNonContainedUnsettableElement = new MultiNonContainedUnsettableElementImpl(); - return multiNonContainedUnsettableElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefSingleContainedNPL createRefSingleContainedNPL() - { - RefSingleContainedNPLImpl refSingleContainedNPL = new RefSingleContainedNPLImpl(); - return refSingleContainedNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefSingleNonContainedNPL createRefSingleNonContainedNPL() - { - RefSingleNonContainedNPLImpl refSingleNonContainedNPL = new RefSingleNonContainedNPLImpl(); - return refSingleNonContainedNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiContainedNPL createRefMultiContainedNPL() - { - RefMultiContainedNPLImpl refMultiContainedNPL = new RefMultiContainedNPLImpl(); - return refMultiContainedNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiNonContainedNPL createRefMultiNonContainedNPL() - { - RefMultiNonContainedNPLImpl refMultiNonContainedNPL = new RefMultiNonContainedNPLImpl(); - return refMultiNonContainedNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ContainedElementNoOpposite createContainedElementNoOpposite() - { - ContainedElementNoOppositeImpl containedElementNoOpposite = new ContainedElementNoOppositeImpl(); - return containedElementNoOpposite; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public GenRefSingleContained createGenRefSingleContained() - { - GenRefSingleContainedImpl genRefSingleContained = new GenRefSingleContainedImpl(); - return genRefSingleContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public GenRefSingleNonContained createGenRefSingleNonContained() - { - GenRefSingleNonContainedImpl genRefSingleNonContained = new GenRefSingleNonContainedImpl(); - return genRefSingleNonContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public GenRefMultiContained createGenRefMultiContained() - { - GenRefMultiContainedImpl genRefMultiContained = new GenRefMultiContainedImpl(); - return genRefMultiContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public GenRefMultiNonContained createGenRefMultiNonContained() - { - GenRefMultiNonContainedImpl genRefMultiNonContained = new GenRefMultiNonContainedImpl(); - return genRefMultiNonContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplSingleRefContainer createImplSingleRefContainer() - { - ImplSingleRefContainerImpl implSingleRefContainer = new ImplSingleRefContainerImpl(); - return implSingleRefContainer; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplSingleRefContainedElement createImplSingleRefContainedElement() - { - ImplSingleRefContainedElementImpl implSingleRefContainedElement = new ImplSingleRefContainedElementImpl(); - return implSingleRefContainedElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplSingleRefNonContainer createImplSingleRefNonContainer() - { - ImplSingleRefNonContainerImpl implSingleRefNonContainer = new ImplSingleRefNonContainerImpl(); - return implSingleRefNonContainer; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplSingleRefNonContainedElement createImplSingleRefNonContainedElement() - { - ImplSingleRefNonContainedElementImpl implSingleRefNonContainedElement = new ImplSingleRefNonContainedElementImpl(); - return implSingleRefNonContainedElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplMultiRefNonContainer createImplMultiRefNonContainer() - { - ImplMultiRefNonContainerImpl implMultiRefNonContainer = new ImplMultiRefNonContainerImpl(); - return implMultiRefNonContainer; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplMultiRefNonContainedElement createImplMultiRefNonContainedElement() - { - ImplMultiRefNonContainedElementImpl implMultiRefNonContainedElement = new ImplMultiRefNonContainedElementImpl(); - return implMultiRefNonContainedElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplMultiRefContainer createImplMultiRefContainer() - { - ImplMultiRefContainerImpl implMultiRefContainer = new ImplMultiRefContainerImpl(); - return implMultiRefContainer; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplMultiRefContainedElement createImplMultiRefContainedElement() - { - ImplMultiRefContainedElementImpl implMultiRefContainedElement = new ImplMultiRefContainedElementImpl(); - return implMultiRefContainedElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplSingleRefContainerNPL createImplSingleRefContainerNPL() - { - ImplSingleRefContainerNPLImpl implSingleRefContainerNPL = new ImplSingleRefContainerNPLImpl(); - return implSingleRefContainerNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplSingleRefNonContainerNPL createImplSingleRefNonContainerNPL() - { - ImplSingleRefNonContainerNPLImpl implSingleRefNonContainerNPL = new ImplSingleRefNonContainerNPLImpl(); - return implSingleRefNonContainerNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplMultiRefContainerNPL createImplMultiRefContainerNPL() - { - ImplMultiRefContainerNPLImpl implMultiRefContainerNPL = new ImplMultiRefContainerNPLImpl(); - return implMultiRefContainerNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplMultiRefNonContainerNPL createImplMultiRefNonContainerNPL() - { - ImplMultiRefNonContainerNPLImpl implMultiRefNonContainerNPL = new ImplMultiRefNonContainerNPLImpl(); - return implMultiRefNonContainerNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplContainedElementNPL createImplContainedElementNPL() - { - ImplContainedElementNPLImpl implContainedElementNPL = new ImplContainedElementNPLImpl(); - return implContainedElementNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public GenRefMultiNUNonContained createGenRefMultiNUNonContained() - { - GenRefMultiNUNonContainedImpl genRefMultiNUNonContained = new GenRefMultiNUNonContainedImpl(); - return genRefMultiNUNonContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public GenRefMapNonContained createGenRefMapNonContained() - { - GenRefMapNonContainedImpl genRefMapNonContained = new GenRefMapNonContainedImpl(); - return genRefMapNonContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Map.Entry<String, EObject> createStringToEObject() - { - StringToEObjectImpl stringToEObject = new StringToEObjectImpl(); - return stringToEObject; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public model4Package getmodel4Package() - { - return (model4Package)getEPackage(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @deprecated - * @generated - */ - @Deprecated - public static model4Package getPackage() - { - return model4Package.eINSTANCE; - } - -} // model4FactoryImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Factory;
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.MultiContainedElement;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.SingleContainedElement;
+import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+import java.util.Map;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class model4FactoryImpl extends EFactoryImpl implements model4Factory
+{
+ /**
+ * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated NOT
+ */
+ public static model4Factory init()
+ {
+ try
+ {
+ model4Factory themodel4Factory = (model4Factory)EPackage.Registry.INSTANCE
+ .getEFactory("http://www.eclipse.org/emf/CDO/tests/legacy/model4/1.0.0");
+ if (themodel4Factory != null)
+ {
+ return themodel4Factory;
+ }
+ }
+ catch (Exception exception)
+ {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new model4FactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public model4FactoryImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass)
+ {
+ switch (eClass.getClassifierID())
+ {
+ case model4Package.REF_SINGLE_CONTAINED:
+ return createRefSingleContained();
+ case model4Package.SINGLE_CONTAINED_ELEMENT:
+ return createSingleContainedElement();
+ case model4Package.REF_SINGLE_NON_CONTAINED:
+ return createRefSingleNonContained();
+ case model4Package.SINGLE_NON_CONTAINED_ELEMENT:
+ return createSingleNonContainedElement();
+ case model4Package.REF_MULTI_CONTAINED:
+ return createRefMultiContained();
+ case model4Package.MULTI_CONTAINED_ELEMENT:
+ return createMultiContainedElement();
+ case model4Package.REF_MULTI_NON_CONTAINED:
+ return createRefMultiNonContained();
+ case model4Package.MULTI_NON_CONTAINED_ELEMENT:
+ return createMultiNonContainedElement();
+ case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE:
+ return createRefMultiNonContainedUnsettable();
+ case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT:
+ return createMultiNonContainedUnsettableElement();
+ case model4Package.REF_SINGLE_CONTAINED_NPL:
+ return createRefSingleContainedNPL();
+ case model4Package.REF_SINGLE_NON_CONTAINED_NPL:
+ return createRefSingleNonContainedNPL();
+ case model4Package.REF_MULTI_CONTAINED_NPL:
+ return createRefMultiContainedNPL();
+ case model4Package.REF_MULTI_NON_CONTAINED_NPL:
+ return createRefMultiNonContainedNPL();
+ case model4Package.CONTAINED_ELEMENT_NO_OPPOSITE:
+ return createContainedElementNoOpposite();
+ case model4Package.GEN_REF_SINGLE_CONTAINED:
+ return createGenRefSingleContained();
+ case model4Package.GEN_REF_SINGLE_NON_CONTAINED:
+ return createGenRefSingleNonContained();
+ case model4Package.GEN_REF_MULTI_CONTAINED:
+ return createGenRefMultiContained();
+ case model4Package.GEN_REF_MULTI_NON_CONTAINED:
+ return createGenRefMultiNonContained();
+ case model4Package.IMPL_SINGLE_REF_CONTAINER:
+ return createImplSingleRefContainer();
+ case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT:
+ return createImplSingleRefContainedElement();
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINER:
+ return createImplSingleRefNonContainer();
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT:
+ return createImplSingleRefNonContainedElement();
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINER:
+ return createImplMultiRefNonContainer();
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT:
+ return createImplMultiRefNonContainedElement();
+ case model4Package.IMPL_MULTI_REF_CONTAINER:
+ return createImplMultiRefContainer();
+ case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT:
+ return createImplMultiRefContainedElement();
+ case model4Package.IMPL_SINGLE_REF_CONTAINER_NPL:
+ return createImplSingleRefContainerNPL();
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL:
+ return createImplSingleRefNonContainerNPL();
+ case model4Package.IMPL_MULTI_REF_CONTAINER_NPL:
+ return createImplMultiRefContainerNPL();
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINER_NPL:
+ return createImplMultiRefNonContainerNPL();
+ case model4Package.IMPL_CONTAINED_ELEMENT_NPL:
+ return createImplContainedElementNPL();
+ case model4Package.GEN_REF_MULTI_NU_NON_CONTAINED:
+ return createGenRefMultiNUNonContained();
+ case model4Package.GEN_REF_MAP_NON_CONTAINED:
+ return createGenRefMapNonContained();
+ case model4Package.STRING_TO_EOBJECT:
+ return (EObject)createStringToEObject();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefSingleContained createRefSingleContained()
+ {
+ RefSingleContainedImpl refSingleContained = new RefSingleContainedImpl();
+ return refSingleContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public SingleContainedElement createSingleContainedElement()
+ {
+ SingleContainedElementImpl singleContainedElement = new SingleContainedElementImpl();
+ return singleContainedElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefSingleNonContained createRefSingleNonContained()
+ {
+ RefSingleNonContainedImpl refSingleNonContained = new RefSingleNonContainedImpl();
+ return refSingleNonContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public SingleNonContainedElement createSingleNonContainedElement()
+ {
+ SingleNonContainedElementImpl singleNonContainedElement = new SingleNonContainedElementImpl();
+ return singleNonContainedElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiContained createRefMultiContained()
+ {
+ RefMultiContainedImpl refMultiContained = new RefMultiContainedImpl();
+ return refMultiContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public MultiContainedElement createMultiContainedElement()
+ {
+ MultiContainedElementImpl multiContainedElement = new MultiContainedElementImpl();
+ return multiContainedElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiNonContained createRefMultiNonContained()
+ {
+ RefMultiNonContainedImpl refMultiNonContained = new RefMultiNonContainedImpl();
+ return refMultiNonContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public MultiNonContainedElement createMultiNonContainedElement()
+ {
+ MultiNonContainedElementImpl multiNonContainedElement = new MultiNonContainedElementImpl();
+ return multiNonContainedElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiNonContainedUnsettable createRefMultiNonContainedUnsettable()
+ {
+ RefMultiNonContainedUnsettableImpl refMultiNonContainedUnsettable = new RefMultiNonContainedUnsettableImpl();
+ return refMultiNonContainedUnsettable;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public MultiNonContainedUnsettableElement createMultiNonContainedUnsettableElement()
+ {
+ MultiNonContainedUnsettableElementImpl multiNonContainedUnsettableElement = new MultiNonContainedUnsettableElementImpl();
+ return multiNonContainedUnsettableElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefSingleContainedNPL createRefSingleContainedNPL()
+ {
+ RefSingleContainedNPLImpl refSingleContainedNPL = new RefSingleContainedNPLImpl();
+ return refSingleContainedNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefSingleNonContainedNPL createRefSingleNonContainedNPL()
+ {
+ RefSingleNonContainedNPLImpl refSingleNonContainedNPL = new RefSingleNonContainedNPLImpl();
+ return refSingleNonContainedNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiContainedNPL createRefMultiContainedNPL()
+ {
+ RefMultiContainedNPLImpl refMultiContainedNPL = new RefMultiContainedNPLImpl();
+ return refMultiContainedNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiNonContainedNPL createRefMultiNonContainedNPL()
+ {
+ RefMultiNonContainedNPLImpl refMultiNonContainedNPL = new RefMultiNonContainedNPLImpl();
+ return refMultiNonContainedNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ContainedElementNoOpposite createContainedElementNoOpposite()
+ {
+ ContainedElementNoOppositeImpl containedElementNoOpposite = new ContainedElementNoOppositeImpl();
+ return containedElementNoOpposite;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public GenRefSingleContained createGenRefSingleContained()
+ {
+ GenRefSingleContainedImpl genRefSingleContained = new GenRefSingleContainedImpl();
+ return genRefSingleContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public GenRefSingleNonContained createGenRefSingleNonContained()
+ {
+ GenRefSingleNonContainedImpl genRefSingleNonContained = new GenRefSingleNonContainedImpl();
+ return genRefSingleNonContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public GenRefMultiContained createGenRefMultiContained()
+ {
+ GenRefMultiContainedImpl genRefMultiContained = new GenRefMultiContainedImpl();
+ return genRefMultiContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public GenRefMultiNonContained createGenRefMultiNonContained()
+ {
+ GenRefMultiNonContainedImpl genRefMultiNonContained = new GenRefMultiNonContainedImpl();
+ return genRefMultiNonContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplSingleRefContainer createImplSingleRefContainer()
+ {
+ ImplSingleRefContainerImpl implSingleRefContainer = new ImplSingleRefContainerImpl();
+ return implSingleRefContainer;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplSingleRefContainedElement createImplSingleRefContainedElement()
+ {
+ ImplSingleRefContainedElementImpl implSingleRefContainedElement = new ImplSingleRefContainedElementImpl();
+ return implSingleRefContainedElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplSingleRefNonContainer createImplSingleRefNonContainer()
+ {
+ ImplSingleRefNonContainerImpl implSingleRefNonContainer = new ImplSingleRefNonContainerImpl();
+ return implSingleRefNonContainer;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplSingleRefNonContainedElement createImplSingleRefNonContainedElement()
+ {
+ ImplSingleRefNonContainedElementImpl implSingleRefNonContainedElement = new ImplSingleRefNonContainedElementImpl();
+ return implSingleRefNonContainedElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplMultiRefNonContainer createImplMultiRefNonContainer()
+ {
+ ImplMultiRefNonContainerImpl implMultiRefNonContainer = new ImplMultiRefNonContainerImpl();
+ return implMultiRefNonContainer;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplMultiRefNonContainedElement createImplMultiRefNonContainedElement()
+ {
+ ImplMultiRefNonContainedElementImpl implMultiRefNonContainedElement = new ImplMultiRefNonContainedElementImpl();
+ return implMultiRefNonContainedElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplMultiRefContainer createImplMultiRefContainer()
+ {
+ ImplMultiRefContainerImpl implMultiRefContainer = new ImplMultiRefContainerImpl();
+ return implMultiRefContainer;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplMultiRefContainedElement createImplMultiRefContainedElement()
+ {
+ ImplMultiRefContainedElementImpl implMultiRefContainedElement = new ImplMultiRefContainedElementImpl();
+ return implMultiRefContainedElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplSingleRefContainerNPL createImplSingleRefContainerNPL()
+ {
+ ImplSingleRefContainerNPLImpl implSingleRefContainerNPL = new ImplSingleRefContainerNPLImpl();
+ return implSingleRefContainerNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplSingleRefNonContainerNPL createImplSingleRefNonContainerNPL()
+ {
+ ImplSingleRefNonContainerNPLImpl implSingleRefNonContainerNPL = new ImplSingleRefNonContainerNPLImpl();
+ return implSingleRefNonContainerNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplMultiRefContainerNPL createImplMultiRefContainerNPL()
+ {
+ ImplMultiRefContainerNPLImpl implMultiRefContainerNPL = new ImplMultiRefContainerNPLImpl();
+ return implMultiRefContainerNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplMultiRefNonContainerNPL createImplMultiRefNonContainerNPL()
+ {
+ ImplMultiRefNonContainerNPLImpl implMultiRefNonContainerNPL = new ImplMultiRefNonContainerNPLImpl();
+ return implMultiRefNonContainerNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplContainedElementNPL createImplContainedElementNPL()
+ {
+ ImplContainedElementNPLImpl implContainedElementNPL = new ImplContainedElementNPLImpl();
+ return implContainedElementNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public GenRefMultiNUNonContained createGenRefMultiNUNonContained()
+ {
+ GenRefMultiNUNonContainedImpl genRefMultiNUNonContained = new GenRefMultiNUNonContainedImpl();
+ return genRefMultiNUNonContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public GenRefMapNonContained createGenRefMapNonContained()
+ {
+ GenRefMapNonContainedImpl genRefMapNonContained = new GenRefMapNonContainedImpl();
+ return genRefMapNonContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Map.Entry<String, EObject> createStringToEObject()
+ {
+ StringToEObjectImpl stringToEObject = new StringToEObjectImpl();
+ return stringToEObject;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public model4Package getmodel4Package()
+ {
+ return (model4Package)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static model4Package getPackage()
+ {
+ return model4Package.eINSTANCE;
+ }
+
+} // model4FactoryImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/model4PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/model4PackageImpl.java index f3ae3bc5cd..a8409ce824 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/model4PackageImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/impl/model4PackageImpl.java @@ -1,1445 +1,1445 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.legacy.model4.model4Factory; -import org.eclipse.emf.cdo.tests.legacy.model4.model4Package; -import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage; -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; -import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained; -import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4.MultiContainedElement; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiContained; -import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable; -import org.eclipse.emf.cdo.tests.model4.RefSingleContained; -import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL; -import org.eclipse.emf.cdo.tests.model4.SingleContainedElement; -import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; - -import java.util.Map; - -/** - * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc --> - * - * @generated - */ -public class model4PackageImpl extends EPackageImpl implements model4Package -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refSingleContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass singleContainedElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refSingleNonContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass singleNonContainedElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refMultiContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass multiContainedElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refMultiNonContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass multiNonContainedElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refMultiNonContainedUnsettableEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass multiNonContainedUnsettableElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refSingleContainedNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refSingleNonContainedNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refMultiContainedNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refMultiNonContainedNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass containedElementNoOppositeEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass genRefSingleContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass genRefSingleNonContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass genRefMultiContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass genRefMultiNonContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implSingleRefContainerEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implSingleRefContainedElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implSingleRefNonContainerEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implSingleRefNonContainedElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implMultiRefNonContainerEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implMultiRefNonContainedElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implMultiRefContainerEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implMultiRefContainedElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implSingleRefContainerNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implSingleRefNonContainerNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implMultiRefContainerNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implMultiRefNonContainerNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implContainedElementNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass genRefMultiNUNonContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass genRefMapNonContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass stringToEObjectEClass = null; - - /** - * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry - * EPackage.Registry} by the package package URI value. - * <p> - * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also - * performs initialization of the package, or returns the registered package, if one already exists. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.emf.cdo.tests.legacy.model4.model4Package#eNS_URI - * @see #init() - * @generated - */ - private model4PackageImpl() - { - super(eNS_URI, model4Factory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. - * <p> - * This method is used to initialize {@link model4Package#eINSTANCE} when that field is accessed. Clients should not - * invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static model4Package init() - { - if (isInited) - return (model4Package)EPackage.Registry.INSTANCE.getEPackage(model4Package.eNS_URI); - - // Obtain or create and register package - model4PackageImpl themodel4Package = (model4PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof model4PackageImpl ? EPackage.Registry.INSTANCE - .get(eNS_URI) : new model4PackageImpl()); - - isInited = true; - - // Initialize simple dependencies - model4interfacesPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - themodel4Package.createPackageContents(); - - // Initialize created meta-data - themodel4Package.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - themodel4Package.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(model4Package.eNS_URI, themodel4Package); - return themodel4Package; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefSingleContained() - { - return refSingleContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefSingleContained_Element() - { - return (EReference)refSingleContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getSingleContainedElement() - { - return singleContainedElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getSingleContainedElement_Name() - { - return (EAttribute)singleContainedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getSingleContainedElement_Parent() - { - return (EReference)singleContainedElementEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefSingleNonContained() - { - return refSingleNonContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefSingleNonContained_Element() - { - return (EReference)refSingleNonContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getSingleNonContainedElement() - { - return singleNonContainedElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getSingleNonContainedElement_Name() - { - return (EAttribute)singleNonContainedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getSingleNonContainedElement_Parent() - { - return (EReference)singleNonContainedElementEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefMultiContained() - { - return refMultiContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefMultiContained_Elements() - { - return (EReference)refMultiContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getMultiContainedElement() - { - return multiContainedElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getMultiContainedElement_Name() - { - return (EAttribute)multiContainedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getMultiContainedElement_Parent() - { - return (EReference)multiContainedElementEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefMultiNonContained() - { - return refMultiNonContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefMultiNonContained_Elements() - { - return (EReference)refMultiNonContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getMultiNonContainedElement() - { - return multiNonContainedElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getMultiNonContainedElement_Name() - { - return (EAttribute)multiNonContainedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getMultiNonContainedElement_Parent() - { - return (EReference)multiNonContainedElementEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefMultiNonContainedUnsettable() - { - return refMultiNonContainedUnsettableEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefMultiNonContainedUnsettable_Elements() - { - return (EReference)refMultiNonContainedUnsettableEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getMultiNonContainedUnsettableElement() - { - return multiNonContainedUnsettableElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getMultiNonContainedUnsettableElement_Name() - { - return (EAttribute)multiNonContainedUnsettableElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getMultiNonContainedUnsettableElement_Parent() - { - return (EReference)multiNonContainedUnsettableElementEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefSingleContainedNPL() - { - return refSingleContainedNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefSingleContainedNPL_Element() - { - return (EReference)refSingleContainedNPLEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefSingleNonContainedNPL() - { - return refSingleNonContainedNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefSingleNonContainedNPL_Element() - { - return (EReference)refSingleNonContainedNPLEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefMultiContainedNPL() - { - return refMultiContainedNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefMultiContainedNPL_Elements() - { - return (EReference)refMultiContainedNPLEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefMultiNonContainedNPL() - { - return refMultiNonContainedNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefMultiNonContainedNPL_Elements() - { - return (EReference)refMultiNonContainedNPLEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getContainedElementNoOpposite() - { - return containedElementNoOppositeEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getContainedElementNoOpposite_Name() - { - return (EAttribute)containedElementNoOppositeEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getGenRefSingleContained() - { - return genRefSingleContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getGenRefSingleContained_Element() - { - return (EReference)genRefSingleContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getGenRefSingleNonContained() - { - return genRefSingleNonContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getGenRefSingleNonContained_Element() - { - return (EReference)genRefSingleNonContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getGenRefMultiContained() - { - return genRefMultiContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getGenRefMultiContained_Elements() - { - return (EReference)genRefMultiContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getGenRefMultiNonContained() - { - return genRefMultiNonContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getGenRefMultiNonContained_Elements() - { - return (EReference)genRefMultiNonContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplSingleRefContainer() - { - return implSingleRefContainerEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplSingleRefContainedElement() - { - return implSingleRefContainedElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getImplSingleRefContainedElement_Name() - { - return (EAttribute)implSingleRefContainedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplSingleRefNonContainer() - { - return implSingleRefNonContainerEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplSingleRefNonContainedElement() - { - return implSingleRefNonContainedElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getImplSingleRefNonContainedElement_Name() - { - return (EAttribute)implSingleRefNonContainedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplMultiRefNonContainer() - { - return implMultiRefNonContainerEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplMultiRefNonContainedElement() - { - return implMultiRefNonContainedElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getImplMultiRefNonContainedElement_Name() - { - return (EAttribute)implMultiRefNonContainedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplMultiRefContainer() - { - return implMultiRefContainerEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplMultiRefContainedElement() - { - return implMultiRefContainedElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getImplMultiRefContainedElement_Name() - { - return (EAttribute)implMultiRefContainedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplSingleRefContainerNPL() - { - return implSingleRefContainerNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplSingleRefNonContainerNPL() - { - return implSingleRefNonContainerNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplMultiRefContainerNPL() - { - return implMultiRefContainerNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplMultiRefNonContainerNPL() - { - return implMultiRefNonContainerNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplContainedElementNPL() - { - return implContainedElementNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getGenRefMultiNUNonContained() - { - return genRefMultiNUNonContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getGenRefMultiNUNonContained_Elements() - { - return (EReference)genRefMultiNUNonContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getGenRefMapNonContained() - { - return genRefMapNonContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getGenRefMapNonContained_Elements() - { - return (EReference)genRefMapNonContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getStringToEObject() - { - return stringToEObjectEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getStringToEObject_Key() - { - return (EAttribute)stringToEObjectEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getStringToEObject_Value() - { - return (EReference)stringToEObjectEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public model4Factory getmodel4Factory() - { - return (model4Factory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is guarded to have no affect on any invocation but its - * first. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void createPackageContents() - { - if (isCreated) - return; - isCreated = true; - - // Create classes and their features - refSingleContainedEClass = createEClass(REF_SINGLE_CONTAINED); - createEReference(refSingleContainedEClass, REF_SINGLE_CONTAINED__ELEMENT); - - singleContainedElementEClass = createEClass(SINGLE_CONTAINED_ELEMENT); - createEAttribute(singleContainedElementEClass, SINGLE_CONTAINED_ELEMENT__NAME); - createEReference(singleContainedElementEClass, SINGLE_CONTAINED_ELEMENT__PARENT); - - refSingleNonContainedEClass = createEClass(REF_SINGLE_NON_CONTAINED); - createEReference(refSingleNonContainedEClass, REF_SINGLE_NON_CONTAINED__ELEMENT); - - singleNonContainedElementEClass = createEClass(SINGLE_NON_CONTAINED_ELEMENT); - createEAttribute(singleNonContainedElementEClass, SINGLE_NON_CONTAINED_ELEMENT__NAME); - createEReference(singleNonContainedElementEClass, SINGLE_NON_CONTAINED_ELEMENT__PARENT); - - refMultiContainedEClass = createEClass(REF_MULTI_CONTAINED); - createEReference(refMultiContainedEClass, REF_MULTI_CONTAINED__ELEMENTS); - - multiContainedElementEClass = createEClass(MULTI_CONTAINED_ELEMENT); - createEAttribute(multiContainedElementEClass, MULTI_CONTAINED_ELEMENT__NAME); - createEReference(multiContainedElementEClass, MULTI_CONTAINED_ELEMENT__PARENT); - - refMultiNonContainedEClass = createEClass(REF_MULTI_NON_CONTAINED); - createEReference(refMultiNonContainedEClass, REF_MULTI_NON_CONTAINED__ELEMENTS); - - multiNonContainedElementEClass = createEClass(MULTI_NON_CONTAINED_ELEMENT); - createEAttribute(multiNonContainedElementEClass, MULTI_NON_CONTAINED_ELEMENT__NAME); - createEReference(multiNonContainedElementEClass, MULTI_NON_CONTAINED_ELEMENT__PARENT); - - refMultiNonContainedUnsettableEClass = createEClass(REF_MULTI_NON_CONTAINED_UNSETTABLE); - createEReference(refMultiNonContainedUnsettableEClass, REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS); - - multiNonContainedUnsettableElementEClass = createEClass(MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT); - createEAttribute(multiNonContainedUnsettableElementEClass, MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME); - createEReference(multiNonContainedUnsettableElementEClass, MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT); - - refSingleContainedNPLEClass = createEClass(REF_SINGLE_CONTAINED_NPL); - createEReference(refSingleContainedNPLEClass, REF_SINGLE_CONTAINED_NPL__ELEMENT); - - refSingleNonContainedNPLEClass = createEClass(REF_SINGLE_NON_CONTAINED_NPL); - createEReference(refSingleNonContainedNPLEClass, REF_SINGLE_NON_CONTAINED_NPL__ELEMENT); - - refMultiContainedNPLEClass = createEClass(REF_MULTI_CONTAINED_NPL); - createEReference(refMultiContainedNPLEClass, REF_MULTI_CONTAINED_NPL__ELEMENTS); - - refMultiNonContainedNPLEClass = createEClass(REF_MULTI_NON_CONTAINED_NPL); - createEReference(refMultiNonContainedNPLEClass, REF_MULTI_NON_CONTAINED_NPL__ELEMENTS); - - containedElementNoOppositeEClass = createEClass(CONTAINED_ELEMENT_NO_OPPOSITE); - createEAttribute(containedElementNoOppositeEClass, CONTAINED_ELEMENT_NO_OPPOSITE__NAME); - - genRefSingleContainedEClass = createEClass(GEN_REF_SINGLE_CONTAINED); - createEReference(genRefSingleContainedEClass, GEN_REF_SINGLE_CONTAINED__ELEMENT); - - genRefSingleNonContainedEClass = createEClass(GEN_REF_SINGLE_NON_CONTAINED); - createEReference(genRefSingleNonContainedEClass, GEN_REF_SINGLE_NON_CONTAINED__ELEMENT); - - genRefMultiContainedEClass = createEClass(GEN_REF_MULTI_CONTAINED); - createEReference(genRefMultiContainedEClass, GEN_REF_MULTI_CONTAINED__ELEMENTS); - - genRefMultiNonContainedEClass = createEClass(GEN_REF_MULTI_NON_CONTAINED); - createEReference(genRefMultiNonContainedEClass, GEN_REF_MULTI_NON_CONTAINED__ELEMENTS); - - implSingleRefContainerEClass = createEClass(IMPL_SINGLE_REF_CONTAINER); - - implSingleRefContainedElementEClass = createEClass(IMPL_SINGLE_REF_CONTAINED_ELEMENT); - createEAttribute(implSingleRefContainedElementEClass, IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME); - - implSingleRefNonContainerEClass = createEClass(IMPL_SINGLE_REF_NON_CONTAINER); - - implSingleRefNonContainedElementEClass = createEClass(IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT); - createEAttribute(implSingleRefNonContainedElementEClass, IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME); - - implMultiRefNonContainerEClass = createEClass(IMPL_MULTI_REF_NON_CONTAINER); - - implMultiRefNonContainedElementEClass = createEClass(IMPL_MULTI_REF_NON_CONTAINED_ELEMENT); - createEAttribute(implMultiRefNonContainedElementEClass, IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME); - - implMultiRefContainerEClass = createEClass(IMPL_MULTI_REF_CONTAINER); - - implMultiRefContainedElementEClass = createEClass(IMPL_MULTI_REF_CONTAINED_ELEMENT); - createEAttribute(implMultiRefContainedElementEClass, IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME); - - implSingleRefContainerNPLEClass = createEClass(IMPL_SINGLE_REF_CONTAINER_NPL); - - implSingleRefNonContainerNPLEClass = createEClass(IMPL_SINGLE_REF_NON_CONTAINER_NPL); - - implMultiRefContainerNPLEClass = createEClass(IMPL_MULTI_REF_CONTAINER_NPL); - - implMultiRefNonContainerNPLEClass = createEClass(IMPL_MULTI_REF_NON_CONTAINER_NPL); - - implContainedElementNPLEClass = createEClass(IMPL_CONTAINED_ELEMENT_NPL); - - genRefMultiNUNonContainedEClass = createEClass(GEN_REF_MULTI_NU_NON_CONTAINED); - createEReference(genRefMultiNUNonContainedEClass, GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS); - - genRefMapNonContainedEClass = createEClass(GEN_REF_MAP_NON_CONTAINED); - createEReference(genRefMapNonContainedEClass, GEN_REF_MAP_NON_CONTAINED__ELEMENTS); - - stringToEObjectEClass = createEClass(STRING_TO_EOBJECT); - createEAttribute(stringToEObjectEClass, STRING_TO_EOBJECT__KEY); - createEReference(stringToEObjectEClass, STRING_TO_EOBJECT__VALUE); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any - * invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void initializePackageContents() - { - if (isInitialized) - return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - model4interfacesPackage themodel4interfacesPackage = (model4interfacesPackage)EPackage.Registry.INSTANCE - .getEPackage(model4interfacesPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - implSingleRefContainerEClass.getESuperTypes().add(themodel4interfacesPackage.getISingleRefContainer()); - implSingleRefContainedElementEClass.getESuperTypes() - .add(themodel4interfacesPackage.getISingleRefContainedElement()); - implSingleRefNonContainerEClass.getESuperTypes().add(themodel4interfacesPackage.getISingleRefNonContainer()); - implSingleRefNonContainedElementEClass.getESuperTypes().add( - themodel4interfacesPackage.getISingleRefNonContainedElement()); - implMultiRefNonContainerEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefNonContainer()); - implMultiRefNonContainedElementEClass.getESuperTypes().add( - themodel4interfacesPackage.getIMultiRefNonContainedElement()); - implMultiRefContainerEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefContainer()); - implMultiRefContainedElementEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefContainedElement()); - implSingleRefContainerNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getISingleRefContainerNPL()); - implSingleRefNonContainerNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getISingleRefNonContainerNPL()); - implMultiRefContainerNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefContainerNPL()); - implMultiRefNonContainerNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefNonContainerNPL()); - implContainedElementNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getIContainedElementNoParentLink()); - implContainedElementNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getINamedElement()); - - // Initialize classes and features; add operations and parameters - initEClass(refSingleContainedEClass, RefSingleContained.class, "RefSingleContained", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefSingleContained_Element(), this.getSingleContainedElement(), - this.getSingleContainedElement_Parent(), "element", null, 0, 1, RefSingleContained.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(singleContainedElementEClass, SingleContainedElement.class, "SingleContainedElement", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSingleContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - SingleContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getSingleContainedElement_Parent(), this.getRefSingleContained(), - this.getRefSingleContained_Element(), "parent", null, 0, 1, SingleContainedElement.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(refSingleNonContainedEClass, RefSingleNonContained.class, "RefSingleNonContained", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefSingleNonContained_Element(), this.getSingleNonContainedElement(), - this.getSingleNonContainedElement_Parent(), "element", null, 0, 1, RefSingleNonContained.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(singleNonContainedElementEClass, SingleNonContainedElement.class, "SingleNonContainedElement", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSingleNonContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - SingleNonContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getSingleNonContainedElement_Parent(), this.getRefSingleNonContained(), - this.getRefSingleNonContained_Element(), "parent", null, 0, 1, SingleNonContainedElement.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(refMultiContainedEClass, RefMultiContained.class, "RefMultiContained", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefMultiContained_Elements(), this.getMultiContainedElement(), - this.getMultiContainedElement_Parent(), "elements", null, 0, -1, RefMultiContained.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(multiContainedElementEClass, MultiContainedElement.class, "MultiContainedElement", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMultiContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - MultiContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getMultiContainedElement_Parent(), this.getRefMultiContained(), - this.getRefMultiContained_Elements(), "parent", null, 0, 1, MultiContainedElement.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(refMultiNonContainedEClass, RefMultiNonContained.class, "RefMultiNonContained", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefMultiNonContained_Elements(), this.getMultiNonContainedElement(), - this.getMultiNonContainedElement_Parent(), "elements", null, 0, -1, RefMultiNonContained.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(multiNonContainedElementEClass, MultiNonContainedElement.class, "MultiNonContainedElement", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMultiNonContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - MultiNonContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getMultiNonContainedElement_Parent(), this.getRefMultiNonContained(), - this.getRefMultiNonContained_Elements(), "parent", null, 0, 1, MultiNonContainedElement.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(refMultiNonContainedUnsettableEClass, RefMultiNonContainedUnsettable.class, - "RefMultiNonContainedUnsettable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefMultiNonContainedUnsettable_Elements(), this.getMultiNonContainedUnsettableElement(), - this.getMultiNonContainedUnsettableElement_Parent(), "elements", null, 0, -1, - RefMultiNonContainedUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(multiNonContainedUnsettableElementEClass, MultiNonContainedUnsettableElement.class, - "MultiNonContainedUnsettableElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMultiNonContainedUnsettableElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - MultiNonContainedUnsettableElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMultiNonContainedUnsettableElement_Parent(), this.getRefMultiNonContainedUnsettable(), - this.getRefMultiNonContainedUnsettable_Elements(), "parent", null, 0, 1, - MultiNonContainedUnsettableElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(refSingleContainedNPLEClass, RefSingleContainedNPL.class, "RefSingleContainedNPL", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefSingleContainedNPL_Element(), this.getContainedElementNoOpposite(), null, "element", null, 0, - 1, RefSingleContainedNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(refSingleNonContainedNPLEClass, RefSingleNonContainedNPL.class, "RefSingleNonContainedNPL", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefSingleNonContainedNPL_Element(), this.getContainedElementNoOpposite(), null, "element", null, - 0, 1, RefSingleNonContainedNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(refMultiContainedNPLEClass, RefMultiContainedNPL.class, "RefMultiContainedNPL", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefMultiContainedNPL_Elements(), this.getContainedElementNoOpposite(), null, "elements", null, 0, - -1, RefMultiContainedNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(refMultiNonContainedNPLEClass, RefMultiNonContainedNPL.class, "RefMultiNonContainedNPL", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefMultiNonContainedNPL_Elements(), this.getContainedElementNoOpposite(), null, "elements", null, - 0, -1, RefMultiNonContainedNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(containedElementNoOppositeEClass, ContainedElementNoOpposite.class, "ContainedElementNoOpposite", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getContainedElementNoOpposite_Name(), ecorePackage.getEString(), "name", null, 0, 1, - ContainedElementNoOpposite.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(genRefSingleContainedEClass, GenRefSingleContained.class, "GenRefSingleContained", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getGenRefSingleContained_Element(), ecorePackage.getEObject(), null, "element", null, 0, 1, - GenRefSingleContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(genRefSingleNonContainedEClass, GenRefSingleNonContained.class, "GenRefSingleNonContained", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getGenRefSingleNonContained_Element(), ecorePackage.getEObject(), null, "element", null, 0, 1, - GenRefSingleNonContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(genRefMultiContainedEClass, GenRefMultiContained.class, "GenRefMultiContained", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getGenRefMultiContained_Elements(), ecorePackage.getEObject(), null, "elements", null, 0, -1, - GenRefMultiContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(genRefMultiNonContainedEClass, GenRefMultiNonContained.class, "GenRefMultiNonContained", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getGenRefMultiNonContained_Elements(), ecorePackage.getEObject(), null, "elements", null, 0, -1, - GenRefMultiNonContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(implSingleRefContainerEClass, ImplSingleRefContainer.class, "ImplSingleRefContainer", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(implSingleRefContainedElementEClass, ImplSingleRefContainedElement.class, - "ImplSingleRefContainedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getImplSingleRefContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - ImplSingleRefContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(implSingleRefNonContainerEClass, ImplSingleRefNonContainer.class, "ImplSingleRefNonContainer", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(implSingleRefNonContainedElementEClass, ImplSingleRefNonContainedElement.class, - "ImplSingleRefNonContainedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getImplSingleRefNonContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - ImplSingleRefNonContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(implMultiRefNonContainerEClass, ImplMultiRefNonContainer.class, "ImplMultiRefNonContainer", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(implMultiRefNonContainedElementEClass, ImplMultiRefNonContainedElement.class, - "ImplMultiRefNonContainedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getImplMultiRefNonContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - ImplMultiRefNonContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(implMultiRefContainerEClass, ImplMultiRefContainer.class, "ImplMultiRefContainer", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(implMultiRefContainedElementEClass, ImplMultiRefContainedElement.class, "ImplMultiRefContainedElement", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getImplMultiRefContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - ImplMultiRefContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(implSingleRefContainerNPLEClass, ImplSingleRefContainerNPL.class, "ImplSingleRefContainerNPL", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(implSingleRefNonContainerNPLEClass, ImplSingleRefNonContainerNPL.class, "ImplSingleRefNonContainerNPL", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(implMultiRefContainerNPLEClass, ImplMultiRefContainerNPL.class, "ImplMultiRefContainerNPL", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(implMultiRefNonContainerNPLEClass, ImplMultiRefNonContainerNPL.class, "ImplMultiRefNonContainerNPL", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(implContainedElementNPLEClass, ImplContainedElementNPL.class, "ImplContainedElementNPL", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(genRefMultiNUNonContainedEClass, GenRefMultiNUNonContained.class, "GenRefMultiNUNonContained", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getGenRefMultiNUNonContained_Elements(), ecorePackage.getEObject(), null, "elements", null, 0, -1, - GenRefMultiNUNonContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(genRefMapNonContainedEClass, GenRefMapNonContained.class, "GenRefMapNonContained", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getGenRefMapNonContained_Elements(), this.getStringToEObject(), null, "elements", null, 0, -1, - GenRefMapNonContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(stringToEObjectEClass, Map.Entry.class, "StringToEObject", !IS_ABSTRACT, !IS_INTERFACE, - !IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getStringToEObject_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(getStringToEObject_Value(), ecorePackage.getEObject(), null, "value", null, 0, 1, Map.Entry.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} // model4PackageImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Factory;
+import org.eclipse.emf.cdo.tests.legacy.model4.model4Package;
+import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage;
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.MultiContainedElement;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.SingleContainedElement;
+import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import java.util.Map;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class model4PackageImpl extends EPackageImpl implements model4Package
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refSingleContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass singleContainedElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refSingleNonContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass singleNonContainedElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refMultiContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass multiContainedElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refMultiNonContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass multiNonContainedElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refMultiNonContainedUnsettableEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass multiNonContainedUnsettableElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refSingleContainedNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refSingleNonContainedNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refMultiContainedNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refMultiNonContainedNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass containedElementNoOppositeEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass genRefSingleContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass genRefSingleNonContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass genRefMultiContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass genRefMultiNonContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implSingleRefContainerEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implSingleRefContainedElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implSingleRefNonContainerEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implSingleRefNonContainedElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implMultiRefNonContainerEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implMultiRefNonContainedElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implMultiRefContainerEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implMultiRefContainedElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implSingleRefContainerNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implSingleRefNonContainerNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implMultiRefContainerNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implMultiRefNonContainerNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implContainedElementNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass genRefMultiNUNonContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass genRefMapNonContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass stringToEObjectEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
+ * EPackage.Registry} by the package package URI value.
+ * <p>
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
+ * performs initialization of the package, or returns the registered package, if one already exists. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.model4Package#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private model4PackageImpl()
+ {
+ super(eNS_URI, model4Factory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ * <p>
+ * This method is used to initialize {@link model4Package#eINSTANCE} when that field is accessed. Clients should not
+ * invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static model4Package init()
+ {
+ if (isInited)
+ return (model4Package)EPackage.Registry.INSTANCE.getEPackage(model4Package.eNS_URI);
+
+ // Obtain or create and register package
+ model4PackageImpl themodel4Package = (model4PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof model4PackageImpl ? EPackage.Registry.INSTANCE
+ .get(eNS_URI) : new model4PackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ model4interfacesPackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ themodel4Package.createPackageContents();
+
+ // Initialize created meta-data
+ themodel4Package.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ themodel4Package.freeze();
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(model4Package.eNS_URI, themodel4Package);
+ return themodel4Package;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefSingleContained()
+ {
+ return refSingleContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefSingleContained_Element()
+ {
+ return (EReference)refSingleContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getSingleContainedElement()
+ {
+ return singleContainedElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getSingleContainedElement_Name()
+ {
+ return (EAttribute)singleContainedElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getSingleContainedElement_Parent()
+ {
+ return (EReference)singleContainedElementEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefSingleNonContained()
+ {
+ return refSingleNonContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefSingleNonContained_Element()
+ {
+ return (EReference)refSingleNonContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getSingleNonContainedElement()
+ {
+ return singleNonContainedElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getSingleNonContainedElement_Name()
+ {
+ return (EAttribute)singleNonContainedElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getSingleNonContainedElement_Parent()
+ {
+ return (EReference)singleNonContainedElementEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefMultiContained()
+ {
+ return refMultiContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefMultiContained_Elements()
+ {
+ return (EReference)refMultiContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getMultiContainedElement()
+ {
+ return multiContainedElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getMultiContainedElement_Name()
+ {
+ return (EAttribute)multiContainedElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getMultiContainedElement_Parent()
+ {
+ return (EReference)multiContainedElementEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefMultiNonContained()
+ {
+ return refMultiNonContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefMultiNonContained_Elements()
+ {
+ return (EReference)refMultiNonContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getMultiNonContainedElement()
+ {
+ return multiNonContainedElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getMultiNonContainedElement_Name()
+ {
+ return (EAttribute)multiNonContainedElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getMultiNonContainedElement_Parent()
+ {
+ return (EReference)multiNonContainedElementEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefMultiNonContainedUnsettable()
+ {
+ return refMultiNonContainedUnsettableEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefMultiNonContainedUnsettable_Elements()
+ {
+ return (EReference)refMultiNonContainedUnsettableEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getMultiNonContainedUnsettableElement()
+ {
+ return multiNonContainedUnsettableElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getMultiNonContainedUnsettableElement_Name()
+ {
+ return (EAttribute)multiNonContainedUnsettableElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getMultiNonContainedUnsettableElement_Parent()
+ {
+ return (EReference)multiNonContainedUnsettableElementEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefSingleContainedNPL()
+ {
+ return refSingleContainedNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefSingleContainedNPL_Element()
+ {
+ return (EReference)refSingleContainedNPLEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefSingleNonContainedNPL()
+ {
+ return refSingleNonContainedNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefSingleNonContainedNPL_Element()
+ {
+ return (EReference)refSingleNonContainedNPLEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefMultiContainedNPL()
+ {
+ return refMultiContainedNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefMultiContainedNPL_Elements()
+ {
+ return (EReference)refMultiContainedNPLEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefMultiNonContainedNPL()
+ {
+ return refMultiNonContainedNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefMultiNonContainedNPL_Elements()
+ {
+ return (EReference)refMultiNonContainedNPLEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getContainedElementNoOpposite()
+ {
+ return containedElementNoOppositeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getContainedElementNoOpposite_Name()
+ {
+ return (EAttribute)containedElementNoOppositeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getGenRefSingleContained()
+ {
+ return genRefSingleContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getGenRefSingleContained_Element()
+ {
+ return (EReference)genRefSingleContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getGenRefSingleNonContained()
+ {
+ return genRefSingleNonContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getGenRefSingleNonContained_Element()
+ {
+ return (EReference)genRefSingleNonContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getGenRefMultiContained()
+ {
+ return genRefMultiContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getGenRefMultiContained_Elements()
+ {
+ return (EReference)genRefMultiContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getGenRefMultiNonContained()
+ {
+ return genRefMultiNonContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getGenRefMultiNonContained_Elements()
+ {
+ return (EReference)genRefMultiNonContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplSingleRefContainer()
+ {
+ return implSingleRefContainerEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplSingleRefContainedElement()
+ {
+ return implSingleRefContainedElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getImplSingleRefContainedElement_Name()
+ {
+ return (EAttribute)implSingleRefContainedElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplSingleRefNonContainer()
+ {
+ return implSingleRefNonContainerEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplSingleRefNonContainedElement()
+ {
+ return implSingleRefNonContainedElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getImplSingleRefNonContainedElement_Name()
+ {
+ return (EAttribute)implSingleRefNonContainedElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplMultiRefNonContainer()
+ {
+ return implMultiRefNonContainerEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplMultiRefNonContainedElement()
+ {
+ return implMultiRefNonContainedElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getImplMultiRefNonContainedElement_Name()
+ {
+ return (EAttribute)implMultiRefNonContainedElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplMultiRefContainer()
+ {
+ return implMultiRefContainerEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplMultiRefContainedElement()
+ {
+ return implMultiRefContainedElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getImplMultiRefContainedElement_Name()
+ {
+ return (EAttribute)implMultiRefContainedElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplSingleRefContainerNPL()
+ {
+ return implSingleRefContainerNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplSingleRefNonContainerNPL()
+ {
+ return implSingleRefNonContainerNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplMultiRefContainerNPL()
+ {
+ return implMultiRefContainerNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplMultiRefNonContainerNPL()
+ {
+ return implMultiRefNonContainerNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplContainedElementNPL()
+ {
+ return implContainedElementNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getGenRefMultiNUNonContained()
+ {
+ return genRefMultiNUNonContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getGenRefMultiNUNonContained_Elements()
+ {
+ return (EReference)genRefMultiNUNonContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getGenRefMapNonContained()
+ {
+ return genRefMapNonContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getGenRefMapNonContained_Elements()
+ {
+ return (EReference)genRefMapNonContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getStringToEObject()
+ {
+ return stringToEObjectEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getStringToEObject_Key()
+ {
+ return (EAttribute)stringToEObjectEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getStringToEObject_Value()
+ {
+ return (EReference)stringToEObjectEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public model4Factory getmodel4Factory()
+ {
+ return (model4Factory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is guarded to have no affect on any invocation but its
+ * first. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void createPackageContents()
+ {
+ if (isCreated)
+ return;
+ isCreated = true;
+
+ // Create classes and their features
+ refSingleContainedEClass = createEClass(REF_SINGLE_CONTAINED);
+ createEReference(refSingleContainedEClass, REF_SINGLE_CONTAINED__ELEMENT);
+
+ singleContainedElementEClass = createEClass(SINGLE_CONTAINED_ELEMENT);
+ createEAttribute(singleContainedElementEClass, SINGLE_CONTAINED_ELEMENT__NAME);
+ createEReference(singleContainedElementEClass, SINGLE_CONTAINED_ELEMENT__PARENT);
+
+ refSingleNonContainedEClass = createEClass(REF_SINGLE_NON_CONTAINED);
+ createEReference(refSingleNonContainedEClass, REF_SINGLE_NON_CONTAINED__ELEMENT);
+
+ singleNonContainedElementEClass = createEClass(SINGLE_NON_CONTAINED_ELEMENT);
+ createEAttribute(singleNonContainedElementEClass, SINGLE_NON_CONTAINED_ELEMENT__NAME);
+ createEReference(singleNonContainedElementEClass, SINGLE_NON_CONTAINED_ELEMENT__PARENT);
+
+ refMultiContainedEClass = createEClass(REF_MULTI_CONTAINED);
+ createEReference(refMultiContainedEClass, REF_MULTI_CONTAINED__ELEMENTS);
+
+ multiContainedElementEClass = createEClass(MULTI_CONTAINED_ELEMENT);
+ createEAttribute(multiContainedElementEClass, MULTI_CONTAINED_ELEMENT__NAME);
+ createEReference(multiContainedElementEClass, MULTI_CONTAINED_ELEMENT__PARENT);
+
+ refMultiNonContainedEClass = createEClass(REF_MULTI_NON_CONTAINED);
+ createEReference(refMultiNonContainedEClass, REF_MULTI_NON_CONTAINED__ELEMENTS);
+
+ multiNonContainedElementEClass = createEClass(MULTI_NON_CONTAINED_ELEMENT);
+ createEAttribute(multiNonContainedElementEClass, MULTI_NON_CONTAINED_ELEMENT__NAME);
+ createEReference(multiNonContainedElementEClass, MULTI_NON_CONTAINED_ELEMENT__PARENT);
+
+ refMultiNonContainedUnsettableEClass = createEClass(REF_MULTI_NON_CONTAINED_UNSETTABLE);
+ createEReference(refMultiNonContainedUnsettableEClass, REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS);
+
+ multiNonContainedUnsettableElementEClass = createEClass(MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT);
+ createEAttribute(multiNonContainedUnsettableElementEClass, MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME);
+ createEReference(multiNonContainedUnsettableElementEClass, MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT);
+
+ refSingleContainedNPLEClass = createEClass(REF_SINGLE_CONTAINED_NPL);
+ createEReference(refSingleContainedNPLEClass, REF_SINGLE_CONTAINED_NPL__ELEMENT);
+
+ refSingleNonContainedNPLEClass = createEClass(REF_SINGLE_NON_CONTAINED_NPL);
+ createEReference(refSingleNonContainedNPLEClass, REF_SINGLE_NON_CONTAINED_NPL__ELEMENT);
+
+ refMultiContainedNPLEClass = createEClass(REF_MULTI_CONTAINED_NPL);
+ createEReference(refMultiContainedNPLEClass, REF_MULTI_CONTAINED_NPL__ELEMENTS);
+
+ refMultiNonContainedNPLEClass = createEClass(REF_MULTI_NON_CONTAINED_NPL);
+ createEReference(refMultiNonContainedNPLEClass, REF_MULTI_NON_CONTAINED_NPL__ELEMENTS);
+
+ containedElementNoOppositeEClass = createEClass(CONTAINED_ELEMENT_NO_OPPOSITE);
+ createEAttribute(containedElementNoOppositeEClass, CONTAINED_ELEMENT_NO_OPPOSITE__NAME);
+
+ genRefSingleContainedEClass = createEClass(GEN_REF_SINGLE_CONTAINED);
+ createEReference(genRefSingleContainedEClass, GEN_REF_SINGLE_CONTAINED__ELEMENT);
+
+ genRefSingleNonContainedEClass = createEClass(GEN_REF_SINGLE_NON_CONTAINED);
+ createEReference(genRefSingleNonContainedEClass, GEN_REF_SINGLE_NON_CONTAINED__ELEMENT);
+
+ genRefMultiContainedEClass = createEClass(GEN_REF_MULTI_CONTAINED);
+ createEReference(genRefMultiContainedEClass, GEN_REF_MULTI_CONTAINED__ELEMENTS);
+
+ genRefMultiNonContainedEClass = createEClass(GEN_REF_MULTI_NON_CONTAINED);
+ createEReference(genRefMultiNonContainedEClass, GEN_REF_MULTI_NON_CONTAINED__ELEMENTS);
+
+ implSingleRefContainerEClass = createEClass(IMPL_SINGLE_REF_CONTAINER);
+
+ implSingleRefContainedElementEClass = createEClass(IMPL_SINGLE_REF_CONTAINED_ELEMENT);
+ createEAttribute(implSingleRefContainedElementEClass, IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME);
+
+ implSingleRefNonContainerEClass = createEClass(IMPL_SINGLE_REF_NON_CONTAINER);
+
+ implSingleRefNonContainedElementEClass = createEClass(IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT);
+ createEAttribute(implSingleRefNonContainedElementEClass, IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME);
+
+ implMultiRefNonContainerEClass = createEClass(IMPL_MULTI_REF_NON_CONTAINER);
+
+ implMultiRefNonContainedElementEClass = createEClass(IMPL_MULTI_REF_NON_CONTAINED_ELEMENT);
+ createEAttribute(implMultiRefNonContainedElementEClass, IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME);
+
+ implMultiRefContainerEClass = createEClass(IMPL_MULTI_REF_CONTAINER);
+
+ implMultiRefContainedElementEClass = createEClass(IMPL_MULTI_REF_CONTAINED_ELEMENT);
+ createEAttribute(implMultiRefContainedElementEClass, IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME);
+
+ implSingleRefContainerNPLEClass = createEClass(IMPL_SINGLE_REF_CONTAINER_NPL);
+
+ implSingleRefNonContainerNPLEClass = createEClass(IMPL_SINGLE_REF_NON_CONTAINER_NPL);
+
+ implMultiRefContainerNPLEClass = createEClass(IMPL_MULTI_REF_CONTAINER_NPL);
+
+ implMultiRefNonContainerNPLEClass = createEClass(IMPL_MULTI_REF_NON_CONTAINER_NPL);
+
+ implContainedElementNPLEClass = createEClass(IMPL_CONTAINED_ELEMENT_NPL);
+
+ genRefMultiNUNonContainedEClass = createEClass(GEN_REF_MULTI_NU_NON_CONTAINED);
+ createEReference(genRefMultiNUNonContainedEClass, GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS);
+
+ genRefMapNonContainedEClass = createEClass(GEN_REF_MAP_NON_CONTAINED);
+ createEReference(genRefMapNonContainedEClass, GEN_REF_MAP_NON_CONTAINED__ELEMENTS);
+
+ stringToEObjectEClass = createEClass(STRING_TO_EOBJECT);
+ createEAttribute(stringToEObjectEClass, STRING_TO_EOBJECT__KEY);
+ createEReference(stringToEObjectEClass, STRING_TO_EOBJECT__VALUE);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any
+ * invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void initializePackageContents()
+ {
+ if (isInitialized)
+ return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ model4interfacesPackage themodel4interfacesPackage = (model4interfacesPackage)EPackage.Registry.INSTANCE
+ .getEPackage(model4interfacesPackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ implSingleRefContainerEClass.getESuperTypes().add(themodel4interfacesPackage.getISingleRefContainer());
+ implSingleRefContainedElementEClass.getESuperTypes()
+ .add(themodel4interfacesPackage.getISingleRefContainedElement());
+ implSingleRefNonContainerEClass.getESuperTypes().add(themodel4interfacesPackage.getISingleRefNonContainer());
+ implSingleRefNonContainedElementEClass.getESuperTypes().add(
+ themodel4interfacesPackage.getISingleRefNonContainedElement());
+ implMultiRefNonContainerEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefNonContainer());
+ implMultiRefNonContainedElementEClass.getESuperTypes().add(
+ themodel4interfacesPackage.getIMultiRefNonContainedElement());
+ implMultiRefContainerEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefContainer());
+ implMultiRefContainedElementEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefContainedElement());
+ implSingleRefContainerNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getISingleRefContainerNPL());
+ implSingleRefNonContainerNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getISingleRefNonContainerNPL());
+ implMultiRefContainerNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefContainerNPL());
+ implMultiRefNonContainerNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefNonContainerNPL());
+ implContainedElementNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getIContainedElementNoParentLink());
+ implContainedElementNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getINamedElement());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(refSingleContainedEClass, RefSingleContained.class, "RefSingleContained", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefSingleContained_Element(), this.getSingleContainedElement(),
+ this.getSingleContainedElement_Parent(), "element", null, 0, 1, RefSingleContained.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(singleContainedElementEClass, SingleContainedElement.class, "SingleContainedElement", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getSingleContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ SingleContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getSingleContainedElement_Parent(), this.getRefSingleContained(),
+ this.getRefSingleContained_Element(), "parent", null, 0, 1, SingleContainedElement.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(refSingleNonContainedEClass, RefSingleNonContained.class, "RefSingleNonContained", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefSingleNonContained_Element(), this.getSingleNonContainedElement(),
+ this.getSingleNonContainedElement_Parent(), "element", null, 0, 1, RefSingleNonContained.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(singleNonContainedElementEClass, SingleNonContainedElement.class, "SingleNonContainedElement",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getSingleNonContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ SingleNonContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getSingleNonContainedElement_Parent(), this.getRefSingleNonContained(),
+ this.getRefSingleNonContained_Element(), "parent", null, 0, 1, SingleNonContainedElement.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(refMultiContainedEClass, RefMultiContained.class, "RefMultiContained", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefMultiContained_Elements(), this.getMultiContainedElement(),
+ this.getMultiContainedElement_Parent(), "elements", null, 0, -1, RefMultiContained.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(multiContainedElementEClass, MultiContainedElement.class, "MultiContainedElement", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getMultiContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ MultiContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getMultiContainedElement_Parent(), this.getRefMultiContained(),
+ this.getRefMultiContained_Elements(), "parent", null, 0, 1, MultiContainedElement.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(refMultiNonContainedEClass, RefMultiNonContained.class, "RefMultiNonContained", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefMultiNonContained_Elements(), this.getMultiNonContainedElement(),
+ this.getMultiNonContainedElement_Parent(), "elements", null, 0, -1, RefMultiNonContained.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(multiNonContainedElementEClass, MultiNonContainedElement.class, "MultiNonContainedElement",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getMultiNonContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ MultiNonContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getMultiNonContainedElement_Parent(), this.getRefMultiNonContained(),
+ this.getRefMultiNonContained_Elements(), "parent", null, 0, 1, MultiNonContainedElement.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(refMultiNonContainedUnsettableEClass, RefMultiNonContainedUnsettable.class,
+ "RefMultiNonContainedUnsettable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefMultiNonContainedUnsettable_Elements(), this.getMultiNonContainedUnsettableElement(),
+ this.getMultiNonContainedUnsettableElement_Parent(), "elements", null, 0, -1,
+ RefMultiNonContainedUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,
+ IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(multiNonContainedUnsettableElementEClass, MultiNonContainedUnsettableElement.class,
+ "MultiNonContainedUnsettableElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getMultiNonContainedUnsettableElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ MultiNonContainedUnsettableElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getMultiNonContainedUnsettableElement_Parent(), this.getRefMultiNonContainedUnsettable(),
+ this.getRefMultiNonContainedUnsettable_Elements(), "parent", null, 0, 1,
+ MultiNonContainedUnsettableElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,
+ IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(refSingleContainedNPLEClass, RefSingleContainedNPL.class, "RefSingleContainedNPL", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefSingleContainedNPL_Element(), this.getContainedElementNoOpposite(), null, "element", null, 0,
+ 1, RefSingleContainedNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(refSingleNonContainedNPLEClass, RefSingleNonContainedNPL.class, "RefSingleNonContainedNPL",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefSingleNonContainedNPL_Element(), this.getContainedElementNoOpposite(), null, "element", null,
+ 0, 1, RefSingleNonContainedNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,
+ IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(refMultiContainedNPLEClass, RefMultiContainedNPL.class, "RefMultiContainedNPL", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefMultiContainedNPL_Elements(), this.getContainedElementNoOpposite(), null, "elements", null, 0,
+ -1, RefMultiContainedNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(refMultiNonContainedNPLEClass, RefMultiNonContainedNPL.class, "RefMultiNonContainedNPL", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefMultiNonContainedNPL_Elements(), this.getContainedElementNoOpposite(), null, "elements", null,
+ 0, -1, RefMultiNonContainedNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,
+ IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(containedElementNoOppositeEClass, ContainedElementNoOpposite.class, "ContainedElementNoOpposite",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getContainedElementNoOpposite_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ ContainedElementNoOpposite.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(genRefSingleContainedEClass, GenRefSingleContained.class, "GenRefSingleContained", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGenRefSingleContained_Element(), ecorePackage.getEObject(), null, "element", null, 0, 1,
+ GenRefSingleContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(genRefSingleNonContainedEClass, GenRefSingleNonContained.class, "GenRefSingleNonContained",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGenRefSingleNonContained_Element(), ecorePackage.getEObject(), null, "element", null, 0, 1,
+ GenRefSingleNonContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(genRefMultiContainedEClass, GenRefMultiContained.class, "GenRefMultiContained", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGenRefMultiContained_Elements(), ecorePackage.getEObject(), null, "elements", null, 0, -1,
+ GenRefMultiContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(genRefMultiNonContainedEClass, GenRefMultiNonContained.class, "GenRefMultiNonContained", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGenRefMultiNonContained_Elements(), ecorePackage.getEObject(), null, "elements", null, 0, -1,
+ GenRefMultiNonContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(implSingleRefContainerEClass, ImplSingleRefContainer.class, "ImplSingleRefContainer", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(implSingleRefContainedElementEClass, ImplSingleRefContainedElement.class,
+ "ImplSingleRefContainedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getImplSingleRefContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ ImplSingleRefContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(implSingleRefNonContainerEClass, ImplSingleRefNonContainer.class, "ImplSingleRefNonContainer",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(implSingleRefNonContainedElementEClass, ImplSingleRefNonContainedElement.class,
+ "ImplSingleRefNonContainedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getImplSingleRefNonContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ ImplSingleRefNonContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(implMultiRefNonContainerEClass, ImplMultiRefNonContainer.class, "ImplMultiRefNonContainer",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(implMultiRefNonContainedElementEClass, ImplMultiRefNonContainedElement.class,
+ "ImplMultiRefNonContainedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getImplMultiRefNonContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ ImplMultiRefNonContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(implMultiRefContainerEClass, ImplMultiRefContainer.class, "ImplMultiRefContainer", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(implMultiRefContainedElementEClass, ImplMultiRefContainedElement.class, "ImplMultiRefContainedElement",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getImplMultiRefContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ ImplMultiRefContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(implSingleRefContainerNPLEClass, ImplSingleRefContainerNPL.class, "ImplSingleRefContainerNPL",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(implSingleRefNonContainerNPLEClass, ImplSingleRefNonContainerNPL.class, "ImplSingleRefNonContainerNPL",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(implMultiRefContainerNPLEClass, ImplMultiRefContainerNPL.class, "ImplMultiRefContainerNPL",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(implMultiRefNonContainerNPLEClass, ImplMultiRefNonContainerNPL.class, "ImplMultiRefNonContainerNPL",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(implContainedElementNPLEClass, ImplContainedElementNPL.class, "ImplContainedElementNPL", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(genRefMultiNUNonContainedEClass, GenRefMultiNUNonContained.class, "GenRefMultiNUNonContained",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGenRefMultiNUNonContained_Elements(), ecorePackage.getEObject(), null, "elements", null, 0, -1,
+ GenRefMultiNUNonContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,
+ !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(genRefMapNonContainedEClass, GenRefMapNonContained.class, "GenRefMapNonContained", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGenRefMapNonContained_Elements(), this.getStringToEObject(), null, "elements", null, 0, -1,
+ GenRefMapNonContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(stringToEObjectEClass, Map.Entry.class, "StringToEObject", !IS_ABSTRACT, !IS_INTERFACE,
+ !IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getStringToEObject_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(getStringToEObject_Value(), ecorePackage.getEObject(), null, "value", null, 0, 1, Map.Entry.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} // model4PackageImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/model4Factory.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/model4Factory.java index 8dfd1efdf4..8b3ab16220 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/model4Factory.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/model4Factory.java @@ -1,361 +1,361 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; -import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained; -import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4.MultiContainedElement; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiContained; -import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable; -import org.eclipse.emf.cdo.tests.model4.RefSingleContained; -import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL; -import org.eclipse.emf.cdo.tests.model4.SingleContainedElement; -import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement; - -/** - * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a create method for each non-abstract class of - * the model. <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.model4Package - * @generated - */ -public interface model4Factory extends org.eclipse.emf.cdo.tests.model4.model4Factory -{ - /** - * The singleton instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - model4Factory eINSTANCE = org.eclipse.emf.cdo.tests.legacy.model4.impl.model4FactoryImpl.init(); - - /** - * Returns a new object of class '<em>Ref Single Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Ref Single Contained</em>'. - * @generated - */ - RefSingleContained createRefSingleContained(); - - /** - * Returns a new object of class '<em>Single Contained Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Single Contained Element</em>'. - * @generated - */ - SingleContainedElement createSingleContainedElement(); - - /** - * Returns a new object of class '<em>Ref Single Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Ref Single Non Contained</em>'. - * @generated - */ - RefSingleNonContained createRefSingleNonContained(); - - /** - * Returns a new object of class '<em>Single Non Contained Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Single Non Contained Element</em>'. - * @generated - */ - SingleNonContainedElement createSingleNonContainedElement(); - - /** - * Returns a new object of class '<em>Ref Multi Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Ref Multi Contained</em>'. - * @generated - */ - RefMultiContained createRefMultiContained(); - - /** - * Returns a new object of class '<em>Multi Contained Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Multi Contained Element</em>'. - * @generated - */ - MultiContainedElement createMultiContainedElement(); - - /** - * Returns a new object of class '<em>Ref Multi Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Ref Multi Non Contained</em>'. - * @generated - */ - RefMultiNonContained createRefMultiNonContained(); - - /** - * Returns a new object of class '<em>Multi Non Contained Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Multi Non Contained Element</em>'. - * @generated - */ - MultiNonContainedElement createMultiNonContainedElement(); - - /** - * Returns a new object of class '<em>Ref Multi Non Contained Unsettable</em>'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return a new object of class '<em>Ref Multi Non Contained Unsettable</em>'. - * @generated - */ - RefMultiNonContainedUnsettable createRefMultiNonContainedUnsettable(); - - /** - * Returns a new object of class '<em>Multi Non Contained Unsettable Element</em>'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return a new object of class '<em>Multi Non Contained Unsettable Element</em>'. - * @generated - */ - MultiNonContainedUnsettableElement createMultiNonContainedUnsettableElement(); - - /** - * Returns a new object of class '<em>Ref Single Contained NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Ref Single Contained NPL</em>'. - * @generated - */ - RefSingleContainedNPL createRefSingleContainedNPL(); - - /** - * Returns a new object of class '<em>Ref Single Non Contained NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Ref Single Non Contained NPL</em>'. - * @generated - */ - RefSingleNonContainedNPL createRefSingleNonContainedNPL(); - - /** - * Returns a new object of class '<em>Ref Multi Contained NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Ref Multi Contained NPL</em>'. - * @generated - */ - RefMultiContainedNPL createRefMultiContainedNPL(); - - /** - * Returns a new object of class '<em>Ref Multi Non Contained NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Ref Multi Non Contained NPL</em>'. - * @generated - */ - RefMultiNonContainedNPL createRefMultiNonContainedNPL(); - - /** - * Returns a new object of class '<em>Contained Element No Opposite</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Contained Element No Opposite</em>'. - * @generated - */ - ContainedElementNoOpposite createContainedElementNoOpposite(); - - /** - * Returns a new object of class '<em>Gen Ref Single Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Gen Ref Single Contained</em>'. - * @generated - */ - GenRefSingleContained createGenRefSingleContained(); - - /** - * Returns a new object of class '<em>Gen Ref Single Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Gen Ref Single Non Contained</em>'. - * @generated - */ - GenRefSingleNonContained createGenRefSingleNonContained(); - - /** - * Returns a new object of class '<em>Gen Ref Multi Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Gen Ref Multi Contained</em>'. - * @generated - */ - GenRefMultiContained createGenRefMultiContained(); - - /** - * Returns a new object of class '<em>Gen Ref Multi Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Gen Ref Multi Non Contained</em>'. - * @generated - */ - GenRefMultiNonContained createGenRefMultiNonContained(); - - /** - * Returns a new object of class '<em>Impl Single Ref Container</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Impl Single Ref Container</em>'. - * @generated - */ - ImplSingleRefContainer createImplSingleRefContainer(); - - /** - * Returns a new object of class '<em>Impl Single Ref Contained Element</em>'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return a new object of class '<em>Impl Single Ref Contained Element</em>'. - * @generated - */ - ImplSingleRefContainedElement createImplSingleRefContainedElement(); - - /** - * Returns a new object of class '<em>Impl Single Ref Non Container</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Impl Single Ref Non Container</em>'. - * @generated - */ - ImplSingleRefNonContainer createImplSingleRefNonContainer(); - - /** - * Returns a new object of class '<em>Impl Single Ref Non Contained Element</em>'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return a new object of class '<em>Impl Single Ref Non Contained Element</em>'. - * @generated - */ - ImplSingleRefNonContainedElement createImplSingleRefNonContainedElement(); - - /** - * Returns a new object of class '<em>Impl Multi Ref Non Container</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Impl Multi Ref Non Container</em>'. - * @generated - */ - ImplMultiRefNonContainer createImplMultiRefNonContainer(); - - /** - * Returns a new object of class '<em>Impl Multi Ref Non Contained Element</em>'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return a new object of class '<em>Impl Multi Ref Non Contained Element</em>'. - * @generated - */ - ImplMultiRefNonContainedElement createImplMultiRefNonContainedElement(); - - /** - * Returns a new object of class '<em>Impl Multi Ref Container</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Impl Multi Ref Container</em>'. - * @generated - */ - ImplMultiRefContainer createImplMultiRefContainer(); - - /** - * Returns a new object of class '<em>Impl Multi Ref Contained Element</em>'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return a new object of class '<em>Impl Multi Ref Contained Element</em>'. - * @generated - */ - ImplMultiRefContainedElement createImplMultiRefContainedElement(); - - /** - * Returns a new object of class '<em>Impl Single Ref Container NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Impl Single Ref Container NPL</em>'. - * @generated - */ - ImplSingleRefContainerNPL createImplSingleRefContainerNPL(); - - /** - * Returns a new object of class '<em>Impl Single Ref Non Container NPL</em>'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return a new object of class '<em>Impl Single Ref Non Container NPL</em>'. - * @generated - */ - ImplSingleRefNonContainerNPL createImplSingleRefNonContainerNPL(); - - /** - * Returns a new object of class '<em>Impl Multi Ref Container NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Impl Multi Ref Container NPL</em>'. - * @generated - */ - ImplMultiRefContainerNPL createImplMultiRefContainerNPL(); - - /** - * Returns a new object of class '<em>Impl Multi Ref Non Container NPL</em>'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return a new object of class '<em>Impl Multi Ref Non Container NPL</em>'. - * @generated - */ - ImplMultiRefNonContainerNPL createImplMultiRefNonContainerNPL(); - - /** - * Returns a new object of class '<em>Impl Contained Element NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Impl Contained Element NPL</em>'. - * @generated - */ - ImplContainedElementNPL createImplContainedElementNPL(); - - /** - * Returns a new object of class '<em>Gen Ref Multi NU Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Gen Ref Multi NU Non Contained</em>'. - * @generated - */ - GenRefMultiNUNonContained createGenRefMultiNUNonContained(); - - /** - * Returns a new object of class '<em>Gen Ref Map Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Gen Ref Map Non Contained</em>'. - * @generated - */ - GenRefMapNonContained createGenRefMapNonContained(); - - /** - * Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the package supported by this factory. - * @generated - */ - model4Package getmodel4Package(); - -} // model4Factory +/*
+ * 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.model4;
+
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.MultiContainedElement;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.SingleContainedElement;
+import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement;
+
+/**
+ * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a create method for each non-abstract class of
+ * the model. <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.model4Package
+ * @generated
+ */
+public interface model4Factory extends org.eclipse.emf.cdo.tests.model4.model4Factory
+{
+ /**
+ * The singleton instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ model4Factory eINSTANCE = org.eclipse.emf.cdo.tests.legacy.model4.impl.model4FactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Ref Single Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Ref Single Contained</em>'.
+ * @generated
+ */
+ RefSingleContained createRefSingleContained();
+
+ /**
+ * Returns a new object of class '<em>Single Contained Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Single Contained Element</em>'.
+ * @generated
+ */
+ SingleContainedElement createSingleContainedElement();
+
+ /**
+ * Returns a new object of class '<em>Ref Single Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Ref Single Non Contained</em>'.
+ * @generated
+ */
+ RefSingleNonContained createRefSingleNonContained();
+
+ /**
+ * Returns a new object of class '<em>Single Non Contained Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Single Non Contained Element</em>'.
+ * @generated
+ */
+ SingleNonContainedElement createSingleNonContainedElement();
+
+ /**
+ * Returns a new object of class '<em>Ref Multi Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Ref Multi Contained</em>'.
+ * @generated
+ */
+ RefMultiContained createRefMultiContained();
+
+ /**
+ * Returns a new object of class '<em>Multi Contained Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Multi Contained Element</em>'.
+ * @generated
+ */
+ MultiContainedElement createMultiContainedElement();
+
+ /**
+ * Returns a new object of class '<em>Ref Multi Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Ref Multi Non Contained</em>'.
+ * @generated
+ */
+ RefMultiNonContained createRefMultiNonContained();
+
+ /**
+ * Returns a new object of class '<em>Multi Non Contained Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Multi Non Contained Element</em>'.
+ * @generated
+ */
+ MultiNonContainedElement createMultiNonContainedElement();
+
+ /**
+ * Returns a new object of class '<em>Ref Multi Non Contained Unsettable</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>Ref Multi Non Contained Unsettable</em>'.
+ * @generated
+ */
+ RefMultiNonContainedUnsettable createRefMultiNonContainedUnsettable();
+
+ /**
+ * Returns a new object of class '<em>Multi Non Contained Unsettable Element</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>Multi Non Contained Unsettable Element</em>'.
+ * @generated
+ */
+ MultiNonContainedUnsettableElement createMultiNonContainedUnsettableElement();
+
+ /**
+ * Returns a new object of class '<em>Ref Single Contained NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Ref Single Contained NPL</em>'.
+ * @generated
+ */
+ RefSingleContainedNPL createRefSingleContainedNPL();
+
+ /**
+ * Returns a new object of class '<em>Ref Single Non Contained NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Ref Single Non Contained NPL</em>'.
+ * @generated
+ */
+ RefSingleNonContainedNPL createRefSingleNonContainedNPL();
+
+ /**
+ * Returns a new object of class '<em>Ref Multi Contained NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Ref Multi Contained NPL</em>'.
+ * @generated
+ */
+ RefMultiContainedNPL createRefMultiContainedNPL();
+
+ /**
+ * Returns a new object of class '<em>Ref Multi Non Contained NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Ref Multi Non Contained NPL</em>'.
+ * @generated
+ */
+ RefMultiNonContainedNPL createRefMultiNonContainedNPL();
+
+ /**
+ * Returns a new object of class '<em>Contained Element No Opposite</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Contained Element No Opposite</em>'.
+ * @generated
+ */
+ ContainedElementNoOpposite createContainedElementNoOpposite();
+
+ /**
+ * Returns a new object of class '<em>Gen Ref Single Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Gen Ref Single Contained</em>'.
+ * @generated
+ */
+ GenRefSingleContained createGenRefSingleContained();
+
+ /**
+ * Returns a new object of class '<em>Gen Ref Single Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Gen Ref Single Non Contained</em>'.
+ * @generated
+ */
+ GenRefSingleNonContained createGenRefSingleNonContained();
+
+ /**
+ * Returns a new object of class '<em>Gen Ref Multi Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Gen Ref Multi Contained</em>'.
+ * @generated
+ */
+ GenRefMultiContained createGenRefMultiContained();
+
+ /**
+ * Returns a new object of class '<em>Gen Ref Multi Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Gen Ref Multi Non Contained</em>'.
+ * @generated
+ */
+ GenRefMultiNonContained createGenRefMultiNonContained();
+
+ /**
+ * Returns a new object of class '<em>Impl Single Ref Container</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Single Ref Container</em>'.
+ * @generated
+ */
+ ImplSingleRefContainer createImplSingleRefContainer();
+
+ /**
+ * Returns a new object of class '<em>Impl Single Ref Contained Element</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Single Ref Contained Element</em>'.
+ * @generated
+ */
+ ImplSingleRefContainedElement createImplSingleRefContainedElement();
+
+ /**
+ * Returns a new object of class '<em>Impl Single Ref Non Container</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Impl Single Ref Non Container</em>'.
+ * @generated
+ */
+ ImplSingleRefNonContainer createImplSingleRefNonContainer();
+
+ /**
+ * Returns a new object of class '<em>Impl Single Ref Non Contained Element</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Single Ref Non Contained Element</em>'.
+ * @generated
+ */
+ ImplSingleRefNonContainedElement createImplSingleRefNonContainedElement();
+
+ /**
+ * Returns a new object of class '<em>Impl Multi Ref Non Container</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Impl Multi Ref Non Container</em>'.
+ * @generated
+ */
+ ImplMultiRefNonContainer createImplMultiRefNonContainer();
+
+ /**
+ * Returns a new object of class '<em>Impl Multi Ref Non Contained Element</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Multi Ref Non Contained Element</em>'.
+ * @generated
+ */
+ ImplMultiRefNonContainedElement createImplMultiRefNonContainedElement();
+
+ /**
+ * Returns a new object of class '<em>Impl Multi Ref Container</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Multi Ref Container</em>'.
+ * @generated
+ */
+ ImplMultiRefContainer createImplMultiRefContainer();
+
+ /**
+ * Returns a new object of class '<em>Impl Multi Ref Contained Element</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Multi Ref Contained Element</em>'.
+ * @generated
+ */
+ ImplMultiRefContainedElement createImplMultiRefContainedElement();
+
+ /**
+ * Returns a new object of class '<em>Impl Single Ref Container NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Impl Single Ref Container NPL</em>'.
+ * @generated
+ */
+ ImplSingleRefContainerNPL createImplSingleRefContainerNPL();
+
+ /**
+ * Returns a new object of class '<em>Impl Single Ref Non Container NPL</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Single Ref Non Container NPL</em>'.
+ * @generated
+ */
+ ImplSingleRefNonContainerNPL createImplSingleRefNonContainerNPL();
+
+ /**
+ * Returns a new object of class '<em>Impl Multi Ref Container NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Impl Multi Ref Container NPL</em>'.
+ * @generated
+ */
+ ImplMultiRefContainerNPL createImplMultiRefContainerNPL();
+
+ /**
+ * Returns a new object of class '<em>Impl Multi Ref Non Container NPL</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Multi Ref Non Container NPL</em>'.
+ * @generated
+ */
+ ImplMultiRefNonContainerNPL createImplMultiRefNonContainerNPL();
+
+ /**
+ * Returns a new object of class '<em>Impl Contained Element NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Contained Element NPL</em>'.
+ * @generated
+ */
+ ImplContainedElementNPL createImplContainedElementNPL();
+
+ /**
+ * Returns a new object of class '<em>Gen Ref Multi NU Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Gen Ref Multi NU Non Contained</em>'.
+ * @generated
+ */
+ GenRefMultiNUNonContained createGenRefMultiNUNonContained();
+
+ /**
+ * Returns a new object of class '<em>Gen Ref Map Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Gen Ref Map Non Contained</em>'.
+ * @generated
+ */
+ GenRefMapNonContained createGenRefMapNonContained();
+
+ /**
+ * Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the package supported by this factory.
+ * @generated
+ */
+ model4Package getmodel4Package();
+
+} // model4Factory
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/model4Package.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/model4Package.java index 3e6d26332a..3e9c47fa6d 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/model4Package.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/legacy/model4/model4Package.java @@ -1,1844 +1,1844 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EReference; - -/** - * <!-- begin-user-doc --> The <b>Package</b> for the model. It contains accessors for the meta objects to represent - * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> - * </ul> - * <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.model4Factory - * @model kind="package" - * @generated - */ -public interface model4Package extends org.eclipse.emf.cdo.tests.model4.model4Package -{ - /** - * The package name. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - String eNAME = "model4"; - - /** - * The package namespace URI. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated NOT - */ - String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/legacy/model4/1.0.0"; - - /** - * The package namespace name. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - String eNS_PREFIX = "model4"; - - /** - * The singleton instance of the package. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - model4Package eINSTANCE = org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleContainedImpl - * <em>Ref Single Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleContainedImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefSingleContained() - * @generated - */ - int REF_SINGLE_CONTAINED = 0; - - /** - * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int REF_SINGLE_CONTAINED__ELEMENT = 0; - - /** - * The number of structural features of the '<em>Ref Single Contained</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_SINGLE_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.SingleContainedElementImpl - * <em>Single Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.SingleContainedElementImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getSingleContainedElement() - * @generated - */ - int SINGLE_CONTAINED_ELEMENT = 1; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int SINGLE_CONTAINED_ELEMENT__NAME = 0; - - /** - * The feature id for the '<em><b>Parent</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int SINGLE_CONTAINED_ELEMENT__PARENT = 1; - - /** - * The number of structural features of the '<em>Single Contained Element</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int SINGLE_CONTAINED_ELEMENT_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleNonContainedImpl - * <em>Ref Single Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleNonContainedImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefSingleNonContained() - * @generated - */ - int REF_SINGLE_NON_CONTAINED = 2; - - /** - * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int REF_SINGLE_NON_CONTAINED__ELEMENT = 0; - - /** - * The number of structural features of the '<em>Ref Single Non Contained</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_SINGLE_NON_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.SingleNonContainedElementImpl - * <em>Single Non Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.SingleNonContainedElementImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getSingleNonContainedElement() - * @generated - */ - int SINGLE_NON_CONTAINED_ELEMENT = 3; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int SINGLE_NON_CONTAINED_ELEMENT__NAME = 0; - - /** - * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int SINGLE_NON_CONTAINED_ELEMENT__PARENT = 1; - - /** - * The number of structural features of the '<em>Single Non Contained Element</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int SINGLE_NON_CONTAINED_ELEMENT_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiContainedImpl - * <em>Ref Multi Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiContainedImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefMultiContained() - * @generated - */ - int REF_MULTI_CONTAINED = 4; - - /** - * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_CONTAINED__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Ref Multi Contained</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiContainedElementImpl - * <em>Multi Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiContainedElementImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getMultiContainedElement() - * @generated - */ - int MULTI_CONTAINED_ELEMENT = 5; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_CONTAINED_ELEMENT__NAME = 0; - - /** - * The feature id for the '<em><b>Parent</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_CONTAINED_ELEMENT__PARENT = 1; - - /** - * The number of structural features of the '<em>Multi Contained Element</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_CONTAINED_ELEMENT_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedImpl - * <em>Ref Multi Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefMultiNonContained() - * @generated - */ - int REF_MULTI_NON_CONTAINED = 6; - - /** - * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_NON_CONTAINED__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Ref Multi Non Contained</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_NON_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiNonContainedElementImpl - * <em>Multi Non Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiNonContainedElementImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getMultiNonContainedElement() - * @generated - */ - int MULTI_NON_CONTAINED_ELEMENT = 7; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_NON_CONTAINED_ELEMENT__NAME = 0; - - /** - * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_NON_CONTAINED_ELEMENT__PARENT = 1; - - /** - * The number of structural features of the '<em>Multi Non Contained Element</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_NON_CONTAINED_ELEMENT_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedUnsettableImpl - * <em>Ref Multi Non Contained Unsettable</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedUnsettableImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefMultiNonContainedUnsettable() - * @generated - */ - int REF_MULTI_NON_CONTAINED_UNSETTABLE = 8; - - /** - * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Ref Multi Non Contained Unsettable</em>' class. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_NON_CONTAINED_UNSETTABLE_FEATURE_COUNT = 1; - - /** - * The meta object id for the ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiNonContainedUnsettableElementImpl - * <em>Multi Non Contained Unsettable Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiNonContainedUnsettableElementImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getMultiNonContainedUnsettableElement() - * @generated - */ - int MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT = 9; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME = 0; - - /** - * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT = 1; - - /** - * The number of structural features of the '<em>Multi Non Contained Unsettable Element</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleContainedNPLImpl - * <em>Ref Single Contained NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleContainedNPLImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefSingleContainedNPL() - * @generated - */ - int REF_SINGLE_CONTAINED_NPL = 10; - - /** - * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int REF_SINGLE_CONTAINED_NPL__ELEMENT = 0; - - /** - * The number of structural features of the '<em>Ref Single Contained NPL</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_SINGLE_CONTAINED_NPL_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleNonContainedNPLImpl - * <em>Ref Single Non Contained NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleNonContainedNPLImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefSingleNonContainedNPL() - * @generated - */ - int REF_SINGLE_NON_CONTAINED_NPL = 11; - - /** - * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int REF_SINGLE_NON_CONTAINED_NPL__ELEMENT = 0; - - /** - * The number of structural features of the '<em>Ref Single Non Contained NPL</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int REF_SINGLE_NON_CONTAINED_NPL_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiContainedNPLImpl - * <em>Ref Multi Contained NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiContainedNPLImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefMultiContainedNPL() - * @generated - */ - int REF_MULTI_CONTAINED_NPL = 12; - - /** - * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_CONTAINED_NPL__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Ref Multi Contained NPL</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_CONTAINED_NPL_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedNPLImpl - * <em>Ref Multi Non Contained NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedNPLImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefMultiNonContainedNPL() - * @generated - */ - int REF_MULTI_NON_CONTAINED_NPL = 13; - - /** - * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_NON_CONTAINED_NPL__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Ref Multi Non Contained NPL</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_NON_CONTAINED_NPL_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ContainedElementNoOppositeImpl - * <em>Contained Element No Opposite</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ContainedElementNoOppositeImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getContainedElementNoOpposite() - * @generated - */ - int CONTAINED_ELEMENT_NO_OPPOSITE = 14; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int CONTAINED_ELEMENT_NO_OPPOSITE__NAME = 0; - - /** - * The number of structural features of the '<em>Contained Element No Opposite</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int CONTAINED_ELEMENT_NO_OPPOSITE_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefSingleContainedImpl - * <em>Gen Ref Single Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefSingleContainedImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getGenRefSingleContained() - * @generated - */ - int GEN_REF_SINGLE_CONTAINED = 15; - - /** - * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int GEN_REF_SINGLE_CONTAINED__ELEMENT = 0; - - /** - * The number of structural features of the '<em>Gen Ref Single Contained</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_SINGLE_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefSingleNonContainedImpl - * <em>Gen Ref Single Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefSingleNonContainedImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getGenRefSingleNonContained() - * @generated - */ - int GEN_REF_SINGLE_NON_CONTAINED = 16; - - /** - * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_SINGLE_NON_CONTAINED__ELEMENT = 0; - - /** - * The number of structural features of the '<em>Gen Ref Single Non Contained</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_SINGLE_NON_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiContainedImpl - * <em>Gen Ref Multi Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiContainedImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getGenRefMultiContained() - * @generated - */ - int GEN_REF_MULTI_CONTAINED = 17; - - /** - * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_MULTI_CONTAINED__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Gen Ref Multi Contained</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_MULTI_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiNonContainedImpl - * <em>Gen Ref Multi Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiNonContainedImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getGenRefMultiNonContained() - * @generated - */ - int GEN_REF_MULTI_NON_CONTAINED = 18; - - /** - * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_MULTI_NON_CONTAINED__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Gen Ref Multi Non Contained</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_MULTI_NON_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainerImpl - * <em>Impl Single Ref Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainerImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplSingleRefContainer() - * @generated - */ - int IMPL_SINGLE_REF_CONTAINER = 19; - - /** - * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_CONTAINER__ELEMENT = model4interfacesPackage.ISINGLE_REF_CONTAINER__ELEMENT; - - /** - * The number of structural features of the '<em>Impl Single Ref Container</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_CONTAINER_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_CONTAINER_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainedElementImpl - * <em>Impl Single Ref Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainedElementImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplSingleRefContainedElement() - * @generated - */ - int IMPL_SINGLE_REF_CONTAINED_ELEMENT = 20; - - /** - * The feature id for the '<em><b>Parent</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT = model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT__PARENT; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME = model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Impl Single Ref Contained Element</em>' class. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_CONTAINED_ELEMENT_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainerImpl - * <em>Impl Single Ref Non Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainerImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplSingleRefNonContainer() - * @generated - */ - int IMPL_SINGLE_REF_NON_CONTAINER = 21; - - /** - * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINER__ELEMENT; - - /** - * The number of structural features of the '<em>Impl Single Ref Non Container</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_NON_CONTAINER_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINER_FEATURE_COUNT + 0; - - /** - * The meta object id for the ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainedElementImpl - * <em>Impl Single Ref Non Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainedElementImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplSingleRefNonContainedElement() - * @generated - */ - int IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT = 22; - - /** - * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT__PARENT; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME = model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Impl Single Ref Non Contained Element</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainerImpl - * <em>Impl Multi Ref Non Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainerImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplMultiRefNonContainer() - * @generated - */ - int IMPL_MULTI_REF_NON_CONTAINER = 23; - - /** - * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS = model4interfacesPackage.IMULTI_REF_NON_CONTAINER__ELEMENTS; - - /** - * The number of structural features of the '<em>Impl Multi Ref Non Container</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_NON_CONTAINER_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_NON_CONTAINER_FEATURE_COUNT + 0; - - /** - * The meta object id for the ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainedElementImpl - * <em>Impl Multi Ref Non Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainedElementImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplMultiRefNonContainedElement() - * @generated - */ - int IMPL_MULTI_REF_NON_CONTAINED_ELEMENT = 24; - - /** - * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT = model4interfacesPackage.IMULTI_REF_NON_CONTAINED_ELEMENT__PARENT; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME = model4interfacesPackage.IMULTI_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Impl Multi Ref Non Contained Element</em>' class. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainerImpl - * <em>Impl Multi Ref Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainerImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplMultiRefContainer() - * @generated - */ - int IMPL_MULTI_REF_CONTAINER = 25; - - /** - * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_CONTAINER__ELEMENTS = model4interfacesPackage.IMULTI_REF_CONTAINER__ELEMENTS; - - /** - * The number of structural features of the '<em>Impl Multi Ref Container</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_CONTAINER_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_CONTAINER_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainedElementImpl - * <em>Impl Multi Ref Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainedElementImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplMultiRefContainedElement() - * @generated - */ - int IMPL_MULTI_REF_CONTAINED_ELEMENT = 26; - - /** - * The feature id for the '<em><b>Parent</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT = model4interfacesPackage.IMULTI_REF_CONTAINED_ELEMENT__PARENT; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME = model4interfacesPackage.IMULTI_REF_CONTAINED_ELEMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Impl Multi Ref Contained Element</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_CONTAINED_ELEMENT_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_CONTAINED_ELEMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainerNPLImpl - * <em>Impl Single Ref Container NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainerNPLImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplSingleRefContainerNPL() - * @generated - */ - int IMPL_SINGLE_REF_CONTAINER_NPL = 27; - - /** - * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT = model4interfacesPackage.ISINGLE_REF_CONTAINER_NPL__ELEMENT; - - /** - * The number of structural features of the '<em>Impl Single Ref Container NPL</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_CONTAINER_NPL_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_CONTAINER_NPL_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainerNPLImpl - * <em>Impl Single Ref Non Container NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainerNPLImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplSingleRefNonContainerNPL() - * @generated - */ - int IMPL_SINGLE_REF_NON_CONTAINER_NPL = 28; - - /** - * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_NON_CONTAINER_NPL__ELEMENT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINER_NPL__ELEMENT; - - /** - * The number of structural features of the '<em>Impl Single Ref Non Container NPL</em>' class. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_NON_CONTAINER_NPL_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINER_NPL_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainerNPLImpl - * <em>Impl Multi Ref Container NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainerNPLImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplMultiRefContainerNPL() - * @generated - */ - int IMPL_MULTI_REF_CONTAINER_NPL = 29; - - /** - * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_CONTAINER_NPL__ELEMENTS = model4interfacesPackage.IMULTI_REF_CONTAINER_NPL__ELEMENTS; - - /** - * The number of structural features of the '<em>Impl Multi Ref Container NPL</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_CONTAINER_NPL_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_CONTAINER_NPL_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainerNPLImpl - * <em>Impl Multi Ref Non Container NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainerNPLImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplMultiRefNonContainerNPL() - * @generated - */ - int IMPL_MULTI_REF_NON_CONTAINER_NPL = 30; - - /** - * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_NON_CONTAINER_NPL__ELEMENTS = model4interfacesPackage.IMULTI_REF_NON_CONTAINER_NPL__ELEMENTS; - - /** - * The number of structural features of the '<em>Impl Multi Ref Non Container NPL</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_NON_CONTAINER_NPL_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_NON_CONTAINER_NPL_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplContainedElementNPLImpl - * <em>Impl Contained Element NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplContainedElementNPLImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplContainedElementNPL() - * @generated - */ - int IMPL_CONTAINED_ELEMENT_NPL = 31; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_CONTAINED_ELEMENT_NPL__NAME = model4interfacesPackage.ICONTAINED_ELEMENT_NO_PARENT_LINK_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Impl Contained Element NPL</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_CONTAINED_ELEMENT_NPL_FEATURE_COUNT = model4interfacesPackage.ICONTAINED_ELEMENT_NO_PARENT_LINK_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiNUNonContainedImpl - * <em>Gen Ref Multi NU Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiNUNonContainedImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getGenRefMultiNUNonContained() - * @generated - */ - int GEN_REF_MULTI_NU_NON_CONTAINED = 32; - - /** - * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Gen Ref Multi NU Non Contained</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_MULTI_NU_NON_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMapNonContainedImpl - * <em>Gen Ref Map Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMapNonContainedImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getGenRefMapNonContained() - * @generated - */ - int GEN_REF_MAP_NON_CONTAINED = 33; - - /** - * The feature id for the '<em><b>Elements</b></em>' map. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_MAP_NON_CONTAINED__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Gen Ref Map Non Contained</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_MAP_NON_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.StringToEObjectImpl - * <em>String To EObject</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.StringToEObjectImpl - * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getStringToEObject() - * @generated - */ - int STRING_TO_EOBJECT = 34; - - /** - * The feature id for the '<em><b>Key</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int STRING_TO_EOBJECT__KEY = 0; - - /** - * The feature id for the '<em><b>Value</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int STRING_TO_EOBJECT__VALUE = 1; - - /** - * The number of structural features of the '<em>String To EObject</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int STRING_TO_EOBJECT_FEATURE_COUNT = 2; - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefSingleContained - * <em>Ref Single Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Single Contained</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefSingleContained - * @generated - */ - EClass getRefSingleContained(); - - /** - * Returns the meta object for the containment reference ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefSingleContained#getElement <em>Element</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference '<em>Element</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefSingleContained#getElement() - * @see #getRefSingleContained() - * @generated - */ - EReference getRefSingleContained_Element(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.SingleContainedElement - * <em>Single Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Single Contained Element</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.SingleContainedElement - * @generated - */ - EClass getSingleContainedElement(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.SingleContainedElement#getName <em>Name</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.SingleContainedElement#getName() - * @see #getSingleContainedElement() - * @generated - */ - EAttribute getSingleContainedElement_Name(); - - /** - * Returns the meta object for the container reference ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.SingleContainedElement#getParent <em>Parent</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the container reference '<em>Parent</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.SingleContainedElement#getParent() - * @see #getSingleContainedElement() - * @generated - */ - EReference getSingleContainedElement_Parent(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefSingleNonContained - * <em>Ref Single Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Single Non Contained</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefSingleNonContained - * @generated - */ - EClass getRefSingleNonContained(); - - /** - * Returns the meta object for the reference ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefSingleNonContained#getElement <em>Element</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference '<em>Element</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefSingleNonContained#getElement() - * @see #getRefSingleNonContained() - * @generated - */ - EReference getRefSingleNonContained_Element(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.SingleNonContainedElement - * <em>Single Non Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Single Non Contained Element</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.SingleNonContainedElement - * @generated - */ - EClass getSingleNonContainedElement(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.SingleNonContainedElement#getName <em>Name</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.SingleNonContainedElement#getName() - * @see #getSingleNonContainedElement() - * @generated - */ - EAttribute getSingleNonContainedElement_Name(); - - /** - * Returns the meta object for the reference ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.SingleNonContainedElement#getParent <em>Parent</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference '<em>Parent</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.SingleNonContainedElement#getParent() - * @see #getSingleNonContainedElement() - * @generated - */ - EReference getSingleNonContainedElement_Parent(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiContained - * <em>Ref Multi Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Multi Contained</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiContained - * @generated - */ - EClass getRefMultiContained(); - - /** - * Returns the meta object for the containment reference list ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiContained#getElements <em>Elements</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference list '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiContained#getElements() - * @see #getRefMultiContained() - * @generated - */ - EReference getRefMultiContained_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.MultiContainedElement - * <em>Multi Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Multi Contained Element</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiContainedElement - * @generated - */ - EClass getMultiContainedElement(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.MultiContainedElement#getName <em>Name</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiContainedElement#getName() - * @see #getMultiContainedElement() - * @generated - */ - EAttribute getMultiContainedElement_Name(); - - /** - * Returns the meta object for the container reference ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.MultiContainedElement#getParent <em>Parent</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the container reference '<em>Parent</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiContainedElement#getParent() - * @see #getMultiContainedElement() - * @generated - */ - EReference getMultiContainedElement_Parent(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContained - * <em>Ref Multi Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Multi Non Contained</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContained - * @generated - */ - EClass getRefMultiNonContained(); - - /** - * Returns the meta object for the reference list ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContained#getElements <em>Elements</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference list '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContained#getElements() - * @see #getRefMultiNonContained() - * @generated - */ - EReference getRefMultiNonContained_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedElement - * <em>Multi Non Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Multi Non Contained Element</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedElement - * @generated - */ - EClass getMultiNonContainedElement(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedElement#getName <em>Name</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedElement#getName() - * @see #getMultiNonContainedElement() - * @generated - */ - EAttribute getMultiNonContainedElement_Name(); - - /** - * Returns the meta object for the reference ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedElement#getParent <em>Parent</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference '<em>Parent</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedElement#getParent() - * @see #getMultiNonContainedElement() - * @generated - */ - EReference getMultiNonContainedElement_Parent(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContainedUnsettable - * <em>Ref Multi Non Contained Unsettable</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Multi Non Contained Unsettable</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContainedUnsettable - * @generated - */ - EClass getRefMultiNonContainedUnsettable(); - - /** - * Returns the meta object for the reference list ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContainedUnsettable#getElements <em>Elements</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference list '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContainedUnsettable#getElements() - * @see #getRefMultiNonContainedUnsettable() - * @generated - */ - EReference getRefMultiNonContainedUnsettable_Elements(); - - /** - * Returns the meta object for class ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedUnsettableElement - * <em>Multi Non Contained Unsettable Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Multi Non Contained Unsettable Element</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedUnsettableElement - * @generated - */ - EClass getMultiNonContainedUnsettableElement(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedUnsettableElement#getName <em>Name</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedUnsettableElement#getName() - * @see #getMultiNonContainedUnsettableElement() - * @generated - */ - EAttribute getMultiNonContainedUnsettableElement_Name(); - - /** - * Returns the meta object for the reference ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedUnsettableElement#getParent <em>Parent</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference '<em>Parent</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedUnsettableElement#getParent() - * @see #getMultiNonContainedUnsettableElement() - * @generated - */ - EReference getMultiNonContainedUnsettableElement_Parent(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefSingleContainedNPL - * <em>Ref Single Contained NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Single Contained NPL</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefSingleContainedNPL - * @generated - */ - EClass getRefSingleContainedNPL(); - - /** - * Returns the meta object for the containment reference ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefSingleContainedNPL#getElement <em>Element</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference '<em>Element</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefSingleContainedNPL#getElement() - * @see #getRefSingleContainedNPL() - * @generated - */ - EReference getRefSingleContainedNPL_Element(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefSingleNonContainedNPL - * <em>Ref Single Non Contained NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Single Non Contained NPL</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefSingleNonContainedNPL - * @generated - */ - EClass getRefSingleNonContainedNPL(); - - /** - * Returns the meta object for the reference ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefSingleNonContainedNPL#getElement <em>Element</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference '<em>Element</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefSingleNonContainedNPL#getElement() - * @see #getRefSingleNonContainedNPL() - * @generated - */ - EReference getRefSingleNonContainedNPL_Element(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiContainedNPL - * <em>Ref Multi Contained NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Multi Contained NPL</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiContainedNPL - * @generated - */ - EClass getRefMultiContainedNPL(); - - /** - * Returns the meta object for the containment reference list ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiContainedNPL#getElements <em>Elements</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference list '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiContainedNPL#getElements() - * @see #getRefMultiContainedNPL() - * @generated - */ - EReference getRefMultiContainedNPL_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContainedNPL - * <em>Ref Multi Non Contained NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Multi Non Contained NPL</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContainedNPL - * @generated - */ - EClass getRefMultiNonContainedNPL(); - - /** - * Returns the meta object for the reference list ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContainedNPL#getElements <em>Elements</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference list '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContainedNPL#getElements() - * @see #getRefMultiNonContainedNPL() - * @generated - */ - EReference getRefMultiNonContainedNPL_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ContainedElementNoOpposite - * <em>Contained Element No Opposite</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Contained Element No Opposite</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ContainedElementNoOpposite - * @generated - */ - EClass getContainedElementNoOpposite(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.ContainedElementNoOpposite#getName <em>Name</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ContainedElementNoOpposite#getName() - * @see #getContainedElementNoOpposite() - * @generated - */ - EAttribute getContainedElementNoOpposite_Name(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefSingleContained - * <em>Gen Ref Single Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Gen Ref Single Contained</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefSingleContained - * @generated - */ - EClass getGenRefSingleContained(); - - /** - * Returns the meta object for the containment reference ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefSingleContained#getElement <em>Element</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference '<em>Element</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefSingleContained#getElement() - * @see #getGenRefSingleContained() - * @generated - */ - EReference getGenRefSingleContained_Element(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefSingleNonContained - * <em>Gen Ref Single Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Gen Ref Single Non Contained</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefSingleNonContained - * @generated - */ - EClass getGenRefSingleNonContained(); - - /** - * Returns the meta object for the reference ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefSingleNonContained#getElement <em>Element</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference '<em>Element</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefSingleNonContained#getElement() - * @see #getGenRefSingleNonContained() - * @generated - */ - EReference getGenRefSingleNonContained_Element(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiContained - * <em>Gen Ref Multi Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Gen Ref Multi Contained</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiContained - * @generated - */ - EClass getGenRefMultiContained(); - - /** - * Returns the meta object for the containment reference list ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiContained#getElements <em>Elements</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference list '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiContained#getElements() - * @see #getGenRefMultiContained() - * @generated - */ - EReference getGenRefMultiContained_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiNonContained - * <em>Gen Ref Multi Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Gen Ref Multi Non Contained</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiNonContained - * @generated - */ - EClass getGenRefMultiNonContained(); - - /** - * Returns the meta object for the reference list ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiNonContained#getElements <em>Elements</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference list '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiNonContained#getElements() - * @see #getGenRefMultiNonContained() - * @generated - */ - EReference getGenRefMultiNonContained_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefContainer - * <em>Impl Single Ref Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Single Ref Container</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefContainer - * @generated - */ - EClass getImplSingleRefContainer(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefContainedElement - * <em>Impl Single Ref Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Single Ref Contained Element</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefContainedElement - * @generated - */ - EClass getImplSingleRefContainedElement(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefContainedElement#getName <em>Name</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefContainedElement#getName() - * @see #getImplSingleRefContainedElement() - * @generated - */ - EAttribute getImplSingleRefContainedElement_Name(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefNonContainer - * <em>Impl Single Ref Non Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Single Ref Non Container</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefNonContainer - * @generated - */ - EClass getImplSingleRefNonContainer(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefNonContainedElement - * <em>Impl Single Ref Non Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Single Ref Non Contained Element</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefNonContainedElement - * @generated - */ - EClass getImplSingleRefNonContainedElement(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefNonContainedElement#getName <em>Name</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefNonContainedElement#getName() - * @see #getImplSingleRefNonContainedElement() - * @generated - */ - EAttribute getImplSingleRefNonContainedElement_Name(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefNonContainer - * <em>Impl Multi Ref Non Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Multi Ref Non Container</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefNonContainer - * @generated - */ - EClass getImplMultiRefNonContainer(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefNonContainedElement - * <em>Impl Multi Ref Non Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Multi Ref Non Contained Element</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefNonContainedElement - * @generated - */ - EClass getImplMultiRefNonContainedElement(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefNonContainedElement#getName <em>Name</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefNonContainedElement#getName() - * @see #getImplMultiRefNonContainedElement() - * @generated - */ - EAttribute getImplMultiRefNonContainedElement_Name(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefContainer - * <em>Impl Multi Ref Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Multi Ref Container</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefContainer - * @generated - */ - EClass getImplMultiRefContainer(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefContainedElement - * <em>Impl Multi Ref Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Multi Ref Contained Element</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefContainedElement - * @generated - */ - EClass getImplMultiRefContainedElement(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefContainedElement#getName <em>Name</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefContainedElement#getName() - * @see #getImplMultiRefContainedElement() - * @generated - */ - EAttribute getImplMultiRefContainedElement_Name(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefContainerNPL - * <em>Impl Single Ref Container NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Single Ref Container NPL</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefContainerNPL - * @generated - */ - EClass getImplSingleRefContainerNPL(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefNonContainerNPL - * <em>Impl Single Ref Non Container NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Single Ref Non Container NPL</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefNonContainerNPL - * @generated - */ - EClass getImplSingleRefNonContainerNPL(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefContainerNPL - * <em>Impl Multi Ref Container NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Multi Ref Container NPL</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefContainerNPL - * @generated - */ - EClass getImplMultiRefContainerNPL(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefNonContainerNPL - * <em>Impl Multi Ref Non Container NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Multi Ref Non Container NPL</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefNonContainerNPL - * @generated - */ - EClass getImplMultiRefNonContainerNPL(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplContainedElementNPL - * <em>Impl Contained Element NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Contained Element NPL</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplContainedElementNPL - * @generated - */ - EClass getImplContainedElementNPL(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiNUNonContained - * <em>Gen Ref Multi NU Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Gen Ref Multi NU Non Contained</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiNUNonContained - * @generated - */ - EClass getGenRefMultiNUNonContained(); - - /** - * Returns the meta object for the reference list ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiNUNonContained#getElements <em>Elements</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference list '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiNUNonContained#getElements() - * @see #getGenRefMultiNUNonContained() - * @generated - */ - EReference getGenRefMultiNUNonContained_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefMapNonContained - * <em>Gen Ref Map Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Gen Ref Map Non Contained</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefMapNonContained - * @generated - */ - EClass getGenRefMapNonContained(); - - /** - * Returns the meta object for the map ' - * {@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefMapNonContained#getElements <em>Elements</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the map '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefMapNonContained#getElements() - * @see #getGenRefMapNonContained() - * @generated - */ - EReference getGenRefMapNonContained_Elements(); - - /** - * Returns the meta object for class '{@link java.util.Map.Entry <em>String To EObject</em>}'. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @return the meta object for class '<em>String To EObject</em>'. - * @see java.util.Map.Entry - * @model keyDataType="org.eclipse.emf.ecore.EString" valueType="org.eclipse.emf.ecore.EObject" - * valueResolveProxies="false" - * @generated - */ - EClass getStringToEObject(); - - /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry <em>Key</em>}'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return the meta object for the attribute '<em>Key</em>'. - * @see java.util.Map.Entry - * @see #getStringToEObject() - * @generated - */ - EAttribute getStringToEObject_Key(); - - /** - * Returns the meta object for the reference '{@link java.util.Map.Entry <em>Value</em>}'. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @return the meta object for the reference '<em>Value</em>'. - * @see java.util.Map.Entry - * @see #getStringToEObject() - * @generated - */ - EReference getStringToEObject_Value(); - - /** - * Returns the factory that creates the instances of the model. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the factory that creates the instances of the model. - * @generated - */ - model4Factory getmodel4Factory(); - -} // model4Package +/*
+ * 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.model4;
+
+import org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EReference;
+
+/**
+ * <!-- begin-user-doc --> The <b>Package</b> for the model. It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.model4Factory
+ * @model kind="package"
+ * @generated
+ */
+public interface model4Package extends org.eclipse.emf.cdo.tests.model4.model4Package
+{
+ /**
+ * The package name. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNAME = "model4";
+
+ /**
+ * The package namespace URI. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated NOT
+ */
+ String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/legacy/model4/1.0.0";
+
+ /**
+ * The package namespace name. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNS_PREFIX = "model4";
+
+ /**
+ * The singleton instance of the package. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ model4Package eINSTANCE = org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleContainedImpl
+ * <em>Ref Single Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleContainedImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefSingleContained()
+ * @generated
+ */
+ int REF_SINGLE_CONTAINED = 0;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_SINGLE_CONTAINED__ELEMENT = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Single Contained</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_SINGLE_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.SingleContainedElementImpl
+ * <em>Single Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.SingleContainedElementImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getSingleContainedElement()
+ * @generated
+ */
+ int SINGLE_CONTAINED_ELEMENT = 1;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SINGLE_CONTAINED_ELEMENT__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SINGLE_CONTAINED_ELEMENT__PARENT = 1;
+
+ /**
+ * The number of structural features of the '<em>Single Contained Element</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SINGLE_CONTAINED_ELEMENT_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleNonContainedImpl
+ * <em>Ref Single Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleNonContainedImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefSingleNonContained()
+ * @generated
+ */
+ int REF_SINGLE_NON_CONTAINED = 2;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_SINGLE_NON_CONTAINED__ELEMENT = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Single Non Contained</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_SINGLE_NON_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.SingleNonContainedElementImpl
+ * <em>Single Non Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.SingleNonContainedElementImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getSingleNonContainedElement()
+ * @generated
+ */
+ int SINGLE_NON_CONTAINED_ELEMENT = 3;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SINGLE_NON_CONTAINED_ELEMENT__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SINGLE_NON_CONTAINED_ELEMENT__PARENT = 1;
+
+ /**
+ * The number of structural features of the '<em>Single Non Contained Element</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SINGLE_NON_CONTAINED_ELEMENT_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiContainedImpl
+ * <em>Ref Multi Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiContainedImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefMultiContained()
+ * @generated
+ */
+ int REF_MULTI_CONTAINED = 4;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_CONTAINED__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Multi Contained</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiContainedElementImpl
+ * <em>Multi Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiContainedElementImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getMultiContainedElement()
+ * @generated
+ */
+ int MULTI_CONTAINED_ELEMENT = 5;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_CONTAINED_ELEMENT__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_CONTAINED_ELEMENT__PARENT = 1;
+
+ /**
+ * The number of structural features of the '<em>Multi Contained Element</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_CONTAINED_ELEMENT_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedImpl
+ * <em>Ref Multi Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefMultiNonContained()
+ * @generated
+ */
+ int REF_MULTI_NON_CONTAINED = 6;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_NON_CONTAINED__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Multi Non Contained</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_NON_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiNonContainedElementImpl
+ * <em>Multi Non Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiNonContainedElementImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getMultiNonContainedElement()
+ * @generated
+ */
+ int MULTI_NON_CONTAINED_ELEMENT = 7;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_NON_CONTAINED_ELEMENT__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_NON_CONTAINED_ELEMENT__PARENT = 1;
+
+ /**
+ * The number of structural features of the '<em>Multi Non Contained Element</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_NON_CONTAINED_ELEMENT_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedUnsettableImpl
+ * <em>Ref Multi Non Contained Unsettable</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedUnsettableImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefMultiNonContainedUnsettable()
+ * @generated
+ */
+ int REF_MULTI_NON_CONTAINED_UNSETTABLE = 8;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Multi Non Contained Unsettable</em>' class. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_NON_CONTAINED_UNSETTABLE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiNonContainedUnsettableElementImpl
+ * <em>Multi Non Contained Unsettable Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.MultiNonContainedUnsettableElementImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getMultiNonContainedUnsettableElement()
+ * @generated
+ */
+ int MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT = 9;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT = 1;
+
+ /**
+ * The number of structural features of the '<em>Multi Non Contained Unsettable Element</em>' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleContainedNPLImpl
+ * <em>Ref Single Contained NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleContainedNPLImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefSingleContainedNPL()
+ * @generated
+ */
+ int REF_SINGLE_CONTAINED_NPL = 10;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_SINGLE_CONTAINED_NPL__ELEMENT = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Single Contained NPL</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_SINGLE_CONTAINED_NPL_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleNonContainedNPLImpl
+ * <em>Ref Single Non Contained NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefSingleNonContainedNPLImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefSingleNonContainedNPL()
+ * @generated
+ */
+ int REF_SINGLE_NON_CONTAINED_NPL = 11;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_SINGLE_NON_CONTAINED_NPL__ELEMENT = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Single Non Contained NPL</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_SINGLE_NON_CONTAINED_NPL_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiContainedNPLImpl
+ * <em>Ref Multi Contained NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiContainedNPLImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefMultiContainedNPL()
+ * @generated
+ */
+ int REF_MULTI_CONTAINED_NPL = 12;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_CONTAINED_NPL__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Multi Contained NPL</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_CONTAINED_NPL_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedNPLImpl
+ * <em>Ref Multi Non Contained NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.RefMultiNonContainedNPLImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getRefMultiNonContainedNPL()
+ * @generated
+ */
+ int REF_MULTI_NON_CONTAINED_NPL = 13;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_NON_CONTAINED_NPL__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Multi Non Contained NPL</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_NON_CONTAINED_NPL_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ContainedElementNoOppositeImpl
+ * <em>Contained Element No Opposite</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ContainedElementNoOppositeImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getContainedElementNoOpposite()
+ * @generated
+ */
+ int CONTAINED_ELEMENT_NO_OPPOSITE = 14;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTAINED_ELEMENT_NO_OPPOSITE__NAME = 0;
+
+ /**
+ * The number of structural features of the '<em>Contained Element No Opposite</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTAINED_ELEMENT_NO_OPPOSITE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefSingleContainedImpl
+ * <em>Gen Ref Single Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefSingleContainedImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getGenRefSingleContained()
+ * @generated
+ */
+ int GEN_REF_SINGLE_CONTAINED = 15;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_SINGLE_CONTAINED__ELEMENT = 0;
+
+ /**
+ * The number of structural features of the '<em>Gen Ref Single Contained</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_SINGLE_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefSingleNonContainedImpl
+ * <em>Gen Ref Single Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefSingleNonContainedImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getGenRefSingleNonContained()
+ * @generated
+ */
+ int GEN_REF_SINGLE_NON_CONTAINED = 16;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_SINGLE_NON_CONTAINED__ELEMENT = 0;
+
+ /**
+ * The number of structural features of the '<em>Gen Ref Single Non Contained</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_SINGLE_NON_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiContainedImpl
+ * <em>Gen Ref Multi Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiContainedImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getGenRefMultiContained()
+ * @generated
+ */
+ int GEN_REF_MULTI_CONTAINED = 17;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_MULTI_CONTAINED__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Gen Ref Multi Contained</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_MULTI_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiNonContainedImpl
+ * <em>Gen Ref Multi Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiNonContainedImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getGenRefMultiNonContained()
+ * @generated
+ */
+ int GEN_REF_MULTI_NON_CONTAINED = 18;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_MULTI_NON_CONTAINED__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Gen Ref Multi Non Contained</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_MULTI_NON_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainerImpl
+ * <em>Impl Single Ref Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainerImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplSingleRefContainer()
+ * @generated
+ */
+ int IMPL_SINGLE_REF_CONTAINER = 19;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_CONTAINER__ELEMENT = model4interfacesPackage.ISINGLE_REF_CONTAINER__ELEMENT;
+
+ /**
+ * The number of structural features of the '<em>Impl Single Ref Container</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_CONTAINER_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_CONTAINER_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainedElementImpl
+ * <em>Impl Single Ref Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainedElementImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplSingleRefContainedElement()
+ * @generated
+ */
+ int IMPL_SINGLE_REF_CONTAINED_ELEMENT = 20;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT = model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT__PARENT;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME = model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Impl Single Ref Contained Element</em>' class. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_CONTAINED_ELEMENT_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainerImpl
+ * <em>Impl Single Ref Non Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainerImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplSingleRefNonContainer()
+ * @generated
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINER = 21;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINER__ELEMENT;
+
+ /**
+ * The number of structural features of the '<em>Impl Single Ref Non Container</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINER_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINER_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainedElementImpl
+ * <em>Impl Single Ref Non Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainedElementImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplSingleRefNonContainedElement()
+ * @generated
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT = 22;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT__PARENT;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME = model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Impl Single Ref Non Contained Element</em>' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainerImpl
+ * <em>Impl Multi Ref Non Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainerImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplMultiRefNonContainer()
+ * @generated
+ */
+ int IMPL_MULTI_REF_NON_CONTAINER = 23;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS = model4interfacesPackage.IMULTI_REF_NON_CONTAINER__ELEMENTS;
+
+ /**
+ * The number of structural features of the '<em>Impl Multi Ref Non Container</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_NON_CONTAINER_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_NON_CONTAINER_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainedElementImpl
+ * <em>Impl Multi Ref Non Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainedElementImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplMultiRefNonContainedElement()
+ * @generated
+ */
+ int IMPL_MULTI_REF_NON_CONTAINED_ELEMENT = 24;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT = model4interfacesPackage.IMULTI_REF_NON_CONTAINED_ELEMENT__PARENT;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME = model4interfacesPackage.IMULTI_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Impl Multi Ref Non Contained Element</em>' class. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainerImpl
+ * <em>Impl Multi Ref Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainerImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplMultiRefContainer()
+ * @generated
+ */
+ int IMPL_MULTI_REF_CONTAINER = 25;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_CONTAINER__ELEMENTS = model4interfacesPackage.IMULTI_REF_CONTAINER__ELEMENTS;
+
+ /**
+ * The number of structural features of the '<em>Impl Multi Ref Container</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_CONTAINER_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_CONTAINER_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainedElementImpl
+ * <em>Impl Multi Ref Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainedElementImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplMultiRefContainedElement()
+ * @generated
+ */
+ int IMPL_MULTI_REF_CONTAINED_ELEMENT = 26;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT = model4interfacesPackage.IMULTI_REF_CONTAINED_ELEMENT__PARENT;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME = model4interfacesPackage.IMULTI_REF_CONTAINED_ELEMENT_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Impl Multi Ref Contained Element</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_CONTAINED_ELEMENT_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_CONTAINED_ELEMENT_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainerNPLImpl
+ * <em>Impl Single Ref Container NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefContainerNPLImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplSingleRefContainerNPL()
+ * @generated
+ */
+ int IMPL_SINGLE_REF_CONTAINER_NPL = 27;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT = model4interfacesPackage.ISINGLE_REF_CONTAINER_NPL__ELEMENT;
+
+ /**
+ * The number of structural features of the '<em>Impl Single Ref Container NPL</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_CONTAINER_NPL_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_CONTAINER_NPL_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainerNPLImpl
+ * <em>Impl Single Ref Non Container NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplSingleRefNonContainerNPLImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplSingleRefNonContainerNPL()
+ * @generated
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINER_NPL = 28;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINER_NPL__ELEMENT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINER_NPL__ELEMENT;
+
+ /**
+ * The number of structural features of the '<em>Impl Single Ref Non Container NPL</em>' class. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINER_NPL_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINER_NPL_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainerNPLImpl
+ * <em>Impl Multi Ref Container NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefContainerNPLImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplMultiRefContainerNPL()
+ * @generated
+ */
+ int IMPL_MULTI_REF_CONTAINER_NPL = 29;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_CONTAINER_NPL__ELEMENTS = model4interfacesPackage.IMULTI_REF_CONTAINER_NPL__ELEMENTS;
+
+ /**
+ * The number of structural features of the '<em>Impl Multi Ref Container NPL</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_CONTAINER_NPL_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_CONTAINER_NPL_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainerNPLImpl
+ * <em>Impl Multi Ref Non Container NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplMultiRefNonContainerNPLImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplMultiRefNonContainerNPL()
+ * @generated
+ */
+ int IMPL_MULTI_REF_NON_CONTAINER_NPL = 30;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_NON_CONTAINER_NPL__ELEMENTS = model4interfacesPackage.IMULTI_REF_NON_CONTAINER_NPL__ELEMENTS;
+
+ /**
+ * The number of structural features of the '<em>Impl Multi Ref Non Container NPL</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_NON_CONTAINER_NPL_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_NON_CONTAINER_NPL_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplContainedElementNPLImpl
+ * <em>Impl Contained Element NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.ImplContainedElementNPLImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getImplContainedElementNPL()
+ * @generated
+ */
+ int IMPL_CONTAINED_ELEMENT_NPL = 31;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_CONTAINED_ELEMENT_NPL__NAME = model4interfacesPackage.ICONTAINED_ELEMENT_NO_PARENT_LINK_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Impl Contained Element NPL</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_CONTAINED_ELEMENT_NPL_FEATURE_COUNT = model4interfacesPackage.ICONTAINED_ELEMENT_NO_PARENT_LINK_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiNUNonContainedImpl
+ * <em>Gen Ref Multi NU Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMultiNUNonContainedImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getGenRefMultiNUNonContained()
+ * @generated
+ */
+ int GEN_REF_MULTI_NU_NON_CONTAINED = 32;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Gen Ref Multi NU Non Contained</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_MULTI_NU_NON_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMapNonContainedImpl
+ * <em>Gen Ref Map Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.GenRefMapNonContainedImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getGenRefMapNonContained()
+ * @generated
+ */
+ int GEN_REF_MAP_NON_CONTAINED = 33;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' map. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_MAP_NON_CONTAINED__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Gen Ref Map Non Contained</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_MAP_NON_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model4.impl.StringToEObjectImpl
+ * <em>String To EObject</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.StringToEObjectImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.impl.model4PackageImpl#getStringToEObject()
+ * @generated
+ */
+ int STRING_TO_EOBJECT = 34;
+
+ /**
+ * The feature id for the '<em><b>Key</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int STRING_TO_EOBJECT__KEY = 0;
+
+ /**
+ * The feature id for the '<em><b>Value</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int STRING_TO_EOBJECT__VALUE = 1;
+
+ /**
+ * The number of structural features of the '<em>String To EObject</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int STRING_TO_EOBJECT_FEATURE_COUNT = 2;
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefSingleContained
+ * <em>Ref Single Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Single Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefSingleContained
+ * @generated
+ */
+ EClass getRefSingleContained();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefSingleContained#getElement <em>Element</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefSingleContained#getElement()
+ * @see #getRefSingleContained()
+ * @generated
+ */
+ EReference getRefSingleContained_Element();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.SingleContainedElement
+ * <em>Single Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Single Contained Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.SingleContainedElement
+ * @generated
+ */
+ EClass getSingleContainedElement();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.SingleContainedElement#getName <em>Name</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.SingleContainedElement#getName()
+ * @see #getSingleContainedElement()
+ * @generated
+ */
+ EAttribute getSingleContainedElement_Name();
+
+ /**
+ * Returns the meta object for the container reference '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.SingleContainedElement#getParent <em>Parent</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the container reference '<em>Parent</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.SingleContainedElement#getParent()
+ * @see #getSingleContainedElement()
+ * @generated
+ */
+ EReference getSingleContainedElement_Parent();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefSingleNonContained
+ * <em>Ref Single Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Single Non Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefSingleNonContained
+ * @generated
+ */
+ EClass getRefSingleNonContained();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefSingleNonContained#getElement <em>Element</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefSingleNonContained#getElement()
+ * @see #getRefSingleNonContained()
+ * @generated
+ */
+ EReference getRefSingleNonContained_Element();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.SingleNonContainedElement
+ * <em>Single Non Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Single Non Contained Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.SingleNonContainedElement
+ * @generated
+ */
+ EClass getSingleNonContainedElement();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.SingleNonContainedElement#getName <em>Name</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.SingleNonContainedElement#getName()
+ * @see #getSingleNonContainedElement()
+ * @generated
+ */
+ EAttribute getSingleNonContainedElement_Name();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.SingleNonContainedElement#getParent <em>Parent</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Parent</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.SingleNonContainedElement#getParent()
+ * @see #getSingleNonContainedElement()
+ * @generated
+ */
+ EReference getSingleNonContainedElement_Parent();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiContained
+ * <em>Ref Multi Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Multi Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiContained
+ * @generated
+ */
+ EClass getRefMultiContained();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiContained#getElements <em>Elements</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiContained#getElements()
+ * @see #getRefMultiContained()
+ * @generated
+ */
+ EReference getRefMultiContained_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.MultiContainedElement
+ * <em>Multi Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Multi Contained Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiContainedElement
+ * @generated
+ */
+ EClass getMultiContainedElement();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.MultiContainedElement#getName <em>Name</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiContainedElement#getName()
+ * @see #getMultiContainedElement()
+ * @generated
+ */
+ EAttribute getMultiContainedElement_Name();
+
+ /**
+ * Returns the meta object for the container reference '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.MultiContainedElement#getParent <em>Parent</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the container reference '<em>Parent</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiContainedElement#getParent()
+ * @see #getMultiContainedElement()
+ * @generated
+ */
+ EReference getMultiContainedElement_Parent();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContained
+ * <em>Ref Multi Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Multi Non Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContained
+ * @generated
+ */
+ EClass getRefMultiNonContained();
+
+ /**
+ * Returns the meta object for the reference list '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContained#getElements <em>Elements</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContained#getElements()
+ * @see #getRefMultiNonContained()
+ * @generated
+ */
+ EReference getRefMultiNonContained_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedElement
+ * <em>Multi Non Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Multi Non Contained Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedElement
+ * @generated
+ */
+ EClass getMultiNonContainedElement();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedElement#getName <em>Name</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedElement#getName()
+ * @see #getMultiNonContainedElement()
+ * @generated
+ */
+ EAttribute getMultiNonContainedElement_Name();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedElement#getParent <em>Parent</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Parent</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedElement#getParent()
+ * @see #getMultiNonContainedElement()
+ * @generated
+ */
+ EReference getMultiNonContainedElement_Parent();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContainedUnsettable
+ * <em>Ref Multi Non Contained Unsettable</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Multi Non Contained Unsettable</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContainedUnsettable
+ * @generated
+ */
+ EClass getRefMultiNonContainedUnsettable();
+
+ /**
+ * Returns the meta object for the reference list '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContainedUnsettable#getElements <em>Elements</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContainedUnsettable#getElements()
+ * @see #getRefMultiNonContainedUnsettable()
+ * @generated
+ */
+ EReference getRefMultiNonContainedUnsettable_Elements();
+
+ /**
+ * Returns the meta object for class '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedUnsettableElement
+ * <em>Multi Non Contained Unsettable Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Multi Non Contained Unsettable Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedUnsettableElement
+ * @generated
+ */
+ EClass getMultiNonContainedUnsettableElement();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedUnsettableElement#getName <em>Name</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedUnsettableElement#getName()
+ * @see #getMultiNonContainedUnsettableElement()
+ * @generated
+ */
+ EAttribute getMultiNonContainedUnsettableElement_Name();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedUnsettableElement#getParent <em>Parent</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Parent</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.MultiNonContainedUnsettableElement#getParent()
+ * @see #getMultiNonContainedUnsettableElement()
+ * @generated
+ */
+ EReference getMultiNonContainedUnsettableElement_Parent();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefSingleContainedNPL
+ * <em>Ref Single Contained NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Single Contained NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefSingleContainedNPL
+ * @generated
+ */
+ EClass getRefSingleContainedNPL();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefSingleContainedNPL#getElement <em>Element</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefSingleContainedNPL#getElement()
+ * @see #getRefSingleContainedNPL()
+ * @generated
+ */
+ EReference getRefSingleContainedNPL_Element();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefSingleNonContainedNPL
+ * <em>Ref Single Non Contained NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Single Non Contained NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefSingleNonContainedNPL
+ * @generated
+ */
+ EClass getRefSingleNonContainedNPL();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefSingleNonContainedNPL#getElement <em>Element</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefSingleNonContainedNPL#getElement()
+ * @see #getRefSingleNonContainedNPL()
+ * @generated
+ */
+ EReference getRefSingleNonContainedNPL_Element();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiContainedNPL
+ * <em>Ref Multi Contained NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Multi Contained NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiContainedNPL
+ * @generated
+ */
+ EClass getRefMultiContainedNPL();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiContainedNPL#getElements <em>Elements</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiContainedNPL#getElements()
+ * @see #getRefMultiContainedNPL()
+ * @generated
+ */
+ EReference getRefMultiContainedNPL_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContainedNPL
+ * <em>Ref Multi Non Contained NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Multi Non Contained NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContainedNPL
+ * @generated
+ */
+ EClass getRefMultiNonContainedNPL();
+
+ /**
+ * Returns the meta object for the reference list '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContainedNPL#getElements <em>Elements</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.RefMultiNonContainedNPL#getElements()
+ * @see #getRefMultiNonContainedNPL()
+ * @generated
+ */
+ EReference getRefMultiNonContainedNPL_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ContainedElementNoOpposite
+ * <em>Contained Element No Opposite</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Contained Element No Opposite</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ContainedElementNoOpposite
+ * @generated
+ */
+ EClass getContainedElementNoOpposite();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.ContainedElementNoOpposite#getName <em>Name</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ContainedElementNoOpposite#getName()
+ * @see #getContainedElementNoOpposite()
+ * @generated
+ */
+ EAttribute getContainedElementNoOpposite_Name();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefSingleContained
+ * <em>Gen Ref Single Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Gen Ref Single Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefSingleContained
+ * @generated
+ */
+ EClass getGenRefSingleContained();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefSingleContained#getElement <em>Element</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefSingleContained#getElement()
+ * @see #getGenRefSingleContained()
+ * @generated
+ */
+ EReference getGenRefSingleContained_Element();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefSingleNonContained
+ * <em>Gen Ref Single Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Gen Ref Single Non Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefSingleNonContained
+ * @generated
+ */
+ EClass getGenRefSingleNonContained();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefSingleNonContained#getElement <em>Element</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefSingleNonContained#getElement()
+ * @see #getGenRefSingleNonContained()
+ * @generated
+ */
+ EReference getGenRefSingleNonContained_Element();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiContained
+ * <em>Gen Ref Multi Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Gen Ref Multi Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiContained
+ * @generated
+ */
+ EClass getGenRefMultiContained();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiContained#getElements <em>Elements</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiContained#getElements()
+ * @see #getGenRefMultiContained()
+ * @generated
+ */
+ EReference getGenRefMultiContained_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiNonContained
+ * <em>Gen Ref Multi Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Gen Ref Multi Non Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiNonContained
+ * @generated
+ */
+ EClass getGenRefMultiNonContained();
+
+ /**
+ * Returns the meta object for the reference list '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiNonContained#getElements <em>Elements</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiNonContained#getElements()
+ * @see #getGenRefMultiNonContained()
+ * @generated
+ */
+ EReference getGenRefMultiNonContained_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefContainer
+ * <em>Impl Single Ref Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Single Ref Container</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefContainer
+ * @generated
+ */
+ EClass getImplSingleRefContainer();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefContainedElement
+ * <em>Impl Single Ref Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Single Ref Contained Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefContainedElement
+ * @generated
+ */
+ EClass getImplSingleRefContainedElement();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefContainedElement#getName <em>Name</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefContainedElement#getName()
+ * @see #getImplSingleRefContainedElement()
+ * @generated
+ */
+ EAttribute getImplSingleRefContainedElement_Name();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefNonContainer
+ * <em>Impl Single Ref Non Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Single Ref Non Container</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefNonContainer
+ * @generated
+ */
+ EClass getImplSingleRefNonContainer();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefNonContainedElement
+ * <em>Impl Single Ref Non Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Single Ref Non Contained Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefNonContainedElement
+ * @generated
+ */
+ EClass getImplSingleRefNonContainedElement();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefNonContainedElement#getName <em>Name</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefNonContainedElement#getName()
+ * @see #getImplSingleRefNonContainedElement()
+ * @generated
+ */
+ EAttribute getImplSingleRefNonContainedElement_Name();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefNonContainer
+ * <em>Impl Multi Ref Non Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Multi Ref Non Container</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefNonContainer
+ * @generated
+ */
+ EClass getImplMultiRefNonContainer();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefNonContainedElement
+ * <em>Impl Multi Ref Non Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Multi Ref Non Contained Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefNonContainedElement
+ * @generated
+ */
+ EClass getImplMultiRefNonContainedElement();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefNonContainedElement#getName <em>Name</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefNonContainedElement#getName()
+ * @see #getImplMultiRefNonContainedElement()
+ * @generated
+ */
+ EAttribute getImplMultiRefNonContainedElement_Name();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefContainer
+ * <em>Impl Multi Ref Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Multi Ref Container</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefContainer
+ * @generated
+ */
+ EClass getImplMultiRefContainer();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefContainedElement
+ * <em>Impl Multi Ref Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Multi Ref Contained Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefContainedElement
+ * @generated
+ */
+ EClass getImplMultiRefContainedElement();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefContainedElement#getName <em>Name</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefContainedElement#getName()
+ * @see #getImplMultiRefContainedElement()
+ * @generated
+ */
+ EAttribute getImplMultiRefContainedElement_Name();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefContainerNPL
+ * <em>Impl Single Ref Container NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Single Ref Container NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefContainerNPL
+ * @generated
+ */
+ EClass getImplSingleRefContainerNPL();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefNonContainerNPL
+ * <em>Impl Single Ref Non Container NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Single Ref Non Container NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplSingleRefNonContainerNPL
+ * @generated
+ */
+ EClass getImplSingleRefNonContainerNPL();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefContainerNPL
+ * <em>Impl Multi Ref Container NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Multi Ref Container NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefContainerNPL
+ * @generated
+ */
+ EClass getImplMultiRefContainerNPL();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefNonContainerNPL
+ * <em>Impl Multi Ref Non Container NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Multi Ref Non Container NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplMultiRefNonContainerNPL
+ * @generated
+ */
+ EClass getImplMultiRefNonContainerNPL();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.ImplContainedElementNPL
+ * <em>Impl Contained Element NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Contained Element NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.ImplContainedElementNPL
+ * @generated
+ */
+ EClass getImplContainedElementNPL();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiNUNonContained
+ * <em>Gen Ref Multi NU Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Gen Ref Multi NU Non Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiNUNonContained
+ * @generated
+ */
+ EClass getGenRefMultiNUNonContained();
+
+ /**
+ * Returns the meta object for the reference list '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiNUNonContained#getElements <em>Elements</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefMultiNUNonContained#getElements()
+ * @see #getGenRefMultiNUNonContained()
+ * @generated
+ */
+ EReference getGenRefMultiNUNonContained_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefMapNonContained
+ * <em>Gen Ref Map Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Gen Ref Map Non Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefMapNonContained
+ * @generated
+ */
+ EClass getGenRefMapNonContained();
+
+ /**
+ * Returns the meta object for the map '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model4.GenRefMapNonContained#getElements <em>Elements</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the map '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model4.GenRefMapNonContained#getElements()
+ * @see #getGenRefMapNonContained()
+ * @generated
+ */
+ EReference getGenRefMapNonContained_Elements();
+
+ /**
+ * Returns the meta object for class '{@link java.util.Map.Entry <em>String To EObject</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>String To EObject</em>'.
+ * @see java.util.Map.Entry
+ * @model keyDataType="org.eclipse.emf.ecore.EString" valueType="org.eclipse.emf.ecore.EObject"
+ * valueResolveProxies="false"
+ * @generated
+ */
+ EClass getStringToEObject();
+
+ /**
+ * Returns the meta object for the attribute '{@link java.util.Map.Entry <em>Key</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Key</em>'.
+ * @see java.util.Map.Entry
+ * @see #getStringToEObject()
+ * @generated
+ */
+ EAttribute getStringToEObject_Key();
+
+ /**
+ * Returns the meta object for the reference '{@link java.util.Map.Entry <em>Value</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Value</em>'.
+ * @see java.util.Map.Entry
+ * @see #getStringToEObject()
+ * @generated
+ */
+ EReference getStringToEObject_Value();
+
+ /**
+ * Returns the factory that creates the instances of the model. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ model4Factory getmodel4Factory();
+
+} // model4Package
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ContainedElementNoOpposite.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ContainedElementNoOpposite.java index 506f85b411..b3a6a687f6 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ContainedElementNoOpposite.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ContainedElementNoOpposite.java @@ -1,57 +1,57 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Contained Element No Opposite</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getContainedElementNoOpposite() - * @model - * @generated - */ -public interface ContainedElementNoOpposite extends EObject -{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getContainedElementNoOpposite_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite#getName <em>Name</em>}' - * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // ContainedElementNoOpposite +/*
+ * 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.model4;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Contained Element No Opposite</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getContainedElementNoOpposite()
+ * @model
+ * @generated
+ */
+public interface ContainedElementNoOpposite extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getContainedElementNoOpposite_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite#getName <em>Name</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+} // ContainedElementNoOpposite
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefMapNonContained.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefMapNonContained.java index cfc122e85d..c59df3d6cb 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefMapNonContained.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefMapNonContained.java @@ -1,49 +1,49 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.common.util.EMap; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Gen Ref Map Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefMapNonContained() - * @model - * @generated - */ -public interface GenRefMapNonContained extends EObject -{ - /** - * Returns the value of the '<em><b>Elements</b></em>' map. The key is of type {@link java.lang.String}, and the value - * is of type {@link org.eclipse.emf.ecore.EObject}, <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Elements</em>' containment reference list isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Elements</em>' map. - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefMapNonContained_Elements() - * @model mapType= - * "org.eclipse.emf.cdo.tests.model4.StringToEObject<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EObject>" - * @generated - */ - EMap<String, EObject> getElements(); - -} // GenRefMapNonContained +/*
+ * 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.model4;
+
+import org.eclipse.emf.common.util.EMap;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Gen Ref Map Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefMapNonContained()
+ * @model
+ * @generated
+ */
+public interface GenRefMapNonContained extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Elements</b></em>' map. The key is of type {@link java.lang.String}, and the value
+ * is of type {@link org.eclipse.emf.ecore.EObject}, <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Elements</em>' containment reference list isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Elements</em>' map.
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefMapNonContained_Elements()
+ * @model mapType=
+ * "org.eclipse.emf.cdo.tests.model4.StringToEObject<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EObject>"
+ * @generated
+ */
+ EMap<String, EObject> getElements();
+
+} // GenRefMapNonContained
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefMultiContained.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefMultiContained.java index 964ae214a0..98bb9f4028 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefMultiContained.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefMultiContained.java @@ -1,48 +1,48 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Gen Ref Multi Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiContained#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefMultiContained() - * @model - * @generated - */ -public interface GenRefMultiContained extends EObject -{ - /** - * Returns the value of the '<em><b>Elements</b></em>' containment reference list. The list contents are of type - * {@link org.eclipse.emf.ecore.EObject}. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Elements</em>' containment reference list isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Elements</em>' containment reference list. - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefMultiContained_Elements() - * @model containment="true" - * @generated - */ - EList<EObject> getElements(); - -} // GenRefMultiContained +/*
+ * 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.model4;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Gen Ref Multi Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiContained#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefMultiContained()
+ * @model
+ * @generated
+ */
+public interface GenRefMultiContained extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Elements</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.emf.ecore.EObject}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Elements</em>' containment reference list isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Elements</em>' containment reference list.
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefMultiContained_Elements()
+ * @model containment="true"
+ * @generated
+ */
+ EList<EObject> getElements();
+
+} // GenRefMultiContained
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefMultiNUNonContained.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefMultiNUNonContained.java index f0dc9f8e9f..30d7b56bcd 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefMultiNUNonContained.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefMultiNUNonContained.java @@ -1,48 +1,48 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Gen Ref Multi NU Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefMultiNUNonContained() - * @model - * @generated - */ -public interface GenRefMultiNUNonContained extends EObject -{ - /** - * Returns the value of the '<em><b>Elements</b></em>' reference list. The list contents are of type - * {@link org.eclipse.emf.ecore.EObject}. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Elements</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>Elements</em>' reference list. - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefMultiNUNonContained_Elements() - * @model resolveProxies="false" - * @generated - */ - EList<EObject> getElements(); - -} // GenRefMultiNUNonContained +/*
+ * 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.model4;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Gen Ref Multi NU Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefMultiNUNonContained()
+ * @model
+ * @generated
+ */
+public interface GenRefMultiNUNonContained extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Elements</b></em>' reference list. The list contents are of type
+ * {@link org.eclipse.emf.ecore.EObject}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Elements</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>Elements</em>' reference list.
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefMultiNUNonContained_Elements()
+ * @model resolveProxies="false"
+ * @generated
+ */
+ EList<EObject> getElements();
+
+} // GenRefMultiNUNonContained
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefMultiNonContained.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefMultiNonContained.java index b737b5a990..47725e6740 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefMultiNonContained.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefMultiNonContained.java @@ -1,48 +1,48 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Gen Ref Multi Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefMultiNonContained() - * @model - * @generated - */ -public interface GenRefMultiNonContained extends EObject -{ - /** - * Returns the value of the '<em><b>Elements</b></em>' reference list. The list contents are of type - * {@link org.eclipse.emf.ecore.EObject}. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Elements</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>Elements</em>' reference list. - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefMultiNonContained_Elements() - * @model - * @generated - */ - EList<EObject> getElements(); - -} // GenRefMultiNonContained +/*
+ * 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.model4;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Gen Ref Multi Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefMultiNonContained()
+ * @model
+ * @generated
+ */
+public interface GenRefMultiNonContained extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Elements</b></em>' reference list. The list contents are of type
+ * {@link org.eclipse.emf.ecore.EObject}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Elements</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>Elements</em>' reference list.
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefMultiNonContained_Elements()
+ * @model
+ * @generated
+ */
+ EList<EObject> getElements();
+
+} // GenRefMultiNonContained
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefSingleContained.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefSingleContained.java index 82e74f3be2..4079d34a1c 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefSingleContained.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefSingleContained.java @@ -1,58 +1,58 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Gen Ref Single Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.GenRefSingleContained#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefSingleContained() - * @model - * @generated - */ -public interface GenRefSingleContained extends EObject -{ - /** - * Returns the value of the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Element</em>' containment reference isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Element</em>' containment reference. - * @see #setElement(EObject) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefSingleContained_Element() - * @model containment="true" - * @generated - */ - EObject getElement(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.GenRefSingleContained#getElement <em>Element</em>}' - * containment reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Element</em>' containment reference. - * @see #getElement() - * @generated - */ - void setElement(EObject value); - -} // GenRefSingleContained +/*
+ * 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.model4;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Gen Ref Single Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.GenRefSingleContained#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefSingleContained()
+ * @model
+ * @generated
+ */
+public interface GenRefSingleContained extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Element</em>' containment reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Element</em>' containment reference.
+ * @see #setElement(EObject)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefSingleContained_Element()
+ * @model containment="true"
+ * @generated
+ */
+ EObject getElement();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.GenRefSingleContained#getElement <em>Element</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Element</em>' containment reference.
+ * @see #getElement()
+ * @generated
+ */
+ void setElement(EObject value);
+
+} // GenRefSingleContained
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefSingleNonContained.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefSingleNonContained.java index ac2d613344..25c2c0d11d 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefSingleNonContained.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/GenRefSingleNonContained.java @@ -1,58 +1,58 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Gen Ref Single Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefSingleNonContained() - * @model - * @generated - */ -public interface GenRefSingleNonContained extends EObject -{ - /** - * Returns the value of the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>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>Element</em>' reference. - * @see #setElement(EObject) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefSingleNonContained_Element() - * @model - * @generated - */ - EObject getElement(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained#getElement - * <em>Element</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Element</em>' reference. - * @see #getElement() - * @generated - */ - void setElement(EObject value); - -} // GenRefSingleNonContained +/*
+ * 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.model4;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Gen Ref Single Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefSingleNonContained()
+ * @model
+ * @generated
+ */
+public interface GenRefSingleNonContained extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Element</b></em>' reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>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>Element</em>' reference.
+ * @see #setElement(EObject)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getGenRefSingleNonContained_Element()
+ * @model
+ * @generated
+ */
+ EObject getElement();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained#getElement
+ * <em>Element</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Element</em>' reference.
+ * @see #getElement()
+ * @generated
+ */
+ void setElement(EObject value);
+
+} // GenRefSingleNonContained
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplContainedElementNPL.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplContainedElementNPL.java index d493083ffb..6e79fa8626 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplContainedElementNPL.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplContainedElementNPL.java @@ -1,26 +1,26 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink; -import org.eclipse.emf.cdo.tests.model4interfaces.INamedElement; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Contained Element NPL</b></em>'. <!-- - * end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplContainedElementNPL() - * @model - * @generated - */ -public interface ImplContainedElementNPL extends IContainedElementNoParentLink, INamedElement -{ -} // ImplContainedElementNPL +/*
+ * 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.model4;
+
+import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink;
+import org.eclipse.emf.cdo.tests.model4interfaces.INamedElement;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Contained Element NPL</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplContainedElementNPL()
+ * @model
+ * @generated
+ */
+public interface ImplContainedElementNPL extends IContainedElementNoParentLink, INamedElement
+{
+} // ImplContainedElementNPL
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefContainedElement.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefContainedElement.java index dcfcc9da58..6fe350c2f8 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefContainedElement.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefContainedElement.java @@ -1,57 +1,57 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Multi Ref Contained Element</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplMultiRefContainedElement() - * @model - * @generated - */ -public interface ImplMultiRefContainedElement extends IMultiRefContainedElement -{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplMultiRefContainedElement_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement#getName <em>Name</em>}' - * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // ImplMultiRefContainedElement +/*
+ * 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.model4;
+
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Multi Ref Contained Element</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplMultiRefContainedElement()
+ * @model
+ * @generated
+ */
+public interface ImplMultiRefContainedElement extends IMultiRefContainedElement
+{
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplMultiRefContainedElement_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement#getName <em>Name</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+} // ImplMultiRefContainedElement
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefContainer.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefContainer.java index 77d53ec77f..2a574af812 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefContainer.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefContainer.java @@ -1,25 +1,25 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Multi Ref Container</b></em>'. <!-- - * end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplMultiRefContainer() - * @model - * @generated - */ -public interface ImplMultiRefContainer extends IMultiRefContainer -{ -} // ImplMultiRefContainer +/*
+ * 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.model4;
+
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Multi Ref Container</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplMultiRefContainer()
+ * @model
+ * @generated
+ */
+public interface ImplMultiRefContainer extends IMultiRefContainer
+{
+} // ImplMultiRefContainer
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefContainerNPL.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefContainerNPL.java index be7ca4e027..77286f732c 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefContainerNPL.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefContainerNPL.java @@ -1,25 +1,25 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainerNPL; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Multi Ref Container NPL</b></em>'. <!-- - * end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplMultiRefContainerNPL() - * @model - * @generated - */ -public interface ImplMultiRefContainerNPL extends IMultiRefContainerNPL -{ -} // ImplMultiRefContainerNPL +/*
+ * 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.model4;
+
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainerNPL;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Multi Ref Container NPL</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplMultiRefContainerNPL()
+ * @model
+ * @generated
+ */
+public interface ImplMultiRefContainerNPL extends IMultiRefContainerNPL
+{
+} // ImplMultiRefContainerNPL
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefNonContainedElement.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefNonContainedElement.java index a673fee17d..d85c7de562 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefNonContainedElement.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefNonContainedElement.java @@ -1,57 +1,57 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Multi Ref Non Contained Element</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplMultiRefNonContainedElement() - * @model - * @generated - */ -public interface ImplMultiRefNonContainedElement extends IMultiRefNonContainedElement -{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplMultiRefNonContainedElement_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement#getName - * <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // ImplMultiRefNonContainedElement +/*
+ * 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.model4;
+
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Multi Ref Non Contained Element</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplMultiRefNonContainedElement()
+ * @model
+ * @generated
+ */
+public interface ImplMultiRefNonContainedElement extends IMultiRefNonContainedElement
+{
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplMultiRefNonContainedElement_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement#getName
+ * <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+} // ImplMultiRefNonContainedElement
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefNonContainer.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefNonContainer.java index bb7f558734..65fc69a492 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefNonContainer.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefNonContainer.java @@ -1,25 +1,25 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Multi Ref Non Container</b></em>'. <!-- - * end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplMultiRefNonContainer() - * @model - * @generated - */ -public interface ImplMultiRefNonContainer extends IMultiRefNonContainer -{ -} // ImplMultiRefNonContainer +/*
+ * 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.model4;
+
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Multi Ref Non Container</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplMultiRefNonContainer()
+ * @model
+ * @generated
+ */
+public interface ImplMultiRefNonContainer extends IMultiRefNonContainer
+{
+} // ImplMultiRefNonContainer
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefNonContainerNPL.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefNonContainerNPL.java index 558146f08b..beed329152 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefNonContainerNPL.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplMultiRefNonContainerNPL.java @@ -1,25 +1,25 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainerNPL; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Multi Ref Non Container NPL</b></em>'. <!-- - * end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplMultiRefNonContainerNPL() - * @model - * @generated - */ -public interface ImplMultiRefNonContainerNPL extends IMultiRefNonContainerNPL -{ -} // ImplMultiRefNonContainerNPL +/*
+ * 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.model4;
+
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainerNPL;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Multi Ref Non Container NPL</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplMultiRefNonContainerNPL()
+ * @model
+ * @generated
+ */
+public interface ImplMultiRefNonContainerNPL extends IMultiRefNonContainerNPL
+{
+} // ImplMultiRefNonContainerNPL
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefContainedElement.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefContainedElement.java index e76630d50b..3349c192cd 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefContainedElement.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefContainedElement.java @@ -1,57 +1,57 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Single Ref Contained Element</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplSingleRefContainedElement() - * @model - * @generated - */ -public interface ImplSingleRefContainedElement extends ISingleRefContainedElement -{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplSingleRefContainedElement_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement#getName <em>Name</em>} - * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // ImplSingleRefContainedElement +/*
+ * 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.model4;
+
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Single Ref Contained Element</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplSingleRefContainedElement()
+ * @model
+ * @generated
+ */
+public interface ImplSingleRefContainedElement extends ISingleRefContainedElement
+{
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplSingleRefContainedElement_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement#getName <em>Name</em>}
+ * ' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+} // ImplSingleRefContainedElement
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefContainer.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefContainer.java index d9108d041d..c7293dcc43 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefContainer.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefContainer.java @@ -1,25 +1,25 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Single Ref Container</b></em>'. <!-- - * end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplSingleRefContainer() - * @model - * @generated - */ -public interface ImplSingleRefContainer extends ISingleRefContainer -{ -} // ImplSingleRefContainer +/*
+ * 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.model4;
+
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Single Ref Container</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplSingleRefContainer()
+ * @model
+ * @generated
+ */
+public interface ImplSingleRefContainer extends ISingleRefContainer
+{
+} // ImplSingleRefContainer
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefContainerNPL.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefContainerNPL.java index c1c3796584..07226839c6 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefContainerNPL.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefContainerNPL.java @@ -1,25 +1,25 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainerNPL; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Single Ref Container NPL</b></em>'. <!-- - * end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplSingleRefContainerNPL() - * @model - * @generated - */ -public interface ImplSingleRefContainerNPL extends ISingleRefContainerNPL -{ -} // ImplSingleRefContainerNPL +/*
+ * 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.model4;
+
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainerNPL;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Single Ref Container NPL</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplSingleRefContainerNPL()
+ * @model
+ * @generated
+ */
+public interface ImplSingleRefContainerNPL extends ISingleRefContainerNPL
+{
+} // ImplSingleRefContainerNPL
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefNonContainedElement.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefNonContainedElement.java index 0211bd2423..a1ef9f3a89 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefNonContainedElement.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefNonContainedElement.java @@ -1,57 +1,57 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Single Ref Non Contained Element</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplSingleRefNonContainedElement() - * @model - * @generated - */ -public interface ImplSingleRefNonContainedElement extends ISingleRefNonContainedElement -{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplSingleRefNonContainedElement_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement#getName - * <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // ImplSingleRefNonContainedElement +/*
+ * 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.model4;
+
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Single Ref Non Contained Element</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplSingleRefNonContainedElement()
+ * @model
+ * @generated
+ */
+public interface ImplSingleRefNonContainedElement extends ISingleRefNonContainedElement
+{
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplSingleRefNonContainedElement_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement#getName
+ * <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+} // ImplSingleRefNonContainedElement
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefNonContainer.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefNonContainer.java index 0538147ebf..2db236cad5 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefNonContainer.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefNonContainer.java @@ -1,25 +1,25 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Single Ref Non Container</b></em>'. <!-- - * end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplSingleRefNonContainer() - * @model - * @generated - */ -public interface ImplSingleRefNonContainer extends ISingleRefNonContainer -{ -} // ImplSingleRefNonContainer +/*
+ * 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.model4;
+
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Single Ref Non Container</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplSingleRefNonContainer()
+ * @model
+ * @generated
+ */
+public interface ImplSingleRefNonContainer extends ISingleRefNonContainer
+{
+} // ImplSingleRefNonContainer
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefNonContainerNPL.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefNonContainerNPL.java index f33e7031ae..4d42f8891d 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefNonContainerNPL.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/ImplSingleRefNonContainerNPL.java @@ -1,25 +1,25 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainerNPL; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Single Ref Non Container NPL</b></em>'. - * <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplSingleRefNonContainerNPL() - * @model - * @generated - */ -public interface ImplSingleRefNonContainerNPL extends ISingleRefNonContainerNPL -{ -} // ImplSingleRefNonContainerNPL +/*
+ * 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.model4;
+
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainerNPL;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Impl Single Ref Non Container NPL</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getImplSingleRefNonContainerNPL()
+ * @model
+ * @generated
+ */
+public interface ImplSingleRefNonContainerNPL extends ISingleRefNonContainerNPL
+{
+} // ImplSingleRefNonContainerNPL
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/MultiContainedElement.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/MultiContainedElement.java index 80a75cbb13..7129c72c18 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/MultiContainedElement.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/MultiContainedElement.java @@ -1,87 +1,87 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Multi Contained Element</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getParent <em>Parent</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiContainedElement() - * @model - * @generated - */ -public interface MultiContainedElement extends EObject -{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiContainedElement_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getName <em>Name</em>}' - * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Parent</b></em>' container reference. It is bidirectional and its opposite is ' - * {@link org.eclipse.emf.cdo.tests.model4.RefMultiContained#getElements <em>Elements</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Parent</em>' container reference isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Parent</em>' container reference. - * @see #setParent(RefMultiContained) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiContainedElement_Parent() - * @see org.eclipse.emf.cdo.tests.model4.RefMultiContained#getElements - * @model opposite="elements" transient="false" - * @generated - */ - RefMultiContained getParent(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getParent <em>Parent</em>}' - * container reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Parent</em>' container reference. - * @see #getParent() - * @generated - */ - void setParent(RefMultiContained value); - -} // MultiContainedElement +/*
+ * 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.model4;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Multi Contained Element</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getParent <em>Parent</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiContainedElement()
+ * @model
+ * @generated
+ */
+public interface MultiContainedElement extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiContainedElement_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getName <em>Name</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Parent</b></em>' container reference. It is bidirectional and its opposite is '
+ * {@link org.eclipse.emf.cdo.tests.model4.RefMultiContained#getElements <em>Elements</em>}'. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Parent</em>' container reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Parent</em>' container reference.
+ * @see #setParent(RefMultiContained)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiContainedElement_Parent()
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiContained#getElements
+ * @model opposite="elements" transient="false"
+ * @generated
+ */
+ RefMultiContained getParent();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getParent <em>Parent</em>}'
+ * container reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Parent</em>' container reference.
+ * @see #getParent()
+ * @generated
+ */
+ void setParent(RefMultiContained value);
+
+} // MultiContainedElement
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/MultiNonContainedElement.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/MultiNonContainedElement.java index 9bc45185c3..00878f26a1 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/MultiNonContainedElement.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/MultiNonContainedElement.java @@ -1,88 +1,88 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Multi Non Contained Element</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getParent <em>Parent</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiNonContainedElement() - * @model - * @generated - */ -public interface MultiNonContainedElement extends EObject -{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiNonContainedElement_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getName <em>Name</em>}' - * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Parent</b></em>' reference. It is bidirectional and its opposite is ' - * {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContained#getElements <em>Elements</em>}'. <!-- begin-user-doc - * --> - * <p> - * If the meaning of the '<em>Parent</em>' container reference isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Parent</em>' reference. - * @see #setParent(RefMultiNonContained) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiNonContainedElement_Parent() - * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContained#getElements - * @model opposite="elements" - * @generated - */ - RefMultiNonContained getParent(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getParent <em>Parent</em>}' - * reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Parent</em>' reference. - * @see #getParent() - * @generated - */ - void setParent(RefMultiNonContained value); - -} // MultiNonContainedElement +/*
+ * 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.model4;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Multi Non Contained Element</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getParent <em>Parent</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiNonContainedElement()
+ * @model
+ * @generated
+ */
+public interface MultiNonContainedElement extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiNonContainedElement_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getName <em>Name</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Parent</b></em>' reference. It is bidirectional and its opposite is '
+ * {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContained#getElements <em>Elements</em>}'. <!-- begin-user-doc
+ * -->
+ * <p>
+ * If the meaning of the '<em>Parent</em>' container reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Parent</em>' reference.
+ * @see #setParent(RefMultiNonContained)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiNonContainedElement_Parent()
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContained#getElements
+ * @model opposite="elements"
+ * @generated
+ */
+ RefMultiNonContained getParent();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getParent <em>Parent</em>}'
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Parent</em>' reference.
+ * @see #getParent()
+ * @generated
+ */
+ void setParent(RefMultiNonContained value);
+
+} // MultiNonContainedElement
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/MultiNonContainedUnsettableElement.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/MultiNonContainedUnsettableElement.java index e1822f714c..64960a7d9c 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/MultiNonContainedUnsettableElement.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/MultiNonContainedUnsettableElement.java @@ -1,115 +1,115 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Multi Non Contained Unsettable Element</b></em> - * '. <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getParent <em>Parent</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiNonContainedUnsettableElement() - * @model - * @generated - */ -public interface MultiNonContainedUnsettableElement extends EObject -{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiNonContainedUnsettableElement_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getName - * <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Parent</b></em>' reference. It is bidirectional and its opposite is ' - * {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable#getElements <em>Elements</em>}'. <!-- - * begin-user-doc --> - * <p> - * If the meaning of the '<em>Parent</em>' reference isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Parent</em>' reference. - * @see #isSetParent() - * @see #unsetParent() - * @see #setParent(RefMultiNonContainedUnsettable) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiNonContainedUnsettableElement_Parent() - * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable#getElements - * @model opposite="elements" unsettable="true" - * @generated - */ - RefMultiNonContainedUnsettable getParent(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getParent - * <em>Parent</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Parent</em>' reference. - * @see #isSetParent() - * @see #unsetParent() - * @see #getParent() - * @generated - */ - void setParent(RefMultiNonContainedUnsettable value); - - /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getParent - * <em>Parent</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see #isSetParent() - * @see #getParent() - * @see #setParent(RefMultiNonContainedUnsettable) - * @generated - */ - void unsetParent(); - - /** - * Returns whether the value of the ' - * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getParent <em>Parent</em>}' reference is - * set. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return whether the value of the '<em>Parent</em>' reference is set. - * @see #unsetParent() - * @see #getParent() - * @see #setParent(RefMultiNonContainedUnsettable) - * @generated - */ - boolean isSetParent(); - -} // MultiNonContainedUnsettableElement +/*
+ * 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.model4;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Multi Non Contained Unsettable Element</b></em>
+ * '. <!-- end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getParent <em>Parent</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiNonContainedUnsettableElement()
+ * @model
+ * @generated
+ */
+public interface MultiNonContainedUnsettableElement extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiNonContainedUnsettableElement_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getName
+ * <em>Name</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Parent</b></em>' reference. It is bidirectional and its opposite is '
+ * {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable#getElements <em>Elements</em>}'. <!--
+ * begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Parent</em>' reference isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Parent</em>' reference.
+ * @see #isSetParent()
+ * @see #unsetParent()
+ * @see #setParent(RefMultiNonContainedUnsettable)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getMultiNonContainedUnsettableElement_Parent()
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable#getElements
+ * @model opposite="elements" unsettable="true"
+ * @generated
+ */
+ RefMultiNonContainedUnsettable getParent();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getParent
+ * <em>Parent</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Parent</em>' reference.
+ * @see #isSetParent()
+ * @see #unsetParent()
+ * @see #getParent()
+ * @generated
+ */
+ void setParent(RefMultiNonContainedUnsettable value);
+
+ /**
+ * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getParent
+ * <em>Parent</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetParent()
+ * @see #getParent()
+ * @see #setParent(RefMultiNonContainedUnsettable)
+ * @generated
+ */
+ void unsetParent();
+
+ /**
+ * Returns whether the value of the '
+ * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getParent <em>Parent</em>}' reference is
+ * set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Parent</em>' reference is set.
+ * @see #unsetParent()
+ * @see #getParent()
+ * @see #setParent(RefMultiNonContainedUnsettable)
+ * @generated
+ */
+ boolean isSetParent();
+
+} // MultiNonContainedUnsettableElement
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiContained.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiContained.java index 257c4e7a8f..0c8f85cbc7 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiContained.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiContained.java @@ -1,50 +1,50 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Multi Contained</b></em>'. <!-- end-user-doc - * --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.RefMultiContained#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiContained() - * @model - * @generated - */ -public interface RefMultiContained extends EObject -{ - /** - * Returns the value of the '<em><b>Elements</b></em>' containment reference list. The list contents are of type - * {@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement}. It is bidirectional and its opposite is ' - * {@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getParent <em>Parent</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Elements</em>' containment reference list isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Elements</em>' containment reference list. - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiContained_Elements() - * @see org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getParent - * @model opposite="parent" containment="true" - * @generated - */ - EList<MultiContainedElement> getElements(); - -} // RefMultiContained +/*
+ * 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.model4;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Multi Contained</b></em>'. <!-- end-user-doc
+ * -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.RefMultiContained#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiContained()
+ * @model
+ * @generated
+ */
+public interface RefMultiContained extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Elements</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement}. It is bidirectional and its opposite is '
+ * {@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getParent <em>Parent</em>}'. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Elements</em>' containment reference list isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Elements</em>' containment reference list.
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiContained_Elements()
+ * @see org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getParent
+ * @model opposite="parent" containment="true"
+ * @generated
+ */
+ EList<MultiContainedElement> getElements();
+
+} // RefMultiContained
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiContainedNPL.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiContainedNPL.java index 2b8dcab152..07d1abf075 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiContainedNPL.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiContainedNPL.java @@ -1,48 +1,48 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Multi Contained NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiContainedNPL() - * @model - * @generated - */ -public interface RefMultiContainedNPL extends EObject -{ - /** - * Returns the value of the '<em><b>Elements</b></em>' containment reference list. The list contents are of type - * {@link org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite}. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Elements</em>' containment reference list isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Elements</em>' containment reference list. - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiContainedNPL_Elements() - * @model containment="true" - * @generated - */ - EList<ContainedElementNoOpposite> getElements(); - -} // RefMultiContainedNPL +/*
+ * 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.model4;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Multi Contained NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiContainedNPL()
+ * @model
+ * @generated
+ */
+public interface RefMultiContainedNPL extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Elements</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Elements</em>' containment reference list isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Elements</em>' containment reference list.
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiContainedNPL_Elements()
+ * @model containment="true"
+ * @generated
+ */
+ EList<ContainedElementNoOpposite> getElements();
+
+} // RefMultiContainedNPL
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiNonContained.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiNonContained.java index 4dd28723fd..1a90360280 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiNonContained.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiNonContained.java @@ -1,51 +1,51 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Multi Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContained#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiNonContained() - * @model - * @generated - */ -public interface RefMultiNonContained extends EObject -{ - /** - * Returns the value of the '<em><b>Elements</b></em>' reference list. The list contents are of type - * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement}. It is bidirectional and its opposite is ' - * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getParent <em>Parent</em>}'. <!-- begin-user-doc - * --> - * <p> - * If the meaning of the '<em>Elements</em>' containment reference list isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Elements</em>' reference list. - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiNonContained_Elements() - * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getParent - * @model opposite="parent" - * @generated - */ - EList<MultiNonContainedElement> getElements(); - -} // RefMultiNonContained +/*
+ * 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.model4;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Multi Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContained#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiNonContained()
+ * @model
+ * @generated
+ */
+public interface RefMultiNonContained extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Elements</b></em>' reference list. The list contents are of type
+ * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement}. It is bidirectional and its opposite is '
+ * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getParent <em>Parent</em>}'. <!-- begin-user-doc
+ * -->
+ * <p>
+ * If the meaning of the '<em>Elements</em>' containment reference list isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Elements</em>' reference list.
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiNonContained_Elements()
+ * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getParent
+ * @model opposite="parent"
+ * @generated
+ */
+ EList<MultiNonContainedElement> getElements();
+
+} // RefMultiNonContained
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiNonContainedNPL.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiNonContainedNPL.java index 88721828c6..709c459d0e 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiNonContainedNPL.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiNonContainedNPL.java @@ -1,48 +1,48 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Multi Non Contained NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiNonContainedNPL() - * @model - * @generated - */ -public interface RefMultiNonContainedNPL extends EObject -{ - /** - * Returns the value of the '<em><b>Elements</b></em>' reference list. The list contents are of type - * {@link org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite}. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Elements</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>Elements</em>' reference list. - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiNonContainedNPL_Elements() - * @model - * @generated - */ - EList<ContainedElementNoOpposite> getElements(); - -} // RefMultiNonContainedNPL +/*
+ * 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.model4;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Multi Non Contained NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiNonContainedNPL()
+ * @model
+ * @generated
+ */
+public interface RefMultiNonContainedNPL extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Elements</b></em>' reference list. The list contents are of type
+ * {@link org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Elements</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>Elements</em>' reference list.
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiNonContainedNPL_Elements()
+ * @model
+ * @generated
+ */
+ EList<ContainedElementNoOpposite> getElements();
+
+} // RefMultiNonContainedNPL
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiNonContainedUnsettable.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiNonContainedUnsettable.java index 15c0aa40a7..488a534177 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiNonContainedUnsettable.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefMultiNonContainedUnsettable.java @@ -1,75 +1,75 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Multi Non Contained Unsettable</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiNonContainedUnsettable() - * @model - * @generated - */ -public interface RefMultiNonContainedUnsettable extends EObject -{ - /** - * Returns the value of the '<em><b>Elements</b></em>' reference list. The list contents are of type - * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement}. It is bidirectional and its opposite - * is '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getParent <em>Parent</em>}'. <!-- - * begin-user-doc --> - * <p> - * If the meaning of the '<em>Elements</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>Elements</em>' reference list. - * @see #isSetElements() - * @see #unsetElements() - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiNonContainedUnsettable_Elements() - * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getParent - * @model opposite="parent" unsettable="true" - * @generated - */ - EList<MultiNonContainedUnsettableElement> getElements(); - - /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable#getElements - * <em>Elements</em>}' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see #isSetElements() - * @see #getElements() - * @generated - */ - void unsetElements(); - - /** - * Returns whether the value of the ' - * {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable#getElements <em>Elements</em>}' reference - * list is set. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return whether the value of the '<em>Elements</em>' reference list is set. - * @see #unsetElements() - * @see #getElements() - * @generated - */ - boolean isSetElements(); - -} // RefMultiNonContainedUnsettable +/*
+ * 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.model4;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Multi Non Contained Unsettable</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiNonContainedUnsettable()
+ * @model
+ * @generated
+ */
+public interface RefMultiNonContainedUnsettable extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Elements</b></em>' reference list. The list contents are of type
+ * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement}. It is bidirectional and its opposite
+ * is '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getParent <em>Parent</em>}'. <!--
+ * begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Elements</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>Elements</em>' reference list.
+ * @see #isSetElements()
+ * @see #unsetElements()
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefMultiNonContainedUnsettable_Elements()
+ * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getParent
+ * @model opposite="parent" unsettable="true"
+ * @generated
+ */
+ EList<MultiNonContainedUnsettableElement> getElements();
+
+ /**
+ * Unsets the value of the '{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable#getElements
+ * <em>Elements</em>}' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetElements()
+ * @see #getElements()
+ * @generated
+ */
+ void unsetElements();
+
+ /**
+ * Returns whether the value of the '
+ * {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable#getElements <em>Elements</em>}' reference
+ * list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Elements</em>' reference list is set.
+ * @see #unsetElements()
+ * @see #getElements()
+ * @generated
+ */
+ boolean isSetElements();
+
+} // RefMultiNonContainedUnsettable
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefSingleContained.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefSingleContained.java index b62286e769..3977f62eb8 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefSingleContained.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefSingleContained.java @@ -1,60 +1,60 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Single Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.RefSingleContained#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefSingleContained() - * @model - * @generated - */ -public interface RefSingleContained extends EObject -{ - /** - * Returns the value of the '<em><b>Element</b></em>' containment reference. It is bidirectional and its opposite is ' - * {@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getParent <em>Parent</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Element</em>' containment reference isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Element</em>' containment reference. - * @see #setElement(SingleContainedElement) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefSingleContained_Element() - * @see org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getParent - * @model opposite="parent" containment="true" - * @generated - */ - SingleContainedElement getElement(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.RefSingleContained#getElement <em>Element</em>}' - * containment reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Element</em>' containment reference. - * @see #getElement() - * @generated - */ - void setElement(SingleContainedElement value); - -} // RefSingleContained +/*
+ * 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.model4;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Single Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.RefSingleContained#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefSingleContained()
+ * @model
+ * @generated
+ */
+public interface RefSingleContained extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Element</b></em>' containment reference. It is bidirectional and its opposite is '
+ * {@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getParent <em>Parent</em>}'. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Element</em>' containment reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Element</em>' containment reference.
+ * @see #setElement(SingleContainedElement)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefSingleContained_Element()
+ * @see org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getParent
+ * @model opposite="parent" containment="true"
+ * @generated
+ */
+ SingleContainedElement getElement();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.RefSingleContained#getElement <em>Element</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Element</em>' containment reference.
+ * @see #getElement()
+ * @generated
+ */
+ void setElement(SingleContainedElement value);
+
+} // RefSingleContained
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefSingleContainedNPL.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefSingleContainedNPL.java index a2c78e5538..5cf7c8956b 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefSingleContainedNPL.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefSingleContainedNPL.java @@ -1,58 +1,58 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Single Contained NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefSingleContainedNPL() - * @model - * @generated - */ -public interface RefSingleContainedNPL extends EObject -{ - /** - * Returns the value of the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Element</em>' containment reference isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Element</em>' containment reference. - * @see #setElement(ContainedElementNoOpposite) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefSingleContainedNPL_Element() - * @model containment="true" - * @generated - */ - ContainedElementNoOpposite getElement(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL#getElement <em>Element</em>}' - * containment reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Element</em>' containment reference. - * @see #getElement() - * @generated - */ - void setElement(ContainedElementNoOpposite value); - -} // RefSingleContainedNPL +/*
+ * 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.model4;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Single Contained NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefSingleContainedNPL()
+ * @model
+ * @generated
+ */
+public interface RefSingleContainedNPL extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Element</em>' containment reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Element</em>' containment reference.
+ * @see #setElement(ContainedElementNoOpposite)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefSingleContainedNPL_Element()
+ * @model containment="true"
+ * @generated
+ */
+ ContainedElementNoOpposite getElement();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL#getElement <em>Element</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Element</em>' containment reference.
+ * @see #getElement()
+ * @generated
+ */
+ void setElement(ContainedElementNoOpposite value);
+
+} // RefSingleContainedNPL
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefSingleNonContained.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefSingleNonContained.java index 37c31b0b89..99c1e01946 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefSingleNonContained.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefSingleNonContained.java @@ -1,61 +1,61 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Single Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContained#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefSingleNonContained() - * @model - * @generated - */ -public interface RefSingleNonContained extends EObject -{ - /** - * Returns the value of the '<em><b>Element</b></em>' reference. It is bidirectional and its opposite is ' - * {@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getParent <em>Parent</em>}'. <!-- begin-user-doc - * --> - * <p> - * If the meaning of the '<em>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>Element</em>' reference. - * @see #setElement(SingleNonContainedElement) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefSingleNonContained_Element() - * @see org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getParent - * @model opposite="parent" - * @generated - */ - SingleNonContainedElement getElement(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContained#getElement <em>Element</em>}' - * reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Element</em>' reference. - * @see #getElement() - * @generated - */ - void setElement(SingleNonContainedElement value); - -} // RefSingleNonContained +/*
+ * 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.model4;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Single Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContained#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefSingleNonContained()
+ * @model
+ * @generated
+ */
+public interface RefSingleNonContained extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Element</b></em>' reference. It is bidirectional and its opposite is '
+ * {@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getParent <em>Parent</em>}'. <!-- begin-user-doc
+ * -->
+ * <p>
+ * If the meaning of the '<em>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>Element</em>' reference.
+ * @see #setElement(SingleNonContainedElement)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefSingleNonContained_Element()
+ * @see org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getParent
+ * @model opposite="parent"
+ * @generated
+ */
+ SingleNonContainedElement getElement();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContained#getElement <em>Element</em>}'
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Element</em>' reference.
+ * @see #getElement()
+ * @generated
+ */
+ void setElement(SingleNonContainedElement value);
+
+} // RefSingleNonContained
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefSingleNonContainedNPL.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefSingleNonContainedNPL.java index 6ad3ca8f5d..10ac3035b7 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefSingleNonContainedNPL.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/RefSingleNonContainedNPL.java @@ -1,58 +1,58 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Single Non Contained NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefSingleNonContainedNPL() - * @model - * @generated - */ -public interface RefSingleNonContainedNPL extends EObject -{ - /** - * Returns the value of the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>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>Element</em>' reference. - * @see #setElement(ContainedElementNoOpposite) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefSingleNonContainedNPL_Element() - * @model - * @generated - */ - ContainedElementNoOpposite getElement(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL#getElement - * <em>Element</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Element</em>' reference. - * @see #getElement() - * @generated - */ - void setElement(ContainedElementNoOpposite value); - -} // RefSingleNonContainedNPL +/*
+ * 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.model4;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Ref Single Non Contained NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefSingleNonContainedNPL()
+ * @model
+ * @generated
+ */
+public interface RefSingleNonContainedNPL extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Element</b></em>' reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>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>Element</em>' reference.
+ * @see #setElement(ContainedElementNoOpposite)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getRefSingleNonContainedNPL_Element()
+ * @model
+ * @generated
+ */
+ ContainedElementNoOpposite getElement();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL#getElement
+ * <em>Element</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Element</em>' reference.
+ * @see #getElement()
+ * @generated
+ */
+ void setElement(ContainedElementNoOpposite value);
+
+} // RefSingleNonContainedNPL
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/SingleContainedElement.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/SingleContainedElement.java index 0cd19f4875..6096c88157 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/SingleContainedElement.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/SingleContainedElement.java @@ -1,87 +1,87 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Single Contained Element</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getParent <em>Parent</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getSingleContainedElement() - * @model - * @generated - */ -public interface SingleContainedElement extends EObject -{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getSingleContainedElement_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getName <em>Name</em>}' - * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Parent</b></em>' container reference. It is bidirectional and its opposite is ' - * {@link org.eclipse.emf.cdo.tests.model4.RefSingleContained#getElement <em>Element</em>}'. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Parent</em>' container reference isn't clear, there really should be more of a - * description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Parent</em>' container reference. - * @see #setParent(RefSingleContained) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getSingleContainedElement_Parent() - * @see org.eclipse.emf.cdo.tests.model4.RefSingleContained#getElement - * @model opposite="element" transient="false" - * @generated - */ - RefSingleContained getParent(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getParent <em>Parent</em>}' - * container reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Parent</em>' container reference. - * @see #getParent() - * @generated - */ - void setParent(RefSingleContained value); - -} // SingleContainedElement +/*
+ * 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.model4;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Single Contained Element</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getParent <em>Parent</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getSingleContainedElement()
+ * @model
+ * @generated
+ */
+public interface SingleContainedElement extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getSingleContainedElement_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getName <em>Name</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Parent</b></em>' container reference. It is bidirectional and its opposite is '
+ * {@link org.eclipse.emf.cdo.tests.model4.RefSingleContained#getElement <em>Element</em>}'. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Parent</em>' container reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Parent</em>' container reference.
+ * @see #setParent(RefSingleContained)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getSingleContainedElement_Parent()
+ * @see org.eclipse.emf.cdo.tests.model4.RefSingleContained#getElement
+ * @model opposite="element" transient="false"
+ * @generated
+ */
+ RefSingleContained getParent();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getParent <em>Parent</em>}'
+ * container reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Parent</em>' container reference.
+ * @see #getParent()
+ * @generated
+ */
+ void setParent(RefSingleContained value);
+
+} // SingleContainedElement
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/SingleNonContainedElement.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/SingleNonContainedElement.java index e1b79291e5..5740f312ca 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/SingleNonContainedElement.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/SingleNonContainedElement.java @@ -1,87 +1,87 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> A representation of the model object '<em><b>Single Non Contained Element</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getParent <em>Parent</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getSingleNonContainedElement() - * @model - * @generated - */ -public interface SingleNonContainedElement extends EObject -{ - /** - * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Name</em>' attribute. - * @see #setName(String) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getSingleNonContainedElement_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getName <em>Name</em>}' - * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Name</em>' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the '<em><b>Parent</b></em>' reference. It is bidirectional and its opposite is ' - * {@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContained#getElement <em>Element</em>}'. <!-- begin-user-doc - * --> - * <p> - * If the meaning of the '<em>Parent</em>' reference isn't clear, there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * - * @return the value of the '<em>Parent</em>' reference. - * @see #setParent(RefSingleNonContained) - * @see org.eclipse.emf.cdo.tests.model4.model4Package#getSingleNonContainedElement_Parent() - * @see org.eclipse.emf.cdo.tests.model4.RefSingleNonContained#getElement - * @model opposite="element" - * @generated - */ - RefSingleNonContained getParent(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getParent <em>Parent</em>} - * ' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Parent</em>' reference. - * @see #getParent() - * @generated - */ - void setParent(RefSingleNonContained value); - -} // SingleNonContainedElement +/*
+ * 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.model4;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Single Non Contained Element</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getParent <em>Parent</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getSingleNonContainedElement()
+ * @model
+ * @generated
+ */
+public interface SingleNonContainedElement extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getSingleNonContainedElement_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getName <em>Name</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Parent</b></em>' reference. It is bidirectional and its opposite is '
+ * {@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContained#getElement <em>Element</em>}'. <!-- begin-user-doc
+ * -->
+ * <p>
+ * If the meaning of the '<em>Parent</em>' reference isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Parent</em>' reference.
+ * @see #setParent(RefSingleNonContained)
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#getSingleNonContainedElement_Parent()
+ * @see org.eclipse.emf.cdo.tests.model4.RefSingleNonContained#getElement
+ * @model opposite="element"
+ * @generated
+ */
+ RefSingleNonContained getParent();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getParent <em>Parent</em>}
+ * ' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Parent</em>' reference.
+ * @see #getParent()
+ * @generated
+ */
+ void setParent(RefSingleNonContained value);
+
+} // SingleNonContainedElement
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ContainedElementNoOppositeImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ContainedElementNoOppositeImpl.java index 535127c341..1417c82843 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ContainedElementNoOppositeImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ContainedElementNoOppositeImpl.java @@ -1,86 +1,86 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Contained Element No Opposite</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ContainedElementNoOppositeImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ContainedElementNoOppositeImpl extends CDOObjectImpl implements ContainedElementNoOpposite -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ContainedElementNoOppositeImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getContainedElementNoOpposite(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return (String)eGet(model4Package.eINSTANCE.getContainedElementNoOpposite_Name(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - eSet(model4Package.eINSTANCE.getContainedElementNoOpposite_Name(), newName); - } - -} // ContainedElementNoOppositeImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Contained Element No Opposite</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ContainedElementNoOppositeImpl#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ContainedElementNoOppositeImpl extends CDOObjectImpl implements ContainedElementNoOpposite
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ContainedElementNoOppositeImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getContainedElementNoOpposite();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return (String)eGet(model4Package.eINSTANCE.getContainedElementNoOpposite_Name(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ eSet(model4Package.eINSTANCE.getContainedElementNoOpposite_Name(), newName);
+ }
+
+} // ContainedElementNoOppositeImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefMapNonContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefMapNonContainedImpl.java index cdd70ac8a2..556f3bdb0f 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefMapNonContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefMapNonContainedImpl.java @@ -1,79 +1,79 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.EMap; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Map Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefMapNonContainedImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class GenRefMapNonContainedImpl extends CDOObjectImpl implements GenRefMapNonContained -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected GenRefMapNonContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getGenRefMapNonContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EMap<String, EObject> getElements() - { - return (EMap<String, EObject>)eGet(model4Package.eINSTANCE.getGenRefMapNonContained_Elements(), true); - } - -} // GenRefMapNonContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.common.util.EMap;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Map Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefMapNonContainedImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GenRefMapNonContainedImpl extends CDOObjectImpl implements GenRefMapNonContained
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected GenRefMapNonContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getGenRefMapNonContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EMap<String, EObject> getElements()
+ {
+ return (EMap<String, EObject>)eGet(model4Package.eINSTANCE.getGenRefMapNonContained_Elements(), true);
+ }
+
+} // GenRefMapNonContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefMultiContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefMultiContainedImpl.java index 40761fe9a5..7ce8520e80 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefMultiContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefMultiContainedImpl.java @@ -1,79 +1,79 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Multi Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiContainedImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class GenRefMultiContainedImpl extends CDOObjectImpl implements GenRefMultiContained -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected GenRefMultiContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getGenRefMultiContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<EObject> getElements() - { - return (EList<EObject>)eGet(model4Package.eINSTANCE.getGenRefMultiContained_Elements(), true); - } - -} // GenRefMultiContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Multi Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiContainedImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GenRefMultiContainedImpl extends CDOObjectImpl implements GenRefMultiContained
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected GenRefMultiContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getGenRefMultiContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<EObject> getElements()
+ {
+ return (EList<EObject>)eGet(model4Package.eINSTANCE.getGenRefMultiContained_Elements(), true);
+ }
+
+} // GenRefMultiContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefMultiNUNonContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefMultiNUNonContainedImpl.java index cfb36f2a9c..a2ab473042 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefMultiNUNonContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefMultiNUNonContainedImpl.java @@ -1,79 +1,79 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Multi NU Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiNUNonContainedImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class GenRefMultiNUNonContainedImpl extends CDOObjectImpl implements GenRefMultiNUNonContained -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected GenRefMultiNUNonContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getGenRefMultiNUNonContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<EObject> getElements() - { - return (EList<EObject>)eGet(model4Package.eINSTANCE.getGenRefMultiNUNonContained_Elements(), true); - } - -} // GenRefMultiNUNonContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Multi NU Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiNUNonContainedImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GenRefMultiNUNonContainedImpl extends CDOObjectImpl implements GenRefMultiNUNonContained
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected GenRefMultiNUNonContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getGenRefMultiNUNonContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<EObject> getElements()
+ {
+ return (EList<EObject>)eGet(model4Package.eINSTANCE.getGenRefMultiNUNonContained_Elements(), true);
+ }
+
+} // GenRefMultiNUNonContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefMultiNonContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefMultiNonContainedImpl.java index f3e38413dc..2e58e793b9 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefMultiNonContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefMultiNonContainedImpl.java @@ -1,79 +1,79 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Multi Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiNonContainedImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class GenRefMultiNonContainedImpl extends CDOObjectImpl implements GenRefMultiNonContained -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected GenRefMultiNonContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getGenRefMultiNonContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<EObject> getElements() - { - return (EList<EObject>)eGet(model4Package.eINSTANCE.getGenRefMultiNonContained_Elements(), true); - } - -} // GenRefMultiNonContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Multi Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiNonContainedImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GenRefMultiNonContainedImpl extends CDOObjectImpl implements GenRefMultiNonContained
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected GenRefMultiNonContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getGenRefMultiNonContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<EObject> getElements()
+ {
+ return (EList<EObject>)eGet(model4Package.eINSTANCE.getGenRefMultiNonContained_Elements(), true);
+ }
+
+} // GenRefMultiNonContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefSingleContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefSingleContainedImpl.java index 97a13de68a..101049b7b5 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefSingleContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefSingleContainedImpl.java @@ -1,87 +1,87 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Single Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefSingleContainedImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class GenRefSingleContainedImpl extends CDOObjectImpl implements GenRefSingleContained -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected GenRefSingleContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getGenRefSingleContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EObject getElement() - { - return (EObject)eGet(model4Package.eINSTANCE.getGenRefSingleContained_Element(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(EObject newElement) - { - eSet(model4Package.eINSTANCE.getGenRefSingleContained_Element(), newElement); - } - -} // GenRefSingleContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Single Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefSingleContainedImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GenRefSingleContainedImpl extends CDOObjectImpl implements GenRefSingleContained
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected GenRefSingleContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getGenRefSingleContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EObject getElement()
+ {
+ return (EObject)eGet(model4Package.eINSTANCE.getGenRefSingleContained_Element(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(EObject newElement)
+ {
+ eSet(model4Package.eINSTANCE.getGenRefSingleContained_Element(), newElement);
+ }
+
+} // GenRefSingleContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefSingleNonContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefSingleNonContainedImpl.java index 3ab746e1bd..79de8b85f1 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefSingleNonContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/GenRefSingleNonContainedImpl.java @@ -1,87 +1,87 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Single Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefSingleNonContainedImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class GenRefSingleNonContainedImpl extends CDOObjectImpl implements GenRefSingleNonContained -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected GenRefSingleNonContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getGenRefSingleNonContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EObject getElement() - { - return (EObject)eGet(model4Package.eINSTANCE.getGenRefSingleNonContained_Element(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(EObject newElement) - { - eSet(model4Package.eINSTANCE.getGenRefSingleNonContained_Element(), newElement); - } - -} // GenRefSingleNonContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen Ref Single Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefSingleNonContainedImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GenRefSingleNonContainedImpl extends CDOObjectImpl implements GenRefSingleNonContained
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected GenRefSingleNonContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getGenRefSingleNonContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EObject getElement()
+ {
+ return (EObject)eGet(model4Package.eINSTANCE.getGenRefSingleNonContained_Element(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(EObject newElement)
+ {
+ eSet(model4Package.eINSTANCE.getGenRefSingleNonContained_Element(), newElement);
+ }
+
+} // GenRefSingleNonContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplContainedElementNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplContainedElementNPLImpl.java index 77111841b5..385c0ee464 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplContainedElementNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplContainedElementNPLImpl.java @@ -1,130 +1,130 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL; -import org.eclipse.emf.cdo.tests.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4interfaces.INamedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Contained Element NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplContainedElementNPLImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplContainedElementNPLImpl extends CDOObjectImpl implements ImplContainedElementNPL -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplContainedElementNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplContainedElementNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return (String)eGet(model4interfacesPackage.eINSTANCE.getINamedElement_Name(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - eSet(model4interfacesPackage.eINSTANCE.getINamedElement_Name(), newName); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) - { - if (baseClass == INamedElement.class) - { - switch (derivedFeatureID) - { - case model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME: - return model4interfacesPackage.INAMED_ELEMENT__NAME; - default: - return -1; - } - } - return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) - { - if (baseClass == INamedElement.class) - { - switch (baseFeatureID) - { - case model4interfacesPackage.INAMED_ELEMENT__NAME: - return model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME; - default: - return -1; - } - } - return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); - } - -} // ImplContainedElementNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4interfaces.INamedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Contained Element NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplContainedElementNPLImpl#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplContainedElementNPLImpl extends CDOObjectImpl implements ImplContainedElementNPL
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplContainedElementNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplContainedElementNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return (String)eGet(model4interfacesPackage.eINSTANCE.getINamedElement_Name(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ eSet(model4interfacesPackage.eINSTANCE.getINamedElement_Name(), newName);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass)
+ {
+ if (baseClass == INamedElement.class)
+ {
+ switch (derivedFeatureID)
+ {
+ case model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME:
+ return model4interfacesPackage.INAMED_ELEMENT__NAME;
+ default:
+ return -1;
+ }
+ }
+ return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass)
+ {
+ if (baseClass == INamedElement.class)
+ {
+ switch (baseFeatureID)
+ {
+ case model4interfacesPackage.INAMED_ELEMENT__NAME:
+ return model4Package.IMPL_CONTAINED_ELEMENT_NPL__NAME;
+ default:
+ return -1;
+ }
+ }
+ return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
+ }
+
+} // ImplContainedElementNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefContainedElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefContainedElementImpl.java index 2cf5d4a5c7..637b7802d5 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefContainedElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefContainedElementImpl.java @@ -1,109 +1,109 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement; -import org.eclipse.emf.cdo.tests.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer; -import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Contained Element</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainedElementImpl#getParent <em>Parent</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainedElementImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplMultiRefContainedElementImpl extends CDOObjectImpl implements ImplMultiRefContainedElement -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplMultiRefContainedElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplMultiRefContainedElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public IMultiRefContainer getParent() - { - return (IMultiRefContainer)eGet(model4interfacesPackage.eINSTANCE.getIMultiRefContainedElement_Parent(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(IMultiRefContainer newParent) - { - eSet(model4interfacesPackage.eINSTANCE.getIMultiRefContainedElement_Parent(), newParent); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return (String)eGet(model4Package.eINSTANCE.getImplMultiRefContainedElement_Name(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - eSet(model4Package.eINSTANCE.getImplMultiRefContainedElement_Name(), newName); - } - -} // ImplMultiRefContainedElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer;
+import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Contained Element</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainedElementImpl#getParent <em>Parent</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainedElementImpl#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplMultiRefContainedElementImpl extends CDOObjectImpl implements ImplMultiRefContainedElement
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplMultiRefContainedElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplMultiRefContainedElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public IMultiRefContainer getParent()
+ {
+ return (IMultiRefContainer)eGet(model4interfacesPackage.eINSTANCE.getIMultiRefContainedElement_Parent(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(IMultiRefContainer newParent)
+ {
+ eSet(model4interfacesPackage.eINSTANCE.getIMultiRefContainedElement_Parent(), newParent);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return (String)eGet(model4Package.eINSTANCE.getImplMultiRefContainedElement_Name(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ eSet(model4Package.eINSTANCE.getImplMultiRefContainedElement_Name(), newName);
+ }
+
+} // ImplMultiRefContainedElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefContainerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefContainerImpl.java index bc57ce2b69..36712f64d8 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefContainerImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefContainerImpl.java @@ -1,81 +1,81 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer; -import org.eclipse.emf.cdo.tests.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Container</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainerImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplMultiRefContainerImpl extends CDOObjectImpl implements ImplMultiRefContainer -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplMultiRefContainerImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplMultiRefContainer(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<IMultiRefContainedElement> getElements() - { - return (EList<IMultiRefContainedElement>)eGet(model4interfacesPackage.eINSTANCE.getIMultiRefContainer_Elements(), - true); - } - -} // ImplMultiRefContainerImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Container</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainerImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplMultiRefContainerImpl extends CDOObjectImpl implements ImplMultiRefContainer
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplMultiRefContainerImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplMultiRefContainer();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<IMultiRefContainedElement> getElements()
+ {
+ return (EList<IMultiRefContainedElement>)eGet(model4interfacesPackage.eINSTANCE.getIMultiRefContainer_Elements(),
+ true);
+ }
+
+} // ImplMultiRefContainerImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefContainerNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefContainerNPLImpl.java index f2c8417874..4b3e6a91b5 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefContainerNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefContainerNPLImpl.java @@ -1,81 +1,81 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink; -import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Container NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainerNPLImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplMultiRefContainerNPLImpl extends CDOObjectImpl implements ImplMultiRefContainerNPL -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplMultiRefContainerNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplMultiRefContainerNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<IContainedElementNoParentLink> getElements() - { - return (EList<IContainedElementNoParentLink>)eGet( - model4interfacesPackage.eINSTANCE.getIMultiRefContainerNPL_Elements(), true); - } - -} // ImplMultiRefContainerNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink;
+import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Container NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainerNPLImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplMultiRefContainerNPLImpl extends CDOObjectImpl implements ImplMultiRefContainerNPL
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplMultiRefContainerNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplMultiRefContainerNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<IContainedElementNoParentLink> getElements()
+ {
+ return (EList<IContainedElementNoParentLink>)eGet(
+ model4interfacesPackage.eINSTANCE.getIMultiRefContainerNPL_Elements(), true);
+ }
+
+} // ImplMultiRefContainerNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefNonContainedElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefNonContainedElementImpl.java index 2694281912..259391d0d9 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefNonContainedElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefNonContainedElementImpl.java @@ -1,109 +1,109 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer; -import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Non Contained Element</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainedElementImpl#getParent <em>Parent</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainedElementImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplMultiRefNonContainedElementImpl extends CDOObjectImpl implements ImplMultiRefNonContainedElement -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplMultiRefNonContainedElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplMultiRefNonContainedElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public IMultiRefNonContainer getParent() - { - return (IMultiRefNonContainer)eGet(model4interfacesPackage.eINSTANCE.getIMultiRefNonContainedElement_Parent(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(IMultiRefNonContainer newParent) - { - eSet(model4interfacesPackage.eINSTANCE.getIMultiRefNonContainedElement_Parent(), newParent); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return (String)eGet(model4Package.eINSTANCE.getImplMultiRefNonContainedElement_Name(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - eSet(model4Package.eINSTANCE.getImplMultiRefNonContainedElement_Name(), newName); - } - -} // ImplMultiRefNonContainedElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Non Contained Element</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainedElementImpl#getParent <em>Parent</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainedElementImpl#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplMultiRefNonContainedElementImpl extends CDOObjectImpl implements ImplMultiRefNonContainedElement
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplMultiRefNonContainedElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplMultiRefNonContainedElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public IMultiRefNonContainer getParent()
+ {
+ return (IMultiRefNonContainer)eGet(model4interfacesPackage.eINSTANCE.getIMultiRefNonContainedElement_Parent(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(IMultiRefNonContainer newParent)
+ {
+ eSet(model4interfacesPackage.eINSTANCE.getIMultiRefNonContainedElement_Parent(), newParent);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return (String)eGet(model4Package.eINSTANCE.getImplMultiRefNonContainedElement_Name(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ eSet(model4Package.eINSTANCE.getImplMultiRefNonContainedElement_Name(), newName);
+ }
+
+} // ImplMultiRefNonContainedElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefNonContainerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefNonContainerImpl.java index 3385ada0e2..fb03134ccc 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefNonContainerImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefNonContainerImpl.java @@ -1,81 +1,81 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer; -import org.eclipse.emf.cdo.tests.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Non Container</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainerImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplMultiRefNonContainerImpl extends CDOObjectImpl implements ImplMultiRefNonContainer -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplMultiRefNonContainerImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplMultiRefNonContainer(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<IMultiRefNonContainedElement> getElements() - { - return (EList<IMultiRefNonContainedElement>)eGet( - model4interfacesPackage.eINSTANCE.getIMultiRefNonContainer_Elements(), true); - } - -} // ImplMultiRefNonContainerImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Non Container</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainerImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplMultiRefNonContainerImpl extends CDOObjectImpl implements ImplMultiRefNonContainer
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplMultiRefNonContainerImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplMultiRefNonContainer();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<IMultiRefNonContainedElement> getElements()
+ {
+ return (EList<IMultiRefNonContainedElement>)eGet(
+ model4interfacesPackage.eINSTANCE.getIMultiRefNonContainer_Elements(), true);
+ }
+
+} // ImplMultiRefNonContainerImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefNonContainerNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefNonContainerNPLImpl.java index 4bf35825d2..fc61b75128 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefNonContainerNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplMultiRefNonContainerNPLImpl.java @@ -1,81 +1,81 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink; -import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Non Container NPL</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainerNPLImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplMultiRefNonContainerNPLImpl extends CDOObjectImpl implements ImplMultiRefNonContainerNPL -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplMultiRefNonContainerNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplMultiRefNonContainerNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<IContainedElementNoParentLink> getElements() - { - return (EList<IContainedElementNoParentLink>)eGet( - model4interfacesPackage.eINSTANCE.getIMultiRefNonContainerNPL_Elements(), true); - } - -} // ImplMultiRefNonContainerNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink;
+import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Multi Ref Non Container NPL</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainerNPLImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplMultiRefNonContainerNPLImpl extends CDOObjectImpl implements ImplMultiRefNonContainerNPL
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplMultiRefNonContainerNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplMultiRefNonContainerNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<IContainedElementNoParentLink> getElements()
+ {
+ return (EList<IContainedElementNoParentLink>)eGet(
+ model4interfacesPackage.eINSTANCE.getIMultiRefNonContainerNPL_Elements(), true);
+ }
+
+} // ImplMultiRefNonContainerNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefContainedElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefContainedElementImpl.java index cccf51123e..2672c91e60 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefContainedElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefContainedElementImpl.java @@ -1,109 +1,109 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement; -import org.eclipse.emf.cdo.tests.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer; -import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Contained Element</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainedElementImpl#getParent <em>Parent</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainedElementImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplSingleRefContainedElementImpl extends CDOObjectImpl implements ImplSingleRefContainedElement -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplSingleRefContainedElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplSingleRefContainedElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ISingleRefContainer getParent() - { - return (ISingleRefContainer)eGet(model4interfacesPackage.eINSTANCE.getISingleRefContainedElement_Parent(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(ISingleRefContainer newParent) - { - eSet(model4interfacesPackage.eINSTANCE.getISingleRefContainedElement_Parent(), newParent); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return (String)eGet(model4Package.eINSTANCE.getImplSingleRefContainedElement_Name(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - eSet(model4Package.eINSTANCE.getImplSingleRefContainedElement_Name(), newName); - } - -} // ImplSingleRefContainedElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer;
+import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Contained Element</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainedElementImpl#getParent <em>Parent</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainedElementImpl#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplSingleRefContainedElementImpl extends CDOObjectImpl implements ImplSingleRefContainedElement
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplSingleRefContainedElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplSingleRefContainedElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ISingleRefContainer getParent()
+ {
+ return (ISingleRefContainer)eGet(model4interfacesPackage.eINSTANCE.getISingleRefContainedElement_Parent(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(ISingleRefContainer newParent)
+ {
+ eSet(model4interfacesPackage.eINSTANCE.getISingleRefContainedElement_Parent(), newParent);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return (String)eGet(model4Package.eINSTANCE.getImplSingleRefContainedElement_Name(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ eSet(model4Package.eINSTANCE.getImplSingleRefContainedElement_Name(), newName);
+ }
+
+} // ImplSingleRefContainedElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefContainerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefContainerImpl.java index 754b7384bf..5192503840 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefContainerImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefContainerImpl.java @@ -1,88 +1,88 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer; -import org.eclipse.emf.cdo.tests.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Container</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainerImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplSingleRefContainerImpl extends CDOObjectImpl implements ImplSingleRefContainer -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplSingleRefContainerImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplSingleRefContainer(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ISingleRefContainedElement getElement() - { - return (ISingleRefContainedElement)eGet(model4interfacesPackage.eINSTANCE.getISingleRefContainer_Element(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(ISingleRefContainedElement newElement) - { - eSet(model4interfacesPackage.eINSTANCE.getISingleRefContainer_Element(), newElement); - } - -} // ImplSingleRefContainerImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Container</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainerImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplSingleRefContainerImpl extends CDOObjectImpl implements ImplSingleRefContainer
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplSingleRefContainerImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplSingleRefContainer();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ISingleRefContainedElement getElement()
+ {
+ return (ISingleRefContainedElement)eGet(model4interfacesPackage.eINSTANCE.getISingleRefContainer_Element(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(ISingleRefContainedElement newElement)
+ {
+ eSet(model4interfacesPackage.eINSTANCE.getISingleRefContainer_Element(), newElement);
+ }
+
+} // ImplSingleRefContainerImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefContainerNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefContainerNPLImpl.java index b97aac30b4..260d23119d 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefContainerNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefContainerNPLImpl.java @@ -1,89 +1,89 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink; -import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Container NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainerNPLImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplSingleRefContainerNPLImpl extends CDOObjectImpl implements ImplSingleRefContainerNPL -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplSingleRefContainerNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplSingleRefContainerNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public IContainedElementNoParentLink getElement() - { - return (IContainedElementNoParentLink)eGet(model4interfacesPackage.eINSTANCE.getISingleRefContainerNPL_Element(), - true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(IContainedElementNoParentLink newElement) - { - eSet(model4interfacesPackage.eINSTANCE.getISingleRefContainerNPL_Element(), newElement); - } - -} // ImplSingleRefContainerNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink;
+import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Container NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainerNPLImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplSingleRefContainerNPLImpl extends CDOObjectImpl implements ImplSingleRefContainerNPL
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplSingleRefContainerNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplSingleRefContainerNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public IContainedElementNoParentLink getElement()
+ {
+ return (IContainedElementNoParentLink)eGet(model4interfacesPackage.eINSTANCE.getISingleRefContainerNPL_Element(),
+ true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(IContainedElementNoParentLink newElement)
+ {
+ eSet(model4interfacesPackage.eINSTANCE.getISingleRefContainerNPL_Element(), newElement);
+ }
+
+} // ImplSingleRefContainerNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefNonContainedElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefNonContainedElementImpl.java index 4a6205ef31..4cf2bc82a6 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefNonContainedElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefNonContainedElementImpl.java @@ -1,110 +1,110 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer; -import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Non Contained Element</b></em> - * '. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainedElementImpl#getParent <em>Parent</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainedElementImpl#getName <em>Name</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplSingleRefNonContainedElementImpl extends CDOObjectImpl implements ImplSingleRefNonContainedElement -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplSingleRefNonContainedElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplSingleRefNonContainedElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ISingleRefNonContainer getParent() - { - return (ISingleRefNonContainer)eGet(model4interfacesPackage.eINSTANCE.getISingleRefNonContainedElement_Parent(), - true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(ISingleRefNonContainer newParent) - { - eSet(model4interfacesPackage.eINSTANCE.getISingleRefNonContainedElement_Parent(), newParent); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return (String)eGet(model4Package.eINSTANCE.getImplSingleRefNonContainedElement_Name(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - eSet(model4Package.eINSTANCE.getImplSingleRefNonContainedElement_Name(), newName); - } - -} // ImplSingleRefNonContainedElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Non Contained Element</b></em>
+ * '. <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainedElementImpl#getParent <em>Parent</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainedElementImpl#getName <em>Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplSingleRefNonContainedElementImpl extends CDOObjectImpl implements ImplSingleRefNonContainedElement
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplSingleRefNonContainedElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplSingleRefNonContainedElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ISingleRefNonContainer getParent()
+ {
+ return (ISingleRefNonContainer)eGet(model4interfacesPackage.eINSTANCE.getISingleRefNonContainedElement_Parent(),
+ true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(ISingleRefNonContainer newParent)
+ {
+ eSet(model4interfacesPackage.eINSTANCE.getISingleRefNonContainedElement_Parent(), newParent);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return (String)eGet(model4Package.eINSTANCE.getImplSingleRefNonContainedElement_Name(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ eSet(model4Package.eINSTANCE.getImplSingleRefNonContainedElement_Name(), newName);
+ }
+
+} // ImplSingleRefNonContainedElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefNonContainerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefNonContainerImpl.java index ef0b486107..5684211877 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefNonContainerImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefNonContainerImpl.java @@ -1,89 +1,89 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer; -import org.eclipse.emf.cdo.tests.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Non Container</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainerImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplSingleRefNonContainerImpl extends CDOObjectImpl implements ImplSingleRefNonContainer -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplSingleRefNonContainerImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplSingleRefNonContainer(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ISingleRefNonContainedElement getElement() - { - return (ISingleRefNonContainedElement)eGet(model4interfacesPackage.eINSTANCE.getISingleRefNonContainer_Element(), - true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(ISingleRefNonContainedElement newElement) - { - eSet(model4interfacesPackage.eINSTANCE.getISingleRefNonContainer_Element(), newElement); - } - -} // ImplSingleRefNonContainerImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Non Container</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainerImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplSingleRefNonContainerImpl extends CDOObjectImpl implements ImplSingleRefNonContainer
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplSingleRefNonContainerImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplSingleRefNonContainer();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ISingleRefNonContainedElement getElement()
+ {
+ return (ISingleRefNonContainedElement)eGet(model4interfacesPackage.eINSTANCE.getISingleRefNonContainer_Element(),
+ true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(ISingleRefNonContainedElement newElement)
+ {
+ eSet(model4interfacesPackage.eINSTANCE.getISingleRefNonContainer_Element(), newElement);
+ }
+
+} // ImplSingleRefNonContainerImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefNonContainerNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefNonContainerNPLImpl.java index e8bdd9694a..9a8c8d08ad 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefNonContainerNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/ImplSingleRefNonContainerNPLImpl.java @@ -1,89 +1,89 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink; -import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Non Container NPL</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainerNPLImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class ImplSingleRefNonContainerNPLImpl extends CDOObjectImpl implements ImplSingleRefNonContainerNPL -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected ImplSingleRefNonContainerNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getImplSingleRefNonContainerNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public IContainedElementNoParentLink getElement() - { - return (IContainedElementNoParentLink)eGet( - model4interfacesPackage.eINSTANCE.getISingleRefNonContainerNPL_Element(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(IContainedElementNoParentLink newElement) - { - eSet(model4interfacesPackage.eINSTANCE.getISingleRefNonContainerNPL_Element(), newElement); - } - -} // ImplSingleRefNonContainerNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink;
+import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Impl Single Ref Non Container NPL</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainerNPLImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ImplSingleRefNonContainerNPLImpl extends CDOObjectImpl implements ImplSingleRefNonContainerNPL
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ImplSingleRefNonContainerNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getImplSingleRefNonContainerNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public IContainedElementNoParentLink getElement()
+ {
+ return (IContainedElementNoParentLink)eGet(
+ model4interfacesPackage.eINSTANCE.getISingleRefNonContainerNPL_Element(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(IContainedElementNoParentLink newElement)
+ {
+ eSet(model4interfacesPackage.eINSTANCE.getISingleRefNonContainerNPL_Element(), newElement);
+ }
+
+} // ImplSingleRefNonContainerNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/MultiContainedElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/MultiContainedElementImpl.java index 558279b330..e4d6ac8c51 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/MultiContainedElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/MultiContainedElementImpl.java @@ -1,108 +1,108 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.MultiContainedElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiContained; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Multi Contained Element</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.MultiContainedElementImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.MultiContainedElementImpl#getParent <em>Parent</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MultiContainedElementImpl extends CDOObjectImpl implements MultiContainedElement -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected MultiContainedElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getMultiContainedElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return (String)eGet(model4Package.eINSTANCE.getMultiContainedElement_Name(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - eSet(model4Package.eINSTANCE.getMultiContainedElement_Name(), newName); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiContained getParent() - { - return (RefMultiContained)eGet(model4Package.eINSTANCE.getMultiContainedElement_Parent(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(RefMultiContained newParent) - { - eSet(model4Package.eINSTANCE.getMultiContainedElement_Parent(), newParent); - } - -} // MultiContainedElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.MultiContainedElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Multi Contained Element</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.MultiContainedElementImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.MultiContainedElementImpl#getParent <em>Parent</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class MultiContainedElementImpl extends CDOObjectImpl implements MultiContainedElement
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected MultiContainedElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getMultiContainedElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return (String)eGet(model4Package.eINSTANCE.getMultiContainedElement_Name(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ eSet(model4Package.eINSTANCE.getMultiContainedElement_Name(), newName);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiContained getParent()
+ {
+ return (RefMultiContained)eGet(model4Package.eINSTANCE.getMultiContainedElement_Parent(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(RefMultiContained newParent)
+ {
+ eSet(model4Package.eINSTANCE.getMultiContainedElement_Parent(), newParent);
+ }
+
+} // MultiContainedElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/MultiNonContainedElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/MultiNonContainedElementImpl.java index 7ecce2ea3f..adcca9ad86 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/MultiNonContainedElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/MultiNonContainedElementImpl.java @@ -1,108 +1,108 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Multi Non Contained Element</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.MultiNonContainedElementImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.MultiNonContainedElementImpl#getParent <em>Parent</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MultiNonContainedElementImpl extends CDOObjectImpl implements MultiNonContainedElement -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected MultiNonContainedElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getMultiNonContainedElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return (String)eGet(model4Package.eINSTANCE.getMultiNonContainedElement_Name(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - eSet(model4Package.eINSTANCE.getMultiNonContainedElement_Name(), newName); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiNonContained getParent() - { - return (RefMultiNonContained)eGet(model4Package.eINSTANCE.getMultiNonContainedElement_Parent(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(RefMultiNonContained newParent) - { - eSet(model4Package.eINSTANCE.getMultiNonContainedElement_Parent(), newParent); - } - -} // MultiNonContainedElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Multi Non Contained Element</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.MultiNonContainedElementImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.MultiNonContainedElementImpl#getParent <em>Parent</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class MultiNonContainedElementImpl extends CDOObjectImpl implements MultiNonContainedElement
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected MultiNonContainedElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getMultiNonContainedElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return (String)eGet(model4Package.eINSTANCE.getMultiNonContainedElement_Name(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ eSet(model4Package.eINSTANCE.getMultiNonContainedElement_Name(), newName);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiNonContained getParent()
+ {
+ return (RefMultiNonContained)eGet(model4Package.eINSTANCE.getMultiNonContainedElement_Parent(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(RefMultiNonContained newParent)
+ {
+ eSet(model4Package.eINSTANCE.getMultiNonContainedElement_Parent(), newParent);
+ }
+
+} // MultiNonContainedElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/MultiNonContainedUnsettableElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/MultiNonContainedUnsettableElementImpl.java index d4b621061e..eb514bd716 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/MultiNonContainedUnsettableElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/MultiNonContainedUnsettableElementImpl.java @@ -1,129 +1,129 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Multi Non Contained Unsettable Element</b></em> - * '. <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.MultiNonContainedUnsettableElementImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.MultiNonContainedUnsettableElementImpl#getParent <em>Parent</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class MultiNonContainedUnsettableElementImpl extends CDOObjectImpl implements MultiNonContainedUnsettableElement -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected MultiNonContainedUnsettableElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getMultiNonContainedUnsettableElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return (String)eGet(model4Package.eINSTANCE.getMultiNonContainedUnsettableElement_Name(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - eSet(model4Package.eINSTANCE.getMultiNonContainedUnsettableElement_Name(), newName); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiNonContainedUnsettable getParent() - { - return (RefMultiNonContainedUnsettable)eGet(model4Package.eINSTANCE.getMultiNonContainedUnsettableElement_Parent(), - true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(RefMultiNonContainedUnsettable newParent) - { - eSet(model4Package.eINSTANCE.getMultiNonContainedUnsettableElement_Parent(), newParent); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void unsetParent() - { - eUnset(model4Package.eINSTANCE.getMultiNonContainedUnsettableElement_Parent()); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public boolean isSetParent() - { - return eIsSet(model4Package.eINSTANCE.getMultiNonContainedUnsettableElement_Parent()); - } - -} // MultiNonContainedUnsettableElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Multi Non Contained Unsettable Element</b></em>
+ * '. <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.MultiNonContainedUnsettableElementImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.MultiNonContainedUnsettableElementImpl#getParent <em>Parent</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class MultiNonContainedUnsettableElementImpl extends CDOObjectImpl implements MultiNonContainedUnsettableElement
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected MultiNonContainedUnsettableElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getMultiNonContainedUnsettableElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return (String)eGet(model4Package.eINSTANCE.getMultiNonContainedUnsettableElement_Name(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ eSet(model4Package.eINSTANCE.getMultiNonContainedUnsettableElement_Name(), newName);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiNonContainedUnsettable getParent()
+ {
+ return (RefMultiNonContainedUnsettable)eGet(model4Package.eINSTANCE.getMultiNonContainedUnsettableElement_Parent(),
+ true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(RefMultiNonContainedUnsettable newParent)
+ {
+ eSet(model4Package.eINSTANCE.getMultiNonContainedUnsettableElement_Parent(), newParent);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetParent()
+ {
+ eUnset(model4Package.eINSTANCE.getMultiNonContainedUnsettableElement_Parent());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetParent()
+ {
+ return eIsSet(model4Package.eINSTANCE.getMultiNonContainedUnsettableElement_Parent());
+ }
+
+} // MultiNonContainedUnsettableElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiContainedImpl.java index ba1b7f9925..1d74a0ca4e 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiContainedImpl.java @@ -1,79 +1,79 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.MultiContainedElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiContained; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiContainedImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefMultiContainedImpl extends CDOObjectImpl implements RefMultiContained -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefMultiContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefMultiContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<MultiContainedElement> getElements() - { - return (EList<MultiContainedElement>)eGet(model4Package.eINSTANCE.getRefMultiContained_Elements(), true); - } - -} // RefMultiContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.MultiContainedElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiContainedImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefMultiContainedImpl extends CDOObjectImpl implements RefMultiContained
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefMultiContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefMultiContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<MultiContainedElement> getElements()
+ {
+ return (EList<MultiContainedElement>)eGet(model4Package.eINSTANCE.getRefMultiContained_Elements(), true);
+ }
+
+} // RefMultiContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiContainedNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiContainedNPLImpl.java index aff8d3060a..a5002f79d2 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiContainedNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiContainedNPLImpl.java @@ -1,79 +1,79 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; -import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Contained NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiContainedNPLImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefMultiContainedNPLImpl extends CDOObjectImpl implements RefMultiContainedNPL -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefMultiContainedNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefMultiContainedNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<ContainedElementNoOpposite> getElements() - { - return (EList<ContainedElementNoOpposite>)eGet(model4Package.eINSTANCE.getRefMultiContainedNPL_Elements(), true); - } - -} // RefMultiContainedNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Contained NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiContainedNPLImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefMultiContainedNPLImpl extends CDOObjectImpl implements RefMultiContainedNPL
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefMultiContainedNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefMultiContainedNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<ContainedElementNoOpposite> getElements()
+ {
+ return (EList<ContainedElementNoOpposite>)eGet(model4Package.eINSTANCE.getRefMultiContainedNPL_Elements(), true);
+ }
+
+} // RefMultiContainedNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiNonContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiNonContainedImpl.java index 9a36ed3b42..3922a77e72 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiNonContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiNonContainedImpl.java @@ -1,79 +1,79 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefMultiNonContainedImpl extends CDOObjectImpl implements RefMultiNonContained -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefMultiNonContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefMultiNonContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<MultiNonContainedElement> getElements() - { - return (EList<MultiNonContainedElement>)eGet(model4Package.eINSTANCE.getRefMultiNonContained_Elements(), true); - } - -} // RefMultiNonContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefMultiNonContainedImpl extends CDOObjectImpl implements RefMultiNonContained
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefMultiNonContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefMultiNonContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<MultiNonContainedElement> getElements()
+ {
+ return (EList<MultiNonContainedElement>)eGet(model4Package.eINSTANCE.getRefMultiNonContained_Elements(), true);
+ }
+
+} // RefMultiNonContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiNonContainedNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiNonContainedNPLImpl.java index 486b6bfa53..e7adac661d 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiNonContainedNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiNonContainedNPLImpl.java @@ -1,79 +1,79 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Non Contained NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedNPLImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefMultiNonContainedNPLImpl extends CDOObjectImpl implements RefMultiNonContainedNPL -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefMultiNonContainedNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefMultiNonContainedNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<ContainedElementNoOpposite> getElements() - { - return (EList<ContainedElementNoOpposite>)eGet(model4Package.eINSTANCE.getRefMultiNonContainedNPL_Elements(), true); - } - -} // RefMultiNonContainedNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Non Contained NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedNPLImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefMultiNonContainedNPLImpl extends CDOObjectImpl implements RefMultiNonContainedNPL
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefMultiNonContainedNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefMultiNonContainedNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<ContainedElementNoOpposite> getElements()
+ {
+ return (EList<ContainedElementNoOpposite>)eGet(model4Package.eINSTANCE.getRefMultiNonContainedNPL_Elements(), true);
+ }
+
+} // RefMultiNonContainedNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiNonContainedUnsettableImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiNonContainedUnsettableImpl.java index e33070f4d6..a34f018551 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiNonContainedUnsettableImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefMultiNonContainedUnsettableImpl.java @@ -1,100 +1,100 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Non Contained Unsettable</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedUnsettableImpl#getElements <em>Elements</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefMultiNonContainedUnsettableImpl extends CDOObjectImpl implements RefMultiNonContainedUnsettable -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefMultiNonContainedUnsettableImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefMultiNonContainedUnsettable(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EList<MultiNonContainedUnsettableElement> getElements() - { - return (EList<MultiNonContainedUnsettableElement>)eGet( - model4Package.eINSTANCE.getRefMultiNonContainedUnsettable_Elements(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void unsetElements() - { - eUnset(model4Package.eINSTANCE.getRefMultiNonContainedUnsettable_Elements()); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public boolean isSetElements() - { - return eIsSet(model4Package.eINSTANCE.getRefMultiNonContainedUnsettable_Elements()); - } - -} // RefMultiNonContainedUnsettableImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Multi Non Contained Unsettable</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedUnsettableImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefMultiNonContainedUnsettableImpl extends CDOObjectImpl implements RefMultiNonContainedUnsettable
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefMultiNonContainedUnsettableImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefMultiNonContainedUnsettable();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<MultiNonContainedUnsettableElement> getElements()
+ {
+ return (EList<MultiNonContainedUnsettableElement>)eGet(
+ model4Package.eINSTANCE.getRefMultiNonContainedUnsettable_Elements(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void unsetElements()
+ {
+ eUnset(model4Package.eINSTANCE.getRefMultiNonContainedUnsettable_Elements());
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public boolean isSetElements()
+ {
+ return eIsSet(model4Package.eINSTANCE.getRefMultiNonContainedUnsettable_Elements());
+ }
+
+} // RefMultiNonContainedUnsettableImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefSingleContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefSingleContainedImpl.java index 11994ae0bc..15037324d8 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefSingleContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefSingleContainedImpl.java @@ -1,87 +1,87 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.RefSingleContained; -import org.eclipse.emf.cdo.tests.model4.SingleContainedElement; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Single Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefSingleContainedImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefSingleContainedImpl extends CDOObjectImpl implements RefSingleContained -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefSingleContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefSingleContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public SingleContainedElement getElement() - { - return (SingleContainedElement)eGet(model4Package.eINSTANCE.getRefSingleContained_Element(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(SingleContainedElement newElement) - { - eSet(model4Package.eINSTANCE.getRefSingleContained_Element(), newElement); - } - -} // RefSingleContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.RefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.SingleContainedElement;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Single Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefSingleContainedImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefSingleContainedImpl extends CDOObjectImpl implements RefSingleContained
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefSingleContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefSingleContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public SingleContainedElement getElement()
+ {
+ return (SingleContainedElement)eGet(model4Package.eINSTANCE.getRefSingleContained_Element(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(SingleContainedElement newElement)
+ {
+ eSet(model4Package.eINSTANCE.getRefSingleContained_Element(), newElement);
+ }
+
+} // RefSingleContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefSingleContainedNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefSingleContainedNPLImpl.java index fe22aa0446..1407ac75cd 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefSingleContainedNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefSingleContainedNPLImpl.java @@ -1,87 +1,87 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; -import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Single Contained NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefSingleContainedNPLImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefSingleContainedNPLImpl extends CDOObjectImpl implements RefSingleContainedNPL -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefSingleContainedNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefSingleContainedNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ContainedElementNoOpposite getElement() - { - return (ContainedElementNoOpposite)eGet(model4Package.eINSTANCE.getRefSingleContainedNPL_Element(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(ContainedElementNoOpposite newElement) - { - eSet(model4Package.eINSTANCE.getRefSingleContainedNPL_Element(), newElement); - } - -} // RefSingleContainedNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Single Contained NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefSingleContainedNPLImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefSingleContainedNPLImpl extends CDOObjectImpl implements RefSingleContainedNPL
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefSingleContainedNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefSingleContainedNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ContainedElementNoOpposite getElement()
+ {
+ return (ContainedElementNoOpposite)eGet(model4Package.eINSTANCE.getRefSingleContainedNPL_Element(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(ContainedElementNoOpposite newElement)
+ {
+ eSet(model4Package.eINSTANCE.getRefSingleContainedNPL_Element(), newElement);
+ }
+
+} // RefSingleContainedNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefSingleNonContainedImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefSingleNonContainedImpl.java index f1d34d2230..9c9910c222 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefSingleNonContainedImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefSingleNonContainedImpl.java @@ -1,87 +1,87 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Single Non Contained</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefSingleNonContainedImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefSingleNonContainedImpl extends CDOObjectImpl implements RefSingleNonContained -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefSingleNonContainedImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefSingleNonContained(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public SingleNonContainedElement getElement() - { - return (SingleNonContainedElement)eGet(model4Package.eINSTANCE.getRefSingleNonContained_Element(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(SingleNonContainedElement newElement) - { - eSet(model4Package.eINSTANCE.getRefSingleNonContained_Element(), newElement); - } - -} // RefSingleNonContainedImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Single Non Contained</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefSingleNonContainedImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefSingleNonContainedImpl extends CDOObjectImpl implements RefSingleNonContained
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefSingleNonContainedImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefSingleNonContained();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public SingleNonContainedElement getElement()
+ {
+ return (SingleNonContainedElement)eGet(model4Package.eINSTANCE.getRefSingleNonContained_Element(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(SingleNonContainedElement newElement)
+ {
+ eSet(model4Package.eINSTANCE.getRefSingleNonContained_Element(), newElement);
+ }
+
+} // RefSingleNonContainedImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefSingleNonContainedNPLImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefSingleNonContainedNPLImpl.java index 276fcd4240..9c5a283eb0 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefSingleNonContainedNPLImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/RefSingleNonContainedNPLImpl.java @@ -1,87 +1,87 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Single Non Contained NPL</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefSingleNonContainedNPLImpl#getElement <em>Element</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class RefSingleNonContainedNPLImpl extends CDOObjectImpl implements RefSingleNonContainedNPL -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected RefSingleNonContainedNPLImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getRefSingleNonContainedNPL(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ContainedElementNoOpposite getElement() - { - return (ContainedElementNoOpposite)eGet(model4Package.eINSTANCE.getRefSingleNonContainedNPL_Element(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setElement(ContainedElementNoOpposite newElement) - { - eSet(model4Package.eINSTANCE.getRefSingleNonContainedNPL_Element(), newElement); - } - -} // RefSingleNonContainedNPLImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Ref Single Non Contained NPL</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.RefSingleNonContainedNPLImpl#getElement <em>Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RefSingleNonContainedNPLImpl extends CDOObjectImpl implements RefSingleNonContainedNPL
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RefSingleNonContainedNPLImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getRefSingleNonContainedNPL();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ContainedElementNoOpposite getElement()
+ {
+ return (ContainedElementNoOpposite)eGet(model4Package.eINSTANCE.getRefSingleNonContainedNPL_Element(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setElement(ContainedElementNoOpposite newElement)
+ {
+ eSet(model4Package.eINSTANCE.getRefSingleNonContainedNPL_Element(), newElement);
+ }
+
+} // RefSingleNonContainedNPLImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/SingleContainedElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/SingleContainedElementImpl.java index 15212a5e2a..6e986c4489 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/SingleContainedElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/SingleContainedElementImpl.java @@ -1,108 +1,108 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.RefSingleContained; -import org.eclipse.emf.cdo.tests.model4.SingleContainedElement; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Single Contained Element</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.SingleContainedElementImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.SingleContainedElementImpl#getParent <em>Parent</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class SingleContainedElementImpl extends CDOObjectImpl implements SingleContainedElement -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected SingleContainedElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getSingleContainedElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return (String)eGet(model4Package.eINSTANCE.getSingleContainedElement_Name(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - eSet(model4Package.eINSTANCE.getSingleContainedElement_Name(), newName); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefSingleContained getParent() - { - return (RefSingleContained)eGet(model4Package.eINSTANCE.getSingleContainedElement_Parent(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(RefSingleContained newParent) - { - eSet(model4Package.eINSTANCE.getSingleContainedElement_Parent(), newParent); - } - -} // SingleContainedElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.RefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.SingleContainedElement;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Single Contained Element</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.SingleContainedElementImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.SingleContainedElementImpl#getParent <em>Parent</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class SingleContainedElementImpl extends CDOObjectImpl implements SingleContainedElement
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected SingleContainedElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getSingleContainedElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return (String)eGet(model4Package.eINSTANCE.getSingleContainedElement_Name(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ eSet(model4Package.eINSTANCE.getSingleContainedElement_Name(), newName);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefSingleContained getParent()
+ {
+ return (RefSingleContained)eGet(model4Package.eINSTANCE.getSingleContainedElement_Parent(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(RefSingleContained newParent)
+ {
+ eSet(model4Package.eINSTANCE.getSingleContainedElement_Parent(), newParent);
+ }
+
+} // SingleContainedElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/SingleNonContainedElementImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/SingleNonContainedElementImpl.java index b481a9f5dc..c993d81ff5 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/SingleNonContainedElementImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/SingleNonContainedElementImpl.java @@ -1,108 +1,108 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -import org.eclipse.emf.ecore.EClass; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Single Non Contained Element</b></em>'. <!-- - * end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.SingleNonContainedElementImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.SingleNonContainedElementImpl#getParent <em>Parent</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class SingleNonContainedElementImpl extends CDOObjectImpl implements SingleNonContainedElement -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected SingleNonContainedElementImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getSingleNonContainedElement(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getName() - { - return (String)eGet(model4Package.eINSTANCE.getSingleNonContainedElement_Name(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setName(String newName) - { - eSet(model4Package.eINSTANCE.getSingleNonContainedElement_Name(), newName); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefSingleNonContained getParent() - { - return (RefSingleNonContained)eGet(model4Package.eINSTANCE.getSingleNonContainedElement_Parent(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setParent(RefSingleNonContained newParent) - { - eSet(model4Package.eINSTANCE.getSingleNonContainedElement_Parent(), newParent); - } - -} // SingleNonContainedElementImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Single Non Contained Element</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.SingleNonContainedElementImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.SingleNonContainedElementImpl#getParent <em>Parent</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class SingleNonContainedElementImpl extends CDOObjectImpl implements SingleNonContainedElement
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected SingleNonContainedElementImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getSingleNonContainedElement();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return (String)eGet(model4Package.eINSTANCE.getSingleNonContainedElement_Name(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ eSet(model4Package.eINSTANCE.getSingleNonContainedElement_Name(), newName);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefSingleNonContained getParent()
+ {
+ return (RefSingleNonContained)eGet(model4Package.eINSTANCE.getSingleNonContainedElement_Parent(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setParent(RefSingleNonContained newParent)
+ {
+ eSet(model4Package.eINSTANCE.getSingleNonContainedElement_Parent(), newParent);
+ }
+
+} // SingleNonContainedElementImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/StringToEObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/StringToEObjectImpl.java index 50a627c724..3a4364ce74 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/StringToEObjectImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/StringToEObjectImpl.java @@ -1,195 +1,195 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.internal.cdo.CDOObjectImpl; - -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; - -/** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>String To EObject</b></em>'. <!-- end-user-doc - * --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.StringToEObjectImpl#getTypedKey <em>Key</em>}</li> - * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.StringToEObjectImpl#getTypedValue <em>Value</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class StringToEObjectImpl extends CDOObjectImpl implements BasicEMap.Entry<String, EObject> -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected StringToEObjectImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return model4Package.eINSTANCE.getStringToEObject(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected int eStaticFeatureCount() - { - return 0; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getTypedKey() - { - return (String)eGet(model4Package.eINSTANCE.getStringToEObject_Key(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setTypedKey(String newKey) - { - eSet(model4Package.eINSTANCE.getStringToEObject_Key(), newKey); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EObject getTypedValue() - { - return (EObject)eGet(model4Package.eINSTANCE.getStringToEObject_Value(), true); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setTypedValue(EObject newValue) - { - eSet(model4Package.eINSTANCE.getStringToEObject_Value(), newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected int hash = -1; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public int getHash() - { - if (hash == -1) - { - Object theKey = getKey(); - hash = (theKey == null ? 0 : theKey.hashCode()); - } - return hash; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setHash(int hash) - { - this.hash = hash; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public String getKey() - { - return getTypedKey(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void setKey(String key) - { - setTypedKey(key); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EObject getValue() - { - return getTypedValue(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EObject setValue(EObject value) - { - EObject oldValue = getValue(); - setTypedValue(value); - return oldValue; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @SuppressWarnings("unchecked") - public EMap<String, EObject> getEMap() - { - EObject container = eContainer(); - return container == null ? null : (EMap<String, EObject>)container.eGet(eContainmentFeature()); - } - -} // StringToEObjectImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>String To EObject</b></em>'. <!-- end-user-doc
+ * -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.StringToEObjectImpl#getTypedKey <em>Key</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model4.impl.StringToEObjectImpl#getTypedValue <em>Value</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class StringToEObjectImpl extends CDOObjectImpl implements BasicEMap.Entry<String, EObject>
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected StringToEObjectImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return model4Package.eINSTANCE.getStringToEObject();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getTypedKey()
+ {
+ return (String)eGet(model4Package.eINSTANCE.getStringToEObject_Key(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setTypedKey(String newKey)
+ {
+ eSet(model4Package.eINSTANCE.getStringToEObject_Key(), newKey);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EObject getTypedValue()
+ {
+ return (EObject)eGet(model4Package.eINSTANCE.getStringToEObject_Value(), true);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setTypedValue(EObject newValue)
+ {
+ eSet(model4Package.eINSTANCE.getStringToEObject_Value(), newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected int hash = -1;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public int getHash()
+ {
+ if (hash == -1)
+ {
+ Object theKey = getKey();
+ hash = (theKey == null ? 0 : theKey.hashCode());
+ }
+ return hash;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setHash(int hash)
+ {
+ this.hash = hash;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getKey()
+ {
+ return getTypedKey();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setKey(String key)
+ {
+ setTypedKey(key);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EObject getValue()
+ {
+ return getTypedValue();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EObject setValue(EObject value)
+ {
+ EObject oldValue = getValue();
+ setTypedValue(value);
+ return oldValue;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EMap<String, EObject> getEMap()
+ {
+ EObject container = eContainer();
+ return container == null ? null : (EMap<String, EObject>)container.eGet(eContainmentFeature());
+ }
+
+} // StringToEObjectImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/model4FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/model4FactoryImpl.java index 5abe0e3075..d1a52e9b61 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/model4FactoryImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/model4FactoryImpl.java @@ -1,590 +1,590 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; -import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained; -import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4.MultiContainedElement; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiContained; -import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable; -import org.eclipse.emf.cdo.tests.model4.RefSingleContained; -import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL; -import org.eclipse.emf.cdo.tests.model4.SingleContainedElement; -import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.model4Factory; -import org.eclipse.emf.cdo.tests.model4.model4Package; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -import java.util.Map; - -/** - * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc --> - * - * @generated - */ -public class model4FactoryImpl extends EFactoryImpl implements model4Factory -{ - /** - * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public static model4Factory init() - { - try - { - model4Factory themodel4Factory = (model4Factory)EPackage.Registry.INSTANCE - .getEFactory("http://www.eclipse.org/emf/CDO/tests/model4/1.0.0"); - if (themodel4Factory != null) - { - return themodel4Factory; - } - } - catch (Exception exception) - { - EcorePlugin.INSTANCE.log(exception); - } - return new model4FactoryImpl(); - } - - /** - * Creates an instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public model4FactoryImpl() - { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public EObject create(EClass eClass) - { - switch (eClass.getClassifierID()) - { - case model4Package.REF_SINGLE_CONTAINED: - return createRefSingleContained(); - case model4Package.SINGLE_CONTAINED_ELEMENT: - return createSingleContainedElement(); - case model4Package.REF_SINGLE_NON_CONTAINED: - return createRefSingleNonContained(); - case model4Package.SINGLE_NON_CONTAINED_ELEMENT: - return createSingleNonContainedElement(); - case model4Package.REF_MULTI_CONTAINED: - return createRefMultiContained(); - case model4Package.MULTI_CONTAINED_ELEMENT: - return createMultiContainedElement(); - case model4Package.REF_MULTI_NON_CONTAINED: - return createRefMultiNonContained(); - case model4Package.MULTI_NON_CONTAINED_ELEMENT: - return createMultiNonContainedElement(); - case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE: - return createRefMultiNonContainedUnsettable(); - case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT: - return createMultiNonContainedUnsettableElement(); - case model4Package.REF_SINGLE_CONTAINED_NPL: - return createRefSingleContainedNPL(); - case model4Package.REF_SINGLE_NON_CONTAINED_NPL: - return createRefSingleNonContainedNPL(); - case model4Package.REF_MULTI_CONTAINED_NPL: - return createRefMultiContainedNPL(); - case model4Package.REF_MULTI_NON_CONTAINED_NPL: - return createRefMultiNonContainedNPL(); - case model4Package.CONTAINED_ELEMENT_NO_OPPOSITE: - return createContainedElementNoOpposite(); - case model4Package.GEN_REF_SINGLE_CONTAINED: - return createGenRefSingleContained(); - case model4Package.GEN_REF_SINGLE_NON_CONTAINED: - return createGenRefSingleNonContained(); - case model4Package.GEN_REF_MULTI_CONTAINED: - return createGenRefMultiContained(); - case model4Package.GEN_REF_MULTI_NON_CONTAINED: - return createGenRefMultiNonContained(); - case model4Package.IMPL_SINGLE_REF_CONTAINER: - return createImplSingleRefContainer(); - case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT: - return createImplSingleRefContainedElement(); - case model4Package.IMPL_SINGLE_REF_NON_CONTAINER: - return createImplSingleRefNonContainer(); - case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT: - return createImplSingleRefNonContainedElement(); - case model4Package.IMPL_MULTI_REF_NON_CONTAINER: - return createImplMultiRefNonContainer(); - case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT: - return createImplMultiRefNonContainedElement(); - case model4Package.IMPL_MULTI_REF_CONTAINER: - return createImplMultiRefContainer(); - case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT: - return createImplMultiRefContainedElement(); - case model4Package.IMPL_SINGLE_REF_CONTAINER_NPL: - return createImplSingleRefContainerNPL(); - case model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL: - return createImplSingleRefNonContainerNPL(); - case model4Package.IMPL_MULTI_REF_CONTAINER_NPL: - return createImplMultiRefContainerNPL(); - case model4Package.IMPL_MULTI_REF_NON_CONTAINER_NPL: - return createImplMultiRefNonContainerNPL(); - case model4Package.IMPL_CONTAINED_ELEMENT_NPL: - return createImplContainedElementNPL(); - case model4Package.GEN_REF_MULTI_NU_NON_CONTAINED: - return createGenRefMultiNUNonContained(); - case model4Package.GEN_REF_MAP_NON_CONTAINED: - return createGenRefMapNonContained(); - case model4Package.STRING_TO_EOBJECT: - return (EObject)createStringToEObject(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefSingleContained createRefSingleContained() - { - RefSingleContainedImpl refSingleContained = new RefSingleContainedImpl(); - return refSingleContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public SingleContainedElement createSingleContainedElement() - { - SingleContainedElementImpl singleContainedElement = new SingleContainedElementImpl(); - return singleContainedElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefSingleNonContained createRefSingleNonContained() - { - RefSingleNonContainedImpl refSingleNonContained = new RefSingleNonContainedImpl(); - return refSingleNonContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public SingleNonContainedElement createSingleNonContainedElement() - { - SingleNonContainedElementImpl singleNonContainedElement = new SingleNonContainedElementImpl(); - return singleNonContainedElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiContained createRefMultiContained() - { - RefMultiContainedImpl refMultiContained = new RefMultiContainedImpl(); - return refMultiContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public MultiContainedElement createMultiContainedElement() - { - MultiContainedElementImpl multiContainedElement = new MultiContainedElementImpl(); - return multiContainedElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiNonContained createRefMultiNonContained() - { - RefMultiNonContainedImpl refMultiNonContained = new RefMultiNonContainedImpl(); - return refMultiNonContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public MultiNonContainedElement createMultiNonContainedElement() - { - MultiNonContainedElementImpl multiNonContainedElement = new MultiNonContainedElementImpl(); - return multiNonContainedElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiNonContainedUnsettable createRefMultiNonContainedUnsettable() - { - RefMultiNonContainedUnsettableImpl refMultiNonContainedUnsettable = new RefMultiNonContainedUnsettableImpl(); - return refMultiNonContainedUnsettable; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public MultiNonContainedUnsettableElement createMultiNonContainedUnsettableElement() - { - MultiNonContainedUnsettableElementImpl multiNonContainedUnsettableElement = new MultiNonContainedUnsettableElementImpl(); - return multiNonContainedUnsettableElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefSingleContainedNPL createRefSingleContainedNPL() - { - RefSingleContainedNPLImpl refSingleContainedNPL = new RefSingleContainedNPLImpl(); - return refSingleContainedNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefSingleNonContainedNPL createRefSingleNonContainedNPL() - { - RefSingleNonContainedNPLImpl refSingleNonContainedNPL = new RefSingleNonContainedNPLImpl(); - return refSingleNonContainedNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiContainedNPL createRefMultiContainedNPL() - { - RefMultiContainedNPLImpl refMultiContainedNPL = new RefMultiContainedNPLImpl(); - return refMultiContainedNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public RefMultiNonContainedNPL createRefMultiNonContainedNPL() - { - RefMultiNonContainedNPLImpl refMultiNonContainedNPL = new RefMultiNonContainedNPLImpl(); - return refMultiNonContainedNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ContainedElementNoOpposite createContainedElementNoOpposite() - { - ContainedElementNoOppositeImpl containedElementNoOpposite = new ContainedElementNoOppositeImpl(); - return containedElementNoOpposite; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public GenRefSingleContained createGenRefSingleContained() - { - GenRefSingleContainedImpl genRefSingleContained = new GenRefSingleContainedImpl(); - return genRefSingleContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public GenRefSingleNonContained createGenRefSingleNonContained() - { - GenRefSingleNonContainedImpl genRefSingleNonContained = new GenRefSingleNonContainedImpl(); - return genRefSingleNonContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public GenRefMultiContained createGenRefMultiContained() - { - GenRefMultiContainedImpl genRefMultiContained = new GenRefMultiContainedImpl(); - return genRefMultiContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public GenRefMultiNonContained createGenRefMultiNonContained() - { - GenRefMultiNonContainedImpl genRefMultiNonContained = new GenRefMultiNonContainedImpl(); - return genRefMultiNonContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplSingleRefContainer createImplSingleRefContainer() - { - ImplSingleRefContainerImpl implSingleRefContainer = new ImplSingleRefContainerImpl(); - return implSingleRefContainer; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplSingleRefContainedElement createImplSingleRefContainedElement() - { - ImplSingleRefContainedElementImpl implSingleRefContainedElement = new ImplSingleRefContainedElementImpl(); - return implSingleRefContainedElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplSingleRefNonContainer createImplSingleRefNonContainer() - { - ImplSingleRefNonContainerImpl implSingleRefNonContainer = new ImplSingleRefNonContainerImpl(); - return implSingleRefNonContainer; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplSingleRefNonContainedElement createImplSingleRefNonContainedElement() - { - ImplSingleRefNonContainedElementImpl implSingleRefNonContainedElement = new ImplSingleRefNonContainedElementImpl(); - return implSingleRefNonContainedElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplMultiRefNonContainer createImplMultiRefNonContainer() - { - ImplMultiRefNonContainerImpl implMultiRefNonContainer = new ImplMultiRefNonContainerImpl(); - return implMultiRefNonContainer; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplMultiRefNonContainedElement createImplMultiRefNonContainedElement() - { - ImplMultiRefNonContainedElementImpl implMultiRefNonContainedElement = new ImplMultiRefNonContainedElementImpl(); - return implMultiRefNonContainedElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplMultiRefContainer createImplMultiRefContainer() - { - ImplMultiRefContainerImpl implMultiRefContainer = new ImplMultiRefContainerImpl(); - return implMultiRefContainer; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplMultiRefContainedElement createImplMultiRefContainedElement() - { - ImplMultiRefContainedElementImpl implMultiRefContainedElement = new ImplMultiRefContainedElementImpl(); - return implMultiRefContainedElement; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplSingleRefContainerNPL createImplSingleRefContainerNPL() - { - ImplSingleRefContainerNPLImpl implSingleRefContainerNPL = new ImplSingleRefContainerNPLImpl(); - return implSingleRefContainerNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplSingleRefNonContainerNPL createImplSingleRefNonContainerNPL() - { - ImplSingleRefNonContainerNPLImpl implSingleRefNonContainerNPL = new ImplSingleRefNonContainerNPLImpl(); - return implSingleRefNonContainerNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplMultiRefContainerNPL createImplMultiRefContainerNPL() - { - ImplMultiRefContainerNPLImpl implMultiRefContainerNPL = new ImplMultiRefContainerNPLImpl(); - return implMultiRefContainerNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplMultiRefNonContainerNPL createImplMultiRefNonContainerNPL() - { - ImplMultiRefNonContainerNPLImpl implMultiRefNonContainerNPL = new ImplMultiRefNonContainerNPLImpl(); - return implMultiRefNonContainerNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public ImplContainedElementNPL createImplContainedElementNPL() - { - ImplContainedElementNPLImpl implContainedElementNPL = new ImplContainedElementNPLImpl(); - return implContainedElementNPL; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public GenRefMultiNUNonContained createGenRefMultiNUNonContained() - { - GenRefMultiNUNonContainedImpl genRefMultiNUNonContained = new GenRefMultiNUNonContainedImpl(); - return genRefMultiNUNonContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public GenRefMapNonContained createGenRefMapNonContained() - { - GenRefMapNonContainedImpl genRefMapNonContained = new GenRefMapNonContainedImpl(); - return genRefMapNonContained; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public Map.Entry<String, EObject> createStringToEObject() - { - StringToEObjectImpl stringToEObject = new StringToEObjectImpl(); - return stringToEObject; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public model4Package getmodel4Package() - { - return (model4Package)getEPackage(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @deprecated - * @generated - */ - @Deprecated - public static model4Package getPackage() - { - return model4Package.eINSTANCE; - } - -} // model4FactoryImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.MultiContainedElement;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.SingleContainedElement;
+import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.model4Factory;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+import java.util.Map;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class model4FactoryImpl extends EFactoryImpl implements model4Factory
+{
+ /**
+ * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static model4Factory init()
+ {
+ try
+ {
+ model4Factory themodel4Factory = (model4Factory)EPackage.Registry.INSTANCE
+ .getEFactory("http://www.eclipse.org/emf/CDO/tests/model4/1.0.0");
+ if (themodel4Factory != null)
+ {
+ return themodel4Factory;
+ }
+ }
+ catch (Exception exception)
+ {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new model4FactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public model4FactoryImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass)
+ {
+ switch (eClass.getClassifierID())
+ {
+ case model4Package.REF_SINGLE_CONTAINED:
+ return createRefSingleContained();
+ case model4Package.SINGLE_CONTAINED_ELEMENT:
+ return createSingleContainedElement();
+ case model4Package.REF_SINGLE_NON_CONTAINED:
+ return createRefSingleNonContained();
+ case model4Package.SINGLE_NON_CONTAINED_ELEMENT:
+ return createSingleNonContainedElement();
+ case model4Package.REF_MULTI_CONTAINED:
+ return createRefMultiContained();
+ case model4Package.MULTI_CONTAINED_ELEMENT:
+ return createMultiContainedElement();
+ case model4Package.REF_MULTI_NON_CONTAINED:
+ return createRefMultiNonContained();
+ case model4Package.MULTI_NON_CONTAINED_ELEMENT:
+ return createMultiNonContainedElement();
+ case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE:
+ return createRefMultiNonContainedUnsettable();
+ case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT:
+ return createMultiNonContainedUnsettableElement();
+ case model4Package.REF_SINGLE_CONTAINED_NPL:
+ return createRefSingleContainedNPL();
+ case model4Package.REF_SINGLE_NON_CONTAINED_NPL:
+ return createRefSingleNonContainedNPL();
+ case model4Package.REF_MULTI_CONTAINED_NPL:
+ return createRefMultiContainedNPL();
+ case model4Package.REF_MULTI_NON_CONTAINED_NPL:
+ return createRefMultiNonContainedNPL();
+ case model4Package.CONTAINED_ELEMENT_NO_OPPOSITE:
+ return createContainedElementNoOpposite();
+ case model4Package.GEN_REF_SINGLE_CONTAINED:
+ return createGenRefSingleContained();
+ case model4Package.GEN_REF_SINGLE_NON_CONTAINED:
+ return createGenRefSingleNonContained();
+ case model4Package.GEN_REF_MULTI_CONTAINED:
+ return createGenRefMultiContained();
+ case model4Package.GEN_REF_MULTI_NON_CONTAINED:
+ return createGenRefMultiNonContained();
+ case model4Package.IMPL_SINGLE_REF_CONTAINER:
+ return createImplSingleRefContainer();
+ case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT:
+ return createImplSingleRefContainedElement();
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINER:
+ return createImplSingleRefNonContainer();
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT:
+ return createImplSingleRefNonContainedElement();
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINER:
+ return createImplMultiRefNonContainer();
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT:
+ return createImplMultiRefNonContainedElement();
+ case model4Package.IMPL_MULTI_REF_CONTAINER:
+ return createImplMultiRefContainer();
+ case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT:
+ return createImplMultiRefContainedElement();
+ case model4Package.IMPL_SINGLE_REF_CONTAINER_NPL:
+ return createImplSingleRefContainerNPL();
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL:
+ return createImplSingleRefNonContainerNPL();
+ case model4Package.IMPL_MULTI_REF_CONTAINER_NPL:
+ return createImplMultiRefContainerNPL();
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINER_NPL:
+ return createImplMultiRefNonContainerNPL();
+ case model4Package.IMPL_CONTAINED_ELEMENT_NPL:
+ return createImplContainedElementNPL();
+ case model4Package.GEN_REF_MULTI_NU_NON_CONTAINED:
+ return createGenRefMultiNUNonContained();
+ case model4Package.GEN_REF_MAP_NON_CONTAINED:
+ return createGenRefMapNonContained();
+ case model4Package.STRING_TO_EOBJECT:
+ return (EObject)createStringToEObject();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefSingleContained createRefSingleContained()
+ {
+ RefSingleContainedImpl refSingleContained = new RefSingleContainedImpl();
+ return refSingleContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public SingleContainedElement createSingleContainedElement()
+ {
+ SingleContainedElementImpl singleContainedElement = new SingleContainedElementImpl();
+ return singleContainedElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefSingleNonContained createRefSingleNonContained()
+ {
+ RefSingleNonContainedImpl refSingleNonContained = new RefSingleNonContainedImpl();
+ return refSingleNonContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public SingleNonContainedElement createSingleNonContainedElement()
+ {
+ SingleNonContainedElementImpl singleNonContainedElement = new SingleNonContainedElementImpl();
+ return singleNonContainedElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiContained createRefMultiContained()
+ {
+ RefMultiContainedImpl refMultiContained = new RefMultiContainedImpl();
+ return refMultiContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public MultiContainedElement createMultiContainedElement()
+ {
+ MultiContainedElementImpl multiContainedElement = new MultiContainedElementImpl();
+ return multiContainedElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiNonContained createRefMultiNonContained()
+ {
+ RefMultiNonContainedImpl refMultiNonContained = new RefMultiNonContainedImpl();
+ return refMultiNonContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public MultiNonContainedElement createMultiNonContainedElement()
+ {
+ MultiNonContainedElementImpl multiNonContainedElement = new MultiNonContainedElementImpl();
+ return multiNonContainedElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiNonContainedUnsettable createRefMultiNonContainedUnsettable()
+ {
+ RefMultiNonContainedUnsettableImpl refMultiNonContainedUnsettable = new RefMultiNonContainedUnsettableImpl();
+ return refMultiNonContainedUnsettable;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public MultiNonContainedUnsettableElement createMultiNonContainedUnsettableElement()
+ {
+ MultiNonContainedUnsettableElementImpl multiNonContainedUnsettableElement = new MultiNonContainedUnsettableElementImpl();
+ return multiNonContainedUnsettableElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefSingleContainedNPL createRefSingleContainedNPL()
+ {
+ RefSingleContainedNPLImpl refSingleContainedNPL = new RefSingleContainedNPLImpl();
+ return refSingleContainedNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefSingleNonContainedNPL createRefSingleNonContainedNPL()
+ {
+ RefSingleNonContainedNPLImpl refSingleNonContainedNPL = new RefSingleNonContainedNPLImpl();
+ return refSingleNonContainedNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiContainedNPL createRefMultiContainedNPL()
+ {
+ RefMultiContainedNPLImpl refMultiContainedNPL = new RefMultiContainedNPLImpl();
+ return refMultiContainedNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public RefMultiNonContainedNPL createRefMultiNonContainedNPL()
+ {
+ RefMultiNonContainedNPLImpl refMultiNonContainedNPL = new RefMultiNonContainedNPLImpl();
+ return refMultiNonContainedNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ContainedElementNoOpposite createContainedElementNoOpposite()
+ {
+ ContainedElementNoOppositeImpl containedElementNoOpposite = new ContainedElementNoOppositeImpl();
+ return containedElementNoOpposite;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public GenRefSingleContained createGenRefSingleContained()
+ {
+ GenRefSingleContainedImpl genRefSingleContained = new GenRefSingleContainedImpl();
+ return genRefSingleContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public GenRefSingleNonContained createGenRefSingleNonContained()
+ {
+ GenRefSingleNonContainedImpl genRefSingleNonContained = new GenRefSingleNonContainedImpl();
+ return genRefSingleNonContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public GenRefMultiContained createGenRefMultiContained()
+ {
+ GenRefMultiContainedImpl genRefMultiContained = new GenRefMultiContainedImpl();
+ return genRefMultiContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public GenRefMultiNonContained createGenRefMultiNonContained()
+ {
+ GenRefMultiNonContainedImpl genRefMultiNonContained = new GenRefMultiNonContainedImpl();
+ return genRefMultiNonContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplSingleRefContainer createImplSingleRefContainer()
+ {
+ ImplSingleRefContainerImpl implSingleRefContainer = new ImplSingleRefContainerImpl();
+ return implSingleRefContainer;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplSingleRefContainedElement createImplSingleRefContainedElement()
+ {
+ ImplSingleRefContainedElementImpl implSingleRefContainedElement = new ImplSingleRefContainedElementImpl();
+ return implSingleRefContainedElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplSingleRefNonContainer createImplSingleRefNonContainer()
+ {
+ ImplSingleRefNonContainerImpl implSingleRefNonContainer = new ImplSingleRefNonContainerImpl();
+ return implSingleRefNonContainer;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplSingleRefNonContainedElement createImplSingleRefNonContainedElement()
+ {
+ ImplSingleRefNonContainedElementImpl implSingleRefNonContainedElement = new ImplSingleRefNonContainedElementImpl();
+ return implSingleRefNonContainedElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplMultiRefNonContainer createImplMultiRefNonContainer()
+ {
+ ImplMultiRefNonContainerImpl implMultiRefNonContainer = new ImplMultiRefNonContainerImpl();
+ return implMultiRefNonContainer;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplMultiRefNonContainedElement createImplMultiRefNonContainedElement()
+ {
+ ImplMultiRefNonContainedElementImpl implMultiRefNonContainedElement = new ImplMultiRefNonContainedElementImpl();
+ return implMultiRefNonContainedElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplMultiRefContainer createImplMultiRefContainer()
+ {
+ ImplMultiRefContainerImpl implMultiRefContainer = new ImplMultiRefContainerImpl();
+ return implMultiRefContainer;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplMultiRefContainedElement createImplMultiRefContainedElement()
+ {
+ ImplMultiRefContainedElementImpl implMultiRefContainedElement = new ImplMultiRefContainedElementImpl();
+ return implMultiRefContainedElement;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplSingleRefContainerNPL createImplSingleRefContainerNPL()
+ {
+ ImplSingleRefContainerNPLImpl implSingleRefContainerNPL = new ImplSingleRefContainerNPLImpl();
+ return implSingleRefContainerNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplSingleRefNonContainerNPL createImplSingleRefNonContainerNPL()
+ {
+ ImplSingleRefNonContainerNPLImpl implSingleRefNonContainerNPL = new ImplSingleRefNonContainerNPLImpl();
+ return implSingleRefNonContainerNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplMultiRefContainerNPL createImplMultiRefContainerNPL()
+ {
+ ImplMultiRefContainerNPLImpl implMultiRefContainerNPL = new ImplMultiRefContainerNPLImpl();
+ return implMultiRefContainerNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplMultiRefNonContainerNPL createImplMultiRefNonContainerNPL()
+ {
+ ImplMultiRefNonContainerNPLImpl implMultiRefNonContainerNPL = new ImplMultiRefNonContainerNPLImpl();
+ return implMultiRefNonContainerNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ImplContainedElementNPL createImplContainedElementNPL()
+ {
+ ImplContainedElementNPLImpl implContainedElementNPL = new ImplContainedElementNPLImpl();
+ return implContainedElementNPL;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public GenRefMultiNUNonContained createGenRefMultiNUNonContained()
+ {
+ GenRefMultiNUNonContainedImpl genRefMultiNUNonContained = new GenRefMultiNUNonContainedImpl();
+ return genRefMultiNUNonContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public GenRefMapNonContained createGenRefMapNonContained()
+ {
+ GenRefMapNonContainedImpl genRefMapNonContained = new GenRefMapNonContainedImpl();
+ return genRefMapNonContained;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Map.Entry<String, EObject> createStringToEObject()
+ {
+ StringToEObjectImpl stringToEObject = new StringToEObjectImpl();
+ return stringToEObject;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public model4Package getmodel4Package()
+ {
+ return (model4Package)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static model4Package getPackage()
+ {
+ return model4Package.eINSTANCE;
+ }
+
+} // model4FactoryImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/model4PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/model4PackageImpl.java index e3835c729a..7436028f66 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/model4PackageImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/impl/model4PackageImpl.java @@ -1,1445 +1,1445 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.impl; - -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; -import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained; -import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4.MultiContainedElement; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiContained; -import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable; -import org.eclipse.emf.cdo.tests.model4.RefSingleContained; -import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL; -import org.eclipse.emf.cdo.tests.model4.SingleContainedElement; -import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.model4Factory; -import org.eclipse.emf.cdo.tests.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; - -import java.util.Map; - -/** - * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc --> - * - * @generated - */ -public class model4PackageImpl extends EPackageImpl implements model4Package -{ - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refSingleContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass singleContainedElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refSingleNonContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass singleNonContainedElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refMultiContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass multiContainedElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refMultiNonContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass multiNonContainedElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refMultiNonContainedUnsettableEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass multiNonContainedUnsettableElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refSingleContainedNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refSingleNonContainedNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refMultiContainedNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass refMultiNonContainedNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass containedElementNoOppositeEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass genRefSingleContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass genRefSingleNonContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass genRefMultiContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass genRefMultiNonContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implSingleRefContainerEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implSingleRefContainedElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implSingleRefNonContainerEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implSingleRefNonContainedElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implMultiRefNonContainerEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implMultiRefNonContainedElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implMultiRefContainerEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implMultiRefContainedElementEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implSingleRefContainerNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implSingleRefNonContainerNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implMultiRefContainerNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implMultiRefNonContainerNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass implContainedElementNPLEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass genRefMultiNUNonContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass genRefMapNonContainedEClass = null; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private EClass stringToEObjectEClass = null; - - /** - * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry - * EPackage.Registry} by the package package URI value. - * <p> - * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also - * performs initialization of the package, or returns the registered package, if one already exists. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.emf.cdo.tests.model4.model4Package#eNS_URI - * @see #init() - * @generated - */ - private model4PackageImpl() - { - super(eNS_URI, model4Factory.eINSTANCE); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. - * <p> - * This method is used to initialize {@link model4Package#eINSTANCE} when that field is accessed. Clients should not - * invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static model4Package init() - { - if (isInited) - return (model4Package)EPackage.Registry.INSTANCE.getEPackage(model4Package.eNS_URI); - - // Obtain or create and register package - model4PackageImpl themodel4Package = (model4PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof model4PackageImpl ? EPackage.Registry.INSTANCE - .get(eNS_URI) : new model4PackageImpl()); - - isInited = true; - - // Initialize simple dependencies - model4interfacesPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - themodel4Package.createPackageContents(); - - // Initialize created meta-data - themodel4Package.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - themodel4Package.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(model4Package.eNS_URI, themodel4Package); - return themodel4Package; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefSingleContained() - { - return refSingleContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefSingleContained_Element() - { - return (EReference)refSingleContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getSingleContainedElement() - { - return singleContainedElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getSingleContainedElement_Name() - { - return (EAttribute)singleContainedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getSingleContainedElement_Parent() - { - return (EReference)singleContainedElementEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefSingleNonContained() - { - return refSingleNonContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefSingleNonContained_Element() - { - return (EReference)refSingleNonContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getSingleNonContainedElement() - { - return singleNonContainedElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getSingleNonContainedElement_Name() - { - return (EAttribute)singleNonContainedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getSingleNonContainedElement_Parent() - { - return (EReference)singleNonContainedElementEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefMultiContained() - { - return refMultiContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefMultiContained_Elements() - { - return (EReference)refMultiContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getMultiContainedElement() - { - return multiContainedElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getMultiContainedElement_Name() - { - return (EAttribute)multiContainedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getMultiContainedElement_Parent() - { - return (EReference)multiContainedElementEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefMultiNonContained() - { - return refMultiNonContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefMultiNonContained_Elements() - { - return (EReference)refMultiNonContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getMultiNonContainedElement() - { - return multiNonContainedElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getMultiNonContainedElement_Name() - { - return (EAttribute)multiNonContainedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getMultiNonContainedElement_Parent() - { - return (EReference)multiNonContainedElementEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefMultiNonContainedUnsettable() - { - return refMultiNonContainedUnsettableEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefMultiNonContainedUnsettable_Elements() - { - return (EReference)refMultiNonContainedUnsettableEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getMultiNonContainedUnsettableElement() - { - return multiNonContainedUnsettableElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getMultiNonContainedUnsettableElement_Name() - { - return (EAttribute)multiNonContainedUnsettableElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getMultiNonContainedUnsettableElement_Parent() - { - return (EReference)multiNonContainedUnsettableElementEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefSingleContainedNPL() - { - return refSingleContainedNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefSingleContainedNPL_Element() - { - return (EReference)refSingleContainedNPLEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefSingleNonContainedNPL() - { - return refSingleNonContainedNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefSingleNonContainedNPL_Element() - { - return (EReference)refSingleNonContainedNPLEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefMultiContainedNPL() - { - return refMultiContainedNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefMultiContainedNPL_Elements() - { - return (EReference)refMultiContainedNPLEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getRefMultiNonContainedNPL() - { - return refMultiNonContainedNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getRefMultiNonContainedNPL_Elements() - { - return (EReference)refMultiNonContainedNPLEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getContainedElementNoOpposite() - { - return containedElementNoOppositeEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getContainedElementNoOpposite_Name() - { - return (EAttribute)containedElementNoOppositeEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getGenRefSingleContained() - { - return genRefSingleContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getGenRefSingleContained_Element() - { - return (EReference)genRefSingleContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getGenRefSingleNonContained() - { - return genRefSingleNonContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getGenRefSingleNonContained_Element() - { - return (EReference)genRefSingleNonContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getGenRefMultiContained() - { - return genRefMultiContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getGenRefMultiContained_Elements() - { - return (EReference)genRefMultiContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getGenRefMultiNonContained() - { - return genRefMultiNonContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getGenRefMultiNonContained_Elements() - { - return (EReference)genRefMultiNonContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplSingleRefContainer() - { - return implSingleRefContainerEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplSingleRefContainedElement() - { - return implSingleRefContainedElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getImplSingleRefContainedElement_Name() - { - return (EAttribute)implSingleRefContainedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplSingleRefNonContainer() - { - return implSingleRefNonContainerEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplSingleRefNonContainedElement() - { - return implSingleRefNonContainedElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getImplSingleRefNonContainedElement_Name() - { - return (EAttribute)implSingleRefNonContainedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplMultiRefNonContainer() - { - return implMultiRefNonContainerEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplMultiRefNonContainedElement() - { - return implMultiRefNonContainedElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getImplMultiRefNonContainedElement_Name() - { - return (EAttribute)implMultiRefNonContainedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplMultiRefContainer() - { - return implMultiRefContainerEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplMultiRefContainedElement() - { - return implMultiRefContainedElementEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getImplMultiRefContainedElement_Name() - { - return (EAttribute)implMultiRefContainedElementEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplSingleRefContainerNPL() - { - return implSingleRefContainerNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplSingleRefNonContainerNPL() - { - return implSingleRefNonContainerNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplMultiRefContainerNPL() - { - return implMultiRefContainerNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplMultiRefNonContainerNPL() - { - return implMultiRefNonContainerNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getImplContainedElementNPL() - { - return implContainedElementNPLEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getGenRefMultiNUNonContained() - { - return genRefMultiNUNonContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getGenRefMultiNUNonContained_Elements() - { - return (EReference)genRefMultiNUNonContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getGenRefMapNonContained() - { - return genRefMapNonContainedEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getGenRefMapNonContained_Elements() - { - return (EReference)genRefMapNonContainedEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EClass getStringToEObject() - { - return stringToEObjectEClass; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EAttribute getStringToEObject_Key() - { - return (EAttribute)stringToEObjectEClass.getEStructuralFeatures().get(0); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public EReference getStringToEObject_Value() - { - return (EReference)stringToEObjectEClass.getEStructuralFeatures().get(1); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public model4Factory getmodel4Factory() - { - return (model4Factory)getEFactoryInstance(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is guarded to have no affect on any invocation but its - * first. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void createPackageContents() - { - if (isCreated) - return; - isCreated = true; - - // Create classes and their features - refSingleContainedEClass = createEClass(REF_SINGLE_CONTAINED); - createEReference(refSingleContainedEClass, REF_SINGLE_CONTAINED__ELEMENT); - - singleContainedElementEClass = createEClass(SINGLE_CONTAINED_ELEMENT); - createEAttribute(singleContainedElementEClass, SINGLE_CONTAINED_ELEMENT__NAME); - createEReference(singleContainedElementEClass, SINGLE_CONTAINED_ELEMENT__PARENT); - - refSingleNonContainedEClass = createEClass(REF_SINGLE_NON_CONTAINED); - createEReference(refSingleNonContainedEClass, REF_SINGLE_NON_CONTAINED__ELEMENT); - - singleNonContainedElementEClass = createEClass(SINGLE_NON_CONTAINED_ELEMENT); - createEAttribute(singleNonContainedElementEClass, SINGLE_NON_CONTAINED_ELEMENT__NAME); - createEReference(singleNonContainedElementEClass, SINGLE_NON_CONTAINED_ELEMENT__PARENT); - - refMultiContainedEClass = createEClass(REF_MULTI_CONTAINED); - createEReference(refMultiContainedEClass, REF_MULTI_CONTAINED__ELEMENTS); - - multiContainedElementEClass = createEClass(MULTI_CONTAINED_ELEMENT); - createEAttribute(multiContainedElementEClass, MULTI_CONTAINED_ELEMENT__NAME); - createEReference(multiContainedElementEClass, MULTI_CONTAINED_ELEMENT__PARENT); - - refMultiNonContainedEClass = createEClass(REF_MULTI_NON_CONTAINED); - createEReference(refMultiNonContainedEClass, REF_MULTI_NON_CONTAINED__ELEMENTS); - - multiNonContainedElementEClass = createEClass(MULTI_NON_CONTAINED_ELEMENT); - createEAttribute(multiNonContainedElementEClass, MULTI_NON_CONTAINED_ELEMENT__NAME); - createEReference(multiNonContainedElementEClass, MULTI_NON_CONTAINED_ELEMENT__PARENT); - - refMultiNonContainedUnsettableEClass = createEClass(REF_MULTI_NON_CONTAINED_UNSETTABLE); - createEReference(refMultiNonContainedUnsettableEClass, REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS); - - multiNonContainedUnsettableElementEClass = createEClass(MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT); - createEAttribute(multiNonContainedUnsettableElementEClass, MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME); - createEReference(multiNonContainedUnsettableElementEClass, MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT); - - refSingleContainedNPLEClass = createEClass(REF_SINGLE_CONTAINED_NPL); - createEReference(refSingleContainedNPLEClass, REF_SINGLE_CONTAINED_NPL__ELEMENT); - - refSingleNonContainedNPLEClass = createEClass(REF_SINGLE_NON_CONTAINED_NPL); - createEReference(refSingleNonContainedNPLEClass, REF_SINGLE_NON_CONTAINED_NPL__ELEMENT); - - refMultiContainedNPLEClass = createEClass(REF_MULTI_CONTAINED_NPL); - createEReference(refMultiContainedNPLEClass, REF_MULTI_CONTAINED_NPL__ELEMENTS); - - refMultiNonContainedNPLEClass = createEClass(REF_MULTI_NON_CONTAINED_NPL); - createEReference(refMultiNonContainedNPLEClass, REF_MULTI_NON_CONTAINED_NPL__ELEMENTS); - - containedElementNoOppositeEClass = createEClass(CONTAINED_ELEMENT_NO_OPPOSITE); - createEAttribute(containedElementNoOppositeEClass, CONTAINED_ELEMENT_NO_OPPOSITE__NAME); - - genRefSingleContainedEClass = createEClass(GEN_REF_SINGLE_CONTAINED); - createEReference(genRefSingleContainedEClass, GEN_REF_SINGLE_CONTAINED__ELEMENT); - - genRefSingleNonContainedEClass = createEClass(GEN_REF_SINGLE_NON_CONTAINED); - createEReference(genRefSingleNonContainedEClass, GEN_REF_SINGLE_NON_CONTAINED__ELEMENT); - - genRefMultiContainedEClass = createEClass(GEN_REF_MULTI_CONTAINED); - createEReference(genRefMultiContainedEClass, GEN_REF_MULTI_CONTAINED__ELEMENTS); - - genRefMultiNonContainedEClass = createEClass(GEN_REF_MULTI_NON_CONTAINED); - createEReference(genRefMultiNonContainedEClass, GEN_REF_MULTI_NON_CONTAINED__ELEMENTS); - - implSingleRefContainerEClass = createEClass(IMPL_SINGLE_REF_CONTAINER); - - implSingleRefContainedElementEClass = createEClass(IMPL_SINGLE_REF_CONTAINED_ELEMENT); - createEAttribute(implSingleRefContainedElementEClass, IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME); - - implSingleRefNonContainerEClass = createEClass(IMPL_SINGLE_REF_NON_CONTAINER); - - implSingleRefNonContainedElementEClass = createEClass(IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT); - createEAttribute(implSingleRefNonContainedElementEClass, IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME); - - implMultiRefNonContainerEClass = createEClass(IMPL_MULTI_REF_NON_CONTAINER); - - implMultiRefNonContainedElementEClass = createEClass(IMPL_MULTI_REF_NON_CONTAINED_ELEMENT); - createEAttribute(implMultiRefNonContainedElementEClass, IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME); - - implMultiRefContainerEClass = createEClass(IMPL_MULTI_REF_CONTAINER); - - implMultiRefContainedElementEClass = createEClass(IMPL_MULTI_REF_CONTAINED_ELEMENT); - createEAttribute(implMultiRefContainedElementEClass, IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME); - - implSingleRefContainerNPLEClass = createEClass(IMPL_SINGLE_REF_CONTAINER_NPL); - - implSingleRefNonContainerNPLEClass = createEClass(IMPL_SINGLE_REF_NON_CONTAINER_NPL); - - implMultiRefContainerNPLEClass = createEClass(IMPL_MULTI_REF_CONTAINER_NPL); - - implMultiRefNonContainerNPLEClass = createEClass(IMPL_MULTI_REF_NON_CONTAINER_NPL); - - implContainedElementNPLEClass = createEClass(IMPL_CONTAINED_ELEMENT_NPL); - - genRefMultiNUNonContainedEClass = createEClass(GEN_REF_MULTI_NU_NON_CONTAINED); - createEReference(genRefMultiNUNonContainedEClass, GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS); - - genRefMapNonContainedEClass = createEClass(GEN_REF_MAP_NON_CONTAINED); - createEReference(genRefMapNonContainedEClass, GEN_REF_MAP_NON_CONTAINED__ELEMENTS); - - stringToEObjectEClass = createEClass(STRING_TO_EOBJECT); - createEAttribute(stringToEObjectEClass, STRING_TO_EOBJECT__KEY); - createEReference(stringToEObjectEClass, STRING_TO_EOBJECT__VALUE); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any - * invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public void initializePackageContents() - { - if (isInitialized) - return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - model4interfacesPackage themodel4interfacesPackage = (model4interfacesPackage)EPackage.Registry.INSTANCE - .getEPackage(model4interfacesPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - implSingleRefContainerEClass.getESuperTypes().add(themodel4interfacesPackage.getISingleRefContainer()); - implSingleRefContainedElementEClass.getESuperTypes() - .add(themodel4interfacesPackage.getISingleRefContainedElement()); - implSingleRefNonContainerEClass.getESuperTypes().add(themodel4interfacesPackage.getISingleRefNonContainer()); - implSingleRefNonContainedElementEClass.getESuperTypes().add( - themodel4interfacesPackage.getISingleRefNonContainedElement()); - implMultiRefNonContainerEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefNonContainer()); - implMultiRefNonContainedElementEClass.getESuperTypes().add( - themodel4interfacesPackage.getIMultiRefNonContainedElement()); - implMultiRefContainerEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefContainer()); - implMultiRefContainedElementEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefContainedElement()); - implSingleRefContainerNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getISingleRefContainerNPL()); - implSingleRefNonContainerNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getISingleRefNonContainerNPL()); - implMultiRefContainerNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefContainerNPL()); - implMultiRefNonContainerNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefNonContainerNPL()); - implContainedElementNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getIContainedElementNoParentLink()); - implContainedElementNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getINamedElement()); - - // Initialize classes and features; add operations and parameters - initEClass(refSingleContainedEClass, RefSingleContained.class, "RefSingleContained", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefSingleContained_Element(), this.getSingleContainedElement(), - this.getSingleContainedElement_Parent(), "element", null, 0, 1, RefSingleContained.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(singleContainedElementEClass, SingleContainedElement.class, "SingleContainedElement", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSingleContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - SingleContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getSingleContainedElement_Parent(), this.getRefSingleContained(), - this.getRefSingleContained_Element(), "parent", null, 0, 1, SingleContainedElement.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(refSingleNonContainedEClass, RefSingleNonContained.class, "RefSingleNonContained", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefSingleNonContained_Element(), this.getSingleNonContainedElement(), - this.getSingleNonContainedElement_Parent(), "element", null, 0, 1, RefSingleNonContained.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(singleNonContainedElementEClass, SingleNonContainedElement.class, "SingleNonContainedElement", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSingleNonContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - SingleNonContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getSingleNonContainedElement_Parent(), this.getRefSingleNonContained(), - this.getRefSingleNonContained_Element(), "parent", null, 0, 1, SingleNonContainedElement.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(refMultiContainedEClass, RefMultiContained.class, "RefMultiContained", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefMultiContained_Elements(), this.getMultiContainedElement(), - this.getMultiContainedElement_Parent(), "elements", null, 0, -1, RefMultiContained.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(multiContainedElementEClass, MultiContainedElement.class, "MultiContainedElement", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMultiContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - MultiContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getMultiContainedElement_Parent(), this.getRefMultiContained(), - this.getRefMultiContained_Elements(), "parent", null, 0, 1, MultiContainedElement.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(refMultiNonContainedEClass, RefMultiNonContained.class, "RefMultiNonContained", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefMultiNonContained_Elements(), this.getMultiNonContainedElement(), - this.getMultiNonContainedElement_Parent(), "elements", null, 0, -1, RefMultiNonContained.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(multiNonContainedElementEClass, MultiNonContainedElement.class, "MultiNonContainedElement", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMultiNonContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - MultiNonContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getMultiNonContainedElement_Parent(), this.getRefMultiNonContained(), - this.getRefMultiNonContained_Elements(), "parent", null, 0, 1, MultiNonContainedElement.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(refMultiNonContainedUnsettableEClass, RefMultiNonContainedUnsettable.class, - "RefMultiNonContainedUnsettable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefMultiNonContainedUnsettable_Elements(), this.getMultiNonContainedUnsettableElement(), - this.getMultiNonContainedUnsettableElement_Parent(), "elements", null, 0, -1, - RefMultiNonContainedUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(multiNonContainedUnsettableElementEClass, MultiNonContainedUnsettableElement.class, - "MultiNonContainedUnsettableElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMultiNonContainedUnsettableElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - MultiNonContainedUnsettableElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMultiNonContainedUnsettableElement_Parent(), this.getRefMultiNonContainedUnsettable(), - this.getRefMultiNonContainedUnsettable_Elements(), "parent", null, 0, 1, - MultiNonContainedUnsettableElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(refSingleContainedNPLEClass, RefSingleContainedNPL.class, "RefSingleContainedNPL", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefSingleContainedNPL_Element(), this.getContainedElementNoOpposite(), null, "element", null, 0, - 1, RefSingleContainedNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(refSingleNonContainedNPLEClass, RefSingleNonContainedNPL.class, "RefSingleNonContainedNPL", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefSingleNonContainedNPL_Element(), this.getContainedElementNoOpposite(), null, "element", null, - 0, 1, RefSingleNonContainedNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(refMultiContainedNPLEClass, RefMultiContainedNPL.class, "RefMultiContainedNPL", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefMultiContainedNPL_Elements(), this.getContainedElementNoOpposite(), null, "elements", null, 0, - -1, RefMultiContainedNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(refMultiNonContainedNPLEClass, RefMultiNonContainedNPL.class, "RefMultiNonContainedNPL", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRefMultiNonContainedNPL_Elements(), this.getContainedElementNoOpposite(), null, "elements", null, - 0, -1, RefMultiNonContainedNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(containedElementNoOppositeEClass, ContainedElementNoOpposite.class, "ContainedElementNoOpposite", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getContainedElementNoOpposite_Name(), ecorePackage.getEString(), "name", null, 0, 1, - ContainedElementNoOpposite.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(genRefSingleContainedEClass, GenRefSingleContained.class, "GenRefSingleContained", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getGenRefSingleContained_Element(), ecorePackage.getEObject(), null, "element", null, 0, 1, - GenRefSingleContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(genRefSingleNonContainedEClass, GenRefSingleNonContained.class, "GenRefSingleNonContained", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getGenRefSingleNonContained_Element(), ecorePackage.getEObject(), null, "element", null, 0, 1, - GenRefSingleNonContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(genRefMultiContainedEClass, GenRefMultiContained.class, "GenRefMultiContained", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getGenRefMultiContained_Elements(), ecorePackage.getEObject(), null, "elements", null, 0, -1, - GenRefMultiContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(genRefMultiNonContainedEClass, GenRefMultiNonContained.class, "GenRefMultiNonContained", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getGenRefMultiNonContained_Elements(), ecorePackage.getEObject(), null, "elements", null, 0, -1, - GenRefMultiNonContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(implSingleRefContainerEClass, ImplSingleRefContainer.class, "ImplSingleRefContainer", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(implSingleRefContainedElementEClass, ImplSingleRefContainedElement.class, - "ImplSingleRefContainedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getImplSingleRefContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - ImplSingleRefContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(implSingleRefNonContainerEClass, ImplSingleRefNonContainer.class, "ImplSingleRefNonContainer", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(implSingleRefNonContainedElementEClass, ImplSingleRefNonContainedElement.class, - "ImplSingleRefNonContainedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getImplSingleRefNonContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - ImplSingleRefNonContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(implMultiRefNonContainerEClass, ImplMultiRefNonContainer.class, "ImplMultiRefNonContainer", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(implMultiRefNonContainedElementEClass, ImplMultiRefNonContainedElement.class, - "ImplMultiRefNonContainedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getImplMultiRefNonContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - ImplMultiRefNonContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(implMultiRefContainerEClass, ImplMultiRefContainer.class, "ImplMultiRefContainer", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(implMultiRefContainedElementEClass, ImplMultiRefContainedElement.class, "ImplMultiRefContainedElement", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getImplMultiRefContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, - ImplMultiRefContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(implSingleRefContainerNPLEClass, ImplSingleRefContainerNPL.class, "ImplSingleRefContainerNPL", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(implSingleRefNonContainerNPLEClass, ImplSingleRefNonContainerNPL.class, "ImplSingleRefNonContainerNPL", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(implMultiRefContainerNPLEClass, ImplMultiRefContainerNPL.class, "ImplMultiRefContainerNPL", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(implMultiRefNonContainerNPLEClass, ImplMultiRefNonContainerNPL.class, "ImplMultiRefNonContainerNPL", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(implContainedElementNPLEClass, ImplContainedElementNPL.class, "ImplContainedElementNPL", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(genRefMultiNUNonContainedEClass, GenRefMultiNUNonContained.class, "GenRefMultiNUNonContained", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getGenRefMultiNUNonContained_Elements(), ecorePackage.getEObject(), null, "elements", null, 0, -1, - GenRefMultiNUNonContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(genRefMapNonContainedEClass, GenRefMapNonContained.class, "GenRefMapNonContained", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getGenRefMapNonContained_Elements(), this.getStringToEObject(), null, "elements", null, 0, -1, - GenRefMapNonContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(stringToEObjectEClass, Map.Entry.class, "StringToEObject", !IS_ABSTRACT, !IS_INTERFACE, - !IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getStringToEObject_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(getStringToEObject_Value(), ecorePackage.getEObject(), null, "value", null, 0, 1, Map.Entry.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} // model4PackageImpl +/*
+ * 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.model4.impl;
+
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.MultiContainedElement;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.SingleContainedElement;
+import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.model4Factory;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import java.util.Map;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class model4PackageImpl extends EPackageImpl implements model4Package
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refSingleContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass singleContainedElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refSingleNonContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass singleNonContainedElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refMultiContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass multiContainedElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refMultiNonContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass multiNonContainedElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refMultiNonContainedUnsettableEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass multiNonContainedUnsettableElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refSingleContainedNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refSingleNonContainedNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refMultiContainedNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass refMultiNonContainedNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass containedElementNoOppositeEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass genRefSingleContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass genRefSingleNonContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass genRefMultiContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass genRefMultiNonContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implSingleRefContainerEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implSingleRefContainedElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implSingleRefNonContainerEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implSingleRefNonContainedElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implMultiRefNonContainerEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implMultiRefNonContainedElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implMultiRefContainerEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implMultiRefContainedElementEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implSingleRefContainerNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implSingleRefNonContainerNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implMultiRefContainerNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implMultiRefNonContainerNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass implContainedElementNPLEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass genRefMultiNUNonContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass genRefMapNonContainedEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass stringToEObjectEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
+ * EPackage.Registry} by the package package URI value.
+ * <p>
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
+ * performs initialization of the package, or returns the registered package, if one already exists. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private model4PackageImpl()
+ {
+ super(eNS_URI, model4Factory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ * <p>
+ * This method is used to initialize {@link model4Package#eINSTANCE} when that field is accessed. Clients should not
+ * invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static model4Package init()
+ {
+ if (isInited)
+ return (model4Package)EPackage.Registry.INSTANCE.getEPackage(model4Package.eNS_URI);
+
+ // Obtain or create and register package
+ model4PackageImpl themodel4Package = (model4PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof model4PackageImpl ? EPackage.Registry.INSTANCE
+ .get(eNS_URI) : new model4PackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ model4interfacesPackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ themodel4Package.createPackageContents();
+
+ // Initialize created meta-data
+ themodel4Package.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ themodel4Package.freeze();
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(model4Package.eNS_URI, themodel4Package);
+ return themodel4Package;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefSingleContained()
+ {
+ return refSingleContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefSingleContained_Element()
+ {
+ return (EReference)refSingleContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getSingleContainedElement()
+ {
+ return singleContainedElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getSingleContainedElement_Name()
+ {
+ return (EAttribute)singleContainedElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getSingleContainedElement_Parent()
+ {
+ return (EReference)singleContainedElementEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefSingleNonContained()
+ {
+ return refSingleNonContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefSingleNonContained_Element()
+ {
+ return (EReference)refSingleNonContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getSingleNonContainedElement()
+ {
+ return singleNonContainedElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getSingleNonContainedElement_Name()
+ {
+ return (EAttribute)singleNonContainedElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getSingleNonContainedElement_Parent()
+ {
+ return (EReference)singleNonContainedElementEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefMultiContained()
+ {
+ return refMultiContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefMultiContained_Elements()
+ {
+ return (EReference)refMultiContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getMultiContainedElement()
+ {
+ return multiContainedElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getMultiContainedElement_Name()
+ {
+ return (EAttribute)multiContainedElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getMultiContainedElement_Parent()
+ {
+ return (EReference)multiContainedElementEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefMultiNonContained()
+ {
+ return refMultiNonContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefMultiNonContained_Elements()
+ {
+ return (EReference)refMultiNonContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getMultiNonContainedElement()
+ {
+ return multiNonContainedElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getMultiNonContainedElement_Name()
+ {
+ return (EAttribute)multiNonContainedElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getMultiNonContainedElement_Parent()
+ {
+ return (EReference)multiNonContainedElementEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefMultiNonContainedUnsettable()
+ {
+ return refMultiNonContainedUnsettableEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefMultiNonContainedUnsettable_Elements()
+ {
+ return (EReference)refMultiNonContainedUnsettableEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getMultiNonContainedUnsettableElement()
+ {
+ return multiNonContainedUnsettableElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getMultiNonContainedUnsettableElement_Name()
+ {
+ return (EAttribute)multiNonContainedUnsettableElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getMultiNonContainedUnsettableElement_Parent()
+ {
+ return (EReference)multiNonContainedUnsettableElementEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefSingleContainedNPL()
+ {
+ return refSingleContainedNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefSingleContainedNPL_Element()
+ {
+ return (EReference)refSingleContainedNPLEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefSingleNonContainedNPL()
+ {
+ return refSingleNonContainedNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefSingleNonContainedNPL_Element()
+ {
+ return (EReference)refSingleNonContainedNPLEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefMultiContainedNPL()
+ {
+ return refMultiContainedNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefMultiContainedNPL_Elements()
+ {
+ return (EReference)refMultiContainedNPLEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRefMultiNonContainedNPL()
+ {
+ return refMultiNonContainedNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRefMultiNonContainedNPL_Elements()
+ {
+ return (EReference)refMultiNonContainedNPLEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getContainedElementNoOpposite()
+ {
+ return containedElementNoOppositeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getContainedElementNoOpposite_Name()
+ {
+ return (EAttribute)containedElementNoOppositeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getGenRefSingleContained()
+ {
+ return genRefSingleContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getGenRefSingleContained_Element()
+ {
+ return (EReference)genRefSingleContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getGenRefSingleNonContained()
+ {
+ return genRefSingleNonContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getGenRefSingleNonContained_Element()
+ {
+ return (EReference)genRefSingleNonContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getGenRefMultiContained()
+ {
+ return genRefMultiContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getGenRefMultiContained_Elements()
+ {
+ return (EReference)genRefMultiContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getGenRefMultiNonContained()
+ {
+ return genRefMultiNonContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getGenRefMultiNonContained_Elements()
+ {
+ return (EReference)genRefMultiNonContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplSingleRefContainer()
+ {
+ return implSingleRefContainerEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplSingleRefContainedElement()
+ {
+ return implSingleRefContainedElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getImplSingleRefContainedElement_Name()
+ {
+ return (EAttribute)implSingleRefContainedElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplSingleRefNonContainer()
+ {
+ return implSingleRefNonContainerEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplSingleRefNonContainedElement()
+ {
+ return implSingleRefNonContainedElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getImplSingleRefNonContainedElement_Name()
+ {
+ return (EAttribute)implSingleRefNonContainedElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplMultiRefNonContainer()
+ {
+ return implMultiRefNonContainerEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplMultiRefNonContainedElement()
+ {
+ return implMultiRefNonContainedElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getImplMultiRefNonContainedElement_Name()
+ {
+ return (EAttribute)implMultiRefNonContainedElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplMultiRefContainer()
+ {
+ return implMultiRefContainerEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplMultiRefContainedElement()
+ {
+ return implMultiRefContainedElementEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getImplMultiRefContainedElement_Name()
+ {
+ return (EAttribute)implMultiRefContainedElementEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplSingleRefContainerNPL()
+ {
+ return implSingleRefContainerNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplSingleRefNonContainerNPL()
+ {
+ return implSingleRefNonContainerNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplMultiRefContainerNPL()
+ {
+ return implMultiRefContainerNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplMultiRefNonContainerNPL()
+ {
+ return implMultiRefNonContainerNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getImplContainedElementNPL()
+ {
+ return implContainedElementNPLEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getGenRefMultiNUNonContained()
+ {
+ return genRefMultiNUNonContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getGenRefMultiNUNonContained_Elements()
+ {
+ return (EReference)genRefMultiNUNonContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getGenRefMapNonContained()
+ {
+ return genRefMapNonContainedEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getGenRefMapNonContained_Elements()
+ {
+ return (EReference)genRefMapNonContainedEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getStringToEObject()
+ {
+ return stringToEObjectEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getStringToEObject_Key()
+ {
+ return (EAttribute)stringToEObjectEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getStringToEObject_Value()
+ {
+ return (EReference)stringToEObjectEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public model4Factory getmodel4Factory()
+ {
+ return (model4Factory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is guarded to have no affect on any invocation but its
+ * first. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void createPackageContents()
+ {
+ if (isCreated)
+ return;
+ isCreated = true;
+
+ // Create classes and their features
+ refSingleContainedEClass = createEClass(REF_SINGLE_CONTAINED);
+ createEReference(refSingleContainedEClass, REF_SINGLE_CONTAINED__ELEMENT);
+
+ singleContainedElementEClass = createEClass(SINGLE_CONTAINED_ELEMENT);
+ createEAttribute(singleContainedElementEClass, SINGLE_CONTAINED_ELEMENT__NAME);
+ createEReference(singleContainedElementEClass, SINGLE_CONTAINED_ELEMENT__PARENT);
+
+ refSingleNonContainedEClass = createEClass(REF_SINGLE_NON_CONTAINED);
+ createEReference(refSingleNonContainedEClass, REF_SINGLE_NON_CONTAINED__ELEMENT);
+
+ singleNonContainedElementEClass = createEClass(SINGLE_NON_CONTAINED_ELEMENT);
+ createEAttribute(singleNonContainedElementEClass, SINGLE_NON_CONTAINED_ELEMENT__NAME);
+ createEReference(singleNonContainedElementEClass, SINGLE_NON_CONTAINED_ELEMENT__PARENT);
+
+ refMultiContainedEClass = createEClass(REF_MULTI_CONTAINED);
+ createEReference(refMultiContainedEClass, REF_MULTI_CONTAINED__ELEMENTS);
+
+ multiContainedElementEClass = createEClass(MULTI_CONTAINED_ELEMENT);
+ createEAttribute(multiContainedElementEClass, MULTI_CONTAINED_ELEMENT__NAME);
+ createEReference(multiContainedElementEClass, MULTI_CONTAINED_ELEMENT__PARENT);
+
+ refMultiNonContainedEClass = createEClass(REF_MULTI_NON_CONTAINED);
+ createEReference(refMultiNonContainedEClass, REF_MULTI_NON_CONTAINED__ELEMENTS);
+
+ multiNonContainedElementEClass = createEClass(MULTI_NON_CONTAINED_ELEMENT);
+ createEAttribute(multiNonContainedElementEClass, MULTI_NON_CONTAINED_ELEMENT__NAME);
+ createEReference(multiNonContainedElementEClass, MULTI_NON_CONTAINED_ELEMENT__PARENT);
+
+ refMultiNonContainedUnsettableEClass = createEClass(REF_MULTI_NON_CONTAINED_UNSETTABLE);
+ createEReference(refMultiNonContainedUnsettableEClass, REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS);
+
+ multiNonContainedUnsettableElementEClass = createEClass(MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT);
+ createEAttribute(multiNonContainedUnsettableElementEClass, MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME);
+ createEReference(multiNonContainedUnsettableElementEClass, MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT);
+
+ refSingleContainedNPLEClass = createEClass(REF_SINGLE_CONTAINED_NPL);
+ createEReference(refSingleContainedNPLEClass, REF_SINGLE_CONTAINED_NPL__ELEMENT);
+
+ refSingleNonContainedNPLEClass = createEClass(REF_SINGLE_NON_CONTAINED_NPL);
+ createEReference(refSingleNonContainedNPLEClass, REF_SINGLE_NON_CONTAINED_NPL__ELEMENT);
+
+ refMultiContainedNPLEClass = createEClass(REF_MULTI_CONTAINED_NPL);
+ createEReference(refMultiContainedNPLEClass, REF_MULTI_CONTAINED_NPL__ELEMENTS);
+
+ refMultiNonContainedNPLEClass = createEClass(REF_MULTI_NON_CONTAINED_NPL);
+ createEReference(refMultiNonContainedNPLEClass, REF_MULTI_NON_CONTAINED_NPL__ELEMENTS);
+
+ containedElementNoOppositeEClass = createEClass(CONTAINED_ELEMENT_NO_OPPOSITE);
+ createEAttribute(containedElementNoOppositeEClass, CONTAINED_ELEMENT_NO_OPPOSITE__NAME);
+
+ genRefSingleContainedEClass = createEClass(GEN_REF_SINGLE_CONTAINED);
+ createEReference(genRefSingleContainedEClass, GEN_REF_SINGLE_CONTAINED__ELEMENT);
+
+ genRefSingleNonContainedEClass = createEClass(GEN_REF_SINGLE_NON_CONTAINED);
+ createEReference(genRefSingleNonContainedEClass, GEN_REF_SINGLE_NON_CONTAINED__ELEMENT);
+
+ genRefMultiContainedEClass = createEClass(GEN_REF_MULTI_CONTAINED);
+ createEReference(genRefMultiContainedEClass, GEN_REF_MULTI_CONTAINED__ELEMENTS);
+
+ genRefMultiNonContainedEClass = createEClass(GEN_REF_MULTI_NON_CONTAINED);
+ createEReference(genRefMultiNonContainedEClass, GEN_REF_MULTI_NON_CONTAINED__ELEMENTS);
+
+ implSingleRefContainerEClass = createEClass(IMPL_SINGLE_REF_CONTAINER);
+
+ implSingleRefContainedElementEClass = createEClass(IMPL_SINGLE_REF_CONTAINED_ELEMENT);
+ createEAttribute(implSingleRefContainedElementEClass, IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME);
+
+ implSingleRefNonContainerEClass = createEClass(IMPL_SINGLE_REF_NON_CONTAINER);
+
+ implSingleRefNonContainedElementEClass = createEClass(IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT);
+ createEAttribute(implSingleRefNonContainedElementEClass, IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME);
+
+ implMultiRefNonContainerEClass = createEClass(IMPL_MULTI_REF_NON_CONTAINER);
+
+ implMultiRefNonContainedElementEClass = createEClass(IMPL_MULTI_REF_NON_CONTAINED_ELEMENT);
+ createEAttribute(implMultiRefNonContainedElementEClass, IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME);
+
+ implMultiRefContainerEClass = createEClass(IMPL_MULTI_REF_CONTAINER);
+
+ implMultiRefContainedElementEClass = createEClass(IMPL_MULTI_REF_CONTAINED_ELEMENT);
+ createEAttribute(implMultiRefContainedElementEClass, IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME);
+
+ implSingleRefContainerNPLEClass = createEClass(IMPL_SINGLE_REF_CONTAINER_NPL);
+
+ implSingleRefNonContainerNPLEClass = createEClass(IMPL_SINGLE_REF_NON_CONTAINER_NPL);
+
+ implMultiRefContainerNPLEClass = createEClass(IMPL_MULTI_REF_CONTAINER_NPL);
+
+ implMultiRefNonContainerNPLEClass = createEClass(IMPL_MULTI_REF_NON_CONTAINER_NPL);
+
+ implContainedElementNPLEClass = createEClass(IMPL_CONTAINED_ELEMENT_NPL);
+
+ genRefMultiNUNonContainedEClass = createEClass(GEN_REF_MULTI_NU_NON_CONTAINED);
+ createEReference(genRefMultiNUNonContainedEClass, GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS);
+
+ genRefMapNonContainedEClass = createEClass(GEN_REF_MAP_NON_CONTAINED);
+ createEReference(genRefMapNonContainedEClass, GEN_REF_MAP_NON_CONTAINED__ELEMENTS);
+
+ stringToEObjectEClass = createEClass(STRING_TO_EOBJECT);
+ createEAttribute(stringToEObjectEClass, STRING_TO_EOBJECT__KEY);
+ createEReference(stringToEObjectEClass, STRING_TO_EOBJECT__VALUE);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any
+ * invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void initializePackageContents()
+ {
+ if (isInitialized)
+ return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ model4interfacesPackage themodel4interfacesPackage = (model4interfacesPackage)EPackage.Registry.INSTANCE
+ .getEPackage(model4interfacesPackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ implSingleRefContainerEClass.getESuperTypes().add(themodel4interfacesPackage.getISingleRefContainer());
+ implSingleRefContainedElementEClass.getESuperTypes()
+ .add(themodel4interfacesPackage.getISingleRefContainedElement());
+ implSingleRefNonContainerEClass.getESuperTypes().add(themodel4interfacesPackage.getISingleRefNonContainer());
+ implSingleRefNonContainedElementEClass.getESuperTypes().add(
+ themodel4interfacesPackage.getISingleRefNonContainedElement());
+ implMultiRefNonContainerEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefNonContainer());
+ implMultiRefNonContainedElementEClass.getESuperTypes().add(
+ themodel4interfacesPackage.getIMultiRefNonContainedElement());
+ implMultiRefContainerEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefContainer());
+ implMultiRefContainedElementEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefContainedElement());
+ implSingleRefContainerNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getISingleRefContainerNPL());
+ implSingleRefNonContainerNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getISingleRefNonContainerNPL());
+ implMultiRefContainerNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefContainerNPL());
+ implMultiRefNonContainerNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getIMultiRefNonContainerNPL());
+ implContainedElementNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getIContainedElementNoParentLink());
+ implContainedElementNPLEClass.getESuperTypes().add(themodel4interfacesPackage.getINamedElement());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(refSingleContainedEClass, RefSingleContained.class, "RefSingleContained", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefSingleContained_Element(), this.getSingleContainedElement(),
+ this.getSingleContainedElement_Parent(), "element", null, 0, 1, RefSingleContained.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(singleContainedElementEClass, SingleContainedElement.class, "SingleContainedElement", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getSingleContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ SingleContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getSingleContainedElement_Parent(), this.getRefSingleContained(),
+ this.getRefSingleContained_Element(), "parent", null, 0, 1, SingleContainedElement.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(refSingleNonContainedEClass, RefSingleNonContained.class, "RefSingleNonContained", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefSingleNonContained_Element(), this.getSingleNonContainedElement(),
+ this.getSingleNonContainedElement_Parent(), "element", null, 0, 1, RefSingleNonContained.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(singleNonContainedElementEClass, SingleNonContainedElement.class, "SingleNonContainedElement",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getSingleNonContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ SingleNonContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getSingleNonContainedElement_Parent(), this.getRefSingleNonContained(),
+ this.getRefSingleNonContained_Element(), "parent", null, 0, 1, SingleNonContainedElement.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(refMultiContainedEClass, RefMultiContained.class, "RefMultiContained", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefMultiContained_Elements(), this.getMultiContainedElement(),
+ this.getMultiContainedElement_Parent(), "elements", null, 0, -1, RefMultiContained.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(multiContainedElementEClass, MultiContainedElement.class, "MultiContainedElement", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getMultiContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ MultiContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getMultiContainedElement_Parent(), this.getRefMultiContained(),
+ this.getRefMultiContained_Elements(), "parent", null, 0, 1, MultiContainedElement.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(refMultiNonContainedEClass, RefMultiNonContained.class, "RefMultiNonContained", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefMultiNonContained_Elements(), this.getMultiNonContainedElement(),
+ this.getMultiNonContainedElement_Parent(), "elements", null, 0, -1, RefMultiNonContained.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(multiNonContainedElementEClass, MultiNonContainedElement.class, "MultiNonContainedElement",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getMultiNonContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ MultiNonContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getMultiNonContainedElement_Parent(), this.getRefMultiNonContained(),
+ this.getRefMultiNonContained_Elements(), "parent", null, 0, 1, MultiNonContainedElement.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(refMultiNonContainedUnsettableEClass, RefMultiNonContainedUnsettable.class,
+ "RefMultiNonContainedUnsettable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefMultiNonContainedUnsettable_Elements(), this.getMultiNonContainedUnsettableElement(),
+ this.getMultiNonContainedUnsettableElement_Parent(), "elements", null, 0, -1,
+ RefMultiNonContainedUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,
+ IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(multiNonContainedUnsettableElementEClass, MultiNonContainedUnsettableElement.class,
+ "MultiNonContainedUnsettableElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getMultiNonContainedUnsettableElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ MultiNonContainedUnsettableElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getMultiNonContainedUnsettableElement_Parent(), this.getRefMultiNonContainedUnsettable(),
+ this.getRefMultiNonContainedUnsettable_Elements(), "parent", null, 0, 1,
+ MultiNonContainedUnsettableElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,
+ IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(refSingleContainedNPLEClass, RefSingleContainedNPL.class, "RefSingleContainedNPL", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefSingleContainedNPL_Element(), this.getContainedElementNoOpposite(), null, "element", null, 0,
+ 1, RefSingleContainedNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(refSingleNonContainedNPLEClass, RefSingleNonContainedNPL.class, "RefSingleNonContainedNPL",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefSingleNonContainedNPL_Element(), this.getContainedElementNoOpposite(), null, "element", null,
+ 0, 1, RefSingleNonContainedNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,
+ IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(refMultiContainedNPLEClass, RefMultiContainedNPL.class, "RefMultiContainedNPL", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefMultiContainedNPL_Elements(), this.getContainedElementNoOpposite(), null, "elements", null, 0,
+ -1, RefMultiContainedNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(refMultiNonContainedNPLEClass, RefMultiNonContainedNPL.class, "RefMultiNonContainedNPL", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRefMultiNonContainedNPL_Elements(), this.getContainedElementNoOpposite(), null, "elements", null,
+ 0, -1, RefMultiNonContainedNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,
+ IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(containedElementNoOppositeEClass, ContainedElementNoOpposite.class, "ContainedElementNoOpposite",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getContainedElementNoOpposite_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ ContainedElementNoOpposite.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(genRefSingleContainedEClass, GenRefSingleContained.class, "GenRefSingleContained", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGenRefSingleContained_Element(), ecorePackage.getEObject(), null, "element", null, 0, 1,
+ GenRefSingleContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(genRefSingleNonContainedEClass, GenRefSingleNonContained.class, "GenRefSingleNonContained",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGenRefSingleNonContained_Element(), ecorePackage.getEObject(), null, "element", null, 0, 1,
+ GenRefSingleNonContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(genRefMultiContainedEClass, GenRefMultiContained.class, "GenRefMultiContained", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGenRefMultiContained_Elements(), ecorePackage.getEObject(), null, "elements", null, 0, -1,
+ GenRefMultiContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(genRefMultiNonContainedEClass, GenRefMultiNonContained.class, "GenRefMultiNonContained", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGenRefMultiNonContained_Elements(), ecorePackage.getEObject(), null, "elements", null, 0, -1,
+ GenRefMultiNonContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(implSingleRefContainerEClass, ImplSingleRefContainer.class, "ImplSingleRefContainer", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(implSingleRefContainedElementEClass, ImplSingleRefContainedElement.class,
+ "ImplSingleRefContainedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getImplSingleRefContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ ImplSingleRefContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(implSingleRefNonContainerEClass, ImplSingleRefNonContainer.class, "ImplSingleRefNonContainer",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(implSingleRefNonContainedElementEClass, ImplSingleRefNonContainedElement.class,
+ "ImplSingleRefNonContainedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getImplSingleRefNonContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ ImplSingleRefNonContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(implMultiRefNonContainerEClass, ImplMultiRefNonContainer.class, "ImplMultiRefNonContainer",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(implMultiRefNonContainedElementEClass, ImplMultiRefNonContainedElement.class,
+ "ImplMultiRefNonContainedElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getImplMultiRefNonContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ ImplMultiRefNonContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(implMultiRefContainerEClass, ImplMultiRefContainer.class, "ImplMultiRefContainer", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(implMultiRefContainedElementEClass, ImplMultiRefContainedElement.class, "ImplMultiRefContainedElement",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getImplMultiRefContainedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1,
+ ImplMultiRefContainedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(implSingleRefContainerNPLEClass, ImplSingleRefContainerNPL.class, "ImplSingleRefContainerNPL",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(implSingleRefNonContainerNPLEClass, ImplSingleRefNonContainerNPL.class, "ImplSingleRefNonContainerNPL",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(implMultiRefContainerNPLEClass, ImplMultiRefContainerNPL.class, "ImplMultiRefContainerNPL",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(implMultiRefNonContainerNPLEClass, ImplMultiRefNonContainerNPL.class, "ImplMultiRefNonContainerNPL",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(implContainedElementNPLEClass, ImplContainedElementNPL.class, "ImplContainedElementNPL", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(genRefMultiNUNonContainedEClass, GenRefMultiNUNonContained.class, "GenRefMultiNUNonContained",
+ !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGenRefMultiNUNonContained_Elements(), ecorePackage.getEObject(), null, "elements", null, 0, -1,
+ GenRefMultiNUNonContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,
+ !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(genRefMapNonContainedEClass, GenRefMapNonContained.class, "GenRefMapNonContained", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getGenRefMapNonContained_Elements(), this.getStringToEObject(), null, "elements", null, 0, -1,
+ GenRefMapNonContained.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(stringToEObjectEClass, Map.Entry.class, "StringToEObject", !IS_ABSTRACT, !IS_INTERFACE,
+ !IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getStringToEObject_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(getStringToEObject_Value(), ecorePackage.getEObject(), null, "value", null, 0, 1, Map.Entry.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} // model4PackageImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/model4Factory.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/model4Factory.java index 0dd8a1980e..82107c9f72 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/model4Factory.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/model4Factory.java @@ -1,328 +1,328 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.ecore.EFactory; - -/** - * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a create method for each non-abstract class of - * the model. <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package - * @generated - */ -public interface model4Factory extends EFactory -{ - /** - * The singleton instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - model4Factory eINSTANCE = org.eclipse.emf.cdo.tests.model4.impl.model4FactoryImpl.init(); - - /** - * Returns a new object of class '<em>Ref Single Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Ref Single Contained</em>'. - * @generated - */ - RefSingleContained createRefSingleContained(); - - /** - * Returns a new object of class '<em>Single Contained Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Single Contained Element</em>'. - * @generated - */ - SingleContainedElement createSingleContainedElement(); - - /** - * Returns a new object of class '<em>Ref Single Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Ref Single Non Contained</em>'. - * @generated - */ - RefSingleNonContained createRefSingleNonContained(); - - /** - * Returns a new object of class '<em>Single Non Contained Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Single Non Contained Element</em>'. - * @generated - */ - SingleNonContainedElement createSingleNonContainedElement(); - - /** - * Returns a new object of class '<em>Ref Multi Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Ref Multi Contained</em>'. - * @generated - */ - RefMultiContained createRefMultiContained(); - - /** - * Returns a new object of class '<em>Multi Contained Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Multi Contained Element</em>'. - * @generated - */ - MultiContainedElement createMultiContainedElement(); - - /** - * Returns a new object of class '<em>Ref Multi Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Ref Multi Non Contained</em>'. - * @generated - */ - RefMultiNonContained createRefMultiNonContained(); - - /** - * Returns a new object of class '<em>Multi Non Contained Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Multi Non Contained Element</em>'. - * @generated - */ - MultiNonContainedElement createMultiNonContainedElement(); - - /** - * Returns a new object of class '<em>Ref Multi Non Contained Unsettable</em>'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return a new object of class '<em>Ref Multi Non Contained Unsettable</em>'. - * @generated - */ - RefMultiNonContainedUnsettable createRefMultiNonContainedUnsettable(); - - /** - * Returns a new object of class '<em>Multi Non Contained Unsettable Element</em>'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return a new object of class '<em>Multi Non Contained Unsettable Element</em>'. - * @generated - */ - MultiNonContainedUnsettableElement createMultiNonContainedUnsettableElement(); - - /** - * Returns a new object of class '<em>Ref Single Contained NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Ref Single Contained NPL</em>'. - * @generated - */ - RefSingleContainedNPL createRefSingleContainedNPL(); - - /** - * Returns a new object of class '<em>Ref Single Non Contained NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Ref Single Non Contained NPL</em>'. - * @generated - */ - RefSingleNonContainedNPL createRefSingleNonContainedNPL(); - - /** - * Returns a new object of class '<em>Ref Multi Contained NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Ref Multi Contained NPL</em>'. - * @generated - */ - RefMultiContainedNPL createRefMultiContainedNPL(); - - /** - * Returns a new object of class '<em>Ref Multi Non Contained NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Ref Multi Non Contained NPL</em>'. - * @generated - */ - RefMultiNonContainedNPL createRefMultiNonContainedNPL(); - - /** - * Returns a new object of class '<em>Contained Element No Opposite</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Contained Element No Opposite</em>'. - * @generated - */ - ContainedElementNoOpposite createContainedElementNoOpposite(); - - /** - * Returns a new object of class '<em>Gen Ref Single Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Gen Ref Single Contained</em>'. - * @generated - */ - GenRefSingleContained createGenRefSingleContained(); - - /** - * Returns a new object of class '<em>Gen Ref Single Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Gen Ref Single Non Contained</em>'. - * @generated - */ - GenRefSingleNonContained createGenRefSingleNonContained(); - - /** - * Returns a new object of class '<em>Gen Ref Multi Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Gen Ref Multi Contained</em>'. - * @generated - */ - GenRefMultiContained createGenRefMultiContained(); - - /** - * Returns a new object of class '<em>Gen Ref Multi Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Gen Ref Multi Non Contained</em>'. - * @generated - */ - GenRefMultiNonContained createGenRefMultiNonContained(); - - /** - * Returns a new object of class '<em>Impl Single Ref Container</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Impl Single Ref Container</em>'. - * @generated - */ - ImplSingleRefContainer createImplSingleRefContainer(); - - /** - * Returns a new object of class '<em>Impl Single Ref Contained Element</em>'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return a new object of class '<em>Impl Single Ref Contained Element</em>'. - * @generated - */ - ImplSingleRefContainedElement createImplSingleRefContainedElement(); - - /** - * Returns a new object of class '<em>Impl Single Ref Non Container</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Impl Single Ref Non Container</em>'. - * @generated - */ - ImplSingleRefNonContainer createImplSingleRefNonContainer(); - - /** - * Returns a new object of class '<em>Impl Single Ref Non Contained Element</em>'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return a new object of class '<em>Impl Single Ref Non Contained Element</em>'. - * @generated - */ - ImplSingleRefNonContainedElement createImplSingleRefNonContainedElement(); - - /** - * Returns a new object of class '<em>Impl Multi Ref Non Container</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Impl Multi Ref Non Container</em>'. - * @generated - */ - ImplMultiRefNonContainer createImplMultiRefNonContainer(); - - /** - * Returns a new object of class '<em>Impl Multi Ref Non Contained Element</em>'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return a new object of class '<em>Impl Multi Ref Non Contained Element</em>'. - * @generated - */ - ImplMultiRefNonContainedElement createImplMultiRefNonContainedElement(); - - /** - * Returns a new object of class '<em>Impl Multi Ref Container</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Impl Multi Ref Container</em>'. - * @generated - */ - ImplMultiRefContainer createImplMultiRefContainer(); - - /** - * Returns a new object of class '<em>Impl Multi Ref Contained Element</em>'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return a new object of class '<em>Impl Multi Ref Contained Element</em>'. - * @generated - */ - ImplMultiRefContainedElement createImplMultiRefContainedElement(); - - /** - * Returns a new object of class '<em>Impl Single Ref Container NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Impl Single Ref Container NPL</em>'. - * @generated - */ - ImplSingleRefContainerNPL createImplSingleRefContainerNPL(); - - /** - * Returns a new object of class '<em>Impl Single Ref Non Container NPL</em>'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return a new object of class '<em>Impl Single Ref Non Container NPL</em>'. - * @generated - */ - ImplSingleRefNonContainerNPL createImplSingleRefNonContainerNPL(); - - /** - * Returns a new object of class '<em>Impl Multi Ref Container NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Impl Multi Ref Container NPL</em>'. - * @generated - */ - ImplMultiRefContainerNPL createImplMultiRefContainerNPL(); - - /** - * Returns a new object of class '<em>Impl Multi Ref Non Container NPL</em>'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return a new object of class '<em>Impl Multi Ref Non Container NPL</em>'. - * @generated - */ - ImplMultiRefNonContainerNPL createImplMultiRefNonContainerNPL(); - - /** - * Returns a new object of class '<em>Impl Contained Element NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Impl Contained Element NPL</em>'. - * @generated - */ - ImplContainedElementNPL createImplContainedElementNPL(); - - /** - * Returns a new object of class '<em>Gen Ref Multi NU Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @return a new object of class '<em>Gen Ref Multi NU Non Contained</em>'. - * @generated - */ - GenRefMultiNUNonContained createGenRefMultiNUNonContained(); - - /** - * Returns a new object of class '<em>Gen Ref Map Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return a new object of class '<em>Gen Ref Map Non Contained</em>'. - * @generated - */ - GenRefMapNonContained createGenRefMapNonContained(); - - /** - * Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the package supported by this factory. - * @generated - */ - model4Package getmodel4Package(); - -} // model4Factory +/*
+ * 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.model4;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a create method for each non-abstract class of
+ * the model. <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package
+ * @generated
+ */
+public interface model4Factory extends EFactory
+{
+ /**
+ * The singleton instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ model4Factory eINSTANCE = org.eclipse.emf.cdo.tests.model4.impl.model4FactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Ref Single Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Ref Single Contained</em>'.
+ * @generated
+ */
+ RefSingleContained createRefSingleContained();
+
+ /**
+ * Returns a new object of class '<em>Single Contained Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Single Contained Element</em>'.
+ * @generated
+ */
+ SingleContainedElement createSingleContainedElement();
+
+ /**
+ * Returns a new object of class '<em>Ref Single Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Ref Single Non Contained</em>'.
+ * @generated
+ */
+ RefSingleNonContained createRefSingleNonContained();
+
+ /**
+ * Returns a new object of class '<em>Single Non Contained Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Single Non Contained Element</em>'.
+ * @generated
+ */
+ SingleNonContainedElement createSingleNonContainedElement();
+
+ /**
+ * Returns a new object of class '<em>Ref Multi Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Ref Multi Contained</em>'.
+ * @generated
+ */
+ RefMultiContained createRefMultiContained();
+
+ /**
+ * Returns a new object of class '<em>Multi Contained Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Multi Contained Element</em>'.
+ * @generated
+ */
+ MultiContainedElement createMultiContainedElement();
+
+ /**
+ * Returns a new object of class '<em>Ref Multi Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Ref Multi Non Contained</em>'.
+ * @generated
+ */
+ RefMultiNonContained createRefMultiNonContained();
+
+ /**
+ * Returns a new object of class '<em>Multi Non Contained Element</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Multi Non Contained Element</em>'.
+ * @generated
+ */
+ MultiNonContainedElement createMultiNonContainedElement();
+
+ /**
+ * Returns a new object of class '<em>Ref Multi Non Contained Unsettable</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>Ref Multi Non Contained Unsettable</em>'.
+ * @generated
+ */
+ RefMultiNonContainedUnsettable createRefMultiNonContainedUnsettable();
+
+ /**
+ * Returns a new object of class '<em>Multi Non Contained Unsettable Element</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>Multi Non Contained Unsettable Element</em>'.
+ * @generated
+ */
+ MultiNonContainedUnsettableElement createMultiNonContainedUnsettableElement();
+
+ /**
+ * Returns a new object of class '<em>Ref Single Contained NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Ref Single Contained NPL</em>'.
+ * @generated
+ */
+ RefSingleContainedNPL createRefSingleContainedNPL();
+
+ /**
+ * Returns a new object of class '<em>Ref Single Non Contained NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Ref Single Non Contained NPL</em>'.
+ * @generated
+ */
+ RefSingleNonContainedNPL createRefSingleNonContainedNPL();
+
+ /**
+ * Returns a new object of class '<em>Ref Multi Contained NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Ref Multi Contained NPL</em>'.
+ * @generated
+ */
+ RefMultiContainedNPL createRefMultiContainedNPL();
+
+ /**
+ * Returns a new object of class '<em>Ref Multi Non Contained NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Ref Multi Non Contained NPL</em>'.
+ * @generated
+ */
+ RefMultiNonContainedNPL createRefMultiNonContainedNPL();
+
+ /**
+ * Returns a new object of class '<em>Contained Element No Opposite</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Contained Element No Opposite</em>'.
+ * @generated
+ */
+ ContainedElementNoOpposite createContainedElementNoOpposite();
+
+ /**
+ * Returns a new object of class '<em>Gen Ref Single Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Gen Ref Single Contained</em>'.
+ * @generated
+ */
+ GenRefSingleContained createGenRefSingleContained();
+
+ /**
+ * Returns a new object of class '<em>Gen Ref Single Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Gen Ref Single Non Contained</em>'.
+ * @generated
+ */
+ GenRefSingleNonContained createGenRefSingleNonContained();
+
+ /**
+ * Returns a new object of class '<em>Gen Ref Multi Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Gen Ref Multi Contained</em>'.
+ * @generated
+ */
+ GenRefMultiContained createGenRefMultiContained();
+
+ /**
+ * Returns a new object of class '<em>Gen Ref Multi Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Gen Ref Multi Non Contained</em>'.
+ * @generated
+ */
+ GenRefMultiNonContained createGenRefMultiNonContained();
+
+ /**
+ * Returns a new object of class '<em>Impl Single Ref Container</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Single Ref Container</em>'.
+ * @generated
+ */
+ ImplSingleRefContainer createImplSingleRefContainer();
+
+ /**
+ * Returns a new object of class '<em>Impl Single Ref Contained Element</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Single Ref Contained Element</em>'.
+ * @generated
+ */
+ ImplSingleRefContainedElement createImplSingleRefContainedElement();
+
+ /**
+ * Returns a new object of class '<em>Impl Single Ref Non Container</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Impl Single Ref Non Container</em>'.
+ * @generated
+ */
+ ImplSingleRefNonContainer createImplSingleRefNonContainer();
+
+ /**
+ * Returns a new object of class '<em>Impl Single Ref Non Contained Element</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Single Ref Non Contained Element</em>'.
+ * @generated
+ */
+ ImplSingleRefNonContainedElement createImplSingleRefNonContainedElement();
+
+ /**
+ * Returns a new object of class '<em>Impl Multi Ref Non Container</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Impl Multi Ref Non Container</em>'.
+ * @generated
+ */
+ ImplMultiRefNonContainer createImplMultiRefNonContainer();
+
+ /**
+ * Returns a new object of class '<em>Impl Multi Ref Non Contained Element</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Multi Ref Non Contained Element</em>'.
+ * @generated
+ */
+ ImplMultiRefNonContainedElement createImplMultiRefNonContainedElement();
+
+ /**
+ * Returns a new object of class '<em>Impl Multi Ref Container</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Multi Ref Container</em>'.
+ * @generated
+ */
+ ImplMultiRefContainer createImplMultiRefContainer();
+
+ /**
+ * Returns a new object of class '<em>Impl Multi Ref Contained Element</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Multi Ref Contained Element</em>'.
+ * @generated
+ */
+ ImplMultiRefContainedElement createImplMultiRefContainedElement();
+
+ /**
+ * Returns a new object of class '<em>Impl Single Ref Container NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Impl Single Ref Container NPL</em>'.
+ * @generated
+ */
+ ImplSingleRefContainerNPL createImplSingleRefContainerNPL();
+
+ /**
+ * Returns a new object of class '<em>Impl Single Ref Non Container NPL</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Single Ref Non Container NPL</em>'.
+ * @generated
+ */
+ ImplSingleRefNonContainerNPL createImplSingleRefNonContainerNPL();
+
+ /**
+ * Returns a new object of class '<em>Impl Multi Ref Container NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Impl Multi Ref Container NPL</em>'.
+ * @generated
+ */
+ ImplMultiRefContainerNPL createImplMultiRefContainerNPL();
+
+ /**
+ * Returns a new object of class '<em>Impl Multi Ref Non Container NPL</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Multi Ref Non Container NPL</em>'.
+ * @generated
+ */
+ ImplMultiRefNonContainerNPL createImplMultiRefNonContainerNPL();
+
+ /**
+ * Returns a new object of class '<em>Impl Contained Element NPL</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Impl Contained Element NPL</em>'.
+ * @generated
+ */
+ ImplContainedElementNPL createImplContainedElementNPL();
+
+ /**
+ * Returns a new object of class '<em>Gen Ref Multi NU Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>Gen Ref Multi NU Non Contained</em>'.
+ * @generated
+ */
+ GenRefMultiNUNonContained createGenRefMultiNUNonContained();
+
+ /**
+ * Returns a new object of class '<em>Gen Ref Map Non Contained</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Gen Ref Map Non Contained</em>'.
+ * @generated
+ */
+ GenRefMapNonContained createGenRefMapNonContained();
+
+ /**
+ * Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the package supported by this factory.
+ * @generated
+ */
+ model4Package getmodel4Package();
+
+} // model4Factory
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/model4Package.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/model4Package.java index 22ec93bf04..8f62412570 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/model4Package.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/model4Package.java @@ -1,1838 +1,1838 @@ -/* - * Copyright (c) 2004 - 2011 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.model4; - -import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * <!-- begin-user-doc --> The <b>Package</b> for the model. It contains accessors for the meta objects to represent - * <ul> - * <li>each class,</li> - * <li>each feature of each class,</li> - * <li>each enum,</li> - * <li>and each data type</li> - * </ul> - * <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Factory - * @model kind="package" - * @generated - */ -public interface model4Package extends EPackage -{ - /** - * The package name. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - String eNAME = "model4"; - - /** - * The package namespace URI. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/model4/1.0.0"; - - /** - * The package namespace name. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - String eNS_PREFIX = "model4"; - - /** - * The singleton instance of the package. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - model4Package eINSTANCE = org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefSingleContainedImpl - * <em>Ref Single Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.RefSingleContainedImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefSingleContained() - * @generated - */ - int REF_SINGLE_CONTAINED = 0; - - /** - * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int REF_SINGLE_CONTAINED__ELEMENT = 0; - - /** - * The number of structural features of the '<em>Ref Single Contained</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_SINGLE_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.SingleContainedElementImpl - * <em>Single Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.SingleContainedElementImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getSingleContainedElement() - * @generated - */ - int SINGLE_CONTAINED_ELEMENT = 1; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int SINGLE_CONTAINED_ELEMENT__NAME = 0; - - /** - * The feature id for the '<em><b>Parent</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int SINGLE_CONTAINED_ELEMENT__PARENT = 1; - - /** - * The number of structural features of the '<em>Single Contained Element</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int SINGLE_CONTAINED_ELEMENT_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefSingleNonContainedImpl - * <em>Ref Single Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.RefSingleNonContainedImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefSingleNonContained() - * @generated - */ - int REF_SINGLE_NON_CONTAINED = 2; - - /** - * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int REF_SINGLE_NON_CONTAINED__ELEMENT = 0; - - /** - * The number of structural features of the '<em>Ref Single Non Contained</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_SINGLE_NON_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.SingleNonContainedElementImpl - * <em>Single Non Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.SingleNonContainedElementImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getSingleNonContainedElement() - * @generated - */ - int SINGLE_NON_CONTAINED_ELEMENT = 3; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int SINGLE_NON_CONTAINED_ELEMENT__NAME = 0; - - /** - * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int SINGLE_NON_CONTAINED_ELEMENT__PARENT = 1; - - /** - * The number of structural features of the '<em>Single Non Contained Element</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int SINGLE_NON_CONTAINED_ELEMENT_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiContainedImpl - * <em>Ref Multi Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.RefMultiContainedImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefMultiContained() - * @generated - */ - int REF_MULTI_CONTAINED = 4; - - /** - * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_CONTAINED__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Ref Multi Contained</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.MultiContainedElementImpl - * <em>Multi Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.MultiContainedElementImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getMultiContainedElement() - * @generated - */ - int MULTI_CONTAINED_ELEMENT = 5; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_CONTAINED_ELEMENT__NAME = 0; - - /** - * The feature id for the '<em><b>Parent</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_CONTAINED_ELEMENT__PARENT = 1; - - /** - * The number of structural features of the '<em>Multi Contained Element</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_CONTAINED_ELEMENT_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedImpl - * <em>Ref Multi Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefMultiNonContained() - * @generated - */ - int REF_MULTI_NON_CONTAINED = 6; - - /** - * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_NON_CONTAINED__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Ref Multi Non Contained</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_NON_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.MultiNonContainedElementImpl - * <em>Multi Non Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.MultiNonContainedElementImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getMultiNonContainedElement() - * @generated - */ - int MULTI_NON_CONTAINED_ELEMENT = 7; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_NON_CONTAINED_ELEMENT__NAME = 0; - - /** - * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_NON_CONTAINED_ELEMENT__PARENT = 1; - - /** - * The number of structural features of the '<em>Multi Non Contained Element</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_NON_CONTAINED_ELEMENT_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedUnsettableImpl - * <em>Ref Multi Non Contained Unsettable</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedUnsettableImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefMultiNonContainedUnsettable() - * @generated - */ - int REF_MULTI_NON_CONTAINED_UNSETTABLE = 8; - - /** - * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Ref Multi Non Contained Unsettable</em>' class. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_NON_CONTAINED_UNSETTABLE_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.MultiNonContainedUnsettableElementImpl - * <em>Multi Non Contained Unsettable Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.MultiNonContainedUnsettableElementImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getMultiNonContainedUnsettableElement() - * @generated - */ - int MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT = 9; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME = 0; - - /** - * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT = 1; - - /** - * The number of structural features of the '<em>Multi Non Contained Unsettable Element</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefSingleContainedNPLImpl - * <em>Ref Single Contained NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.RefSingleContainedNPLImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefSingleContainedNPL() - * @generated - */ - int REF_SINGLE_CONTAINED_NPL = 10; - - /** - * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int REF_SINGLE_CONTAINED_NPL__ELEMENT = 0; - - /** - * The number of structural features of the '<em>Ref Single Contained NPL</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_SINGLE_CONTAINED_NPL_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefSingleNonContainedNPLImpl - * <em>Ref Single Non Contained NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.RefSingleNonContainedNPLImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefSingleNonContainedNPL() - * @generated - */ - int REF_SINGLE_NON_CONTAINED_NPL = 11; - - /** - * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int REF_SINGLE_NON_CONTAINED_NPL__ELEMENT = 0; - - /** - * The number of structural features of the '<em>Ref Single Non Contained NPL</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int REF_SINGLE_NON_CONTAINED_NPL_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiContainedNPLImpl - * <em>Ref Multi Contained NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.RefMultiContainedNPLImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefMultiContainedNPL() - * @generated - */ - int REF_MULTI_CONTAINED_NPL = 12; - - /** - * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_CONTAINED_NPL__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Ref Multi Contained NPL</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_CONTAINED_NPL_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedNPLImpl - * <em>Ref Multi Non Contained NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedNPLImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefMultiNonContainedNPL() - * @generated - */ - int REF_MULTI_NON_CONTAINED_NPL = 13; - - /** - * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_NON_CONTAINED_NPL__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Ref Multi Non Contained NPL</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int REF_MULTI_NON_CONTAINED_NPL_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ContainedElementNoOppositeImpl - * <em>Contained Element No Opposite</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.ContainedElementNoOppositeImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getContainedElementNoOpposite() - * @generated - */ - int CONTAINED_ELEMENT_NO_OPPOSITE = 14; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int CONTAINED_ELEMENT_NO_OPPOSITE__NAME = 0; - - /** - * The number of structural features of the '<em>Contained Element No Opposite</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int CONTAINED_ELEMENT_NO_OPPOSITE_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefSingleContainedImpl - * <em>Gen Ref Single Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.GenRefSingleContainedImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getGenRefSingleContained() - * @generated - */ - int GEN_REF_SINGLE_CONTAINED = 15; - - /** - * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int GEN_REF_SINGLE_CONTAINED__ELEMENT = 0; - - /** - * The number of structural features of the '<em>Gen Ref Single Contained</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_SINGLE_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefSingleNonContainedImpl - * <em>Gen Ref Single Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.GenRefSingleNonContainedImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getGenRefSingleNonContained() - * @generated - */ - int GEN_REF_SINGLE_NON_CONTAINED = 16; - - /** - * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_SINGLE_NON_CONTAINED__ELEMENT = 0; - - /** - * The number of structural features of the '<em>Gen Ref Single Non Contained</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_SINGLE_NON_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiContainedImpl - * <em>Gen Ref Multi Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiContainedImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getGenRefMultiContained() - * @generated - */ - int GEN_REF_MULTI_CONTAINED = 17; - - /** - * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_MULTI_CONTAINED__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Gen Ref Multi Contained</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_MULTI_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiNonContainedImpl - * <em>Gen Ref Multi Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiNonContainedImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getGenRefMultiNonContained() - * @generated - */ - int GEN_REF_MULTI_NON_CONTAINED = 18; - - /** - * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_MULTI_NON_CONTAINED__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Gen Ref Multi Non Contained</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_MULTI_NON_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainerImpl - * <em>Impl Single Ref Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainerImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplSingleRefContainer() - * @generated - */ - int IMPL_SINGLE_REF_CONTAINER = 19; - - /** - * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_CONTAINER__ELEMENT = model4interfacesPackage.ISINGLE_REF_CONTAINER__ELEMENT; - - /** - * The number of structural features of the '<em>Impl Single Ref Container</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_CONTAINER_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_CONTAINER_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainedElementImpl - * <em>Impl Single Ref Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainedElementImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplSingleRefContainedElement() - * @generated - */ - int IMPL_SINGLE_REF_CONTAINED_ELEMENT = 20; - - /** - * The feature id for the '<em><b>Parent</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT = model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT__PARENT; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME = model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Impl Single Ref Contained Element</em>' class. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_CONTAINED_ELEMENT_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainerImpl - * <em>Impl Single Ref Non Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainerImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplSingleRefNonContainer() - * @generated - */ - int IMPL_SINGLE_REF_NON_CONTAINER = 21; - - /** - * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINER__ELEMENT; - - /** - * The number of structural features of the '<em>Impl Single Ref Non Container</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_NON_CONTAINER_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINER_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainedElementImpl - * <em>Impl Single Ref Non Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainedElementImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplSingleRefNonContainedElement() - * @generated - */ - int IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT = 22; - - /** - * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT__PARENT; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME = model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Impl Single Ref Non Contained Element</em>' class. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainerImpl - * <em>Impl Multi Ref Non Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainerImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplMultiRefNonContainer() - * @generated - */ - int IMPL_MULTI_REF_NON_CONTAINER = 23; - - /** - * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS = model4interfacesPackage.IMULTI_REF_NON_CONTAINER__ELEMENTS; - - /** - * The number of structural features of the '<em>Impl Multi Ref Non Container</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_NON_CONTAINER_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_NON_CONTAINER_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainedElementImpl - * <em>Impl Multi Ref Non Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainedElementImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplMultiRefNonContainedElement() - * @generated - */ - int IMPL_MULTI_REF_NON_CONTAINED_ELEMENT = 24; - - /** - * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT = model4interfacesPackage.IMULTI_REF_NON_CONTAINED_ELEMENT__PARENT; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME = model4interfacesPackage.IMULTI_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Impl Multi Ref Non Contained Element</em>' class. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainerImpl - * <em>Impl Multi Ref Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainerImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplMultiRefContainer() - * @generated - */ - int IMPL_MULTI_REF_CONTAINER = 25; - - /** - * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_CONTAINER__ELEMENTS = model4interfacesPackage.IMULTI_REF_CONTAINER__ELEMENTS; - - /** - * The number of structural features of the '<em>Impl Multi Ref Container</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_CONTAINER_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_CONTAINER_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainedElementImpl - * <em>Impl Multi Ref Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainedElementImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplMultiRefContainedElement() - * @generated - */ - int IMPL_MULTI_REF_CONTAINED_ELEMENT = 26; - - /** - * The feature id for the '<em><b>Parent</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT = model4interfacesPackage.IMULTI_REF_CONTAINED_ELEMENT__PARENT; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME = model4interfacesPackage.IMULTI_REF_CONTAINED_ELEMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Impl Multi Ref Contained Element</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_CONTAINED_ELEMENT_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_CONTAINED_ELEMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainerNPLImpl - * <em>Impl Single Ref Container NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainerNPLImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplSingleRefContainerNPL() - * @generated - */ - int IMPL_SINGLE_REF_CONTAINER_NPL = 27; - - /** - * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc - * --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT = model4interfacesPackage.ISINGLE_REF_CONTAINER_NPL__ELEMENT; - - /** - * The number of structural features of the '<em>Impl Single Ref Container NPL</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_CONTAINER_NPL_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_CONTAINER_NPL_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainerNPLImpl - * <em>Impl Single Ref Non Container NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainerNPLImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplSingleRefNonContainerNPL() - * @generated - */ - int IMPL_SINGLE_REF_NON_CONTAINER_NPL = 28; - - /** - * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_NON_CONTAINER_NPL__ELEMENT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINER_NPL__ELEMENT; - - /** - * The number of structural features of the '<em>Impl Single Ref Non Container NPL</em>' class. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_SINGLE_REF_NON_CONTAINER_NPL_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINER_NPL_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainerNPLImpl - * <em>Impl Multi Ref Container NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainerNPLImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplMultiRefContainerNPL() - * @generated - */ - int IMPL_MULTI_REF_CONTAINER_NPL = 29; - - /** - * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_CONTAINER_NPL__ELEMENTS = model4interfacesPackage.IMULTI_REF_CONTAINER_NPL__ELEMENTS; - - /** - * The number of structural features of the '<em>Impl Multi Ref Container NPL</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_CONTAINER_NPL_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_CONTAINER_NPL_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainerNPLImpl - * <em>Impl Multi Ref Non Container NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainerNPLImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplMultiRefNonContainerNPL() - * @generated - */ - int IMPL_MULTI_REF_NON_CONTAINER_NPL = 30; - - /** - * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_NON_CONTAINER_NPL__ELEMENTS = model4interfacesPackage.IMULTI_REF_NON_CONTAINER_NPL__ELEMENTS; - - /** - * The number of structural features of the '<em>Impl Multi Ref Non Container NPL</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_MULTI_REF_NON_CONTAINER_NPL_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_NON_CONTAINER_NPL_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplContainedElementNPLImpl - * <em>Impl Contained Element NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.ImplContainedElementNPLImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplContainedElementNPL() - * @generated - */ - int IMPL_CONTAINED_ELEMENT_NPL = 31; - - /** - * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_CONTAINED_ELEMENT_NPL__NAME = model4interfacesPackage.ICONTAINED_ELEMENT_NO_PARENT_LINK_FEATURE_COUNT + 0; - - /** - * The number of structural features of the '<em>Impl Contained Element NPL</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int IMPL_CONTAINED_ELEMENT_NPL_FEATURE_COUNT = model4interfacesPackage.ICONTAINED_ELEMENT_NO_PARENT_LINK_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiNUNonContainedImpl - * <em>Gen Ref Multi NU Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiNUNonContainedImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getGenRefMultiNUNonContained() - * @generated - */ - int GEN_REF_MULTI_NU_NON_CONTAINED = 32; - - /** - * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Gen Ref Multi NU Non Contained</em>' class. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_MULTI_NU_NON_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefMapNonContainedImpl - * <em>Gen Ref Map Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.GenRefMapNonContainedImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getGenRefMapNonContained() - * @generated - */ - int GEN_REF_MAP_NON_CONTAINED = 33; - - /** - * The feature id for the '<em><b>Elements</b></em>' map. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_MAP_NON_CONTAINED__ELEMENTS = 0; - - /** - * The number of structural features of the '<em>Gen Ref Map Non Contained</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int GEN_REF_MAP_NON_CONTAINED_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.StringToEObjectImpl - * <em>String To EObject</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.impl.StringToEObjectImpl - * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getStringToEObject() - * @generated - */ - int STRING_TO_EOBJECT = 34; - - /** - * The feature id for the '<em><b>Key</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int STRING_TO_EOBJECT__KEY = 0; - - /** - * The feature id for the '<em><b>Value</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - * @ordered - */ - int STRING_TO_EOBJECT__VALUE = 1; - - /** - * The number of structural features of the '<em>String To EObject</em>' class. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @generated - * @ordered - */ - int STRING_TO_EOBJECT_FEATURE_COUNT = 2; - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefSingleContained - * <em>Ref Single Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Single Contained</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefSingleContained - * @generated - */ - EClass getRefSingleContained(); - - /** - * Returns the meta object for the containment reference ' - * {@link org.eclipse.emf.cdo.tests.model4.RefSingleContained#getElement <em>Element</em>}'. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @return the meta object for the containment reference '<em>Element</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefSingleContained#getElement() - * @see #getRefSingleContained() - * @generated - */ - EReference getRefSingleContained_Element(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement - * <em>Single Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Single Contained Element</em>'. - * @see org.eclipse.emf.cdo.tests.model4.SingleContainedElement - * @generated - */ - EClass getSingleContainedElement(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getName - * <em>Name</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getName() - * @see #getSingleContainedElement() - * @generated - */ - EAttribute getSingleContainedElement_Name(); - - /** - * Returns the meta object for the container reference ' - * {@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getParent <em>Parent</em>}'. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @return the meta object for the container reference '<em>Parent</em>'. - * @see org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getParent() - * @see #getSingleContainedElement() - * @generated - */ - EReference getSingleContainedElement_Parent(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContained - * <em>Ref Single Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Single Non Contained</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefSingleNonContained - * @generated - */ - EClass getRefSingleNonContained(); - - /** - * Returns the meta object for the reference ' - * {@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContained#getElement <em>Element</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for the reference '<em>Element</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefSingleNonContained#getElement() - * @see #getRefSingleNonContained() - * @generated - */ - EReference getRefSingleNonContained_Element(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement - * <em>Single Non Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Single Non Contained Element</em>'. - * @see org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement - * @generated - */ - EClass getSingleNonContainedElement(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getName <em>Name</em>}'. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getName() - * @see #getSingleNonContainedElement() - * @generated - */ - EAttribute getSingleNonContainedElement_Name(); - - /** - * Returns the meta object for the reference ' - * {@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getParent <em>Parent</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for the reference '<em>Parent</em>'. - * @see org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getParent() - * @see #getSingleNonContainedElement() - * @generated - */ - EReference getSingleNonContainedElement_Parent(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiContained - * <em>Ref Multi Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Multi Contained</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefMultiContained - * @generated - */ - EClass getRefMultiContained(); - - /** - * Returns the meta object for the containment reference list ' - * {@link org.eclipse.emf.cdo.tests.model4.RefMultiContained#getElements <em>Elements</em>}'. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @return the meta object for the containment reference list '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefMultiContained#getElements() - * @see #getRefMultiContained() - * @generated - */ - EReference getRefMultiContained_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement - * <em>Multi Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Multi Contained Element</em>'. - * @see org.eclipse.emf.cdo.tests.model4.MultiContainedElement - * @generated - */ - EClass getMultiContainedElement(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getName - * <em>Name</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getName() - * @see #getMultiContainedElement() - * @generated - */ - EAttribute getMultiContainedElement_Name(); - - /** - * Returns the meta object for the container reference ' - * {@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getParent <em>Parent</em>}'. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @return the meta object for the container reference '<em>Parent</em>'. - * @see org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getParent() - * @see #getMultiContainedElement() - * @generated - */ - EReference getMultiContainedElement_Parent(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContained - * <em>Ref Multi Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Multi Non Contained</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContained - * @generated - */ - EClass getRefMultiNonContained(); - - /** - * Returns the meta object for the reference list ' - * {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContained#getElements <em>Elements</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for the reference list '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContained#getElements() - * @see #getRefMultiNonContained() - * @generated - */ - EReference getRefMultiNonContained_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement - * <em>Multi Non Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Multi Non Contained Element</em>'. - * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement - * @generated - */ - EClass getMultiNonContainedElement(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getName <em>Name</em>}'. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getName() - * @see #getMultiNonContainedElement() - * @generated - */ - EAttribute getMultiNonContainedElement_Name(); - - /** - * Returns the meta object for the reference ' - * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getParent <em>Parent</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for the reference '<em>Parent</em>'. - * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getParent() - * @see #getMultiNonContainedElement() - * @generated - */ - EReference getMultiNonContainedElement_Parent(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable - * <em>Ref Multi Non Contained Unsettable</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Multi Non Contained Unsettable</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable - * @generated - */ - EClass getRefMultiNonContainedUnsettable(); - - /** - * Returns the meta object for the reference list ' - * {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable#getElements <em>Elements</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference list '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable#getElements() - * @see #getRefMultiNonContainedUnsettable() - * @generated - */ - EReference getRefMultiNonContainedUnsettable_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement - * <em>Multi Non Contained Unsettable Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Multi Non Contained Unsettable Element</em>'. - * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement - * @generated - */ - EClass getMultiNonContainedUnsettableElement(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getName <em>Name</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getName() - * @see #getMultiNonContainedUnsettableElement() - * @generated - */ - EAttribute getMultiNonContainedUnsettableElement_Name(); - - /** - * Returns the meta object for the reference ' - * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getParent <em>Parent</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference '<em>Parent</em>'. - * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getParent() - * @see #getMultiNonContainedUnsettableElement() - * @generated - */ - EReference getMultiNonContainedUnsettableElement_Parent(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL - * <em>Ref Single Contained NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Single Contained NPL</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL - * @generated - */ - EClass getRefSingleContainedNPL(); - - /** - * Returns the meta object for the containment reference ' - * {@link org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL#getElement <em>Element</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference '<em>Element</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL#getElement() - * @see #getRefSingleContainedNPL() - * @generated - */ - EReference getRefSingleContainedNPL_Element(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL - * <em>Ref Single Non Contained NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Single Non Contained NPL</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL - * @generated - */ - EClass getRefSingleNonContainedNPL(); - - /** - * Returns the meta object for the reference ' - * {@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL#getElement <em>Element</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for the reference '<em>Element</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL#getElement() - * @see #getRefSingleNonContainedNPL() - * @generated - */ - EReference getRefSingleNonContainedNPL_Element(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL - * <em>Ref Multi Contained NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Multi Contained NPL</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL - * @generated - */ - EClass getRefMultiContainedNPL(); - - /** - * Returns the meta object for the containment reference list ' - * {@link org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL#getElements <em>Elements</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference list '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL#getElements() - * @see #getRefMultiContainedNPL() - * @generated - */ - EReference getRefMultiContainedNPL_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL - * <em>Ref Multi Non Contained NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Ref Multi Non Contained NPL</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL - * @generated - */ - EClass getRefMultiNonContainedNPL(); - - /** - * Returns the meta object for the reference list ' - * {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL#getElements <em>Elements</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference list '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL#getElements() - * @see #getRefMultiNonContainedNPL() - * @generated - */ - EReference getRefMultiNonContainedNPL_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite - * <em>Contained Element No Opposite</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Contained Element No Opposite</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite - * @generated - */ - EClass getContainedElementNoOpposite(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite#getName <em>Name</em>}'. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite#getName() - * @see #getContainedElementNoOpposite() - * @generated - */ - EAttribute getContainedElementNoOpposite_Name(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.GenRefSingleContained - * <em>Gen Ref Single Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Gen Ref Single Contained</em>'. - * @see org.eclipse.emf.cdo.tests.model4.GenRefSingleContained - * @generated - */ - EClass getGenRefSingleContained(); - - /** - * Returns the meta object for the containment reference ' - * {@link org.eclipse.emf.cdo.tests.model4.GenRefSingleContained#getElement <em>Element</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference '<em>Element</em>'. - * @see org.eclipse.emf.cdo.tests.model4.GenRefSingleContained#getElement() - * @see #getGenRefSingleContained() - * @generated - */ - EReference getGenRefSingleContained_Element(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained - * <em>Gen Ref Single Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Gen Ref Single Non Contained</em>'. - * @see org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained - * @generated - */ - EClass getGenRefSingleNonContained(); - - /** - * Returns the meta object for the reference ' - * {@link org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained#getElement <em>Element</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for the reference '<em>Element</em>'. - * @see org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained#getElement() - * @see #getGenRefSingleNonContained() - * @generated - */ - EReference getGenRefSingleNonContained_Element(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiContained - * <em>Gen Ref Multi Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Gen Ref Multi Contained</em>'. - * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiContained - * @generated - */ - EClass getGenRefMultiContained(); - - /** - * Returns the meta object for the containment reference list ' - * {@link org.eclipse.emf.cdo.tests.model4.GenRefMultiContained#getElements <em>Elements</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for the containment reference list '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiContained#getElements() - * @see #getGenRefMultiContained() - * @generated - */ - EReference getGenRefMultiContained_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained - * <em>Gen Ref Multi Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Gen Ref Multi Non Contained</em>'. - * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained - * @generated - */ - EClass getGenRefMultiNonContained(); - - /** - * Returns the meta object for the reference list ' - * {@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained#getElements <em>Elements</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference list '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained#getElements() - * @see #getGenRefMultiNonContained() - * @generated - */ - EReference getGenRefMultiNonContained_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer - * <em>Impl Single Ref Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Single Ref Container</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer - * @generated - */ - EClass getImplSingleRefContainer(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement - * <em>Impl Single Ref Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Single Ref Contained Element</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement - * @generated - */ - EClass getImplSingleRefContainedElement(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement#getName <em>Name</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement#getName() - * @see #getImplSingleRefContainedElement() - * @generated - */ - EAttribute getImplSingleRefContainedElement_Name(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer - * <em>Impl Single Ref Non Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Single Ref Non Container</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer - * @generated - */ - EClass getImplSingleRefNonContainer(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement - * <em>Impl Single Ref Non Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Single Ref Non Contained Element</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement - * @generated - */ - EClass getImplSingleRefNonContainedElement(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement#getName <em>Name</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement#getName() - * @see #getImplSingleRefNonContainedElement() - * @generated - */ - EAttribute getImplSingleRefNonContainedElement_Name(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer - * <em>Impl Multi Ref Non Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Multi Ref Non Container</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer - * @generated - */ - EClass getImplMultiRefNonContainer(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement - * <em>Impl Multi Ref Non Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Multi Ref Non Contained Element</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement - * @generated - */ - EClass getImplMultiRefNonContainedElement(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement#getName <em>Name</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement#getName() - * @see #getImplMultiRefNonContainedElement() - * @generated - */ - EAttribute getImplMultiRefNonContainedElement_Name(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer - * <em>Impl Multi Ref Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Multi Ref Container</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer - * @generated - */ - EClass getImplMultiRefContainer(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement - * <em>Impl Multi Ref Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Multi Ref Contained Element</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement - * @generated - */ - EClass getImplMultiRefContainedElement(); - - /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement#getName <em>Name</em>}'. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @return the meta object for the attribute '<em>Name</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement#getName() - * @see #getImplMultiRefContainedElement() - * @generated - */ - EAttribute getImplMultiRefContainedElement_Name(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL - * <em>Impl Single Ref Container NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Single Ref Container NPL</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL - * @generated - */ - EClass getImplSingleRefContainerNPL(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL - * <em>Impl Single Ref Non Container NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Single Ref Non Container NPL</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL - * @generated - */ - EClass getImplSingleRefNonContainerNPL(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL - * <em>Impl Multi Ref Container NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Multi Ref Container NPL</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL - * @generated - */ - EClass getImplMultiRefContainerNPL(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL - * <em>Impl Multi Ref Non Container NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Multi Ref Non Container NPL</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL - * @generated - */ - EClass getImplMultiRefNonContainerNPL(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL - * <em>Impl Contained Element NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Impl Contained Element NPL</em>'. - * @see org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL - * @generated - */ - EClass getImplContainedElementNPL(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained - * <em>Gen Ref Multi NU Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Gen Ref Multi NU Non Contained</em>'. - * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained - * @generated - */ - EClass getGenRefMultiNUNonContained(); - - /** - * Returns the meta object for the reference list ' - * {@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained#getElements <em>Elements</em>}'. <!-- - * begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the reference list '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained#getElements() - * @see #getGenRefMultiNUNonContained() - * @generated - */ - EReference getGenRefMultiNUNonContained_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained - * <em>Gen Ref Map Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for class '<em>Gen Ref Map Non Contained</em>'. - * @see org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained - * @generated - */ - EClass getGenRefMapNonContained(); - - /** - * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained#getElements - * <em>Elements</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the meta object for the map '<em>Elements</em>'. - * @see org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained#getElements() - * @see #getGenRefMapNonContained() - * @generated - */ - EReference getGenRefMapNonContained_Elements(); - - /** - * Returns the meta object for class '{@link java.util.Map.Entry <em>String To EObject</em>}'. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @return the meta object for class '<em>String To EObject</em>'. - * @see java.util.Map.Entry - * @model keyDataType="org.eclipse.emf.ecore.EString" valueType="org.eclipse.emf.ecore.EObject" - * valueResolveProxies="false" - * @generated - */ - EClass getStringToEObject(); - - /** - * Returns the meta object for the attribute '{@link java.util.Map.Entry <em>Key</em>}'. <!-- begin-user-doc --> <!-- - * end-user-doc --> - * - * @return the meta object for the attribute '<em>Key</em>'. - * @see java.util.Map.Entry - * @see #getStringToEObject() - * @generated - */ - EAttribute getStringToEObject_Key(); - - /** - * Returns the meta object for the reference '{@link java.util.Map.Entry <em>Value</em>}'. <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @return the meta object for the reference '<em>Value</em>'. - * @see java.util.Map.Entry - * @see #getStringToEObject() - * @generated - */ - EReference getStringToEObject_Value(); - - /** - * Returns the factory that creates the instances of the model. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the factory that creates the instances of the model. - * @generated - */ - model4Factory getmodel4Factory(); - -} // model4Package +/*
+ * 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.model4;
+
+import org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+/**
+ * <!-- begin-user-doc --> The <b>Package</b> for the model. It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Factory
+ * @model kind="package"
+ * @generated
+ */
+public interface model4Package extends EPackage
+{
+ /**
+ * The package name. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNAME = "model4";
+
+ /**
+ * The package namespace URI. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/model4/1.0.0";
+
+ /**
+ * The package namespace name. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNS_PREFIX = "model4";
+
+ /**
+ * The singleton instance of the package. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ model4Package eINSTANCE = org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefSingleContainedImpl
+ * <em>Ref Single Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.RefSingleContainedImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefSingleContained()
+ * @generated
+ */
+ int REF_SINGLE_CONTAINED = 0;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_SINGLE_CONTAINED__ELEMENT = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Single Contained</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_SINGLE_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.SingleContainedElementImpl
+ * <em>Single Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.SingleContainedElementImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getSingleContainedElement()
+ * @generated
+ */
+ int SINGLE_CONTAINED_ELEMENT = 1;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SINGLE_CONTAINED_ELEMENT__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SINGLE_CONTAINED_ELEMENT__PARENT = 1;
+
+ /**
+ * The number of structural features of the '<em>Single Contained Element</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SINGLE_CONTAINED_ELEMENT_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefSingleNonContainedImpl
+ * <em>Ref Single Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.RefSingleNonContainedImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefSingleNonContained()
+ * @generated
+ */
+ int REF_SINGLE_NON_CONTAINED = 2;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_SINGLE_NON_CONTAINED__ELEMENT = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Single Non Contained</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_SINGLE_NON_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.SingleNonContainedElementImpl
+ * <em>Single Non Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.SingleNonContainedElementImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getSingleNonContainedElement()
+ * @generated
+ */
+ int SINGLE_NON_CONTAINED_ELEMENT = 3;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SINGLE_NON_CONTAINED_ELEMENT__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SINGLE_NON_CONTAINED_ELEMENT__PARENT = 1;
+
+ /**
+ * The number of structural features of the '<em>Single Non Contained Element</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int SINGLE_NON_CONTAINED_ELEMENT_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiContainedImpl
+ * <em>Ref Multi Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.RefMultiContainedImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefMultiContained()
+ * @generated
+ */
+ int REF_MULTI_CONTAINED = 4;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_CONTAINED__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Multi Contained</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.MultiContainedElementImpl
+ * <em>Multi Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.MultiContainedElementImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getMultiContainedElement()
+ * @generated
+ */
+ int MULTI_CONTAINED_ELEMENT = 5;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_CONTAINED_ELEMENT__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_CONTAINED_ELEMENT__PARENT = 1;
+
+ /**
+ * The number of structural features of the '<em>Multi Contained Element</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_CONTAINED_ELEMENT_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedImpl
+ * <em>Ref Multi Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefMultiNonContained()
+ * @generated
+ */
+ int REF_MULTI_NON_CONTAINED = 6;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_NON_CONTAINED__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Multi Non Contained</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_NON_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.MultiNonContainedElementImpl
+ * <em>Multi Non Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.MultiNonContainedElementImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getMultiNonContainedElement()
+ * @generated
+ */
+ int MULTI_NON_CONTAINED_ELEMENT = 7;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_NON_CONTAINED_ELEMENT__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_NON_CONTAINED_ELEMENT__PARENT = 1;
+
+ /**
+ * The number of structural features of the '<em>Multi Non Contained Element</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_NON_CONTAINED_ELEMENT_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedUnsettableImpl
+ * <em>Ref Multi Non Contained Unsettable</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedUnsettableImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefMultiNonContainedUnsettable()
+ * @generated
+ */
+ int REF_MULTI_NON_CONTAINED_UNSETTABLE = 8;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_NON_CONTAINED_UNSETTABLE__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Multi Non Contained Unsettable</em>' class. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_NON_CONTAINED_UNSETTABLE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.MultiNonContainedUnsettableElementImpl
+ * <em>Multi Non Contained Unsettable Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.MultiNonContainedUnsettableElementImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getMultiNonContainedUnsettableElement()
+ * @generated
+ */
+ int MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT = 9;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT__PARENT = 1;
+
+ /**
+ * The number of structural features of the '<em>Multi Non Contained Unsettable Element</em>' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefSingleContainedNPLImpl
+ * <em>Ref Single Contained NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.RefSingleContainedNPLImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefSingleContainedNPL()
+ * @generated
+ */
+ int REF_SINGLE_CONTAINED_NPL = 10;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_SINGLE_CONTAINED_NPL__ELEMENT = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Single Contained NPL</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_SINGLE_CONTAINED_NPL_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefSingleNonContainedNPLImpl
+ * <em>Ref Single Non Contained NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.RefSingleNonContainedNPLImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefSingleNonContainedNPL()
+ * @generated
+ */
+ int REF_SINGLE_NON_CONTAINED_NPL = 11;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_SINGLE_NON_CONTAINED_NPL__ELEMENT = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Single Non Contained NPL</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_SINGLE_NON_CONTAINED_NPL_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiContainedNPLImpl
+ * <em>Ref Multi Contained NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.RefMultiContainedNPLImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefMultiContainedNPL()
+ * @generated
+ */
+ int REF_MULTI_CONTAINED_NPL = 12;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_CONTAINED_NPL__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Multi Contained NPL</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_CONTAINED_NPL_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedNPLImpl
+ * <em>Ref Multi Non Contained NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.RefMultiNonContainedNPLImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getRefMultiNonContainedNPL()
+ * @generated
+ */
+ int REF_MULTI_NON_CONTAINED_NPL = 13;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_NON_CONTAINED_NPL__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Ref Multi Non Contained NPL</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REF_MULTI_NON_CONTAINED_NPL_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ContainedElementNoOppositeImpl
+ * <em>Contained Element No Opposite</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.ContainedElementNoOppositeImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getContainedElementNoOpposite()
+ * @generated
+ */
+ int CONTAINED_ELEMENT_NO_OPPOSITE = 14;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTAINED_ELEMENT_NO_OPPOSITE__NAME = 0;
+
+ /**
+ * The number of structural features of the '<em>Contained Element No Opposite</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTAINED_ELEMENT_NO_OPPOSITE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefSingleContainedImpl
+ * <em>Gen Ref Single Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.GenRefSingleContainedImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getGenRefSingleContained()
+ * @generated
+ */
+ int GEN_REF_SINGLE_CONTAINED = 15;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_SINGLE_CONTAINED__ELEMENT = 0;
+
+ /**
+ * The number of structural features of the '<em>Gen Ref Single Contained</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_SINGLE_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefSingleNonContainedImpl
+ * <em>Gen Ref Single Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.GenRefSingleNonContainedImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getGenRefSingleNonContained()
+ * @generated
+ */
+ int GEN_REF_SINGLE_NON_CONTAINED = 16;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_SINGLE_NON_CONTAINED__ELEMENT = 0;
+
+ /**
+ * The number of structural features of the '<em>Gen Ref Single Non Contained</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_SINGLE_NON_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiContainedImpl
+ * <em>Gen Ref Multi Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiContainedImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getGenRefMultiContained()
+ * @generated
+ */
+ int GEN_REF_MULTI_CONTAINED = 17;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_MULTI_CONTAINED__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Gen Ref Multi Contained</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_MULTI_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiNonContainedImpl
+ * <em>Gen Ref Multi Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiNonContainedImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getGenRefMultiNonContained()
+ * @generated
+ */
+ int GEN_REF_MULTI_NON_CONTAINED = 18;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_MULTI_NON_CONTAINED__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Gen Ref Multi Non Contained</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_MULTI_NON_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainerImpl
+ * <em>Impl Single Ref Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainerImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplSingleRefContainer()
+ * @generated
+ */
+ int IMPL_SINGLE_REF_CONTAINER = 19;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_CONTAINER__ELEMENT = model4interfacesPackage.ISINGLE_REF_CONTAINER__ELEMENT;
+
+ /**
+ * The number of structural features of the '<em>Impl Single Ref Container</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_CONTAINER_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_CONTAINER_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainedElementImpl
+ * <em>Impl Single Ref Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainedElementImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplSingleRefContainedElement()
+ * @generated
+ */
+ int IMPL_SINGLE_REF_CONTAINED_ELEMENT = 20;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_CONTAINED_ELEMENT__PARENT = model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT__PARENT;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_CONTAINED_ELEMENT__NAME = model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Impl Single Ref Contained Element</em>' class. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_CONTAINED_ELEMENT_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainerImpl
+ * <em>Impl Single Ref Non Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainerImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplSingleRefNonContainer()
+ * @generated
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINER = 21;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINER__ELEMENT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINER__ELEMENT;
+
+ /**
+ * The number of structural features of the '<em>Impl Single Ref Non Container</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINER_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINER_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainedElementImpl
+ * <em>Impl Single Ref Non Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainedElementImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplSingleRefNonContainedElement()
+ * @generated
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT = 22;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__PARENT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT__PARENT;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT__NAME = model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Impl Single Ref Non Contained Element</em>' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainerImpl
+ * <em>Impl Multi Ref Non Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainerImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplMultiRefNonContainer()
+ * @generated
+ */
+ int IMPL_MULTI_REF_NON_CONTAINER = 23;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_NON_CONTAINER__ELEMENTS = model4interfacesPackage.IMULTI_REF_NON_CONTAINER__ELEMENTS;
+
+ /**
+ * The number of structural features of the '<em>Impl Multi Ref Non Container</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_NON_CONTAINER_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_NON_CONTAINER_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainedElementImpl
+ * <em>Impl Multi Ref Non Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainedElementImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplMultiRefNonContainedElement()
+ * @generated
+ */
+ int IMPL_MULTI_REF_NON_CONTAINED_ELEMENT = 24;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__PARENT = model4interfacesPackage.IMULTI_REF_NON_CONTAINED_ELEMENT__PARENT;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_NON_CONTAINED_ELEMENT__NAME = model4interfacesPackage.IMULTI_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Impl Multi Ref Non Contained Element</em>' class. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainerImpl
+ * <em>Impl Multi Ref Container</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainerImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplMultiRefContainer()
+ * @generated
+ */
+ int IMPL_MULTI_REF_CONTAINER = 25;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_CONTAINER__ELEMENTS = model4interfacesPackage.IMULTI_REF_CONTAINER__ELEMENTS;
+
+ /**
+ * The number of structural features of the '<em>Impl Multi Ref Container</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_CONTAINER_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_CONTAINER_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainedElementImpl
+ * <em>Impl Multi Ref Contained Element</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainedElementImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplMultiRefContainedElement()
+ * @generated
+ */
+ int IMPL_MULTI_REF_CONTAINED_ELEMENT = 26;
+
+ /**
+ * The feature id for the '<em><b>Parent</b></em>' container reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_CONTAINED_ELEMENT__PARENT = model4interfacesPackage.IMULTI_REF_CONTAINED_ELEMENT__PARENT;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_CONTAINED_ELEMENT__NAME = model4interfacesPackage.IMULTI_REF_CONTAINED_ELEMENT_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Impl Multi Ref Contained Element</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_CONTAINED_ELEMENT_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_CONTAINED_ELEMENT_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainerNPLImpl
+ * <em>Impl Single Ref Container NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefContainerNPLImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplSingleRefContainerNPL()
+ * @generated
+ */
+ int IMPL_SINGLE_REF_CONTAINER_NPL = 27;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_CONTAINER_NPL__ELEMENT = model4interfacesPackage.ISINGLE_REF_CONTAINER_NPL__ELEMENT;
+
+ /**
+ * The number of structural features of the '<em>Impl Single Ref Container NPL</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_CONTAINER_NPL_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_CONTAINER_NPL_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainerNPLImpl
+ * <em>Impl Single Ref Non Container NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.ImplSingleRefNonContainerNPLImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplSingleRefNonContainerNPL()
+ * @generated
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINER_NPL = 28;
+
+ /**
+ * The feature id for the '<em><b>Element</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINER_NPL__ELEMENT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINER_NPL__ELEMENT;
+
+ /**
+ * The number of structural features of the '<em>Impl Single Ref Non Container NPL</em>' class. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_SINGLE_REF_NON_CONTAINER_NPL_FEATURE_COUNT = model4interfacesPackage.ISINGLE_REF_NON_CONTAINER_NPL_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainerNPLImpl
+ * <em>Impl Multi Ref Container NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefContainerNPLImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplMultiRefContainerNPL()
+ * @generated
+ */
+ int IMPL_MULTI_REF_CONTAINER_NPL = 29;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_CONTAINER_NPL__ELEMENTS = model4interfacesPackage.IMULTI_REF_CONTAINER_NPL__ELEMENTS;
+
+ /**
+ * The number of structural features of the '<em>Impl Multi Ref Container NPL</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_CONTAINER_NPL_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_CONTAINER_NPL_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainerNPLImpl
+ * <em>Impl Multi Ref Non Container NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.ImplMultiRefNonContainerNPLImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplMultiRefNonContainerNPL()
+ * @generated
+ */
+ int IMPL_MULTI_REF_NON_CONTAINER_NPL = 30;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_NON_CONTAINER_NPL__ELEMENTS = model4interfacesPackage.IMULTI_REF_NON_CONTAINER_NPL__ELEMENTS;
+
+ /**
+ * The number of structural features of the '<em>Impl Multi Ref Non Container NPL</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_MULTI_REF_NON_CONTAINER_NPL_FEATURE_COUNT = model4interfacesPackage.IMULTI_REF_NON_CONTAINER_NPL_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.ImplContainedElementNPLImpl
+ * <em>Impl Contained Element NPL</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.ImplContainedElementNPLImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getImplContainedElementNPL()
+ * @generated
+ */
+ int IMPL_CONTAINED_ELEMENT_NPL = 31;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_CONTAINED_ELEMENT_NPL__NAME = model4interfacesPackage.ICONTAINED_ELEMENT_NO_PARENT_LINK_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Impl Contained Element NPL</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int IMPL_CONTAINED_ELEMENT_NPL_FEATURE_COUNT = model4interfacesPackage.ICONTAINED_ELEMENT_NO_PARENT_LINK_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiNUNonContainedImpl
+ * <em>Gen Ref Multi NU Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.GenRefMultiNUNonContainedImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getGenRefMultiNUNonContained()
+ * @generated
+ */
+ int GEN_REF_MULTI_NU_NON_CONTAINED = 32;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_MULTI_NU_NON_CONTAINED__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Gen Ref Multi NU Non Contained</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_MULTI_NU_NON_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.GenRefMapNonContainedImpl
+ * <em>Gen Ref Map Non Contained</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.GenRefMapNonContainedImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getGenRefMapNonContained()
+ * @generated
+ */
+ int GEN_REF_MAP_NON_CONTAINED = 33;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' map. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_MAP_NON_CONTAINED__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Gen Ref Map Non Contained</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_REF_MAP_NON_CONTAINED_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4.impl.StringToEObjectImpl
+ * <em>String To EObject</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.impl.StringToEObjectImpl
+ * @see org.eclipse.emf.cdo.tests.model4.impl.model4PackageImpl#getStringToEObject()
+ * @generated
+ */
+ int STRING_TO_EOBJECT = 34;
+
+ /**
+ * The feature id for the '<em><b>Key</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int STRING_TO_EOBJECT__KEY = 0;
+
+ /**
+ * The feature id for the '<em><b>Value</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int STRING_TO_EOBJECT__VALUE = 1;
+
+ /**
+ * The number of structural features of the '<em>String To EObject</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int STRING_TO_EOBJECT_FEATURE_COUNT = 2;
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefSingleContained
+ * <em>Ref Single Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Single Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefSingleContained
+ * @generated
+ */
+ EClass getRefSingleContained();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.emf.cdo.tests.model4.RefSingleContained#getElement <em>Element</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefSingleContained#getElement()
+ * @see #getRefSingleContained()
+ * @generated
+ */
+ EReference getRefSingleContained_Element();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement
+ * <em>Single Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Single Contained Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.SingleContainedElement
+ * @generated
+ */
+ EClass getSingleContainedElement();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getName
+ * <em>Name</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getName()
+ * @see #getSingleContainedElement()
+ * @generated
+ */
+ EAttribute getSingleContainedElement_Name();
+
+ /**
+ * Returns the meta object for the container reference '
+ * {@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getParent <em>Parent</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the container reference '<em>Parent</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.SingleContainedElement#getParent()
+ * @see #getSingleContainedElement()
+ * @generated
+ */
+ EReference getSingleContainedElement_Parent();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContained
+ * <em>Ref Single Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Single Non Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefSingleNonContained
+ * @generated
+ */
+ EClass getRefSingleNonContained();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContained#getElement <em>Element</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefSingleNonContained#getElement()
+ * @see #getRefSingleNonContained()
+ * @generated
+ */
+ EReference getRefSingleNonContained_Element();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement
+ * <em>Single Non Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Single Non Contained Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement
+ * @generated
+ */
+ EClass getSingleNonContainedElement();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getName <em>Name</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getName()
+ * @see #getSingleNonContainedElement()
+ * @generated
+ */
+ EAttribute getSingleNonContainedElement_Name();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getParent <em>Parent</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Parent</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement#getParent()
+ * @see #getSingleNonContainedElement()
+ * @generated
+ */
+ EReference getSingleNonContainedElement_Parent();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiContained
+ * <em>Ref Multi Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Multi Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiContained
+ * @generated
+ */
+ EClass getRefMultiContained();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.cdo.tests.model4.RefMultiContained#getElements <em>Elements</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiContained#getElements()
+ * @see #getRefMultiContained()
+ * @generated
+ */
+ EReference getRefMultiContained_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement
+ * <em>Multi Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Multi Contained Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.MultiContainedElement
+ * @generated
+ */
+ EClass getMultiContainedElement();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getName
+ * <em>Name</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getName()
+ * @see #getMultiContainedElement()
+ * @generated
+ */
+ EAttribute getMultiContainedElement_Name();
+
+ /**
+ * Returns the meta object for the container reference '
+ * {@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getParent <em>Parent</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the container reference '<em>Parent</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.MultiContainedElement#getParent()
+ * @see #getMultiContainedElement()
+ * @generated
+ */
+ EReference getMultiContainedElement_Parent();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContained
+ * <em>Ref Multi Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Multi Non Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContained
+ * @generated
+ */
+ EClass getRefMultiNonContained();
+
+ /**
+ * Returns the meta object for the reference list '
+ * {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContained#getElements <em>Elements</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContained#getElements()
+ * @see #getRefMultiNonContained()
+ * @generated
+ */
+ EReference getRefMultiNonContained_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement
+ * <em>Multi Non Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Multi Non Contained Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement
+ * @generated
+ */
+ EClass getMultiNonContainedElement();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getName <em>Name</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getName()
+ * @see #getMultiNonContainedElement()
+ * @generated
+ */
+ EAttribute getMultiNonContainedElement_Name();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getParent <em>Parent</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Parent</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement#getParent()
+ * @see #getMultiNonContainedElement()
+ * @generated
+ */
+ EReference getMultiNonContainedElement_Parent();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable
+ * <em>Ref Multi Non Contained Unsettable</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Multi Non Contained Unsettable</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable
+ * @generated
+ */
+ EClass getRefMultiNonContainedUnsettable();
+
+ /**
+ * Returns the meta object for the reference list '
+ * {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable#getElements <em>Elements</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable#getElements()
+ * @see #getRefMultiNonContainedUnsettable()
+ * @generated
+ */
+ EReference getRefMultiNonContainedUnsettable_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement
+ * <em>Multi Non Contained Unsettable Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Multi Non Contained Unsettable Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement
+ * @generated
+ */
+ EClass getMultiNonContainedUnsettableElement();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getName <em>Name</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getName()
+ * @see #getMultiNonContainedUnsettableElement()
+ * @generated
+ */
+ EAttribute getMultiNonContainedUnsettableElement_Name();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getParent <em>Parent</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Parent</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement#getParent()
+ * @see #getMultiNonContainedUnsettableElement()
+ * @generated
+ */
+ EReference getMultiNonContainedUnsettableElement_Parent();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL
+ * <em>Ref Single Contained NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Single Contained NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL
+ * @generated
+ */
+ EClass getRefSingleContainedNPL();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL#getElement <em>Element</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL#getElement()
+ * @see #getRefSingleContainedNPL()
+ * @generated
+ */
+ EReference getRefSingleContainedNPL_Element();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL
+ * <em>Ref Single Non Contained NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Single Non Contained NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL
+ * @generated
+ */
+ EClass getRefSingleNonContainedNPL();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL#getElement <em>Element</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL#getElement()
+ * @see #getRefSingleNonContainedNPL()
+ * @generated
+ */
+ EReference getRefSingleNonContainedNPL_Element();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL
+ * <em>Ref Multi Contained NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Multi Contained NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL
+ * @generated
+ */
+ EClass getRefMultiContainedNPL();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL#getElements <em>Elements</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL#getElements()
+ * @see #getRefMultiContainedNPL()
+ * @generated
+ */
+ EReference getRefMultiContainedNPL_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL
+ * <em>Ref Multi Non Contained NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Ref Multi Non Contained NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL
+ * @generated
+ */
+ EClass getRefMultiNonContainedNPL();
+
+ /**
+ * Returns the meta object for the reference list '
+ * {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL#getElements <em>Elements</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL#getElements()
+ * @see #getRefMultiNonContainedNPL()
+ * @generated
+ */
+ EReference getRefMultiNonContainedNPL_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite
+ * <em>Contained Element No Opposite</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Contained Element No Opposite</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite
+ * @generated
+ */
+ EClass getContainedElementNoOpposite();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite#getName <em>Name</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite#getName()
+ * @see #getContainedElementNoOpposite()
+ * @generated
+ */
+ EAttribute getContainedElementNoOpposite_Name();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.GenRefSingleContained
+ * <em>Gen Ref Single Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Gen Ref Single Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefSingleContained
+ * @generated
+ */
+ EClass getGenRefSingleContained();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.emf.cdo.tests.model4.GenRefSingleContained#getElement <em>Element</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefSingleContained#getElement()
+ * @see #getGenRefSingleContained()
+ * @generated
+ */
+ EReference getGenRefSingleContained_Element();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained
+ * <em>Gen Ref Single Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Gen Ref Single Non Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained
+ * @generated
+ */
+ EClass getGenRefSingleNonContained();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained#getElement <em>Element</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained#getElement()
+ * @see #getGenRefSingleNonContained()
+ * @generated
+ */
+ EReference getGenRefSingleNonContained_Element();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiContained
+ * <em>Gen Ref Multi Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Gen Ref Multi Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiContained
+ * @generated
+ */
+ EClass getGenRefMultiContained();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.cdo.tests.model4.GenRefMultiContained#getElements <em>Elements</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiContained#getElements()
+ * @see #getGenRefMultiContained()
+ * @generated
+ */
+ EReference getGenRefMultiContained_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained
+ * <em>Gen Ref Multi Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Gen Ref Multi Non Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained
+ * @generated
+ */
+ EClass getGenRefMultiNonContained();
+
+ /**
+ * Returns the meta object for the reference list '
+ * {@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained#getElements <em>Elements</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained#getElements()
+ * @see #getGenRefMultiNonContained()
+ * @generated
+ */
+ EReference getGenRefMultiNonContained_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer
+ * <em>Impl Single Ref Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Single Ref Container</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer
+ * @generated
+ */
+ EClass getImplSingleRefContainer();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement
+ * <em>Impl Single Ref Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Single Ref Contained Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement
+ * @generated
+ */
+ EClass getImplSingleRefContainedElement();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement#getName <em>Name</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement#getName()
+ * @see #getImplSingleRefContainedElement()
+ * @generated
+ */
+ EAttribute getImplSingleRefContainedElement_Name();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer
+ * <em>Impl Single Ref Non Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Single Ref Non Container</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer
+ * @generated
+ */
+ EClass getImplSingleRefNonContainer();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement
+ * <em>Impl Single Ref Non Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Single Ref Non Contained Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement
+ * @generated
+ */
+ EClass getImplSingleRefNonContainedElement();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement#getName <em>Name</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement#getName()
+ * @see #getImplSingleRefNonContainedElement()
+ * @generated
+ */
+ EAttribute getImplSingleRefNonContainedElement_Name();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer
+ * <em>Impl Multi Ref Non Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Multi Ref Non Container</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer
+ * @generated
+ */
+ EClass getImplMultiRefNonContainer();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement
+ * <em>Impl Multi Ref Non Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Multi Ref Non Contained Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement
+ * @generated
+ */
+ EClass getImplMultiRefNonContainedElement();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement#getName <em>Name</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement#getName()
+ * @see #getImplMultiRefNonContainedElement()
+ * @generated
+ */
+ EAttribute getImplMultiRefNonContainedElement_Name();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer
+ * <em>Impl Multi Ref Container</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Multi Ref Container</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer
+ * @generated
+ */
+ EClass getImplMultiRefContainer();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement
+ * <em>Impl Multi Ref Contained Element</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Multi Ref Contained Element</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement
+ * @generated
+ */
+ EClass getImplMultiRefContainedElement();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement#getName <em>Name</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement#getName()
+ * @see #getImplMultiRefContainedElement()
+ * @generated
+ */
+ EAttribute getImplMultiRefContainedElement_Name();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL
+ * <em>Impl Single Ref Container NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Single Ref Container NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL
+ * @generated
+ */
+ EClass getImplSingleRefContainerNPL();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL
+ * <em>Impl Single Ref Non Container NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Single Ref Non Container NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL
+ * @generated
+ */
+ EClass getImplSingleRefNonContainerNPL();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL
+ * <em>Impl Multi Ref Container NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Multi Ref Container NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL
+ * @generated
+ */
+ EClass getImplMultiRefContainerNPL();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL
+ * <em>Impl Multi Ref Non Container NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Multi Ref Non Container NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL
+ * @generated
+ */
+ EClass getImplMultiRefNonContainerNPL();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL
+ * <em>Impl Contained Element NPL</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Impl Contained Element NPL</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL
+ * @generated
+ */
+ EClass getImplContainedElementNPL();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained
+ * <em>Gen Ref Multi NU Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Gen Ref Multi NU Non Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained
+ * @generated
+ */
+ EClass getGenRefMultiNUNonContained();
+
+ /**
+ * Returns the meta object for the reference list '
+ * {@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained#getElements <em>Elements</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained#getElements()
+ * @see #getGenRefMultiNUNonContained()
+ * @generated
+ */
+ EReference getGenRefMultiNUNonContained_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained
+ * <em>Gen Ref Map Non Contained</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Gen Ref Map Non Contained</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained
+ * @generated
+ */
+ EClass getGenRefMapNonContained();
+
+ /**
+ * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained#getElements
+ * <em>Elements</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the map '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained#getElements()
+ * @see #getGenRefMapNonContained()
+ * @generated
+ */
+ EReference getGenRefMapNonContained_Elements();
+
+ /**
+ * Returns the meta object for class '{@link java.util.Map.Entry <em>String To EObject</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>String To EObject</em>'.
+ * @see java.util.Map.Entry
+ * @model keyDataType="org.eclipse.emf.ecore.EString" valueType="org.eclipse.emf.ecore.EObject"
+ * valueResolveProxies="false"
+ * @generated
+ */
+ EClass getStringToEObject();
+
+ /**
+ * Returns the meta object for the attribute '{@link java.util.Map.Entry <em>Key</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Key</em>'.
+ * @see java.util.Map.Entry
+ * @see #getStringToEObject()
+ * @generated
+ */
+ EAttribute getStringToEObject_Key();
+
+ /**
+ * Returns the meta object for the reference '{@link java.util.Map.Entry <em>Value</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Value</em>'.
+ * @see java.util.Map.Entry
+ * @see #getStringToEObject()
+ * @generated
+ */
+ EReference getStringToEObject_Value();
+
+ /**
+ * Returns the factory that creates the instances of the model. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ model4Factory getmodel4Factory();
+
+} // model4Package
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/util/model4AdapterFactory.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/util/model4AdapterFactory.java index 76786ec0e2..e41a98dd52 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/util/model4AdapterFactory.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/util/model4AdapterFactory.java @@ -1,1195 +1,1195 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.util; - -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; -import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained; -import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4.MultiContainedElement; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiContained; -import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable; -import org.eclipse.emf.cdo.tests.model4.RefSingleContained; -import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL; -import org.eclipse.emf.cdo.tests.model4.SingleContainedElement; -import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4interfaces.INamedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainerNPL; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; - -import java.util.Map; - -/** - * <!-- begin-user-doc --> The <b>Adapter Factory</b> for the model. It provides an adapter <code>createXXX</code> - * method for each class of the model. <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package - * @generated - */ -public class model4AdapterFactory extends AdapterFactoryImpl -{ - /** - * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected static model4Package modelPackage; - - /** - * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public model4AdapterFactory() - { - if (modelPackage == null) - { - modelPackage = model4Package.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. <!-- begin-user-doc --> This implementation - * returns <code>true</code> if the object is either the model's package or is an instance object of the model. <!-- - * end-user-doc --> - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) - { - if (object == modelPackage) - { - return true; - } - if (object instanceof EObject) - { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the <code>createXXX</code> methods. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected model4Switch<Adapter> modelSwitch = new model4Switch<Adapter>() - { - @Override - public Adapter caseRefSingleContained(RefSingleContained object) - { - return createRefSingleContainedAdapter(); - } - - @Override - public Adapter caseSingleContainedElement(SingleContainedElement object) - { - return createSingleContainedElementAdapter(); - } - - @Override - public Adapter caseRefSingleNonContained(RefSingleNonContained object) - { - return createRefSingleNonContainedAdapter(); - } - - @Override - public Adapter caseSingleNonContainedElement(SingleNonContainedElement object) - { - return createSingleNonContainedElementAdapter(); - } - - @Override - public Adapter caseRefMultiContained(RefMultiContained object) - { - return createRefMultiContainedAdapter(); - } - - @Override - public Adapter caseMultiContainedElement(MultiContainedElement object) - { - return createMultiContainedElementAdapter(); - } - - @Override - public Adapter caseRefMultiNonContained(RefMultiNonContained object) - { - return createRefMultiNonContainedAdapter(); - } - - @Override - public Adapter caseMultiNonContainedElement(MultiNonContainedElement object) - { - return createMultiNonContainedElementAdapter(); - } - - @Override - public Adapter caseRefMultiNonContainedUnsettable(RefMultiNonContainedUnsettable object) - { - return createRefMultiNonContainedUnsettableAdapter(); - } - - @Override - public Adapter caseMultiNonContainedUnsettableElement(MultiNonContainedUnsettableElement object) - { - return createMultiNonContainedUnsettableElementAdapter(); - } - - @Override - public Adapter caseRefSingleContainedNPL(RefSingleContainedNPL object) - { - return createRefSingleContainedNPLAdapter(); - } - - @Override - public Adapter caseRefSingleNonContainedNPL(RefSingleNonContainedNPL object) - { - return createRefSingleNonContainedNPLAdapter(); - } - - @Override - public Adapter caseRefMultiContainedNPL(RefMultiContainedNPL object) - { - return createRefMultiContainedNPLAdapter(); - } - - @Override - public Adapter caseRefMultiNonContainedNPL(RefMultiNonContainedNPL object) - { - return createRefMultiNonContainedNPLAdapter(); - } - - @Override - public Adapter caseContainedElementNoOpposite(ContainedElementNoOpposite object) - { - return createContainedElementNoOppositeAdapter(); - } - - @Override - public Adapter caseGenRefSingleContained(GenRefSingleContained object) - { - return createGenRefSingleContainedAdapter(); - } - - @Override - public Adapter caseGenRefSingleNonContained(GenRefSingleNonContained object) - { - return createGenRefSingleNonContainedAdapter(); - } - - @Override - public Adapter caseGenRefMultiContained(GenRefMultiContained object) - { - return createGenRefMultiContainedAdapter(); - } - - @Override - public Adapter caseGenRefMultiNonContained(GenRefMultiNonContained object) - { - return createGenRefMultiNonContainedAdapter(); - } - - @Override - public Adapter caseImplSingleRefContainer(ImplSingleRefContainer object) - { - return createImplSingleRefContainerAdapter(); - } - - @Override - public Adapter caseImplSingleRefContainedElement(ImplSingleRefContainedElement object) - { - return createImplSingleRefContainedElementAdapter(); - } - - @Override - public Adapter caseImplSingleRefNonContainer(ImplSingleRefNonContainer object) - { - return createImplSingleRefNonContainerAdapter(); - } - - @Override - public Adapter caseImplSingleRefNonContainedElement(ImplSingleRefNonContainedElement object) - { - return createImplSingleRefNonContainedElementAdapter(); - } - - @Override - public Adapter caseImplMultiRefNonContainer(ImplMultiRefNonContainer object) - { - return createImplMultiRefNonContainerAdapter(); - } - - @Override - public Adapter caseImplMultiRefNonContainedElement(ImplMultiRefNonContainedElement object) - { - return createImplMultiRefNonContainedElementAdapter(); - } - - @Override - public Adapter caseImplMultiRefContainer(ImplMultiRefContainer object) - { - return createImplMultiRefContainerAdapter(); - } - - @Override - public Adapter caseImplMultiRefContainedElement(ImplMultiRefContainedElement object) - { - return createImplMultiRefContainedElementAdapter(); - } - - @Override - public Adapter caseImplSingleRefContainerNPL(ImplSingleRefContainerNPL object) - { - return createImplSingleRefContainerNPLAdapter(); - } - - @Override - public Adapter caseImplSingleRefNonContainerNPL(ImplSingleRefNonContainerNPL object) - { - return createImplSingleRefNonContainerNPLAdapter(); - } - - @Override - public Adapter caseImplMultiRefContainerNPL(ImplMultiRefContainerNPL object) - { - return createImplMultiRefContainerNPLAdapter(); - } - - @Override - public Adapter caseImplMultiRefNonContainerNPL(ImplMultiRefNonContainerNPL object) - { - return createImplMultiRefNonContainerNPLAdapter(); - } - - @Override - public Adapter caseImplContainedElementNPL(ImplContainedElementNPL object) - { - return createImplContainedElementNPLAdapter(); - } - - @Override - public Adapter caseGenRefMultiNUNonContained(GenRefMultiNUNonContained object) - { - return createGenRefMultiNUNonContainedAdapter(); - } - - @Override - public Adapter caseGenRefMapNonContained(GenRefMapNonContained object) - { - return createGenRefMapNonContainedAdapter(); - } - - @Override - public Adapter caseStringToEObject(Map.Entry<String, EObject> object) - { - return createStringToEObjectAdapter(); - } - - @Override - public Adapter caseISingleRefContainer(ISingleRefContainer object) - { - return createISingleRefContainerAdapter(); - } - - @Override - public Adapter caseISingleRefContainedElement(ISingleRefContainedElement object) - { - return createISingleRefContainedElementAdapter(); - } - - @Override - public Adapter caseISingleRefNonContainer(ISingleRefNonContainer object) - { - return createISingleRefNonContainerAdapter(); - } - - @Override - public Adapter caseISingleRefNonContainedElement(ISingleRefNonContainedElement object) - { - return createISingleRefNonContainedElementAdapter(); - } - - @Override - public Adapter caseIMultiRefNonContainer(IMultiRefNonContainer object) - { - return createIMultiRefNonContainerAdapter(); - } - - @Override - public Adapter caseIMultiRefNonContainedElement(IMultiRefNonContainedElement object) - { - return createIMultiRefNonContainedElementAdapter(); - } - - @Override - public Adapter caseIMultiRefContainer(IMultiRefContainer object) - { - return createIMultiRefContainerAdapter(); - } - - @Override - public Adapter caseIMultiRefContainedElement(IMultiRefContainedElement object) - { - return createIMultiRefContainedElementAdapter(); - } - - @Override - public Adapter caseISingleRefContainerNPL(ISingleRefContainerNPL object) - { - return createISingleRefContainerNPLAdapter(); - } - - @Override - public Adapter caseISingleRefNonContainerNPL(ISingleRefNonContainerNPL object) - { - return createISingleRefNonContainerNPLAdapter(); - } - - @Override - public Adapter caseIMultiRefContainerNPL(IMultiRefContainerNPL object) - { - return createIMultiRefContainerNPLAdapter(); - } - - @Override - public Adapter caseIMultiRefNonContainerNPL(IMultiRefNonContainerNPL object) - { - return createIMultiRefNonContainerNPLAdapter(); - } - - @Override - public Adapter caseIContainedElementNoParentLink(IContainedElementNoParentLink object) - { - return createIContainedElementNoParentLinkAdapter(); - } - - @Override - public Adapter caseINamedElement(INamedElement object) - { - return createINamedElementAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) - { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the <code>target</code>. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param target - * the object to adapt. - * @return the adapter for the <code>target</code>. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) - { - return modelSwitch.doSwitch((EObject)target); - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.RefSingleContained - * <em>Ref Single Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can - * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.RefSingleContained - * @generated - */ - public Adapter createRefSingleContainedAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement - * <em>Single Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we - * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.SingleContainedElement - * @generated - */ - public Adapter createSingleContainedElementAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContained - * <em>Ref Single Non Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we - * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.RefSingleNonContained - * @generated - */ - public Adapter createRefSingleNonContainedAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement - * <em>Single Non Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so that - * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement - * @generated - */ - public Adapter createSingleNonContainedElementAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiContained - * <em>Ref Multi Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can - * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.RefMultiContained - * @generated - */ - public Adapter createRefMultiContainedAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement - * <em>Multi Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can - * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.MultiContainedElement - * @generated - */ - public Adapter createMultiContainedElementAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContained - * <em>Ref Multi Non Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can - * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContained - * @generated - */ - public Adapter createRefMultiNonContainedAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement - * <em>Multi Non Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we - * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement - * @generated - */ - public Adapter createMultiNonContainedElementAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable <em>Ref Multi Non Contained Unsettable</em>} - * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful - * to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable - * @generated - */ - public Adapter createRefMultiNonContainedUnsettableAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement - * <em>Multi Non Contained Unsettable Element</em>}'. <!-- begin-user-doc --> This default implementation returns null - * so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement - * @generated - */ - public Adapter createMultiNonContainedUnsettableElementAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL - * <em>Ref Single Contained NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we - * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL - * @generated - */ - public Adapter createRefSingleContainedNPLAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL - * <em>Ref Single Non Contained NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so that - * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL - * @generated - */ - public Adapter createRefSingleNonContainedNPLAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL - * <em>Ref Multi Contained NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can - * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL - * @generated - */ - public Adapter createRefMultiContainedNPLAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL - * <em>Ref Multi Non Contained NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we - * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL - * @generated - */ - public Adapter createRefMultiNonContainedNPLAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite - * <em>Contained Element No Opposite</em>}'. <!-- begin-user-doc --> This default implementation returns null so that - * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite - * @generated - */ - public Adapter createContainedElementNoOppositeAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.GenRefSingleContained - * <em>Gen Ref Single Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we - * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.GenRefSingleContained - * @generated - */ - public Adapter createGenRefSingleContainedAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained - * <em>Gen Ref Single Non Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that - * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained - * @generated - */ - public Adapter createGenRefSingleNonContainedAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiContained - * <em>Gen Ref Multi Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can - * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiContained - * @generated - */ - public Adapter createGenRefMultiContainedAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained - * <em>Gen Ref Multi Non Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we - * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained - * @generated - */ - public Adapter createGenRefMultiNonContainedAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer - * <em>Impl Single Ref Container</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we - * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer - * @generated - */ - public Adapter createImplSingleRefContainerAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement <em>Impl Single Ref Contained Element</em>}'. - * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to - * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement - * @generated - */ - public Adapter createImplSingleRefContainedElementAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer - * <em>Impl Single Ref Non Container</em>}'. <!-- begin-user-doc --> This default implementation returns null so that - * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer - * @generated - */ - public Adapter createImplSingleRefNonContainerAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement - * <em>Impl Single Ref Non Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null - * so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement - * @generated - */ - public Adapter createImplSingleRefNonContainedElementAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer - * <em>Impl Multi Ref Non Container</em>}'. <!-- begin-user-doc --> This default implementation returns null so that - * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer - * @generated - */ - public Adapter createImplMultiRefNonContainerAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement - * <em>Impl Multi Ref Non Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null - * so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement - * @generated - */ - public Adapter createImplMultiRefNonContainedElementAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer - * <em>Impl Multi Ref Container</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we - * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer - * @generated - */ - public Adapter createImplMultiRefContainerAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement - * <em>Impl Multi Ref Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so - * that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement - * @generated - */ - public Adapter createImplMultiRefContainedElementAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL - * <em>Impl Single Ref Container NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so that - * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL - * @generated - */ - public Adapter createImplSingleRefContainerNPLAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL - * <em>Impl Single Ref Non Container NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so - * that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL - * @generated - */ - public Adapter createImplSingleRefNonContainerNPLAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL - * <em>Impl Multi Ref Container NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so that - * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL - * @generated - */ - public Adapter createImplMultiRefContainerNPLAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL - * <em>Impl Multi Ref Non Container NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so - * that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL - * @generated - */ - public Adapter createImplMultiRefNonContainerNPLAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL - * <em>Impl Contained Element NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we - * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL - * @generated - */ - public Adapter createImplContainedElementNPLAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained - * <em>Gen Ref Multi NU Non Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that - * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained - * @generated - */ - public Adapter createGenRefMultiNUNonContainedAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained - * <em>Gen Ref Map Non Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we - * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained - * @generated - */ - public Adapter createGenRefMapNonContainedAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link java.util.Map.Entry <em>String To EObject</em>}'. <!-- - * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to - * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc --> - * - * @return the new adapter. - * @see java.util.Map.Entry - * @generated - */ - public Adapter createStringToEObjectAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer <em>ISingle Ref Container</em>}'. <!-- - * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to - * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer - * @generated - */ - public Adapter createISingleRefContainerAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement - * <em>ISingle Ref Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so that - * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement - * @generated - */ - public Adapter createISingleRefContainedElementAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer <em>ISingle Ref Non Container</em>}'. <!-- - * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to - * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer - * @generated - */ - public Adapter createISingleRefNonContainerAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement - * <em>ISingle Ref Non Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so - * that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement - * @generated - */ - public Adapter createISingleRefNonContainedElementAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer <em>IMulti Ref Non Container</em>}'. <!-- - * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to - * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer - * @generated - */ - public Adapter createIMultiRefNonContainerAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement - * <em>IMulti Ref Non Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so - * that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement - * @generated - */ - public Adapter createIMultiRefNonContainedElementAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer - * <em>IMulti Ref Container</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can - * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer - * @generated - */ - public Adapter createIMultiRefContainerAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement <em>IMulti Ref Contained Element</em>} - * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful - * to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement - * @generated - */ - public Adapter createIMultiRefContainedElementAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainerNPL <em>ISingle Ref Container NPL</em>}'. <!-- - * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to - * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainerNPL - * @generated - */ - public Adapter createISingleRefContainerNPLAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainerNPL <em>ISingle Ref Non Container NPL</em>} - * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful - * to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainerNPL - * @generated - */ - public Adapter createISingleRefNonContainerNPLAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainerNPL <em>IMulti Ref Container NPL</em>}'. <!-- - * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to - * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainerNPL - * @generated - */ - public Adapter createIMultiRefContainerNPLAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainerNPL <em>IMulti Ref Non Container NPL</em>}'. - * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to - * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainerNPL - * @generated - */ - public Adapter createIMultiRefNonContainerNPLAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink - * <em>IContained Element No Parent Link</em>}'. <!-- begin-user-doc --> This default implementation returns null so - * that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink - * @generated - */ - public Adapter createIContainedElementNoParentLinkAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4interfaces.INamedElement - * <em>INamed Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily - * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc --> - * - * @return the new adapter. - * @see org.eclipse.emf.cdo.tests.model4interfaces.INamedElement - * @generated - */ - public Adapter createINamedElementAdapter() - { - return null; - } - - /** - * Creates a new adapter for the default case. <!-- begin-user-doc --> This default implementation returns null. <!-- - * end-user-doc --> - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() - { - return null; - } - -} // model4AdapterFactory +/*
+ * 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.model4.util;
+
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.MultiContainedElement;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.SingleContainedElement;
+import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4interfaces.INamedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainerNPL;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+import org.eclipse.emf.ecore.EObject;
+
+import java.util.Map;
+
+/**
+ * <!-- begin-user-doc --> The <b>Adapter Factory</b> for the model. It provides an adapter <code>createXXX</code>
+ * method for each class of the model. <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package
+ * @generated
+ */
+public class model4AdapterFactory extends AdapterFactoryImpl
+{
+ /**
+ * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected static model4Package modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public model4AdapterFactory()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = model4Package.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object. <!-- begin-user-doc --> This implementation
+ * returns <code>true</code> if the object is either the model's package or is an instance object of the model. <!--
+ * end-user-doc -->
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object)
+ {
+ if (object == modelPackage)
+ {
+ return true;
+ }
+ if (object instanceof EObject)
+ {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected model4Switch<Adapter> modelSwitch = new model4Switch<Adapter>()
+ {
+ @Override
+ public Adapter caseRefSingleContained(RefSingleContained object)
+ {
+ return createRefSingleContainedAdapter();
+ }
+
+ @Override
+ public Adapter caseSingleContainedElement(SingleContainedElement object)
+ {
+ return createSingleContainedElementAdapter();
+ }
+
+ @Override
+ public Adapter caseRefSingleNonContained(RefSingleNonContained object)
+ {
+ return createRefSingleNonContainedAdapter();
+ }
+
+ @Override
+ public Adapter caseSingleNonContainedElement(SingleNonContainedElement object)
+ {
+ return createSingleNonContainedElementAdapter();
+ }
+
+ @Override
+ public Adapter caseRefMultiContained(RefMultiContained object)
+ {
+ return createRefMultiContainedAdapter();
+ }
+
+ @Override
+ public Adapter caseMultiContainedElement(MultiContainedElement object)
+ {
+ return createMultiContainedElementAdapter();
+ }
+
+ @Override
+ public Adapter caseRefMultiNonContained(RefMultiNonContained object)
+ {
+ return createRefMultiNonContainedAdapter();
+ }
+
+ @Override
+ public Adapter caseMultiNonContainedElement(MultiNonContainedElement object)
+ {
+ return createMultiNonContainedElementAdapter();
+ }
+
+ @Override
+ public Adapter caseRefMultiNonContainedUnsettable(RefMultiNonContainedUnsettable object)
+ {
+ return createRefMultiNonContainedUnsettableAdapter();
+ }
+
+ @Override
+ public Adapter caseMultiNonContainedUnsettableElement(MultiNonContainedUnsettableElement object)
+ {
+ return createMultiNonContainedUnsettableElementAdapter();
+ }
+
+ @Override
+ public Adapter caseRefSingleContainedNPL(RefSingleContainedNPL object)
+ {
+ return createRefSingleContainedNPLAdapter();
+ }
+
+ @Override
+ public Adapter caseRefSingleNonContainedNPL(RefSingleNonContainedNPL object)
+ {
+ return createRefSingleNonContainedNPLAdapter();
+ }
+
+ @Override
+ public Adapter caseRefMultiContainedNPL(RefMultiContainedNPL object)
+ {
+ return createRefMultiContainedNPLAdapter();
+ }
+
+ @Override
+ public Adapter caseRefMultiNonContainedNPL(RefMultiNonContainedNPL object)
+ {
+ return createRefMultiNonContainedNPLAdapter();
+ }
+
+ @Override
+ public Adapter caseContainedElementNoOpposite(ContainedElementNoOpposite object)
+ {
+ return createContainedElementNoOppositeAdapter();
+ }
+
+ @Override
+ public Adapter caseGenRefSingleContained(GenRefSingleContained object)
+ {
+ return createGenRefSingleContainedAdapter();
+ }
+
+ @Override
+ public Adapter caseGenRefSingleNonContained(GenRefSingleNonContained object)
+ {
+ return createGenRefSingleNonContainedAdapter();
+ }
+
+ @Override
+ public Adapter caseGenRefMultiContained(GenRefMultiContained object)
+ {
+ return createGenRefMultiContainedAdapter();
+ }
+
+ @Override
+ public Adapter caseGenRefMultiNonContained(GenRefMultiNonContained object)
+ {
+ return createGenRefMultiNonContainedAdapter();
+ }
+
+ @Override
+ public Adapter caseImplSingleRefContainer(ImplSingleRefContainer object)
+ {
+ return createImplSingleRefContainerAdapter();
+ }
+
+ @Override
+ public Adapter caseImplSingleRefContainedElement(ImplSingleRefContainedElement object)
+ {
+ return createImplSingleRefContainedElementAdapter();
+ }
+
+ @Override
+ public Adapter caseImplSingleRefNonContainer(ImplSingleRefNonContainer object)
+ {
+ return createImplSingleRefNonContainerAdapter();
+ }
+
+ @Override
+ public Adapter caseImplSingleRefNonContainedElement(ImplSingleRefNonContainedElement object)
+ {
+ return createImplSingleRefNonContainedElementAdapter();
+ }
+
+ @Override
+ public Adapter caseImplMultiRefNonContainer(ImplMultiRefNonContainer object)
+ {
+ return createImplMultiRefNonContainerAdapter();
+ }
+
+ @Override
+ public Adapter caseImplMultiRefNonContainedElement(ImplMultiRefNonContainedElement object)
+ {
+ return createImplMultiRefNonContainedElementAdapter();
+ }
+
+ @Override
+ public Adapter caseImplMultiRefContainer(ImplMultiRefContainer object)
+ {
+ return createImplMultiRefContainerAdapter();
+ }
+
+ @Override
+ public Adapter caseImplMultiRefContainedElement(ImplMultiRefContainedElement object)
+ {
+ return createImplMultiRefContainedElementAdapter();
+ }
+
+ @Override
+ public Adapter caseImplSingleRefContainerNPL(ImplSingleRefContainerNPL object)
+ {
+ return createImplSingleRefContainerNPLAdapter();
+ }
+
+ @Override
+ public Adapter caseImplSingleRefNonContainerNPL(ImplSingleRefNonContainerNPL object)
+ {
+ return createImplSingleRefNonContainerNPLAdapter();
+ }
+
+ @Override
+ public Adapter caseImplMultiRefContainerNPL(ImplMultiRefContainerNPL object)
+ {
+ return createImplMultiRefContainerNPLAdapter();
+ }
+
+ @Override
+ public Adapter caseImplMultiRefNonContainerNPL(ImplMultiRefNonContainerNPL object)
+ {
+ return createImplMultiRefNonContainerNPLAdapter();
+ }
+
+ @Override
+ public Adapter caseImplContainedElementNPL(ImplContainedElementNPL object)
+ {
+ return createImplContainedElementNPLAdapter();
+ }
+
+ @Override
+ public Adapter caseGenRefMultiNUNonContained(GenRefMultiNUNonContained object)
+ {
+ return createGenRefMultiNUNonContainedAdapter();
+ }
+
+ @Override
+ public Adapter caseGenRefMapNonContained(GenRefMapNonContained object)
+ {
+ return createGenRefMapNonContainedAdapter();
+ }
+
+ @Override
+ public Adapter caseStringToEObject(Map.Entry<String, EObject> object)
+ {
+ return createStringToEObjectAdapter();
+ }
+
+ @Override
+ public Adapter caseISingleRefContainer(ISingleRefContainer object)
+ {
+ return createISingleRefContainerAdapter();
+ }
+
+ @Override
+ public Adapter caseISingleRefContainedElement(ISingleRefContainedElement object)
+ {
+ return createISingleRefContainedElementAdapter();
+ }
+
+ @Override
+ public Adapter caseISingleRefNonContainer(ISingleRefNonContainer object)
+ {
+ return createISingleRefNonContainerAdapter();
+ }
+
+ @Override
+ public Adapter caseISingleRefNonContainedElement(ISingleRefNonContainedElement object)
+ {
+ return createISingleRefNonContainedElementAdapter();
+ }
+
+ @Override
+ public Adapter caseIMultiRefNonContainer(IMultiRefNonContainer object)
+ {
+ return createIMultiRefNonContainerAdapter();
+ }
+
+ @Override
+ public Adapter caseIMultiRefNonContainedElement(IMultiRefNonContainedElement object)
+ {
+ return createIMultiRefNonContainedElementAdapter();
+ }
+
+ @Override
+ public Adapter caseIMultiRefContainer(IMultiRefContainer object)
+ {
+ return createIMultiRefContainerAdapter();
+ }
+
+ @Override
+ public Adapter caseIMultiRefContainedElement(IMultiRefContainedElement object)
+ {
+ return createIMultiRefContainedElementAdapter();
+ }
+
+ @Override
+ public Adapter caseISingleRefContainerNPL(ISingleRefContainerNPL object)
+ {
+ return createISingleRefContainerNPLAdapter();
+ }
+
+ @Override
+ public Adapter caseISingleRefNonContainerNPL(ISingleRefNonContainerNPL object)
+ {
+ return createISingleRefNonContainerNPLAdapter();
+ }
+
+ @Override
+ public Adapter caseIMultiRefContainerNPL(IMultiRefContainerNPL object)
+ {
+ return createIMultiRefContainerNPLAdapter();
+ }
+
+ @Override
+ public Adapter caseIMultiRefNonContainerNPL(IMultiRefNonContainerNPL object)
+ {
+ return createIMultiRefNonContainerNPLAdapter();
+ }
+
+ @Override
+ public Adapter caseIContainedElementNoParentLink(IContainedElementNoParentLink object)
+ {
+ return createIContainedElementNoParentLinkAdapter();
+ }
+
+ @Override
+ public Adapter caseINamedElement(INamedElement object)
+ {
+ return createINamedElementAdapter();
+ }
+
+ @Override
+ public Adapter defaultCase(EObject object)
+ {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param target
+ * the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target)
+ {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.RefSingleContained
+ * <em>Ref Single Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.RefSingleContained
+ * @generated
+ */
+ public Adapter createRefSingleContainedAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement
+ * <em>Single Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we
+ * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.SingleContainedElement
+ * @generated
+ */
+ public Adapter createSingleContainedElementAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContained
+ * <em>Ref Single Non Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we
+ * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.RefSingleNonContained
+ * @generated
+ */
+ public Adapter createRefSingleNonContainedAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement
+ * <em>Single Non Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so that
+ * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement
+ * @generated
+ */
+ public Adapter createSingleNonContainedElementAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiContained
+ * <em>Ref Multi Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiContained
+ * @generated
+ */
+ public Adapter createRefMultiContainedAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement
+ * <em>Multi Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.MultiContainedElement
+ * @generated
+ */
+ public Adapter createMultiContainedElementAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContained
+ * <em>Ref Multi Non Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContained
+ * @generated
+ */
+ public Adapter createRefMultiNonContainedAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement
+ * <em>Multi Non Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we
+ * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement
+ * @generated
+ */
+ public Adapter createMultiNonContainedElementAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable <em>Ref Multi Non Contained Unsettable</em>}
+ * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful
+ * to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable
+ * @generated
+ */
+ public Adapter createRefMultiNonContainedUnsettableAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement
+ * <em>Multi Non Contained Unsettable Element</em>}'. <!-- begin-user-doc --> This default implementation returns null
+ * so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement
+ * @generated
+ */
+ public Adapter createMultiNonContainedUnsettableElementAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL
+ * <em>Ref Single Contained NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we
+ * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL
+ * @generated
+ */
+ public Adapter createRefSingleContainedNPLAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL
+ * <em>Ref Single Non Contained NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so that
+ * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL
+ * @generated
+ */
+ public Adapter createRefSingleNonContainedNPLAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL
+ * <em>Ref Multi Contained NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL
+ * @generated
+ */
+ public Adapter createRefMultiContainedNPLAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL
+ * <em>Ref Multi Non Contained NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we
+ * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL
+ * @generated
+ */
+ public Adapter createRefMultiNonContainedNPLAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite
+ * <em>Contained Element No Opposite</em>}'. <!-- begin-user-doc --> This default implementation returns null so that
+ * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite
+ * @generated
+ */
+ public Adapter createContainedElementNoOppositeAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.GenRefSingleContained
+ * <em>Gen Ref Single Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we
+ * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefSingleContained
+ * @generated
+ */
+ public Adapter createGenRefSingleContainedAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained
+ * <em>Gen Ref Single Non Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that
+ * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained
+ * @generated
+ */
+ public Adapter createGenRefSingleNonContainedAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiContained
+ * <em>Gen Ref Multi Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiContained
+ * @generated
+ */
+ public Adapter createGenRefMultiContainedAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained
+ * <em>Gen Ref Multi Non Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we
+ * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained
+ * @generated
+ */
+ public Adapter createGenRefMultiNonContainedAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer
+ * <em>Impl Single Ref Container</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we
+ * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer
+ * @generated
+ */
+ public Adapter createImplSingleRefContainerAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement <em>Impl Single Ref Contained Element</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement
+ * @generated
+ */
+ public Adapter createImplSingleRefContainedElementAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer
+ * <em>Impl Single Ref Non Container</em>}'. <!-- begin-user-doc --> This default implementation returns null so that
+ * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer
+ * @generated
+ */
+ public Adapter createImplSingleRefNonContainerAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement
+ * <em>Impl Single Ref Non Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null
+ * so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement
+ * @generated
+ */
+ public Adapter createImplSingleRefNonContainedElementAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer
+ * <em>Impl Multi Ref Non Container</em>}'. <!-- begin-user-doc --> This default implementation returns null so that
+ * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer
+ * @generated
+ */
+ public Adapter createImplMultiRefNonContainerAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement
+ * <em>Impl Multi Ref Non Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null
+ * so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement
+ * @generated
+ */
+ public Adapter createImplMultiRefNonContainedElementAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer
+ * <em>Impl Multi Ref Container</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we
+ * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer
+ * @generated
+ */
+ public Adapter createImplMultiRefContainerAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement
+ * <em>Impl Multi Ref Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so
+ * that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement
+ * @generated
+ */
+ public Adapter createImplMultiRefContainedElementAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL
+ * <em>Impl Single Ref Container NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so that
+ * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL
+ * @generated
+ */
+ public Adapter createImplSingleRefContainerNPLAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL
+ * <em>Impl Single Ref Non Container NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so
+ * that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL
+ * @generated
+ */
+ public Adapter createImplSingleRefNonContainerNPLAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL
+ * <em>Impl Multi Ref Container NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so that
+ * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL
+ * @generated
+ */
+ public Adapter createImplMultiRefContainerNPLAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL
+ * <em>Impl Multi Ref Non Container NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so
+ * that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL
+ * @generated
+ */
+ public Adapter createImplMultiRefNonContainerNPLAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL
+ * <em>Impl Contained Element NPL</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we
+ * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL
+ * @generated
+ */
+ public Adapter createImplContainedElementNPLAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained
+ * <em>Gen Ref Multi NU Non Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that
+ * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained
+ * @generated
+ */
+ public Adapter createGenRefMultiNUNonContainedAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained
+ * <em>Gen Ref Map Non Contained</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we
+ * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained
+ * @generated
+ */
+ public Adapter createGenRefMapNonContainedAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link java.util.Map.Entry <em>String To EObject</em>}'. <!--
+ * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see java.util.Map.Entry
+ * @generated
+ */
+ public Adapter createStringToEObjectAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer <em>ISingle Ref Container</em>}'. <!--
+ * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer
+ * @generated
+ */
+ public Adapter createISingleRefContainerAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement
+ * <em>ISingle Ref Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so that
+ * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement
+ * @generated
+ */
+ public Adapter createISingleRefContainedElementAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer <em>ISingle Ref Non Container</em>}'. <!--
+ * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer
+ * @generated
+ */
+ public Adapter createISingleRefNonContainerAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement
+ * <em>ISingle Ref Non Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so
+ * that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement
+ * @generated
+ */
+ public Adapter createISingleRefNonContainedElementAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer <em>IMulti Ref Non Container</em>}'. <!--
+ * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer
+ * @generated
+ */
+ public Adapter createIMultiRefNonContainerAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement
+ * <em>IMulti Ref Non Contained Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so
+ * that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement
+ * @generated
+ */
+ public Adapter createIMultiRefNonContainedElementAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer
+ * <em>IMulti Ref Container</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer
+ * @generated
+ */
+ public Adapter createIMultiRefContainerAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement <em>IMulti Ref Contained Element</em>}
+ * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful
+ * to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement
+ * @generated
+ */
+ public Adapter createIMultiRefContainedElementAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainerNPL <em>ISingle Ref Container NPL</em>}'. <!--
+ * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainerNPL
+ * @generated
+ */
+ public Adapter createISingleRefContainerNPLAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainerNPL <em>ISingle Ref Non Container NPL</em>}
+ * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful
+ * to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainerNPL
+ * @generated
+ */
+ public Adapter createISingleRefNonContainerNPLAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainerNPL <em>IMulti Ref Container NPL</em>}'. <!--
+ * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainerNPL
+ * @generated
+ */
+ public Adapter createIMultiRefContainerNPLAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainerNPL <em>IMulti Ref Non Container NPL</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainerNPL
+ * @generated
+ */
+ public Adapter createIMultiRefNonContainerNPLAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink
+ * <em>IContained Element No Parent Link</em>}'. <!-- begin-user-doc --> This default implementation returns null so
+ * that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink
+ * @generated
+ */
+ public Adapter createIContainedElementNoParentLinkAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model4interfaces.INamedElement
+ * <em>INamed Element</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model4interfaces.INamedElement
+ * @generated
+ */
+ public Adapter createINamedElementAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case. <!-- begin-user-doc --> This default implementation returns null. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter()
+ {
+ return null;
+ }
+
+} // model4AdapterFactory
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/util/model4Switch.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/util/model4Switch.java index a0d5a987cc..ec1d7900c4 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/util/model4Switch.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/util/model4Switch.java @@ -1,1254 +1,1254 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.util; - -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; -import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained; -import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer; -import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer; -import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4.MultiContainedElement; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement; -import org.eclipse.emf.cdo.tests.model4.RefMultiContained; -import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable; -import org.eclipse.emf.cdo.tests.model4.RefSingleContained; -import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained; -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL; -import org.eclipse.emf.cdo.tests.model4.SingleContainedElement; -import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement; -import org.eclipse.emf.cdo.tests.model4.model4Package; -import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer; -import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainerNPL; -import org.eclipse.emf.cdo.tests.model4interfaces.INamedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainerNPL; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer; -import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainerNPL; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; - -import java.util.List; -import java.util.Map; - -/** - * <!-- begin-user-doc --> The <b>Switch</b> for the model's inheritance hierarchy. It supports the call - * {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is - * returned, which is the result of the switch. <!-- end-user-doc --> - * - * @see org.eclipse.emf.cdo.tests.model4.model4Package - * @generated - */ -public class model4Switch<T> -{ - /** - * The cached model package <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected static model4Package modelPackage; - - /** - * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public model4Switch() - { - if (modelPackage == null) - { - modelPackage = model4Package.eINSTANCE; - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - public T doSwitch(EObject theEObject) - { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected T doSwitch(EClass theEClass, EObject theEObject) - { - if (theEClass.eContainer() == modelPackage) - { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else - { - List<EClass> eSuperTypes = theEClass.getESuperTypes(); - return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected T doSwitch(int classifierID, EObject theEObject) - { - switch (classifierID) - { - case model4Package.REF_SINGLE_CONTAINED: - { - RefSingleContained refSingleContained = (RefSingleContained)theEObject; - T result = caseRefSingleContained(refSingleContained); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.SINGLE_CONTAINED_ELEMENT: - { - SingleContainedElement singleContainedElement = (SingleContainedElement)theEObject; - T result = caseSingleContainedElement(singleContainedElement); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.REF_SINGLE_NON_CONTAINED: - { - RefSingleNonContained refSingleNonContained = (RefSingleNonContained)theEObject; - T result = caseRefSingleNonContained(refSingleNonContained); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.SINGLE_NON_CONTAINED_ELEMENT: - { - SingleNonContainedElement singleNonContainedElement = (SingleNonContainedElement)theEObject; - T result = caseSingleNonContainedElement(singleNonContainedElement); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.REF_MULTI_CONTAINED: - { - RefMultiContained refMultiContained = (RefMultiContained)theEObject; - T result = caseRefMultiContained(refMultiContained); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.MULTI_CONTAINED_ELEMENT: - { - MultiContainedElement multiContainedElement = (MultiContainedElement)theEObject; - T result = caseMultiContainedElement(multiContainedElement); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.REF_MULTI_NON_CONTAINED: - { - RefMultiNonContained refMultiNonContained = (RefMultiNonContained)theEObject; - T result = caseRefMultiNonContained(refMultiNonContained); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.MULTI_NON_CONTAINED_ELEMENT: - { - MultiNonContainedElement multiNonContainedElement = (MultiNonContainedElement)theEObject; - T result = caseMultiNonContainedElement(multiNonContainedElement); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE: - { - RefMultiNonContainedUnsettable refMultiNonContainedUnsettable = (RefMultiNonContainedUnsettable)theEObject; - T result = caseRefMultiNonContainedUnsettable(refMultiNonContainedUnsettable); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT: - { - MultiNonContainedUnsettableElement multiNonContainedUnsettableElement = (MultiNonContainedUnsettableElement)theEObject; - T result = caseMultiNonContainedUnsettableElement(multiNonContainedUnsettableElement); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.REF_SINGLE_CONTAINED_NPL: - { - RefSingleContainedNPL refSingleContainedNPL = (RefSingleContainedNPL)theEObject; - T result = caseRefSingleContainedNPL(refSingleContainedNPL); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.REF_SINGLE_NON_CONTAINED_NPL: - { - RefSingleNonContainedNPL refSingleNonContainedNPL = (RefSingleNonContainedNPL)theEObject; - T result = caseRefSingleNonContainedNPL(refSingleNonContainedNPL); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.REF_MULTI_CONTAINED_NPL: - { - RefMultiContainedNPL refMultiContainedNPL = (RefMultiContainedNPL)theEObject; - T result = caseRefMultiContainedNPL(refMultiContainedNPL); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.REF_MULTI_NON_CONTAINED_NPL: - { - RefMultiNonContainedNPL refMultiNonContainedNPL = (RefMultiNonContainedNPL)theEObject; - T result = caseRefMultiNonContainedNPL(refMultiNonContainedNPL); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.CONTAINED_ELEMENT_NO_OPPOSITE: - { - ContainedElementNoOpposite containedElementNoOpposite = (ContainedElementNoOpposite)theEObject; - T result = caseContainedElementNoOpposite(containedElementNoOpposite); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.GEN_REF_SINGLE_CONTAINED: - { - GenRefSingleContained genRefSingleContained = (GenRefSingleContained)theEObject; - T result = caseGenRefSingleContained(genRefSingleContained); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.GEN_REF_SINGLE_NON_CONTAINED: - { - GenRefSingleNonContained genRefSingleNonContained = (GenRefSingleNonContained)theEObject; - T result = caseGenRefSingleNonContained(genRefSingleNonContained); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.GEN_REF_MULTI_CONTAINED: - { - GenRefMultiContained genRefMultiContained = (GenRefMultiContained)theEObject; - T result = caseGenRefMultiContained(genRefMultiContained); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.GEN_REF_MULTI_NON_CONTAINED: - { - GenRefMultiNonContained genRefMultiNonContained = (GenRefMultiNonContained)theEObject; - T result = caseGenRefMultiNonContained(genRefMultiNonContained); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.IMPL_SINGLE_REF_CONTAINER: - { - ImplSingleRefContainer implSingleRefContainer = (ImplSingleRefContainer)theEObject; - T result = caseImplSingleRefContainer(implSingleRefContainer); - if (result == null) - result = caseISingleRefContainer(implSingleRefContainer); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT: - { - ImplSingleRefContainedElement implSingleRefContainedElement = (ImplSingleRefContainedElement)theEObject; - T result = caseImplSingleRefContainedElement(implSingleRefContainedElement); - if (result == null) - result = caseISingleRefContainedElement(implSingleRefContainedElement); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.IMPL_SINGLE_REF_NON_CONTAINER: - { - ImplSingleRefNonContainer implSingleRefNonContainer = (ImplSingleRefNonContainer)theEObject; - T result = caseImplSingleRefNonContainer(implSingleRefNonContainer); - if (result == null) - result = caseISingleRefNonContainer(implSingleRefNonContainer); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT: - { - ImplSingleRefNonContainedElement implSingleRefNonContainedElement = (ImplSingleRefNonContainedElement)theEObject; - T result = caseImplSingleRefNonContainedElement(implSingleRefNonContainedElement); - if (result == null) - result = caseISingleRefNonContainedElement(implSingleRefNonContainedElement); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.IMPL_MULTI_REF_NON_CONTAINER: - { - ImplMultiRefNonContainer implMultiRefNonContainer = (ImplMultiRefNonContainer)theEObject; - T result = caseImplMultiRefNonContainer(implMultiRefNonContainer); - if (result == null) - result = caseIMultiRefNonContainer(implMultiRefNonContainer); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT: - { - ImplMultiRefNonContainedElement implMultiRefNonContainedElement = (ImplMultiRefNonContainedElement)theEObject; - T result = caseImplMultiRefNonContainedElement(implMultiRefNonContainedElement); - if (result == null) - result = caseIMultiRefNonContainedElement(implMultiRefNonContainedElement); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.IMPL_MULTI_REF_CONTAINER: - { - ImplMultiRefContainer implMultiRefContainer = (ImplMultiRefContainer)theEObject; - T result = caseImplMultiRefContainer(implMultiRefContainer); - if (result == null) - result = caseIMultiRefContainer(implMultiRefContainer); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT: - { - ImplMultiRefContainedElement implMultiRefContainedElement = (ImplMultiRefContainedElement)theEObject; - T result = caseImplMultiRefContainedElement(implMultiRefContainedElement); - if (result == null) - result = caseIMultiRefContainedElement(implMultiRefContainedElement); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.IMPL_SINGLE_REF_CONTAINER_NPL: - { - ImplSingleRefContainerNPL implSingleRefContainerNPL = (ImplSingleRefContainerNPL)theEObject; - T result = caseImplSingleRefContainerNPL(implSingleRefContainerNPL); - if (result == null) - result = caseISingleRefContainerNPL(implSingleRefContainerNPL); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL: - { - ImplSingleRefNonContainerNPL implSingleRefNonContainerNPL = (ImplSingleRefNonContainerNPL)theEObject; - T result = caseImplSingleRefNonContainerNPL(implSingleRefNonContainerNPL); - if (result == null) - result = caseISingleRefNonContainerNPL(implSingleRefNonContainerNPL); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.IMPL_MULTI_REF_CONTAINER_NPL: - { - ImplMultiRefContainerNPL implMultiRefContainerNPL = (ImplMultiRefContainerNPL)theEObject; - T result = caseImplMultiRefContainerNPL(implMultiRefContainerNPL); - if (result == null) - result = caseIMultiRefContainerNPL(implMultiRefContainerNPL); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.IMPL_MULTI_REF_NON_CONTAINER_NPL: - { - ImplMultiRefNonContainerNPL implMultiRefNonContainerNPL = (ImplMultiRefNonContainerNPL)theEObject; - T result = caseImplMultiRefNonContainerNPL(implMultiRefNonContainerNPL); - if (result == null) - result = caseIMultiRefNonContainerNPL(implMultiRefNonContainerNPL); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.IMPL_CONTAINED_ELEMENT_NPL: - { - ImplContainedElementNPL implContainedElementNPL = (ImplContainedElementNPL)theEObject; - T result = caseImplContainedElementNPL(implContainedElementNPL); - if (result == null) - result = caseIContainedElementNoParentLink(implContainedElementNPL); - if (result == null) - result = caseINamedElement(implContainedElementNPL); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.GEN_REF_MULTI_NU_NON_CONTAINED: - { - GenRefMultiNUNonContained genRefMultiNUNonContained = (GenRefMultiNUNonContained)theEObject; - T result = caseGenRefMultiNUNonContained(genRefMultiNUNonContained); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.GEN_REF_MAP_NON_CONTAINED: - { - GenRefMapNonContained genRefMapNonContained = (GenRefMapNonContained)theEObject; - T result = caseGenRefMapNonContained(genRefMapNonContained); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case model4Package.STRING_TO_EOBJECT: - { - @SuppressWarnings("unchecked") - Map.Entry<String, EObject> stringToEObject = (Map.Entry<String, EObject>)theEObject; - T result = caseStringToEObject(stringToEObject); - if (result == null) - result = defaultCase(theEObject); - return result; - } - default: - return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Ref Single Contained</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Ref Single Contained</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRefSingleContained(RefSingleContained object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Single Contained Element</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Single Contained Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSingleContainedElement(SingleContainedElement object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Ref Single Non Contained</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Ref Single Non Contained</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRefSingleNonContained(RefSingleNonContained object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Single Non Contained Element</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Single Non Contained Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSingleNonContainedElement(SingleNonContainedElement object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Ref Multi Contained</em>'. <!-- begin-user-doc - * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Ref Multi Contained</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRefMultiContained(RefMultiContained object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Multi Contained Element</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Multi Contained Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseMultiContainedElement(MultiContainedElement object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Ref Multi Non Contained</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Ref Multi Non Contained</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRefMultiNonContained(RefMultiNonContained object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Multi Non Contained Element</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Multi Non Contained Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseMultiNonContainedElement(MultiNonContainedElement object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Ref Multi Non Contained Unsettable</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Ref Multi Non Contained Unsettable</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRefMultiNonContainedUnsettable(RefMultiNonContainedUnsettable object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Multi Non Contained Unsettable Element</em>'. - * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Multi Non Contained Unsettable Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseMultiNonContainedUnsettableElement(MultiNonContainedUnsettableElement object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Ref Single Contained NPL</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Ref Single Contained NPL</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRefSingleContainedNPL(RefSingleContainedNPL object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Ref Single Non Contained NPL</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Ref Single Non Contained NPL</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRefSingleNonContainedNPL(RefSingleNonContainedNPL object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Ref Multi Contained NPL</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Ref Multi Contained NPL</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRefMultiContainedNPL(RefMultiContainedNPL object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Ref Multi Non Contained NPL</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Ref Multi Non Contained NPL</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRefMultiNonContainedNPL(RefMultiNonContainedNPL object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Contained Element No Opposite</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Contained Element No Opposite</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseContainedElementNoOpposite(ContainedElementNoOpposite object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Gen Ref Single Contained</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Gen Ref Single Contained</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseGenRefSingleContained(GenRefSingleContained object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Gen Ref Single Non Contained</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Gen Ref Single Non Contained</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseGenRefSingleNonContained(GenRefSingleNonContained object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Gen Ref Multi Contained</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Gen Ref Multi Contained</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseGenRefMultiContained(GenRefMultiContained object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Gen Ref Multi Non Contained</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Gen Ref Multi Non Contained</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseGenRefMultiNonContained(GenRefMultiNonContained object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Impl Single Ref Container</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Impl Single Ref Container</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseImplSingleRefContainer(ImplSingleRefContainer object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Impl Single Ref Contained Element</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Impl Single Ref Contained Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseImplSingleRefContainedElement(ImplSingleRefContainedElement object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Impl Single Ref Non Container</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Impl Single Ref Non Container</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseImplSingleRefNonContainer(ImplSingleRefNonContainer object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Impl Single Ref Non Contained Element</em>'. - * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Impl Single Ref Non Contained Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseImplSingleRefNonContainedElement(ImplSingleRefNonContainedElement object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Impl Multi Ref Non Container</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Impl Multi Ref Non Container</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseImplMultiRefNonContainer(ImplMultiRefNonContainer object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Impl Multi Ref Non Contained Element</em>'. - * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Impl Multi Ref Non Contained Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseImplMultiRefNonContainedElement(ImplMultiRefNonContainedElement object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Impl Multi Ref Container</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Impl Multi Ref Container</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseImplMultiRefContainer(ImplMultiRefContainer object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Impl Multi Ref Contained Element</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Impl Multi Ref Contained Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseImplMultiRefContainedElement(ImplMultiRefContainedElement object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Impl Single Ref Container NPL</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Impl Single Ref Container NPL</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseImplSingleRefContainerNPL(ImplSingleRefContainerNPL object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Impl Single Ref Non Container NPL</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Impl Single Ref Non Container NPL</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseImplSingleRefNonContainerNPL(ImplSingleRefNonContainerNPL object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Impl Multi Ref Container NPL</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Impl Multi Ref Container NPL</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseImplMultiRefContainerNPL(ImplMultiRefContainerNPL object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Impl Multi Ref Non Container NPL</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Impl Multi Ref Non Container NPL</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseImplMultiRefNonContainerNPL(ImplMultiRefNonContainerNPL object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Impl Contained Element NPL</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Impl Contained Element NPL</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseImplContainedElementNPL(ImplContainedElementNPL object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Gen Ref Multi NU Non Contained</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Gen Ref Multi NU Non Contained</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseGenRefMultiNUNonContained(GenRefMultiNUNonContained object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Gen Ref Map Non Contained</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Gen Ref Map Non Contained</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseGenRefMapNonContained(GenRefMapNonContained object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>String To EObject</em>'. <!-- begin-user-doc - * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>String To EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseStringToEObject(Map.Entry<String, EObject> object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>ISingle Ref Container</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>ISingle Ref Container</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseISingleRefContainer(ISingleRefContainer object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>ISingle Ref Contained Element</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>ISingle Ref Contained Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseISingleRefContainedElement(ISingleRefContainedElement object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>ISingle Ref Non Container</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>ISingle Ref Non Container</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseISingleRefNonContainer(ISingleRefNonContainer object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>ISingle Ref Non Contained Element</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>ISingle Ref Non Contained Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseISingleRefNonContainedElement(ISingleRefNonContainedElement object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>IMulti Ref Non Container</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>IMulti Ref Non Container</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIMultiRefNonContainer(IMultiRefNonContainer object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>IMulti Ref Non Contained Element</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>IMulti Ref Non Contained Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIMultiRefNonContainedElement(IMultiRefNonContainedElement object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>IMulti Ref Container</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>IMulti Ref Container</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIMultiRefContainer(IMultiRefContainer object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>IMulti Ref Contained Element</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>IMulti Ref Contained Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIMultiRefContainedElement(IMultiRefContainedElement object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>ISingle Ref Container NPL</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>ISingle Ref Container NPL</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseISingleRefContainerNPL(ISingleRefContainerNPL object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>ISingle Ref Non Container NPL</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>ISingle Ref Non Container NPL</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseISingleRefNonContainerNPL(ISingleRefNonContainerNPL object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>IMulti Ref Container NPL</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>IMulti Ref Container NPL</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIMultiRefContainerNPL(IMultiRefContainerNPL object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>IMulti Ref Non Container NPL</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>IMulti Ref Non Container NPL</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIMultiRefNonContainerNPL(IMultiRefNonContainerNPL object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>IContained Element No Parent Link</em>'. <!-- - * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- - * end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>IContained Element No Parent Link</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIContainedElementNoParentLink(IContainedElementNoParentLink object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>INamed Element</em>'. <!-- begin-user-doc --> - * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>INamed Element</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseINamedElement(INamedElement object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!-- begin-user-doc --> This - * implementation returns null; returning a non-null result will terminate the switch, but this is the last case - * anyway. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public T defaultCase(EObject object) - { - return null; - } - -} // model4Switch +/*
+ * 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.model4.util;
+
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+import org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4.MultiContainedElement;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedUnsettableElement;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContained;
+import org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedUnsettable;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContained;
+import org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained;
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL;
+import org.eclipse.emf.cdo.tests.model4.SingleContainedElement;
+import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4.model4Package;
+import org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainerNPL;
+import org.eclipse.emf.cdo.tests.model4interfaces.INamedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainerNPL;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer;
+import org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainerNPL;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * <!-- begin-user-doc --> The <b>Switch</b> for the model's inheritance hierarchy. It supports the call
+ * {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is
+ * returned, which is the result of the switch. <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model4.model4Package
+ * @generated
+ */
+public class model4Switch<T>
+{
+ /**
+ * The cached model package <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected static model4Package modelPackage;
+
+ /**
+ * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public model4Switch()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = model4Package.eINSTANCE;
+ }
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ public T doSwitch(EObject theEObject)
+ {
+ return doSwitch(theEObject.eClass(), theEObject);
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ protected T doSwitch(EClass theEClass, EObject theEObject)
+ {
+ if (theEClass.eContainer() == modelPackage)
+ {
+ return doSwitch(theEClass.getClassifierID(), theEObject);
+ }
+ else
+ {
+ List<EClass> eSuperTypes = theEClass.getESuperTypes();
+ return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject);
+ }
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ protected T doSwitch(int classifierID, EObject theEObject)
+ {
+ switch (classifierID)
+ {
+ case model4Package.REF_SINGLE_CONTAINED:
+ {
+ RefSingleContained refSingleContained = (RefSingleContained)theEObject;
+ T result = caseRefSingleContained(refSingleContained);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.SINGLE_CONTAINED_ELEMENT:
+ {
+ SingleContainedElement singleContainedElement = (SingleContainedElement)theEObject;
+ T result = caseSingleContainedElement(singleContainedElement);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.REF_SINGLE_NON_CONTAINED:
+ {
+ RefSingleNonContained refSingleNonContained = (RefSingleNonContained)theEObject;
+ T result = caseRefSingleNonContained(refSingleNonContained);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.SINGLE_NON_CONTAINED_ELEMENT:
+ {
+ SingleNonContainedElement singleNonContainedElement = (SingleNonContainedElement)theEObject;
+ T result = caseSingleNonContainedElement(singleNonContainedElement);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.REF_MULTI_CONTAINED:
+ {
+ RefMultiContained refMultiContained = (RefMultiContained)theEObject;
+ T result = caseRefMultiContained(refMultiContained);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.MULTI_CONTAINED_ELEMENT:
+ {
+ MultiContainedElement multiContainedElement = (MultiContainedElement)theEObject;
+ T result = caseMultiContainedElement(multiContainedElement);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.REF_MULTI_NON_CONTAINED:
+ {
+ RefMultiNonContained refMultiNonContained = (RefMultiNonContained)theEObject;
+ T result = caseRefMultiNonContained(refMultiNonContained);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.MULTI_NON_CONTAINED_ELEMENT:
+ {
+ MultiNonContainedElement multiNonContainedElement = (MultiNonContainedElement)theEObject;
+ T result = caseMultiNonContainedElement(multiNonContainedElement);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.REF_MULTI_NON_CONTAINED_UNSETTABLE:
+ {
+ RefMultiNonContainedUnsettable refMultiNonContainedUnsettable = (RefMultiNonContainedUnsettable)theEObject;
+ T result = caseRefMultiNonContainedUnsettable(refMultiNonContainedUnsettable);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.MULTI_NON_CONTAINED_UNSETTABLE_ELEMENT:
+ {
+ MultiNonContainedUnsettableElement multiNonContainedUnsettableElement = (MultiNonContainedUnsettableElement)theEObject;
+ T result = caseMultiNonContainedUnsettableElement(multiNonContainedUnsettableElement);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.REF_SINGLE_CONTAINED_NPL:
+ {
+ RefSingleContainedNPL refSingleContainedNPL = (RefSingleContainedNPL)theEObject;
+ T result = caseRefSingleContainedNPL(refSingleContainedNPL);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.REF_SINGLE_NON_CONTAINED_NPL:
+ {
+ RefSingleNonContainedNPL refSingleNonContainedNPL = (RefSingleNonContainedNPL)theEObject;
+ T result = caseRefSingleNonContainedNPL(refSingleNonContainedNPL);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.REF_MULTI_CONTAINED_NPL:
+ {
+ RefMultiContainedNPL refMultiContainedNPL = (RefMultiContainedNPL)theEObject;
+ T result = caseRefMultiContainedNPL(refMultiContainedNPL);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.REF_MULTI_NON_CONTAINED_NPL:
+ {
+ RefMultiNonContainedNPL refMultiNonContainedNPL = (RefMultiNonContainedNPL)theEObject;
+ T result = caseRefMultiNonContainedNPL(refMultiNonContainedNPL);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.CONTAINED_ELEMENT_NO_OPPOSITE:
+ {
+ ContainedElementNoOpposite containedElementNoOpposite = (ContainedElementNoOpposite)theEObject;
+ T result = caseContainedElementNoOpposite(containedElementNoOpposite);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.GEN_REF_SINGLE_CONTAINED:
+ {
+ GenRefSingleContained genRefSingleContained = (GenRefSingleContained)theEObject;
+ T result = caseGenRefSingleContained(genRefSingleContained);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.GEN_REF_SINGLE_NON_CONTAINED:
+ {
+ GenRefSingleNonContained genRefSingleNonContained = (GenRefSingleNonContained)theEObject;
+ T result = caseGenRefSingleNonContained(genRefSingleNonContained);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.GEN_REF_MULTI_CONTAINED:
+ {
+ GenRefMultiContained genRefMultiContained = (GenRefMultiContained)theEObject;
+ T result = caseGenRefMultiContained(genRefMultiContained);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.GEN_REF_MULTI_NON_CONTAINED:
+ {
+ GenRefMultiNonContained genRefMultiNonContained = (GenRefMultiNonContained)theEObject;
+ T result = caseGenRefMultiNonContained(genRefMultiNonContained);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.IMPL_SINGLE_REF_CONTAINER:
+ {
+ ImplSingleRefContainer implSingleRefContainer = (ImplSingleRefContainer)theEObject;
+ T result = caseImplSingleRefContainer(implSingleRefContainer);
+ if (result == null)
+ result = caseISingleRefContainer(implSingleRefContainer);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.IMPL_SINGLE_REF_CONTAINED_ELEMENT:
+ {
+ ImplSingleRefContainedElement implSingleRefContainedElement = (ImplSingleRefContainedElement)theEObject;
+ T result = caseImplSingleRefContainedElement(implSingleRefContainedElement);
+ if (result == null)
+ result = caseISingleRefContainedElement(implSingleRefContainedElement);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINER:
+ {
+ ImplSingleRefNonContainer implSingleRefNonContainer = (ImplSingleRefNonContainer)theEObject;
+ T result = caseImplSingleRefNonContainer(implSingleRefNonContainer);
+ if (result == null)
+ result = caseISingleRefNonContainer(implSingleRefNonContainer);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINED_ELEMENT:
+ {
+ ImplSingleRefNonContainedElement implSingleRefNonContainedElement = (ImplSingleRefNonContainedElement)theEObject;
+ T result = caseImplSingleRefNonContainedElement(implSingleRefNonContainedElement);
+ if (result == null)
+ result = caseISingleRefNonContainedElement(implSingleRefNonContainedElement);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINER:
+ {
+ ImplMultiRefNonContainer implMultiRefNonContainer = (ImplMultiRefNonContainer)theEObject;
+ T result = caseImplMultiRefNonContainer(implMultiRefNonContainer);
+ if (result == null)
+ result = caseIMultiRefNonContainer(implMultiRefNonContainer);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINED_ELEMENT:
+ {
+ ImplMultiRefNonContainedElement implMultiRefNonContainedElement = (ImplMultiRefNonContainedElement)theEObject;
+ T result = caseImplMultiRefNonContainedElement(implMultiRefNonContainedElement);
+ if (result == null)
+ result = caseIMultiRefNonContainedElement(implMultiRefNonContainedElement);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.IMPL_MULTI_REF_CONTAINER:
+ {
+ ImplMultiRefContainer implMultiRefContainer = (ImplMultiRefContainer)theEObject;
+ T result = caseImplMultiRefContainer(implMultiRefContainer);
+ if (result == null)
+ result = caseIMultiRefContainer(implMultiRefContainer);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.IMPL_MULTI_REF_CONTAINED_ELEMENT:
+ {
+ ImplMultiRefContainedElement implMultiRefContainedElement = (ImplMultiRefContainedElement)theEObject;
+ T result = caseImplMultiRefContainedElement(implMultiRefContainedElement);
+ if (result == null)
+ result = caseIMultiRefContainedElement(implMultiRefContainedElement);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.IMPL_SINGLE_REF_CONTAINER_NPL:
+ {
+ ImplSingleRefContainerNPL implSingleRefContainerNPL = (ImplSingleRefContainerNPL)theEObject;
+ T result = caseImplSingleRefContainerNPL(implSingleRefContainerNPL);
+ if (result == null)
+ result = caseISingleRefContainerNPL(implSingleRefContainerNPL);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.IMPL_SINGLE_REF_NON_CONTAINER_NPL:
+ {
+ ImplSingleRefNonContainerNPL implSingleRefNonContainerNPL = (ImplSingleRefNonContainerNPL)theEObject;
+ T result = caseImplSingleRefNonContainerNPL(implSingleRefNonContainerNPL);
+ if (result == null)
+ result = caseISingleRefNonContainerNPL(implSingleRefNonContainerNPL);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.IMPL_MULTI_REF_CONTAINER_NPL:
+ {
+ ImplMultiRefContainerNPL implMultiRefContainerNPL = (ImplMultiRefContainerNPL)theEObject;
+ T result = caseImplMultiRefContainerNPL(implMultiRefContainerNPL);
+ if (result == null)
+ result = caseIMultiRefContainerNPL(implMultiRefContainerNPL);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.IMPL_MULTI_REF_NON_CONTAINER_NPL:
+ {
+ ImplMultiRefNonContainerNPL implMultiRefNonContainerNPL = (ImplMultiRefNonContainerNPL)theEObject;
+ T result = caseImplMultiRefNonContainerNPL(implMultiRefNonContainerNPL);
+ if (result == null)
+ result = caseIMultiRefNonContainerNPL(implMultiRefNonContainerNPL);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.IMPL_CONTAINED_ELEMENT_NPL:
+ {
+ ImplContainedElementNPL implContainedElementNPL = (ImplContainedElementNPL)theEObject;
+ T result = caseImplContainedElementNPL(implContainedElementNPL);
+ if (result == null)
+ result = caseIContainedElementNoParentLink(implContainedElementNPL);
+ if (result == null)
+ result = caseINamedElement(implContainedElementNPL);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.GEN_REF_MULTI_NU_NON_CONTAINED:
+ {
+ GenRefMultiNUNonContained genRefMultiNUNonContained = (GenRefMultiNUNonContained)theEObject;
+ T result = caseGenRefMultiNUNonContained(genRefMultiNUNonContained);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.GEN_REF_MAP_NON_CONTAINED:
+ {
+ GenRefMapNonContained genRefMapNonContained = (GenRefMapNonContained)theEObject;
+ T result = caseGenRefMapNonContained(genRefMapNonContained);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case model4Package.STRING_TO_EOBJECT:
+ {
+ @SuppressWarnings("unchecked")
+ Map.Entry<String, EObject> stringToEObject = (Map.Entry<String, EObject>)theEObject;
+ T result = caseStringToEObject(stringToEObject);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Ref Single Contained</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Ref Single Contained</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRefSingleContained(RefSingleContained object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Single Contained Element</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Single Contained Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSingleContainedElement(SingleContainedElement object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Ref Single Non Contained</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Ref Single Non Contained</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRefSingleNonContained(RefSingleNonContained object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Single Non Contained Element</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Single Non Contained Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSingleNonContainedElement(SingleNonContainedElement object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Ref Multi Contained</em>'. <!-- begin-user-doc
+ * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Ref Multi Contained</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRefMultiContained(RefMultiContained object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Multi Contained Element</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Multi Contained Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMultiContainedElement(MultiContainedElement object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Ref Multi Non Contained</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Ref Multi Non Contained</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRefMultiNonContained(RefMultiNonContained object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Multi Non Contained Element</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Multi Non Contained Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMultiNonContainedElement(MultiNonContainedElement object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Ref Multi Non Contained Unsettable</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Ref Multi Non Contained Unsettable</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRefMultiNonContainedUnsettable(RefMultiNonContainedUnsettable object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Multi Non Contained Unsettable Element</em>'.
+ * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Multi Non Contained Unsettable Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMultiNonContainedUnsettableElement(MultiNonContainedUnsettableElement object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Ref Single Contained NPL</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Ref Single Contained NPL</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRefSingleContainedNPL(RefSingleContainedNPL object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Ref Single Non Contained NPL</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Ref Single Non Contained NPL</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRefSingleNonContainedNPL(RefSingleNonContainedNPL object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Ref Multi Contained NPL</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Ref Multi Contained NPL</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRefMultiContainedNPL(RefMultiContainedNPL object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Ref Multi Non Contained NPL</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Ref Multi Non Contained NPL</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRefMultiNonContainedNPL(RefMultiNonContainedNPL object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Contained Element No Opposite</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Contained Element No Opposite</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseContainedElementNoOpposite(ContainedElementNoOpposite object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Gen Ref Single Contained</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Gen Ref Single Contained</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGenRefSingleContained(GenRefSingleContained object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Gen Ref Single Non Contained</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Gen Ref Single Non Contained</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGenRefSingleNonContained(GenRefSingleNonContained object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Gen Ref Multi Contained</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Gen Ref Multi Contained</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGenRefMultiContained(GenRefMultiContained object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Gen Ref Multi Non Contained</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Gen Ref Multi Non Contained</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGenRefMultiNonContained(GenRefMultiNonContained object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Impl Single Ref Container</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Impl Single Ref Container</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseImplSingleRefContainer(ImplSingleRefContainer object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Impl Single Ref Contained Element</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Impl Single Ref Contained Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseImplSingleRefContainedElement(ImplSingleRefContainedElement object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Impl Single Ref Non Container</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Impl Single Ref Non Container</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseImplSingleRefNonContainer(ImplSingleRefNonContainer object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Impl Single Ref Non Contained Element</em>'.
+ * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Impl Single Ref Non Contained Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseImplSingleRefNonContainedElement(ImplSingleRefNonContainedElement object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Impl Multi Ref Non Container</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Impl Multi Ref Non Container</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseImplMultiRefNonContainer(ImplMultiRefNonContainer object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Impl Multi Ref Non Contained Element</em>'.
+ * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Impl Multi Ref Non Contained Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseImplMultiRefNonContainedElement(ImplMultiRefNonContainedElement object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Impl Multi Ref Container</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Impl Multi Ref Container</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseImplMultiRefContainer(ImplMultiRefContainer object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Impl Multi Ref Contained Element</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Impl Multi Ref Contained Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseImplMultiRefContainedElement(ImplMultiRefContainedElement object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Impl Single Ref Container NPL</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Impl Single Ref Container NPL</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseImplSingleRefContainerNPL(ImplSingleRefContainerNPL object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Impl Single Ref Non Container NPL</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Impl Single Ref Non Container NPL</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseImplSingleRefNonContainerNPL(ImplSingleRefNonContainerNPL object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Impl Multi Ref Container NPL</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Impl Multi Ref Container NPL</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseImplMultiRefContainerNPL(ImplMultiRefContainerNPL object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Impl Multi Ref Non Container NPL</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Impl Multi Ref Non Container NPL</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseImplMultiRefNonContainerNPL(ImplMultiRefNonContainerNPL object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Impl Contained Element NPL</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Impl Contained Element NPL</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseImplContainedElementNPL(ImplContainedElementNPL object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Gen Ref Multi NU Non Contained</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Gen Ref Multi NU Non Contained</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGenRefMultiNUNonContained(GenRefMultiNUNonContained object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Gen Ref Map Non Contained</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Gen Ref Map Non Contained</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGenRefMapNonContained(GenRefMapNonContained object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>String To EObject</em>'. <!-- begin-user-doc
+ * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>String To EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseStringToEObject(Map.Entry<String, EObject> object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>ISingle Ref Container</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>ISingle Ref Container</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseISingleRefContainer(ISingleRefContainer object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>ISingle Ref Contained Element</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>ISingle Ref Contained Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseISingleRefContainedElement(ISingleRefContainedElement object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>ISingle Ref Non Container</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>ISingle Ref Non Container</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseISingleRefNonContainer(ISingleRefNonContainer object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>ISingle Ref Non Contained Element</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>ISingle Ref Non Contained Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseISingleRefNonContainedElement(ISingleRefNonContainedElement object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>IMulti Ref Non Container</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>IMulti Ref Non Container</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIMultiRefNonContainer(IMultiRefNonContainer object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>IMulti Ref Non Contained Element</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>IMulti Ref Non Contained Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIMultiRefNonContainedElement(IMultiRefNonContainedElement object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>IMulti Ref Container</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>IMulti Ref Container</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIMultiRefContainer(IMultiRefContainer object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>IMulti Ref Contained Element</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>IMulti Ref Contained Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIMultiRefContainedElement(IMultiRefContainedElement object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>ISingle Ref Container NPL</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>ISingle Ref Container NPL</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseISingleRefContainerNPL(ISingleRefContainerNPL object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>ISingle Ref Non Container NPL</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>ISingle Ref Non Container NPL</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseISingleRefNonContainerNPL(ISingleRefNonContainerNPL object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>IMulti Ref Container NPL</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>IMulti Ref Container NPL</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIMultiRefContainerNPL(IMultiRefContainerNPL object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>IMulti Ref Non Container NPL</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>IMulti Ref Non Container NPL</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIMultiRefNonContainerNPL(IMultiRefNonContainerNPL object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>IContained Element No Parent Link</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>IContained Element No Parent Link</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIContainedElementNoParentLink(IContainedElementNoParentLink object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>INamed Element</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>INamed Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseINamedElement(INamedElement object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch, but this is the last case
+ * anyway. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ public T defaultCase(EObject object)
+ {
+ return null;
+ }
+
+} // model4Switch
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ContainedElementNoOppositeValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ContainedElementNoOppositeValidator.java index 2d7ae6257c..c435dd72ba 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ContainedElementNoOppositeValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ContainedElementNoOppositeValidator.java @@ -1,24 +1,24 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface ContainedElementNoOppositeValidator -{ - boolean validate(); - - boolean validateName(String value); -} +/*
+ * 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.model4.validation;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ContainedElementNoOppositeValidator
+{
+ boolean validate();
+
+ boolean validateName(String value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefMapNonContainedValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefMapNonContainedValidator.java index 3413a81dbc..cef634a931 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefMapNonContainedValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefMapNonContainedValidator.java @@ -1,27 +1,27 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.common.util.EMap; -import org.eclipse.emf.ecore.EObject; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained}. This doesn't really - * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator - * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs - * -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface GenRefMapNonContainedValidator -{ - boolean validate(); - - boolean validateElements(EMap<String, EObject> value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.common.util.EMap;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.GenRefMapNonContained}. This doesn't really
+ * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
+ * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
+ * -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface GenRefMapNonContainedValidator
+{
+ boolean validate();
+
+ boolean validateElements(EMap<String, EObject> value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefMultiContainedValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefMultiContainedValidator.java index 196369e743..8fd7ea94f2 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefMultiContainedValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefMultiContainedValidator.java @@ -1,27 +1,27 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.GenRefMultiContained}. This doesn't really - * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator - * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs - * -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface GenRefMultiContainedValidator -{ - boolean validate(); - - boolean validateElements(EList<EObject> value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.GenRefMultiContained}. This doesn't really
+ * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
+ * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
+ * -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface GenRefMultiContainedValidator
+{
+ boolean validate();
+
+ boolean validateElements(EList<EObject> value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefMultiNUNonContainedValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefMultiNUNonContainedValidator.java index 43b5335a13..af5fba1184 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefMultiNUNonContainedValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefMultiNUNonContainedValidator.java @@ -1,27 +1,27 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface GenRefMultiNUNonContainedValidator -{ - boolean validate(); - - boolean validateElements(EList<EObject> value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNUNonContained}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface GenRefMultiNUNonContainedValidator
+{
+ boolean validate();
+
+ boolean validateElements(EList<EObject> value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefMultiNonContainedValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefMultiNonContainedValidator.java index e651fb16f7..6729983de6 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefMultiNonContainedValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefMultiNonContainedValidator.java @@ -1,27 +1,27 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface GenRefMultiNonContainedValidator -{ - boolean validate(); - - boolean validateElements(EList<EObject> value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.GenRefMultiNonContained}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface GenRefMultiNonContainedValidator
+{
+ boolean validate();
+
+ boolean validateElements(EList<EObject> value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefSingleContainedValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefSingleContainedValidator.java index 40dd5921c2..e134f850d2 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefSingleContainedValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefSingleContainedValidator.java @@ -1,26 +1,26 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.ecore.EObject; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.GenRefSingleContained}. This doesn't really - * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator - * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs - * -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface GenRefSingleContainedValidator -{ - boolean validate(); - - boolean validateElement(EObject value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.GenRefSingleContained}. This doesn't really
+ * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
+ * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
+ * -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface GenRefSingleContainedValidator
+{
+ boolean validate();
+
+ boolean validateElement(EObject value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefSingleNonContainedValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefSingleNonContainedValidator.java index 56c85008d0..d7fb7587ed 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefSingleNonContainedValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/GenRefSingleNonContainedValidator.java @@ -1,26 +1,26 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.ecore.EObject; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface GenRefSingleNonContainedValidator -{ - boolean validate(); - - boolean validateElement(EObject value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.GenRefSingleNonContained}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface GenRefSingleNonContainedValidator
+{
+ boolean validate();
+
+ boolean validateElement(EObject value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplContainedElementNPLValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplContainedElementNPLValidator.java index 9d4a5a122f..c00ffb0920 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplContainedElementNPLValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplContainedElementNPLValidator.java @@ -1,23 +1,23 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface ImplContainedElementNPLValidator -{ - boolean validate(); - -} +/*
+ * 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.model4.validation;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplContainedElementNPL}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ImplContainedElementNPLValidator
+{
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefContainedElementValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefContainedElementValidator.java index d41c6f55de..160ec0ec0b 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefContainedElementValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefContainedElementValidator.java @@ -1,24 +1,24 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface ImplMultiRefContainedElementValidator -{ - boolean validate(); - - boolean validateName(String value); -} +/*
+ * 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.model4.validation;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainedElement}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ImplMultiRefContainedElementValidator
+{
+ boolean validate();
+
+ boolean validateName(String value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefContainerNPLValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefContainerNPLValidator.java index 48e9d8b250..8d2d39dbb4 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefContainerNPLValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefContainerNPLValidator.java @@ -1,23 +1,23 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface ImplMultiRefContainerNPLValidator -{ - boolean validate(); - -} +/*
+ * 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.model4.validation;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainerNPL}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ImplMultiRefContainerNPLValidator
+{
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefContainerValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefContainerValidator.java index f0a272a36a..6108a2c7d7 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefContainerValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefContainerValidator.java @@ -1,23 +1,23 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer}. This doesn't really - * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator - * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs - * -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface ImplMultiRefContainerValidator -{ - boolean validate(); - -} +/*
+ * 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.model4.validation;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefContainer}. This doesn't really
+ * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
+ * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
+ * -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ImplMultiRefContainerValidator
+{
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefNonContainedElementValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefNonContainedElementValidator.java index 93ae4abeab..8dddaedae8 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefNonContainedElementValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefNonContainedElementValidator.java @@ -1,24 +1,24 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement}. This - * doesn't really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface ImplMultiRefNonContainedElementValidator -{ - boolean validate(); - - boolean validateName(String value); -} +/*
+ * 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.model4.validation;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainedElement}. This
+ * doesn't really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ImplMultiRefNonContainedElementValidator
+{
+ boolean validate();
+
+ boolean validateName(String value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefNonContainerNPLValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefNonContainerNPLValidator.java index de88ac8f61..33508eed23 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefNonContainerNPLValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefNonContainerNPLValidator.java @@ -1,23 +1,23 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface ImplMultiRefNonContainerNPLValidator -{ - boolean validate(); - -} +/*
+ * 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.model4.validation;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainerNPL}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ImplMultiRefNonContainerNPLValidator
+{
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefNonContainerValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefNonContainerValidator.java index 04e18ddcb1..99e199f767 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefNonContainerValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplMultiRefNonContainerValidator.java @@ -1,23 +1,23 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface ImplMultiRefNonContainerValidator -{ - boolean validate(); - -} +/*
+ * 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.model4.validation;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplMultiRefNonContainer}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ImplMultiRefNonContainerValidator
+{
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefContainedElementValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefContainedElementValidator.java index 4a51db88d8..099f8ab830 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefContainedElementValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefContainedElementValidator.java @@ -1,24 +1,24 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface ImplSingleRefContainedElementValidator -{ - boolean validate(); - - boolean validateName(String value); -} +/*
+ * 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.model4.validation;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainedElement}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ImplSingleRefContainedElementValidator
+{
+ boolean validate();
+
+ boolean validateName(String value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefContainerNPLValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefContainerNPLValidator.java index 59d02075b9..7673d4f2fb 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefContainerNPLValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefContainerNPLValidator.java @@ -1,23 +1,23 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface ImplSingleRefContainerNPLValidator -{ - boolean validate(); - -} +/*
+ * 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.model4.validation;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainerNPL}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ImplSingleRefContainerNPLValidator
+{
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefContainerValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefContainerValidator.java index a84b92e142..c5f7d623f2 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefContainerValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefContainerValidator.java @@ -1,23 +1,23 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer}. This doesn't really - * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator - * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs - * -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface ImplSingleRefContainerValidator -{ - boolean validate(); - -} +/*
+ * 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.model4.validation;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefContainer}. This doesn't really
+ * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
+ * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
+ * -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ImplSingleRefContainerValidator
+{
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefNonContainedElementValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefNonContainedElementValidator.java index 35c7c31769..b7cf80d03f 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefNonContainedElementValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefNonContainedElementValidator.java @@ -1,24 +1,24 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement}. This - * doesn't really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface ImplSingleRefNonContainedElementValidator -{ - boolean validate(); - - boolean validateName(String value); -} +/*
+ * 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.model4.validation;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainedElement}. This
+ * doesn't really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ImplSingleRefNonContainedElementValidator
+{
+ boolean validate();
+
+ boolean validateName(String value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefNonContainerNPLValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefNonContainerNPLValidator.java index 07dd6728fe..7bfa484914 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefNonContainerNPLValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefNonContainerNPLValidator.java @@ -1,23 +1,23 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface ImplSingleRefNonContainerNPLValidator -{ - boolean validate(); - -} +/*
+ * 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.model4.validation;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainerNPL}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ImplSingleRefNonContainerNPLValidator
+{
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefNonContainerValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefNonContainerValidator.java index c8b5649e94..8a331d4ee0 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefNonContainerValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/ImplSingleRefNonContainerValidator.java @@ -1,23 +1,23 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface ImplSingleRefNonContainerValidator -{ - boolean validate(); - -} +/*
+ * 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.model4.validation;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.ImplSingleRefNonContainer}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ImplSingleRefNonContainerValidator
+{
+ boolean validate();
+
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/MultiContainedElementValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/MultiContainedElementValidator.java index 222f2bf03f..2d17569f1e 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/MultiContainedElementValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/MultiContainedElementValidator.java @@ -1,28 +1,28 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.cdo.tests.model4.RefMultiContained; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement}. This doesn't really - * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator - * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs - * -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface MultiContainedElementValidator -{ - boolean validate(); - - boolean validateName(String value); - - boolean validateParent(RefMultiContained value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.cdo.tests.model4.RefMultiContained;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.MultiContainedElement}. This doesn't really
+ * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
+ * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
+ * -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface MultiContainedElementValidator
+{
+ boolean validate();
+
+ boolean validateName(String value);
+
+ boolean validateParent(RefMultiContained value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/MultiNonContainedElementValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/MultiNonContainedElementValidator.java index 61c7000710..ffb79ffcbf 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/MultiNonContainedElementValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/MultiNonContainedElementValidator.java @@ -1,28 +1,28 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface MultiNonContainedElementValidator -{ - boolean validate(); - - boolean validateName(String value); - - boolean validateParent(RefMultiNonContained value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.cdo.tests.model4.RefMultiNonContained;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface MultiNonContainedElementValidator
+{
+ boolean validate();
+
+ boolean validateName(String value);
+
+ boolean validateParent(RefMultiNonContained value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefMultiContainedNPLValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefMultiContainedNPLValidator.java index d8277417dc..c23b07746d 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefMultiContainedNPLValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefMultiContainedNPLValidator.java @@ -1,28 +1,28 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; - -import org.eclipse.emf.common.util.EList; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL}. This doesn't really - * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator - * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs - * -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface RefMultiContainedNPLValidator -{ - boolean validate(); - - boolean validateElements(EList<ContainedElementNoOpposite> value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.RefMultiContainedNPL}. This doesn't really
+ * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
+ * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
+ * -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface RefMultiContainedNPLValidator
+{
+ boolean validate();
+
+ boolean validateElements(EList<ContainedElementNoOpposite> value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefMultiContainedValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefMultiContainedValidator.java index c8593f8dfb..935cccd000 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefMultiContainedValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefMultiContainedValidator.java @@ -1,28 +1,28 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.cdo.tests.model4.MultiContainedElement; - -import org.eclipse.emf.common.util.EList; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.RefMultiContained}. This doesn't really do - * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator - * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs - * -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface RefMultiContainedValidator -{ - boolean validate(); - - boolean validateElements(EList<MultiContainedElement> value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.cdo.tests.model4.MultiContainedElement;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.RefMultiContained}. This doesn't really do
+ * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
+ * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
+ * -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface RefMultiContainedValidator
+{
+ boolean validate();
+
+ boolean validateElements(EList<MultiContainedElement> value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefMultiNonContainedNPLValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefMultiNonContainedNPLValidator.java index 18bd6bc3a6..cc59f94fd0 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefMultiNonContainedNPLValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefMultiNonContainedNPLValidator.java @@ -1,28 +1,28 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; - -import org.eclipse.emf.common.util.EList; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface RefMultiNonContainedNPLValidator -{ - boolean validate(); - - boolean validateElements(EList<ContainedElementNoOpposite> value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContainedNPL}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface RefMultiNonContainedNPLValidator
+{
+ boolean validate();
+
+ boolean validateElements(EList<ContainedElementNoOpposite> value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefMultiNonContainedValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefMultiNonContainedValidator.java index 1f8f1eecba..a8c555f6b3 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefMultiNonContainedValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefMultiNonContainedValidator.java @@ -1,28 +1,28 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement; - -import org.eclipse.emf.common.util.EList; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContained}. This doesn't really - * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator - * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs - * -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface RefMultiNonContainedValidator -{ - boolean validate(); - - boolean validateElements(EList<MultiNonContainedElement> value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.cdo.tests.model4.MultiNonContainedElement;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.RefMultiNonContained}. This doesn't really
+ * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
+ * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
+ * -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface RefMultiNonContainedValidator
+{
+ boolean validate();
+
+ boolean validateElements(EList<MultiNonContainedElement> value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefSingleContainedNPLValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefSingleContainedNPLValidator.java index 108e745c94..ee4ba5f370 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefSingleContainedNPLValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefSingleContainedNPLValidator.java @@ -1,26 +1,26 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL}. This doesn't really - * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator - * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs - * -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface RefSingleContainedNPLValidator -{ - boolean validate(); - - boolean validateElement(ContainedElementNoOpposite value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.RefSingleContainedNPL}. This doesn't really
+ * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
+ * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
+ * -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface RefSingleContainedNPLValidator
+{
+ boolean validate();
+
+ boolean validateElement(ContainedElementNoOpposite value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefSingleContainedValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefSingleContainedValidator.java index cac343f742..1fc6d27a41 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefSingleContainedValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefSingleContainedValidator.java @@ -1,26 +1,26 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.cdo.tests.model4.SingleContainedElement; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.RefSingleContained}. This doesn't really do - * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator - * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs - * -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface RefSingleContainedValidator -{ - boolean validate(); - - boolean validateElement(SingleContainedElement value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.cdo.tests.model4.SingleContainedElement;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.RefSingleContained}. This doesn't really do
+ * anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
+ * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
+ * -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface RefSingleContainedValidator
+{
+ boolean validate();
+
+ boolean validateElement(SingleContainedElement value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefSingleNonContainedNPLValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefSingleNonContainedNPLValidator.java index 119eef8338..7293591f26 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefSingleNonContainedNPLValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefSingleNonContainedNPLValidator.java @@ -1,26 +1,26 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface RefSingleNonContainedNPLValidator -{ - boolean validate(); - - boolean validateElement(ContainedElementNoOpposite value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.cdo.tests.model4.ContainedElementNoOpposite;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContainedNPL}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface RefSingleNonContainedNPLValidator
+{
+ boolean validate();
+
+ boolean validateElement(ContainedElementNoOpposite value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefSingleNonContainedValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefSingleNonContainedValidator.java index da3261d6ce..16f7b36475 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefSingleNonContainedValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/RefSingleNonContainedValidator.java @@ -1,26 +1,26 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContained}. This doesn't really - * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator - * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs - * -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface RefSingleNonContainedValidator -{ - boolean validate(); - - boolean validateElement(SingleNonContainedElement value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.RefSingleNonContained}. This doesn't really
+ * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
+ * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
+ * -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface RefSingleNonContainedValidator
+{
+ boolean validate();
+
+ boolean validateElement(SingleNonContainedElement value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/SingleContainedElementValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/SingleContainedElementValidator.java index 67ae1486d7..871d0edce3 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/SingleContainedElementValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/SingleContainedElementValidator.java @@ -1,28 +1,28 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.cdo.tests.model4.RefSingleContained; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement}. This doesn't really - * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator - * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs - * -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface SingleContainedElementValidator -{ - boolean validate(); - - boolean validateName(String value); - - boolean validateParent(RefSingleContained value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.cdo.tests.model4.RefSingleContained;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.SingleContainedElement}. This doesn't really
+ * do anything, and it's not a real EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator
+ * plug-in to illustrate how EMF's code generator can be extended. This can be disabled with -vmargs
+ * -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface SingleContainedElementValidator
+{
+ boolean validate();
+
+ boolean validateName(String value);
+
+ boolean validateParent(RefSingleContained value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/SingleNonContainedElementValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/SingleNonContainedElementValidator.java index 33f93fb4c0..5b649282d0 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/SingleNonContainedElementValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/SingleNonContainedElementValidator.java @@ -1,28 +1,28 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained; - -/** - * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement}. This doesn't - * really do anything, and it's not a real EMF artifact. It was generated by the - * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can - * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface SingleNonContainedElementValidator -{ - boolean validate(); - - boolean validateName(String value); - - boolean validateParent(RefSingleNonContained value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.cdo.tests.model4.RefSingleNonContained;
+
+/**
+ * A sample validator interface for {@link org.eclipse.emf.cdo.tests.model4.SingleNonContainedElement}. This doesn't
+ * really do anything, and it's not a real EMF artifact. It was generated by the
+ * org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. This can
+ * be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface SingleNonContainedElementValidator
+{
+ boolean validate();
+
+ boolean validateName(String value);
+
+ boolean validateParent(RefSingleNonContained value);
+}
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/StringToEObjectValidator.java b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/StringToEObjectValidator.java index 3980f4e796..f765b7d358 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/StringToEObjectValidator.java +++ b/plugins/org.eclipse.emf.cdo.tests.model4/src/org/eclipse/emf/cdo/tests/model4/validation/StringToEObjectValidator.java @@ -1,28 +1,28 @@ -/* - * Copyright (c) 2004 - 2011 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.model4.validation; - -import org.eclipse.emf.ecore.EObject; - -/** - * A sample validator interface for {@link java.util.Map.Entry}. This doesn't really do anything, and it's not a real - * EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's - * code generator can be extended. This can be disabled with -vmargs - * -Dorg.eclipse.emf.examples.generator.validator=false. - */ -public interface StringToEObjectValidator -{ - boolean validate(); - - boolean validateTypedKey(String value); - - boolean validateTypedValue(EObject value); -} +/*
+ * 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.model4.validation;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * A sample validator interface for {@link java.util.Map.Entry}. This doesn't really do anything, and it's not a real
+ * EMF artifact. It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's
+ * code generator can be extended. This can be disabled with -vmargs
+ * -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface StringToEObjectValidator
+{
+ boolean validate();
+
+ boolean validateTypedKey(String value);
+
+ boolean validateTypedValue(EObject value);
+}
|