diff options
author | Eike Stepper | 2013-01-06 16:58:23 +0000 |
---|---|---|
committer | Eike Stepper | 2013-01-06 16:58:23 +0000 |
commit | f9106643cc014fb508decb834bd54608aa5f7d23 (patch) | |
tree | 049d2fd084bc0a7177563c7f43496fbed887f1a1 /plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy | |
parent | 9a5cf3316307ab19e9afd0697df2ce26a95d7702 (diff) | |
download | cdo-f9106643cc014fb508decb834bd54608aa5f7d23.tar.gz cdo-f9106643cc014fb508decb834bd54608aa5f7d23.tar.xz cdo-f9106643cc014fb508decb834bd54608aa5f7d23.zip |
model4interfaces
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy')
6 files changed, 2351 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/impl/model4interfacesFactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/impl/model4interfacesFactoryImpl.java new file mode 100644 index 0000000000..fbc2c34521 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/impl/model4interfacesFactoryImpl.java @@ -0,0 +1,96 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl; + +//import org.eclipse.emf.cdo.tests.model4interfaces.*; +import org.eclipse.emf.cdo.tests.model4interfaces.legacy.model4interfacesFactory; +import org.eclipse.emf.cdo.tests.model4interfaces.legacy.model4interfacesPackage; + +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; + +/** + * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc --> + * @generated + */ +public class model4interfacesFactoryImpl extends EFactoryImpl implements model4interfacesFactory +{ + /** + * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated NOT + */ + public static model4interfacesFactory init() + { + try + { + model4interfacesFactory themodel4interfacesFactory = (model4interfacesFactory)EPackage.Registry.INSTANCE + .getEFactory("http://www.eclipse.org/emf/CDO/tests/legacy/model4interfaces/1.0.0"); + if (themodel4interfacesFactory != null) + { + return themodel4interfacesFactory; + } + } + catch (Exception exception) + { + EcorePlugin.INSTANCE.log(exception); + } + return new model4interfacesFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public model4interfacesFactoryImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) + { + switch (eClass.getClassifierID()) + { + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public model4interfacesPackage getmodel4interfacesPackage() + { + return (model4interfacesPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static model4interfacesPackage getPackage() + { + return model4interfacesPackage.eINSTANCE; + } + +} // model4interfacesFactoryImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/impl/model4interfacesPackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/impl/model4interfacesPackageImpl.java new file mode 100644 index 0000000000..7853788e95 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/impl/model4interfacesPackageImpl.java @@ -0,0 +1,623 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl; + +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.cdo.tests.model4interfaces.legacy.model4interfacesFactory; +import org.eclipse.emf.cdo.tests.model4interfaces.legacy.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; + +/** + * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc --> + * @generated + */ +public class model4interfacesPackageImpl extends EPackageImpl implements model4interfacesPackage +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private EClass iSingleRefContainerEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private EClass iSingleRefContainedElementEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private EClass iSingleRefNonContainerEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private EClass iSingleRefNonContainedElementEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private EClass iMultiRefContainerEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private EClass iMultiRefContainedElementEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private EClass iMultiRefNonContainerEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private EClass iMultiRefNonContainedElementEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private EClass iNamedElementEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private EClass iContainedElementNoParentLinkEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private EClass iSingleRefContainerNPLEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private EClass iSingleRefNonContainerNPLEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private EClass iMultiRefContainerNPLEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + private EClass iMultiRefNonContainerNPLEClass = 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.model4interfaces.model4interfacesPackage#eNS_URI + * @see #init() + * @generated + */ + private model4interfacesPackageImpl() + { + super(eNS_URI, model4interfacesFactory.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 model4interfacesPackage#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 model4interfacesPackage init() + { + if (isInited) + return (model4interfacesPackage)EPackage.Registry.INSTANCE.getEPackage(model4interfacesPackage.eNS_URI); + + // Obtain or create and register package + model4interfacesPackageImpl themodel4interfacesPackage = (model4interfacesPackageImpl)(EPackage.Registry.INSTANCE + .get(eNS_URI) instanceof model4interfacesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) + : new model4interfacesPackageImpl()); + + isInited = true; + + // Create package meta-data objects + themodel4interfacesPackage.createPackageContents(); + + // Initialize created meta-data + themodel4interfacesPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + themodel4interfacesPackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(model4interfacesPackage.eNS_URI, themodel4interfacesPackage); + return themodel4interfacesPackage; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EClass getISingleRefContainer() + { + return iSingleRefContainerEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EReference getISingleRefContainer_Element() + { + return (EReference)iSingleRefContainerEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EClass getISingleRefContainedElement() + { + return iSingleRefContainedElementEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EReference getISingleRefContainedElement_Parent() + { + return (EReference)iSingleRefContainedElementEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EClass getISingleRefNonContainer() + { + return iSingleRefNonContainerEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EReference getISingleRefNonContainer_Element() + { + return (EReference)iSingleRefNonContainerEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EClass getISingleRefNonContainedElement() + { + return iSingleRefNonContainedElementEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EReference getISingleRefNonContainedElement_Parent() + { + return (EReference)iSingleRefNonContainedElementEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EClass getIMultiRefContainer() + { + return iMultiRefContainerEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EReference getIMultiRefContainer_Elements() + { + return (EReference)iMultiRefContainerEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EClass getIMultiRefContainedElement() + { + return iMultiRefContainedElementEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EReference getIMultiRefContainedElement_Parent() + { + return (EReference)iMultiRefContainedElementEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EClass getIMultiRefNonContainer() + { + return iMultiRefNonContainerEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EReference getIMultiRefNonContainer_Elements() + { + return (EReference)iMultiRefNonContainerEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EClass getIMultiRefNonContainedElement() + { + return iMultiRefNonContainedElementEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EReference getIMultiRefNonContainedElement_Parent() + { + return (EReference)iMultiRefNonContainedElementEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EClass getINamedElement() + { + return iNamedElementEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EAttribute getINamedElement_Name() + { + return (EAttribute)iNamedElementEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EClass getIContainedElementNoParentLink() + { + return iContainedElementNoParentLinkEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EClass getISingleRefContainerNPL() + { + return iSingleRefContainerNPLEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EReference getISingleRefContainerNPL_Element() + { + return (EReference)iSingleRefContainerNPLEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EClass getISingleRefNonContainerNPL() + { + return iSingleRefNonContainerNPLEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EReference getISingleRefNonContainerNPL_Element() + { + return (EReference)iSingleRefNonContainerNPLEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EClass getIMultiRefContainerNPL() + { + return iMultiRefContainerNPLEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EReference getIMultiRefContainerNPL_Elements() + { + return (EReference)iMultiRefContainerNPLEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EClass getIMultiRefNonContainerNPL() + { + return iMultiRefNonContainerNPLEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public EReference getIMultiRefNonContainerNPL_Elements() + { + return (EReference)iMultiRefNonContainerNPLEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + public model4interfacesFactory getmodel4interfacesFactory() + { + return (model4interfacesFactory)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 + iSingleRefContainerEClass = createEClass(ISINGLE_REF_CONTAINER); + createEReference(iSingleRefContainerEClass, ISINGLE_REF_CONTAINER__ELEMENT); + + iSingleRefContainedElementEClass = createEClass(ISINGLE_REF_CONTAINED_ELEMENT); + createEReference(iSingleRefContainedElementEClass, ISINGLE_REF_CONTAINED_ELEMENT__PARENT); + + iSingleRefNonContainerEClass = createEClass(ISINGLE_REF_NON_CONTAINER); + createEReference(iSingleRefNonContainerEClass, ISINGLE_REF_NON_CONTAINER__ELEMENT); + + iSingleRefNonContainedElementEClass = createEClass(ISINGLE_REF_NON_CONTAINED_ELEMENT); + createEReference(iSingleRefNonContainedElementEClass, ISINGLE_REF_NON_CONTAINED_ELEMENT__PARENT); + + iMultiRefContainerEClass = createEClass(IMULTI_REF_CONTAINER); + createEReference(iMultiRefContainerEClass, IMULTI_REF_CONTAINER__ELEMENTS); + + iMultiRefContainedElementEClass = createEClass(IMULTI_REF_CONTAINED_ELEMENT); + createEReference(iMultiRefContainedElementEClass, IMULTI_REF_CONTAINED_ELEMENT__PARENT); + + iMultiRefNonContainerEClass = createEClass(IMULTI_REF_NON_CONTAINER); + createEReference(iMultiRefNonContainerEClass, IMULTI_REF_NON_CONTAINER__ELEMENTS); + + iMultiRefNonContainedElementEClass = createEClass(IMULTI_REF_NON_CONTAINED_ELEMENT); + createEReference(iMultiRefNonContainedElementEClass, IMULTI_REF_NON_CONTAINED_ELEMENT__PARENT); + + iNamedElementEClass = createEClass(INAMED_ELEMENT); + createEAttribute(iNamedElementEClass, INAMED_ELEMENT__NAME); + + iContainedElementNoParentLinkEClass = createEClass(ICONTAINED_ELEMENT_NO_PARENT_LINK); + + iSingleRefContainerNPLEClass = createEClass(ISINGLE_REF_CONTAINER_NPL); + createEReference(iSingleRefContainerNPLEClass, ISINGLE_REF_CONTAINER_NPL__ELEMENT); + + iSingleRefNonContainerNPLEClass = createEClass(ISINGLE_REF_NON_CONTAINER_NPL); + createEReference(iSingleRefNonContainerNPLEClass, ISINGLE_REF_NON_CONTAINER_NPL__ELEMENT); + + iMultiRefContainerNPLEClass = createEClass(IMULTI_REF_CONTAINER_NPL); + createEReference(iMultiRefContainerNPLEClass, IMULTI_REF_CONTAINER_NPL__ELEMENTS); + + iMultiRefNonContainerNPLEClass = createEClass(IMULTI_REF_NON_CONTAINER_NPL); + createEReference(iMultiRefNonContainerNPLEClass, IMULTI_REF_NON_CONTAINER_NPL__ELEMENTS); + } + + /** + * <!-- 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); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + + // Initialize classes and features; add operations and parameters + initEClass(iSingleRefContainerEClass, ISingleRefContainer.class, "ISingleRefContainer", IS_ABSTRACT, IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getISingleRefContainer_Element(), this.getISingleRefContainedElement(), + this.getISingleRefContainedElement_Parent(), "element", null, 0, 1, ISingleRefContainer.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(iSingleRefContainedElementEClass, ISingleRefContainedElement.class, "ISingleRefContainedElement", + IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getISingleRefContainedElement_Parent(), this.getISingleRefContainer(), + this.getISingleRefContainer_Element(), "parent", null, 0, 1, ISingleRefContainedElement.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(iSingleRefNonContainerEClass, ISingleRefNonContainer.class, "ISingleRefNonContainer", IS_ABSTRACT, + IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getISingleRefNonContainer_Element(), this.getISingleRefNonContainedElement(), + this.getISingleRefNonContainedElement_Parent(), "element", null, 0, 1, ISingleRefNonContainer.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(iSingleRefNonContainedElementEClass, ISingleRefNonContainedElement.class, + "ISingleRefNonContainedElement", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getISingleRefNonContainedElement_Parent(), this.getISingleRefNonContainer(), + this.getISingleRefNonContainer_Element(), "parent", null, 0, 1, ISingleRefNonContainedElement.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(iMultiRefContainerEClass, IMultiRefContainer.class, "IMultiRefContainer", IS_ABSTRACT, IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getIMultiRefContainer_Elements(), this.getIMultiRefContainedElement(), + this.getIMultiRefContainedElement_Parent(), "elements", null, 0, -1, IMultiRefContainer.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(iMultiRefContainedElementEClass, IMultiRefContainedElement.class, "IMultiRefContainedElement", + IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getIMultiRefContainedElement_Parent(), this.getIMultiRefContainer(), + this.getIMultiRefContainer_Elements(), "parent", null, 0, 1, IMultiRefContainedElement.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(iMultiRefNonContainerEClass, IMultiRefNonContainer.class, "IMultiRefNonContainer", IS_ABSTRACT, + IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getIMultiRefNonContainer_Elements(), this.getIMultiRefNonContainedElement(), + this.getIMultiRefNonContainedElement_Parent(), "elements", null, 0, -1, IMultiRefNonContainer.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(iMultiRefNonContainedElementEClass, IMultiRefNonContainedElement.class, "IMultiRefNonContainedElement", + IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getIMultiRefNonContainedElement_Parent(), this.getIMultiRefNonContainer(), + this.getIMultiRefNonContainer_Elements(), "parent", null, 0, 1, IMultiRefNonContainedElement.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(iNamedElementEClass, INamedElement.class, "INamedElement", IS_ABSTRACT, IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getINamedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, INamedElement.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(iContainedElementNoParentLinkEClass, IContainedElementNoParentLink.class, + "IContainedElementNoParentLink", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(iSingleRefContainerNPLEClass, ISingleRefContainerNPL.class, "ISingleRefContainerNPL", IS_ABSTRACT, + IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getISingleRefContainerNPL_Element(), this.getIContainedElementNoParentLink(), null, "element", null, + 0, 1, ISingleRefContainerNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, + !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(iSingleRefNonContainerNPLEClass, ISingleRefNonContainerNPL.class, "ISingleRefNonContainerNPL", + IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getISingleRefNonContainerNPL_Element(), this.getIContainedElementNoParentLink(), null, "element", + null, 0, 1, ISingleRefNonContainerNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(iMultiRefContainerNPLEClass, IMultiRefContainerNPL.class, "IMultiRefContainerNPL", IS_ABSTRACT, + IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getIMultiRefContainerNPL_Elements(), this.getIContainedElementNoParentLink(), null, "elements", + null, 0, -1, IMultiRefContainerNPL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, + !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(iMultiRefNonContainerNPLEClass, IMultiRefNonContainerNPL.class, "IMultiRefNonContainerNPL", IS_ABSTRACT, + IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getIMultiRefNonContainerNPL_Elements(), this.getIContainedElementNoParentLink(), null, "elements", + null, 0, -1, IMultiRefNonContainerNPL.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); + } + +} // model4interfacesPackageImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/model4interfacesFactory.java b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/model4interfacesFactory.java new file mode 100644 index 0000000000..e59eb640e7 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/model4interfacesFactory.java @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model4interfaces.legacy; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. It provides a create method for each non-abstract class of the model. + * @extends org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesFactory + * <!-- end-user-doc --> + * + * @see org.eclipse.emf.cdo.tests.legacy.model4interfaces.model4interfacesPackage + * @generated NOT + */ +public interface model4interfacesFactory extends org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesFactory +{ + /** + * The singleton instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + model4interfacesFactory eINSTANCE = org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl.model4interfacesFactoryImpl + .init(); + + /** + * Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the package supported by this factory. + * @generated + */ + model4interfacesPackage getmodel4interfacesPackage(); + +} // model4interfacesFactory diff --git a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/model4interfacesPackage.java b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/model4interfacesPackage.java new file mode 100644 index 0000000000..463e8d93cd --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/model4interfacesPackage.java @@ -0,0 +1,697 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model4interfaces.legacy; + +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> + * @extends org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage + * <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.tests.model4interfaces.legacy.model4interfacesFactory + * @model kind="package" + * @generated + */ +public interface model4interfacesPackage extends EPackage, + org.eclipse.emf.cdo.tests.model4interfaces.model4interfacesPackage +{ + /** + * The package name. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + String eNAME = "model4interfaces"; + + /** + * The package namespace URI. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated NOT + */ + String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/legacy/model4interfaces/1.0.0"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "model4interfaces"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ + model4interfacesPackage eINSTANCE = org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl.model4interfacesPackageImpl + .init(); + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer <em>ISingle Ref Container</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer + * @see org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl.model4interfacesPackageImpl#getISingleRefContainer() + * @generated + */ + int ISINGLE_REF_CONTAINER = 0; + + /** + * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @generated + * @ordered + */ + int ISINGLE_REF_CONTAINER__ELEMENT = 0; + + /** + * The number of structural features of the '<em>ISingle Ref Container</em>' class. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @generated + * @ordered + */ + int ISINGLE_REF_CONTAINER_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement <em>ISingle Ref Contained Element</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement + * @see org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl.model4interfacesPackageImpl#getISingleRefContainedElement() + * @generated + */ + int ISINGLE_REF_CONTAINED_ELEMENT = 1; + + /** + * The feature id for the '<em><b>Parent</b></em>' container reference. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + * @ordered + */ + int ISINGLE_REF_CONTAINED_ELEMENT__PARENT = 0; + + /** + * The number of structural features of the '<em>ISingle Ref Contained Element</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ISINGLE_REF_CONTAINED_ELEMENT_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer <em>ISingle Ref Non Container</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer + * @see org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl.model4interfacesPackageImpl#getISingleRefNonContainer() + * @generated + */ + int ISINGLE_REF_NON_CONTAINER = 2; + + /** + * The feature id for the '<em><b>Element</b></em>' reference. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + * @ordered + */ + int ISINGLE_REF_NON_CONTAINER__ELEMENT = 0; + + /** + * The number of structural features of the '<em>ISingle Ref Non Container</em>' class. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @generated + * @ordered + */ + int ISINGLE_REF_NON_CONTAINER_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement <em>ISingle Ref Non Contained Element</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement + * @see org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl.model4interfacesPackageImpl#getISingleRefNonContainedElement() + * @generated + */ + int ISINGLE_REF_NON_CONTAINED_ELEMENT = 3; + + /** + * The feature id for the '<em><b>Parent</b></em>' reference. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + * @ordered + */ + int ISINGLE_REF_NON_CONTAINED_ELEMENT__PARENT = 0; + + /** + * The number of structural features of the '<em>ISingle Ref Non Contained Element</em>' class. + * <!-- begin-user-doc + * --> <!-- end-user-doc --> + * @generated + * @ordered + */ + int ISINGLE_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer <em>IMulti Ref Container</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer + * @see org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl.model4interfacesPackageImpl#getIMultiRefContainer() + * @generated + */ + int IMULTI_REF_CONTAINER = 4; + + /** + * The feature id for the '<em><b>Elements</b></em>' containment reference list. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @generated + * @ordered + */ + int IMULTI_REF_CONTAINER__ELEMENTS = 0; + + /** + * The number of structural features of the '<em>IMulti Ref Container</em>' class. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @generated + * @ordered + */ + int IMULTI_REF_CONTAINER_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement <em>IMulti Ref Contained Element</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement + * @see org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl.model4interfacesPackageImpl#getIMultiRefContainedElement() + * @generated + */ + int IMULTI_REF_CONTAINED_ELEMENT = 5; + + /** + * The feature id for the '<em><b>Parent</b></em>' container reference. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + * @ordered + */ + int IMULTI_REF_CONTAINED_ELEMENT__PARENT = 0; + + /** + * The number of structural features of the '<em>IMulti Ref Contained Element</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int IMULTI_REF_CONTAINED_ELEMENT_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer <em>IMulti Ref Non Container</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer + * @see org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl.model4interfacesPackageImpl#getIMultiRefNonContainer() + * @generated + */ + int IMULTI_REF_NON_CONTAINER = 6; + + /** + * The feature id for the '<em><b>Elements</b></em>' reference list. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + * @ordered + */ + int IMULTI_REF_NON_CONTAINER__ELEMENTS = 0; + + /** + * The number of structural features of the '<em>IMulti Ref Non Container</em>' class. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @generated + * @ordered + */ + int IMULTI_REF_NON_CONTAINER_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement <em>IMulti Ref Non Contained Element</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement + * @see org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl.model4interfacesPackageImpl#getIMultiRefNonContainedElement() + * @generated + */ + int IMULTI_REF_NON_CONTAINED_ELEMENT = 7; + + /** + * The feature id for the '<em><b>Parent</b></em>' reference. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + * @ordered + */ + int IMULTI_REF_NON_CONTAINED_ELEMENT__PARENT = 0; + + /** + * The number of structural features of the '<em>IMulti Ref Non Contained Element</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int IMULTI_REF_NON_CONTAINED_ELEMENT_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4interfaces.INamedElement <em>INamed Element</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.tests.model4interfaces.INamedElement + * @see org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl.model4interfacesPackageImpl#getINamedElement() + * @generated + */ + int INAMED_ELEMENT = 8; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + * @ordered + */ + int INAMED_ELEMENT__NAME = 0; + + /** + * The number of structural features of the '<em>INamed Element</em>' class. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @generated + * @ordered + */ + int INAMED_ELEMENT_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink <em>IContained Element No Parent Link</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink + * @see org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl.model4interfacesPackageImpl#getIContainedElementNoParentLink() + * @generated + */ + int ICONTAINED_ELEMENT_NO_PARENT_LINK = 9; + + /** + * The number of structural features of the '<em>IContained Element No Parent Link</em>' class. + * <!-- begin-user-doc + * --> <!-- end-user-doc --> + * @generated + * @ordered + */ + int ICONTAINED_ELEMENT_NO_PARENT_LINK_FEATURE_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainerNPL <em>ISingle Ref Container NPL</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainerNPL + * @see org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl.model4interfacesPackageImpl#getISingleRefContainerNPL() + * @generated + */ + int ISINGLE_REF_CONTAINER_NPL = 10; + + /** + * The feature id for the '<em><b>Element</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @generated + * @ordered + */ + int ISINGLE_REF_CONTAINER_NPL__ELEMENT = 0; + + /** + * The number of structural features of the '<em>ISingle Ref Container NPL</em>' class. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @generated + * @ordered + */ + int ISINGLE_REF_CONTAINER_NPL_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainerNPL <em>ISingle Ref Non Container NPL</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainerNPL + * @see org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl.model4interfacesPackageImpl#getISingleRefNonContainerNPL() + * @generated + */ + int ISINGLE_REF_NON_CONTAINER_NPL = 11; + + /** + * The feature id for the '<em><b>Element</b></em>' reference. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + * @ordered + */ + int ISINGLE_REF_NON_CONTAINER_NPL__ELEMENT = 0; + + /** + * The number of structural features of the '<em>ISingle Ref Non Container NPL</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ISINGLE_REF_NON_CONTAINER_NPL_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainerNPL <em>IMulti Ref Container NPL</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainerNPL + * @see org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl.model4interfacesPackageImpl#getIMultiRefContainerNPL() + * @generated + */ + int IMULTI_REF_CONTAINER_NPL = 12; + + /** + * The feature id for the '<em><b>Elements</b></em>' containment reference list. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @generated + * @ordered + */ + int IMULTI_REF_CONTAINER_NPL__ELEMENTS = 0; + + /** + * The number of structural features of the '<em>IMulti Ref Container NPL</em>' class. + * <!-- begin-user-doc --> <!-- + * end-user-doc --> + * @generated + * @ordered + */ + int IMULTI_REF_CONTAINER_NPL_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainerNPL <em>IMulti Ref Non Container NPL</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainerNPL + * @see org.eclipse.emf.cdo.tests.model4interfaces.legacy.impl.model4interfacesPackageImpl#getIMultiRefNonContainerNPL() + * @generated + */ + int IMULTI_REF_NON_CONTAINER_NPL = 13; + + /** + * The feature id for the '<em><b>Elements</b></em>' reference list. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + * @ordered + */ + int IMULTI_REF_NON_CONTAINER_NPL__ELEMENTS = 0; + + /** + * The number of structural features of the '<em>IMulti Ref Non Container NPL</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int IMULTI_REF_NON_CONTAINER_NPL_FEATURE_COUNT = 1; + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer <em>ISingle Ref Container</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @return the meta object for class '<em>ISingle Ref Container</em>'. + * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainer + * @generated + */ + EClass getISingleRefContainer(); + + /** + * Returns the meta object for the containment reference ' + * {@link org.eclipse.emf.cdo.tests.legacy.model4interfaces.ISingleRefContainer#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.model4interfaces.ISingleRefContainer#getElement() + * @see #getISingleRefContainer() + * @generated + */ + EReference getISingleRefContainer_Element(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement <em>ISingle Ref Contained Element</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @return the meta object for class '<em>ISingle Ref Contained Element</em>'. + * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement + * @generated + */ + EClass getISingleRefContainedElement(); + + /** + * Returns the meta object for the container reference '{@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainedElement#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.model4interfaces.ISingleRefContainedElement#getParent() + * @see #getISingleRefContainedElement() + * @generated + */ + EReference getISingleRefContainedElement_Parent(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer <em>ISingle Ref Non Container</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @return the meta object for class '<em>ISingle Ref Non Container</em>'. + * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainer + * @generated + */ + EClass getISingleRefNonContainer(); + + /** + * Returns the meta object for the reference ' + * {@link org.eclipse.emf.cdo.tests.legacy.model4interfaces.ISingleRefNonContainer#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.model4interfaces.ISingleRefNonContainer#getElement() + * @see #getISingleRefNonContainer() + * @generated + */ + EReference getISingleRefNonContainer_Element(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement <em>ISingle Ref Non Contained Element</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @return the meta object for class '<em>ISingle Ref Non Contained Element</em>'. + * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement + * @generated + */ + EClass getISingleRefNonContainedElement(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainedElement#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.model4interfaces.ISingleRefNonContainedElement#getParent() + * @see #getISingleRefNonContainedElement() + * @generated + */ + EReference getISingleRefNonContainedElement_Parent(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer <em>IMulti Ref Container</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @return the meta object for class '<em>IMulti Ref Container</em>'. + * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainer + * @generated + */ + EClass getIMultiRefContainer(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.emf.cdo.tests.legacy.model4interfaces.IMultiRefContainer#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.model4interfaces.IMultiRefContainer#getElements() + * @see #getIMultiRefContainer() + * @generated + */ + EReference getIMultiRefContainer_Elements(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement <em>IMulti Ref Contained Element</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @return the meta object for class '<em>IMulti Ref Contained Element</em>'. + * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement + * @generated + */ + EClass getIMultiRefContainedElement(); + + /** + * Returns the meta object for the container reference '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainedElement#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.model4interfaces.IMultiRefContainedElement#getParent() + * @see #getIMultiRefContainedElement() + * @generated + */ + EReference getIMultiRefContainedElement_Parent(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer <em>IMulti Ref Non Container</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @return the meta object for class '<em>IMulti Ref Non Container</em>'. + * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer + * @generated + */ + EClass getIMultiRefNonContainer(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainer#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.model4interfaces.IMultiRefNonContainer#getElements() + * @see #getIMultiRefNonContainer() + * @generated + */ + EReference getIMultiRefNonContainer_Elements(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement <em>IMulti Ref Non Contained Element</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @return the meta object for class '<em>IMulti Ref Non Contained Element</em>'. + * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement + * @generated + */ + EClass getIMultiRefNonContainedElement(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainedElement#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.model4interfaces.IMultiRefNonContainedElement#getParent() + * @see #getIMultiRefNonContainedElement() + * @generated + */ + EReference getIMultiRefNonContainedElement_Parent(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4interfaces.INamedElement <em>INamed Element</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @return the meta object for class '<em>INamed Element</em>'. + * @see org.eclipse.emf.cdo.tests.model4interfaces.INamedElement + * @generated + */ + EClass getINamedElement(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model4interfaces.INamedElement#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.model4interfaces.INamedElement#getName() + * @see #getINamedElement() + * @generated + */ + EAttribute getINamedElement_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink <em>IContained Element No Parent Link</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @return the meta object for class '<em>IContained Element No Parent Link</em>'. + * @see org.eclipse.emf.cdo.tests.model4interfaces.IContainedElementNoParentLink + * @generated + */ + EClass getIContainedElementNoParentLink(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainerNPL <em>ISingle Ref Container NPL</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @return the meta object for class '<em>ISingle Ref Container NPL</em>'. + * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefContainerNPL + * @generated + */ + EClass getISingleRefContainerNPL(); + + /** + * Returns the meta object for the containment reference ' + * {@link org.eclipse.emf.cdo.tests.legacy.model4interfaces.ISingleRefContainerNPL#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.model4interfaces.ISingleRefContainerNPL#getElement() + * @see #getISingleRefContainerNPL() + * @generated + */ + EReference getISingleRefContainerNPL_Element(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainerNPL <em>ISingle Ref Non Container NPL</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @return the meta object for class '<em>ISingle Ref Non Container NPL</em>'. + * @see org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainerNPL + * @generated + */ + EClass getISingleRefNonContainerNPL(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.model4interfaces.ISingleRefNonContainerNPL#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.model4interfaces.ISingleRefNonContainerNPL#getElement() + * @see #getISingleRefNonContainerNPL() + * @generated + */ + EReference getISingleRefNonContainerNPL_Element(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainerNPL <em>IMulti Ref Container NPL</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @return the meta object for class '<em>IMulti Ref Container NPL</em>'. + * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainerNPL + * @generated + */ + EClass getIMultiRefContainerNPL(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefContainerNPL#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.model4interfaces.IMultiRefContainerNPL#getElements() + * @see #getIMultiRefContainerNPL() + * @generated + */ + EReference getIMultiRefContainerNPL_Elements(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainerNPL <em>IMulti Ref Non Container NPL</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @return the meta object for class '<em>IMulti Ref Non Container NPL</em>'. + * @see org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainerNPL + * @generated + */ + EClass getIMultiRefNonContainerNPL(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.model4interfaces.IMultiRefNonContainerNPL#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.model4interfaces.IMultiRefNonContainerNPL#getElements() + * @see #getIMultiRefNonContainerNPL() + * @generated + */ + EReference getIMultiRefNonContainerNPL_Elements(); + + /** + * 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 + */ + model4interfacesFactory getmodel4interfacesFactory(); + +} // model4interfacesPackage diff --git a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/util/model4interfacesAdapterFactory.java b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/util/model4interfacesAdapterFactory.java new file mode 100644 index 0000000000..ecfcd09c1f --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/util/model4interfacesAdapterFactory.java @@ -0,0 +1,424 @@ +/** + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model4interfaces.legacy.util; + +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.cdo.tests.model4interfaces.legacy.model4interfacesPackage; + +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; + +/** + * <!-- 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.model4interfaces.legacy.model4interfacesPackage + * @generated + */ +public class model4interfacesAdapterFactory extends AdapterFactoryImpl +{ + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static model4interfacesPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public model4interfacesAdapterFactory() + { + if (modelPackage == null) + { + modelPackage = model4interfacesPackage.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 model4interfacesSwitch<Adapter> modelSwitch = new model4interfacesSwitch<Adapter>() + { + @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 caseIMultiRefContainer(IMultiRefContainer object) + { + return createIMultiRefContainerAdapter(); + } + + @Override + public Adapter caseIMultiRefContainedElement(IMultiRefContainedElement object) + { + return createIMultiRefContainedElementAdapter(); + } + + @Override + public Adapter caseIMultiRefNonContainer(IMultiRefNonContainer object) + { + return createIMultiRefNonContainerAdapter(); + } + + @Override + public Adapter caseIMultiRefNonContainedElement(IMultiRefNonContainedElement object) + { + return createIMultiRefNonContainedElementAdapter(); + } + + @Override + public Adapter caseINamedElement(INamedElement object) + { + return createINamedElementAdapter(); + } + + @Override + public Adapter caseIContainedElementNoParentLink(IContainedElementNoParentLink object) + { + return createIContainedElementNoParentLinkAdapter(); + } + + @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 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.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.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.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.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 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.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 the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() + { + return null; + } + +} //model4interfacesAdapterFactory diff --git a/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/util/model4interfacesSwitch.java b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/util/model4interfacesSwitch.java new file mode 100644 index 0000000000..513adc3258 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model4interfaces/src/org/eclipse/emf/cdo/tests/model4interfaces/legacy/util/model4interfacesSwitch.java @@ -0,0 +1,471 @@ +/** + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.model4interfaces.legacy.util; + +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.cdo.tests.model4interfaces.legacy.model4interfacesPackage; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import java.util.List; + +/** + * <!-- 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.model4interfaces.legacy.model4interfacesPackage + * @generated + */ +public class model4interfacesSwitch<T> +{ + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static model4interfacesPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public model4interfacesSwitch() + { + if (modelPackage == null) + { + modelPackage = model4interfacesPackage.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 model4interfacesPackage.ISINGLE_REF_CONTAINER: + { + ISingleRefContainer iSingleRefContainer = (ISingleRefContainer)theEObject; + T result = caseISingleRefContainer(iSingleRefContainer); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case model4interfacesPackage.ISINGLE_REF_CONTAINED_ELEMENT: + { + ISingleRefContainedElement iSingleRefContainedElement = (ISingleRefContainedElement)theEObject; + T result = caseISingleRefContainedElement(iSingleRefContainedElement); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case model4interfacesPackage.ISINGLE_REF_NON_CONTAINER: + { + ISingleRefNonContainer iSingleRefNonContainer = (ISingleRefNonContainer)theEObject; + T result = caseISingleRefNonContainer(iSingleRefNonContainer); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case model4interfacesPackage.ISINGLE_REF_NON_CONTAINED_ELEMENT: + { + ISingleRefNonContainedElement iSingleRefNonContainedElement = (ISingleRefNonContainedElement)theEObject; + T result = caseISingleRefNonContainedElement(iSingleRefNonContainedElement); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case model4interfacesPackage.IMULTI_REF_CONTAINER: + { + IMultiRefContainer iMultiRefContainer = (IMultiRefContainer)theEObject; + T result = caseIMultiRefContainer(iMultiRefContainer); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case model4interfacesPackage.IMULTI_REF_CONTAINED_ELEMENT: + { + IMultiRefContainedElement iMultiRefContainedElement = (IMultiRefContainedElement)theEObject; + T result = caseIMultiRefContainedElement(iMultiRefContainedElement); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case model4interfacesPackage.IMULTI_REF_NON_CONTAINER: + { + IMultiRefNonContainer iMultiRefNonContainer = (IMultiRefNonContainer)theEObject; + T result = caseIMultiRefNonContainer(iMultiRefNonContainer); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case model4interfacesPackage.IMULTI_REF_NON_CONTAINED_ELEMENT: + { + IMultiRefNonContainedElement iMultiRefNonContainedElement = (IMultiRefNonContainedElement)theEObject; + T result = caseIMultiRefNonContainedElement(iMultiRefNonContainedElement); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case model4interfacesPackage.INAMED_ELEMENT: + { + INamedElement iNamedElement = (INamedElement)theEObject; + T result = caseINamedElement(iNamedElement); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case model4interfacesPackage.ICONTAINED_ELEMENT_NO_PARENT_LINK: + { + IContainedElementNoParentLink iContainedElementNoParentLink = (IContainedElementNoParentLink)theEObject; + T result = caseIContainedElementNoParentLink(iContainedElementNoParentLink); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case model4interfacesPackage.ISINGLE_REF_CONTAINER_NPL: + { + ISingleRefContainerNPL iSingleRefContainerNPL = (ISingleRefContainerNPL)theEObject; + T result = caseISingleRefContainerNPL(iSingleRefContainerNPL); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case model4interfacesPackage.ISINGLE_REF_NON_CONTAINER_NPL: + { + ISingleRefNonContainerNPL iSingleRefNonContainerNPL = (ISingleRefNonContainerNPL)theEObject; + T result = caseISingleRefNonContainerNPL(iSingleRefNonContainerNPL); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case model4interfacesPackage.IMULTI_REF_CONTAINER_NPL: + { + IMultiRefContainerNPL iMultiRefContainerNPL = (IMultiRefContainerNPL)theEObject; + T result = caseIMultiRefContainerNPL(iMultiRefContainerNPL); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case model4interfacesPackage.IMULTI_REF_NON_CONTAINER_NPL: + { + IMultiRefNonContainerNPL iMultiRefNonContainerNPL = (IMultiRefNonContainerNPL)theEObject; + T result = caseIMultiRefNonContainerNPL(iMultiRefNonContainerNPL); + if (result == null) + result = defaultCase(theEObject); + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * 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 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>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>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>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>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>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; + } + +} //model4interfacesSwitch |