{@link org.eclipse.emf.cdo.tests.legacy.model1.impl.CustomerImpl#getOrderByProduct Order By Product}
+ *
+ *
+ *
+ * @generated
+ */
+public class CustomerImpl extends AddressImpl implements Customer
+{
+ /**
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
+
+ /**
+ * The cached value of the '{@link #getSalesOrders() Sales Orders}' reference list.
+ *
+ *
+ * @see #getSalesOrders()
+ * @generated
+ * @ordered
+ */
+ protected EList salesOrders;
+
+ /**
+ * The cached value of the '{@link #getOrderByProduct() Order By Product}' map.
+ *
+ * @see #getOrderByProduct()
+ * @generated
+ * @ordered
+ */
+ protected EMap orderByProduct;
+
+ /**
+ *
+ * @generated
+ */
+ protected CustomerImpl()
+ {
+ super();
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return Model1Package.eINSTANCE.getCustomer();
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public EList getSalesOrders()
+ {
+ if (salesOrders == null)
+ {
+ salesOrders = new EObjectWithInverseResolvingEList(SalesOrder.class, this,
+ Model1Package.CUSTOMER__SALES_ORDERS, Model1Package.SALES_ORDER__CUSTOMER);
+ }
+ return salesOrders;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public EMap getOrderByProduct()
+ {
+ if (orderByProduct == null)
+ {
+ orderByProduct = new EcoreEMap(Model1Package.eINSTANCE.getProductToOrder(),
+ ProductToOrderImpl.class, this, Model1Package.CUSTOMER__ORDER_BY_PRODUCT);
+ }
+ return orderByProduct;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case Model1Package.CUSTOMER__SALES_ORDERS:
+ return ((InternalEList)(InternalEList>)getSalesOrders()).basicAdd(otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case Model1Package.CUSTOMER__SALES_ORDERS:
+ return ((InternalEList>)getSalesOrders()).basicRemove(otherEnd, msgs);
+ case Model1Package.CUSTOMER__ORDER_BY_PRODUCT:
+ return ((InternalEList>)getOrderByProduct()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case Model1Package.CUSTOMER__SALES_ORDERS:
+ return getSalesOrders();
+ case Model1Package.CUSTOMER__ORDER_BY_PRODUCT:
+ if (coreType)
+ return getOrderByProduct();
+ else
+ return getOrderByProduct().map();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case Model1Package.CUSTOMER__SALES_ORDERS:
+ getSalesOrders().clear();
+ getSalesOrders().addAll((Collection extends SalesOrder>)newValue);
+ return;
+ case Model1Package.CUSTOMER__ORDER_BY_PRODUCT:
+ ((EStructuralFeature.Setting)getOrderByProduct()).set(newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case Model1Package.CUSTOMER__SALES_ORDERS:
+ getSalesOrders().clear();
+ return;
+ case Model1Package.CUSTOMER__ORDER_BY_PRODUCT:
+ getOrderByProduct().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case Model1Package.CUSTOMER__SALES_ORDERS:
+ return salesOrders != null && !salesOrders.isEmpty();
+ case Model1Package.CUSTOMER__ORDER_BY_PRODUCT:
+ return orderByProduct != null && !orderByProduct.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // CustomerImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/legacy/model1/impl/Model1FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/legacy/model1/impl/Model1FactoryImpl.java
index f744683741..000302f3f9 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/legacy/model1/impl/Model1FactoryImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/legacy/model1/impl/Model1FactoryImpl.java
@@ -1,321 +1,301 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and 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.model1.impl;
-
-import org.eclipse.emf.cdo.tests.legacy.model1.Model1Factory;
-import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
-import org.eclipse.emf.cdo.tests.model1.Address;
-import org.eclipse.emf.cdo.tests.model1.Category;
-import org.eclipse.emf.cdo.tests.model1.Company;
-import org.eclipse.emf.cdo.tests.model1.Customer;
-import org.eclipse.emf.cdo.tests.model1.OrderAddress;
-import org.eclipse.emf.cdo.tests.model1.OrderDetail;
-import org.eclipse.emf.cdo.tests.model1.Product1;
-import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
-import org.eclipse.emf.cdo.tests.model1.SalesOrder;
-import org.eclipse.emf.cdo.tests.model1.Supplier;
-import org.eclipse.emf.cdo.tests.model1.VAT;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-
-import java.util.Map;
-
-/**
- * An implementation of the model Factory.
- *
- * @generated
- */
-public class Model1FactoryImpl extends EFactoryImpl implements Model1Factory
-{
- /**
- *
- *
- * @generated
- */
- public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * Creates the default factory implementation.
- *
- * @generated NOT
- */
- public static Model1Factory init()
- {
- try
- {
- Model1Factory theModel1Factory = (Model1Factory)EPackage.Registry.INSTANCE
- .getEFactory("http://www.eclipse.org/emf/CDO/tests/legacy/model1/1.0.0");
- if (theModel1Factory != null)
- {
- return theModel1Factory;
- }
- }
- catch (Exception exception)
- {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new Model1FactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- *
- * @generated
- */
- public Model1FactoryImpl()
- {
- super();
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass)
- {
- switch (eClass.getClassifierID())
- {
- case Model1Package.ADDRESS:
- return createAddress();
- case Model1Package.COMPANY:
- return createCompany();
- case Model1Package.SUPPLIER:
- return createSupplier();
- case Model1Package.CUSTOMER:
- return createCustomer();
- case Model1Package.ORDER_DETAIL:
- return createOrderDetail();
- case Model1Package.PURCHASE_ORDER:
- return createPurchaseOrder();
- case Model1Package.SALES_ORDER:
- return createSalesOrder();
- case Model1Package.CATEGORY:
- return createCategory();
- case Model1Package.PRODUCT1:
- return createProduct1();
- case Model1Package.ORDER_ADDRESS:
- return createOrderAddress();
- case Model1Package.PRODUCT_TO_ORDER:
- return (EObject)createProductToOrder();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public Object createFromString(EDataType eDataType, String initialValue)
- {
- switch (eDataType.getClassifierID())
- {
- case Model1Package.VAT:
- return createVATFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String convertToString(EDataType eDataType, Object instanceValue)
- {
- switch (eDataType.getClassifierID())
- {
- case Model1Package.VAT:
- return convertVATToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- *
- *
- * @generated
- */
- public Address createAddress()
- {
- AddressImpl address = new AddressImpl();
- return address;
- }
-
- /**
- *
- *
- * @generated
- */
- public Company createCompany()
- {
- CompanyImpl company = new CompanyImpl();
- return company;
- }
-
- /**
- *
- *
- * @generated
- */
- public Supplier createSupplier()
- {
- SupplierImpl supplier = new SupplierImpl();
- return supplier;
- }
-
- /**
- *
- *
- * @generated
- */
- public Customer createCustomer()
- {
- CustomerImpl customer = new CustomerImpl();
- return customer;
- }
-
- /**
- *
- *
- * @generated
- */
- public OrderDetail createOrderDetail()
- {
- OrderDetailImpl orderDetail = new OrderDetailImpl();
- return orderDetail;
- }
-
- /**
- *
- *
- * @generated
- */
- public PurchaseOrder createPurchaseOrder()
- {
- PurchaseOrderImpl purchaseOrder = new PurchaseOrderImpl();
- return purchaseOrder;
- }
-
- /**
- *
- *
- * @generated
- */
- public SalesOrder createSalesOrder()
- {
- SalesOrderImpl salesOrder = new SalesOrderImpl();
- return salesOrder;
- }
-
- /**
- *
- *
- * @generated
- */
- public Category createCategory()
- {
- CategoryImpl category = new CategoryImpl();
- return category;
- }
-
- /**
- *
- *
- * @generated
- */
- public Product1 createProduct1()
- {
- Product1Impl product1 = new Product1Impl();
- return product1;
- }
-
- /**
- *
- *
- * @generated
- */
- public OrderAddress createOrderAddress()
- {
- OrderAddressImpl orderAddress = new OrderAddressImpl();
- return orderAddress;
- }
-
- /**
- *
- *
- * @generated
- */
- public Map.Entry createProductToOrder()
- {
- ProductToOrderImpl productToOrder = new ProductToOrderImpl();
- return productToOrder;
- }
-
- /**
- *
- *
- * @generated
- */
- public VAT createVATFromString(EDataType eDataType, String initialValue)
- {
- VAT result = VAT.get(initialValue);
- if (result == null)
- throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '"
- + eDataType.getName() + "'");
- return result;
- }
-
- /**
- *
- *
- * @generated
- */
- public String convertVATToString(EDataType eDataType, Object instanceValue)
- {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- *
- *
- * @generated
- */
- public Model1Package getModel1Package()
- {
- return (Model1Package)getEPackage();
- }
-
- /**
- *
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static Model1Package getPackage()
- {
- return Model1Package.eINSTANCE;
- }
-
-} // Model1FactoryImpl
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and 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.model1.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model1.Model1Factory;
+import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
+import org.eclipse.emf.cdo.tests.model1.Address;
+import org.eclipse.emf.cdo.tests.model1.Category;
+import org.eclipse.emf.cdo.tests.model1.Company;
+import org.eclipse.emf.cdo.tests.model1.Customer;
+import org.eclipse.emf.cdo.tests.model1.OrderAddress;
+import org.eclipse.emf.cdo.tests.model1.OrderDetail;
+import org.eclipse.emf.cdo.tests.model1.Product1;
+import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
+import org.eclipse.emf.cdo.tests.model1.SalesOrder;
+import org.eclipse.emf.cdo.tests.model1.Supplier;
+import org.eclipse.emf.cdo.tests.model1.VAT;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+import java.util.Map;
+
+/**
+ * An implementation of the model Factory.
+ * @generated
+ */
+public class Model1FactoryImpl extends EFactoryImpl implements Model1Factory
+{
+ /**
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
+
+ /**
+ * Creates the default factory implementation.
+ *
+ * @generated NOT
+ */
+ public static Model1Factory init()
+ {
+ try
+ {
+ Model1Factory theModel1Factory = (Model1Factory)EPackage.Registry.INSTANCE
+ .getEFactory("http://www.eclipse.org/emf/CDO/tests/legacy/model1/1.0.0");
+ if (theModel1Factory != null)
+ {
+ return theModel1Factory;
+ }
+ }
+ catch (Exception exception)
+ {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new Model1FactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ *
+ * @generated
+ */
+ public Model1FactoryImpl()
+ {
+ super();
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass)
+ {
+ switch (eClass.getClassifierID())
+ {
+ case Model1Package.ADDRESS:
+ return createAddress();
+ case Model1Package.COMPANY:
+ return createCompany();
+ case Model1Package.SUPPLIER:
+ return createSupplier();
+ case Model1Package.CUSTOMER:
+ return createCustomer();
+ case Model1Package.ORDER_DETAIL:
+ return createOrderDetail();
+ case Model1Package.PURCHASE_ORDER:
+ return createPurchaseOrder();
+ case Model1Package.SALES_ORDER:
+ return createSalesOrder();
+ case Model1Package.CATEGORY:
+ return createCategory();
+ case Model1Package.PRODUCT1:
+ return createProduct1();
+ case Model1Package.ORDER_ADDRESS:
+ return createOrderAddress();
+ case Model1Package.PRODUCT_TO_ORDER:
+ return (EObject)createProductToOrder();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @Override
+ public Object createFromString(EDataType eDataType, String initialValue)
+ {
+ switch (eDataType.getClassifierID())
+ {
+ case Model1Package.VAT:
+ return createVATFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @Override
+ public String convertToString(EDataType eDataType, Object instanceValue)
+ {
+ switch (eDataType.getClassifierID())
+ {
+ case Model1Package.VAT:
+ return convertVATToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public Address createAddress()
+ {
+ AddressImpl address = new AddressImpl();
+ return address;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public Company createCompany()
+ {
+ CompanyImpl company = new CompanyImpl();
+ return company;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public Supplier createSupplier()
+ {
+ SupplierImpl supplier = new SupplierImpl();
+ return supplier;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public Customer createCustomer()
+ {
+ CustomerImpl customer = new CustomerImpl();
+ return customer;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public OrderDetail createOrderDetail()
+ {
+ OrderDetailImpl orderDetail = new OrderDetailImpl();
+ return orderDetail;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public PurchaseOrder createPurchaseOrder()
+ {
+ PurchaseOrderImpl purchaseOrder = new PurchaseOrderImpl();
+ return purchaseOrder;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public SalesOrder createSalesOrder()
+ {
+ SalesOrderImpl salesOrder = new SalesOrderImpl();
+ return salesOrder;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public Category createCategory()
+ {
+ CategoryImpl category = new CategoryImpl();
+ return category;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public Product1 createProduct1()
+ {
+ Product1Impl product1 = new Product1Impl();
+ return product1;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public OrderAddress createOrderAddress()
+ {
+ OrderAddressImpl orderAddress = new OrderAddressImpl();
+ return orderAddress;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public Map.Entry createProductToOrder()
+ {
+ ProductToOrderImpl productToOrder = new ProductToOrderImpl();
+ return productToOrder;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public VAT createVATFromString(EDataType eDataType, String initialValue)
+ {
+ VAT result = VAT.get(initialValue);
+ if (result == null)
+ throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '"
+ + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public String convertVATToString(EDataType eDataType, Object instanceValue)
+ {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public Model1Package getModel1Package()
+ {
+ return (Model1Package)getEPackage();
+ }
+
+ /**
+ *
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static Model1Package getPackage()
+ {
+ return Model1Package.eINSTANCE;
+ }
+
+} // Model1FactoryImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/legacy/model1/impl/Model1PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/legacy/model1/impl/Model1PackageImpl.java
index e1e0e75241..d3059a3f7f 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/legacy/model1/impl/Model1PackageImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/legacy/model1/impl/Model1PackageImpl.java
@@ -1,908 +1,860 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and 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.model1.impl;
-
-import org.eclipse.emf.cdo.tests.legacy.model1.Model1Factory;
-import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
-import org.eclipse.emf.cdo.tests.model1.Address;
-import org.eclipse.emf.cdo.tests.model1.Category;
-import org.eclipse.emf.cdo.tests.model1.Company;
-import org.eclipse.emf.cdo.tests.model1.Customer;
-import org.eclipse.emf.cdo.tests.model1.Order;
-import org.eclipse.emf.cdo.tests.model1.OrderAddress;
-import org.eclipse.emf.cdo.tests.model1.OrderDetail;
-import org.eclipse.emf.cdo.tests.model1.Product1;
-import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
-import org.eclipse.emf.cdo.tests.model1.SalesOrder;
-import org.eclipse.emf.cdo.tests.model1.Supplier;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-
-import java.util.Map;
-
-/**
- * An implementation of the model Package.
- *
- * @generated
- */
-public class Model1PackageImpl extends EPackageImpl implements Model1Package
-{
- /**
- *
- *
- * @generated
- */
- public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- *
- *
- * @generated
- */
- private EClass addressEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass companyEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass supplierEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass customerEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass orderEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass orderDetailEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass purchaseOrderEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass salesOrderEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass categoryEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass product1EClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass orderAddressEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass productToOrderEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EEnum vatEEnum = null;
-
- /**
- * Creates an instance of the model Package, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
- * EPackage.Registry} by the package package URI value.
- *
- * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
- * performs initialization of the package, or returns the registered package, if one already exists.
- *
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#eNS_URI
- * @see #init()
- * @generated
- */
- private Model1PackageImpl()
- {
- super(eNS_URI, Model1Factory.eINSTANCE);
- }
-
- /**
- *
- *
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the Package for this model, and for any others upon which it depends.
- *
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
+ * performs initialization of the package, or returns the registered package, if one already exists.
+ *
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.emf.cdo.tests.legacy.model1.Model1Package#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private Model1PackageImpl()
+ {
+ super(eNS_URI, Model1Factory.eINSTANCE);
+ }
+
+ /**
+ *
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the Package for this model, and for any others upon which it depends.
+ *
- *
- *
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getAddress()
- * @model
- * @generated
- */
-public interface Address extends EObject
-{
- /**
- *
- *
- * @generated
- */
- String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * Returns the value of the 'Name' attribute.
- *
- * If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...
- *
- *
- *
- * @return the value of the 'Name' attribute.
- * @see #setName(String)
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getAddress_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.Address#getName Name}' attribute.
- *
- * @param value
- * the new value of the 'Name' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the 'Street' attribute.
- *
- * If the meaning of the 'Street' attribute isn't clear, there really should be more of a description here...
- *
- *
- *
- * @return the value of the 'Street' attribute.
- * @see #setStreet(String)
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getAddress_Street()
- * @model
- * @generated
- */
- String getStreet();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.Address#getStreet Street}' attribute.
- *
- * @param value
- * the new value of the 'Street' attribute.
- * @see #getStreet()
- * @generated
- */
- void setStreet(String value);
-
- /**
- * Returns the value of the 'City' attribute.
- *
- * If the meaning of the 'City' attribute isn't clear, there really should be more of a description here...
- *
- *
- *
- * @return the value of the 'City' attribute.
- * @see #setCity(String)
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getAddress_City()
- * @model
- * @generated
- */
- String getCity();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.Address#getCity City}' attribute.
- *
- * @param value
- * the new value of the 'City' attribute.
- * @see #getCity()
- * @generated
- */
- void setCity(String value);
-
-} // Address
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * A representation of the model object 'Address'.
+ *
+ *
+ *
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getAddress()
+ * @model
+ * @generated
+ */
+public interface Address extends EObject
+{
+ /**
+ * Returns the value of the 'Name' attribute.
+ *
+ *
+ * If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Name' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getAddress_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.Address#getName Name}' attribute.
+ *
+ * @param value
+ * the new value of the 'Name' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the 'Street' attribute.
+ *
+ *
+ * If the meaning of the 'Street' attribute isn't clear, there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Street' attribute.
+ * @see #setStreet(String)
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getAddress_Street()
+ * @model
+ * @generated
+ */
+ String getStreet();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.Address#getStreet Street}' attribute.
+ *
+ * @param value
+ * the new value of the 'Street' attribute.
+ * @see #getStreet()
+ * @generated
+ */
+ void setStreet(String value);
+
+ /**
+ * Returns the value of the 'City' attribute.
+ *
+ *
+ * If the meaning of the 'City' attribute isn't clear, there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'City' attribute.
+ * @see #setCity(String)
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getAddress_City()
+ * @model
+ * @generated
+ */
+ String getCity();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.Address#getCity City}' attribute.
+ *
+ * @param value
+ * the new value of the 'City' attribute.
+ * @see #getCity()
+ * @generated
+ */
+ void setCity(String value);
+
+} // Address
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Category.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Category.java
index 14121c7f70..2d2ca0be35 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Category.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Category.java
@@ -1,98 +1,92 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * A representation of the model object 'Category'.
- *
- *
- *
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCategory()
- * @model
- * @generated
- */
-public interface Category extends EObject
-{
- /**
- *
- *
- * @generated
- */
- String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * Returns the value of the 'Name' attribute.
- *
- * If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...
- *
- *
- *
- * @return the value of the 'Name' attribute.
- * @see #setName(String)
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCategory_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.Category#getName Name}' attribute.
- *
- * @param value
- * the new value of the 'Name' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the 'Categories' containment reference list. The list contents are of type
- * {@link org.eclipse.emf.cdo.tests.model1.Category}.
- *
- * If the meaning of the 'Categories' containment reference list isn't clear, there really should be more of
- * a description here...
- *
- *
- *
- * @return the value of the 'Categories' containment reference list.
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCategory_Categories()
- * @model containment="true"
- * @generated
- */
- EList getCategories();
-
- /**
- * Returns the value of the 'Products' containment reference list. The list contents are of type
- * {@link org.eclipse.emf.cdo.tests.model1.Product1}.
- *
- * If the meaning of the 'Products' containment reference list isn't clear, there really should be more of a
- * description here...
- *
- *
- *
- * @return the value of the 'Products' containment reference list.
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCategory_Products()
- * @model containment="true"
- * @generated
- */
- EList getProducts();
-
-} // Category
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * A representation of the model object 'Category'.
+ *
+ *
+ *
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCategory()
+ * @model
+ * @generated
+ */
+public interface Category extends EObject
+{
+ /**
+ * Returns the value of the 'Name' attribute.
+ *
+ *
+ * If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Name' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCategory_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.Category#getName Name}' attribute.
+ *
+ * @param value
+ * the new value of the 'Name' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the 'Categories' containment reference list.
+ * The list contents are of type {@link org.eclipse.emf.cdo.tests.model1.Category}.
+ *
+ *
+ * If the meaning of the 'Categories' containment reference list isn't clear, there really should be more of
+ * a description here...
+ *
+ *
+ * @return the value of the 'Categories' containment reference list.
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCategory_Categories()
+ * @model containment="true"
+ * @generated
+ */
+ EList getCategories();
+
+ /**
+ * Returns the value of the 'Products' containment reference list.
+ * The list contents are of type {@link org.eclipse.emf.cdo.tests.model1.Product1}.
+ *
+ *
+ * If the meaning of the 'Products' containment reference list isn't clear, there really should be more of a
+ * description here...
+ *
+ *
+ * @return the value of the 'Products' containment reference list.
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCategory_Products()
+ * @model containment="true"
+ * @generated
+ */
+ EList getProducts();
+
+} // Category
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Company.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Company.java
index cdb2baba0c..98cacda872 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Company.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Company.java
@@ -1,121 +1,115 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1;
-
-import org.eclipse.emf.common.util.EList;
-
-/**
- * A representation of the model object 'Company'.
- *
- *
- *
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCompany()
- * @model
- * @generated
- */
-public interface Company extends Address
-{
- /**
- *
- *
- * @generated
- */
- String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * Returns the value of the 'Categories' containment reference list. The list contents are of type
- * {@link org.eclipse.emf.cdo.tests.model1.Category}.
- *
- * If the meaning of the 'Categories' containment reference list isn't clear, there really should be more of
- * a description here...
- *
- *
- *
- * @return the value of the 'Categories' containment reference list.
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCompany_Categories()
- * @model containment="true"
- * @generated
- */
- EList getCategories();
-
- /**
- * Returns the value of the 'Suppliers' containment reference list. The list contents are of type
- * {@link org.eclipse.emf.cdo.tests.model1.Supplier}.
- *
- * If the meaning of the 'Suppliers' containment reference list isn't clear, there really should be more of a
- * description here...
- *
- *
- *
- * @return the value of the 'Suppliers' containment reference list.
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCompany_Suppliers()
- * @model containment="true"
- * @generated
- */
- EList getSuppliers();
-
- /**
- * Returns the value of the 'Purchase Orders' containment reference list. The list contents are of
- * type {@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder}.
- *
- * If the meaning of the 'Purchase Orders' containment reference list isn't clear, there really should be
- * more of a description here...
- *
- *
- *
- * @return the value of the 'Purchase Orders' containment reference list.
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCompany_PurchaseOrders()
- * @model containment="true"
- * @generated
- */
- EList getPurchaseOrders();
-
- /**
- * Returns the value of the 'Customers' containment reference list. The list contents are of type
- * {@link org.eclipse.emf.cdo.tests.model1.Customer}.
- *
- * If the meaning of the 'Customers' containment reference list isn't clear, there really should be more of a
- * description here...
- *
- *
- *
- * @return the value of the 'Customers' containment reference list.
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCompany_Customers()
- * @model containment="true"
- * @generated
- */
- EList getCustomers();
-
- /**
- * Returns the value of the 'Sales Orders' containment reference list. The list contents are of type
- * {@link org.eclipse.emf.cdo.tests.model1.SalesOrder}.
- *
- * If the meaning of the 'Sales Orders' containment reference list isn't clear, there really should be more
- * of a description here...
- *
- *
- *
- * @return the value of the 'Sales Orders' containment reference list.
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCompany_SalesOrders()
- * @model containment="true"
- * @generated
- */
- EList getSalesOrders();
-
-} // Company
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ * A representation of the model object 'Company'.
+ *
+ *
+ *
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCompany()
+ * @model
+ * @generated
+ */
+public interface Company extends Address
+{
+ /**
+ * Returns the value of the 'Categories' containment reference list.
+ * The list contents are of type {@link org.eclipse.emf.cdo.tests.model1.Category}.
+ *
+ *
+ * If the meaning of the 'Categories' containment reference list isn't clear, there really should be more of
+ * a description here...
+ *
+ *
+ * @return the value of the 'Categories' containment reference list.
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCompany_Categories()
+ * @model containment="true"
+ * @generated
+ */
+ EList getCategories();
+
+ /**
+ * Returns the value of the 'Suppliers' containment reference list.
+ * The list contents are of type {@link org.eclipse.emf.cdo.tests.model1.Supplier}.
+ *
+ *
+ * If the meaning of the 'Suppliers' containment reference list isn't clear, there really should be more of a
+ * description here...
+ *
+ *
+ * @return the value of the 'Suppliers' containment reference list.
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCompany_Suppliers()
+ * @model containment="true"
+ * @generated
+ */
+ EList getSuppliers();
+
+ /**
+ * Returns the value of the 'Purchase Orders' containment reference list.
+ * The list contents are of type {@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder}.
+ *
+ *
+ * If the meaning of the 'Purchase Orders' containment reference list isn't clear, there really should be
+ * more of a description here...
+ *
+ *
+ * @return the value of the 'Purchase Orders' containment reference list.
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCompany_PurchaseOrders()
+ * @model containment="true"
+ * @generated
+ */
+ EList getPurchaseOrders();
+
+ /**
+ * Returns the value of the 'Customers' containment reference list.
+ * The list contents are of type {@link org.eclipse.emf.cdo.tests.model1.Customer}.
+ *
+ *
+ * If the meaning of the 'Customers' containment reference list isn't clear, there really should be more of a
+ * description here...
+ *
+ *
+ * @return the value of the 'Customers' containment reference list.
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCompany_Customers()
+ * @model containment="true"
+ * @generated
+ */
+ EList getCustomers();
+
+ /**
+ * Returns the value of the 'Sales Orders' containment reference list.
+ * The list contents are of type {@link org.eclipse.emf.cdo.tests.model1.SalesOrder}.
+ *
+ *
+ * If the meaning of the 'Sales Orders' containment reference list isn't clear, there really should be more
+ * of a description here...
+ *
+ *
+ * @return the value of the 'Sales Orders' containment reference list.
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCompany_SalesOrders()
+ * @model containment="true"
+ * @generated
+ */
+ EList getSalesOrders();
+
+} // Company
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Customer.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Customer.java
index 248de5f01d..3e44bd0e52 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Customer.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Customer.java
@@ -1,75 +1,68 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.common.util.EMap;
-
-/**
- * A representation of the model object 'Customer'.
- *
{@link org.eclipse.emf.cdo.tests.model1.Customer#getOrderByProduct Order By Product}
- *
- *
- *
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCustomer()
- * @model
- * @generated
- */
-public interface Customer extends Address
-{
- /**
- *
- *
- * @generated
- */
- String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * Returns the value of the 'Sales Orders' reference list. The list contents are of type
- * {@link org.eclipse.emf.cdo.tests.model1.SalesOrder}. It is bidirectional and its opposite is '
- * {@link org.eclipse.emf.cdo.tests.model1.SalesOrder#getCustomer Customer}'.
- *
- * If the meaning of the 'Sales Orders' reference list isn't clear, there really should be more of a
- * description here...
- *
- *
- *
- * @return the value of the 'Sales Orders' reference list.
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCustomer_SalesOrders()
- * @see org.eclipse.emf.cdo.tests.model1.SalesOrder#getCustomer
- * @model opposite="customer"
- * @generated
- */
- EList getSalesOrders();
-
- /**
- * Returns the value of the 'Order By Product' map. The key is of type
- * {@link org.eclipse.emf.cdo.tests.model1.Product1}, and the value is of type
- * {@link org.eclipse.emf.cdo.tests.model1.SalesOrder},
- *
- * If the meaning of the 'Order By Product' map isn't clear, there really should be more of a description
- * here...
- *
- *
- *
- * @return the value of the 'Order By Product' map.
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCustomer_OrderByProduct()
- * @model mapType=
- * "org.eclipse.emf.cdo.tests.model1.ProductToOrder"
- * @generated
- */
- EMap getOrderByProduct();
-
-} // Customer
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.common.util.EMap;
+
+/**
+ * A representation of the model object 'Customer'.
+ *
+ *
{@link org.eclipse.emf.cdo.tests.model1.Customer#getOrderByProduct Order By Product}
+ *
+ *
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCustomer()
+ * @model
+ * @generated
+ */
+public interface Customer extends Address
+{
+ /**
+ * Returns the value of the 'Sales Orders' reference list.
+ * The list contents are of type {@link org.eclipse.emf.cdo.tests.model1.SalesOrder}.
+ * It is bidirectional and its opposite is '{@link org.eclipse.emf.cdo.tests.model1.SalesOrder#getCustomer Customer}'.
+ *
+ *
+ * If the meaning of the 'Sales Orders' reference list isn't clear, there really should be more of a
+ * description here...
+ *
+ *
+ * @return the value of the 'Sales Orders' reference list.
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCustomer_SalesOrders()
+ * @see org.eclipse.emf.cdo.tests.model1.SalesOrder#getCustomer
+ * @model opposite="customer"
+ * @generated
+ */
+ EList getSalesOrders();
+
+ /**
+ * Returns the value of the 'Order By Product' map.
+ * The key is of type {@link org.eclipse.emf.cdo.tests.model1.Product1},
+ * and the value is of type {@link org.eclipse.emf.cdo.tests.model1.SalesOrder},
+ *
+ *
+ * If the meaning of the 'Order By Product' map isn't clear, there really should be more of a description
+ * here...
+ *
+ *
+ * @return the value of the 'Order By Product' map.
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getCustomer_OrderByProduct()
+ * @model mapType="org.eclipse.emf.cdo.tests.model1.ProductToOrder"
+ * @generated
+ */
+ EMap getOrderByProduct();
+
+} // Customer
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Model1Factory.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Model1Factory.java
index 03f371b1cb..5152362e69 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Model1Factory.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Model1Factory.java
@@ -1,126 +1,118 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1;
-
-import org.eclipse.emf.ecore.EFactory;
-
-/**
- * The Factory for the model. It provides a create method for each non-abstract class of
- * the model.
- *
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package
- * @generated
- */
-public interface Model1Factory extends EFactory
-{
- /**
- *
- *
- * @generated
- */
- String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * The singleton instance of the factory.
- *
- * @generated
- */
- Model1Factory eINSTANCE = org.eclipse.emf.cdo.tests.model1.impl.Model1FactoryImpl.init();
-
- /**
- * Returns a new object of class 'Address'.
- *
- * @return a new object of class 'Address'.
- * @generated
- */
- Address createAddress();
-
- /**
- * Returns a new object of class 'Supplier'.
- *
- * @return a new object of class 'Supplier'.
- * @generated
- */
- Supplier createSupplier();
-
- /**
- * Returns a new object of class 'Purchase Order'.
- *
- * @return a new object of class 'Purchase Order'.
- * @generated
- */
- PurchaseOrder createPurchaseOrder();
-
- /**
- * Returns a new object of class 'Order Detail'.
- *
- * @return a new object of class 'Order Detail'.
- * @generated
- */
- OrderDetail createOrderDetail();
-
- /**
- * Returns a new object of class 'Order Address'.
- *
- * @return a new object of class 'Order Address'.
- * @generated
- */
- OrderAddress createOrderAddress();
-
- /**
- * Returns a new object of class 'Category'.
- *
- * @return a new object of class 'Category'.
- * @generated
- */
- Category createCategory();
-
- /**
- * Returns a new object of class 'Product1'.
- *
- * @return a new object of class 'Product1'.
- * @generated
- */
- Product1 createProduct1();
-
- /**
- * Returns a new object of class 'Company'.
- *
- * @return a new object of class 'Company'.
- * @generated
- */
- Company createCompany();
-
- /**
- * Returns a new object of class 'Customer'.
- *
- * @return a new object of class 'Customer'.
- * @generated
- */
- Customer createCustomer();
-
- /**
- * Returns a new object of class 'Sales Order'.
- *
- * @return a new object of class 'Sales Order'.
- * @generated
- */
- SalesOrder createSalesOrder();
-
- /**
- * Returns the package supported by this factory.
- *
- * @return the package supported by this factory.
- * @generated
- */
- Model1Package getModel1Package();
-
-} // Model1Factory
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * The Factory for the model. It provides a create method for each non-abstract class of
+ * the model.
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package
+ * @generated
+ */
+public interface Model1Factory extends EFactory
+{
+ /**
+ * The singleton instance of the factory.
+ *
+ * @generated
+ */
+ Model1Factory eINSTANCE = org.eclipse.emf.cdo.tests.model1.impl.Model1FactoryImpl.init();
+
+ /**
+ * Returns a new object of class 'Address'.
+ *
+ * @return a new object of class 'Address'.
+ * @generated
+ */
+ Address createAddress();
+
+ /**
+ * Returns a new object of class 'Supplier'.
+ *
+ * @return a new object of class 'Supplier'.
+ * @generated
+ */
+ Supplier createSupplier();
+
+ /**
+ * Returns a new object of class 'Purchase Order'.
+ *
+ * @return a new object of class 'Purchase Order'.
+ * @generated
+ */
+ PurchaseOrder createPurchaseOrder();
+
+ /**
+ * Returns a new object of class 'Order Detail'.
+ *
+ * @return a new object of class 'Order Detail'.
+ * @generated
+ */
+ OrderDetail createOrderDetail();
+
+ /**
+ * Returns a new object of class 'Order Address'.
+ *
+ * @return a new object of class 'Order Address'.
+ * @generated
+ */
+ OrderAddress createOrderAddress();
+
+ /**
+ * Returns a new object of class 'Category'.
+ *
+ * @return a new object of class 'Category'.
+ * @generated
+ */
+ Category createCategory();
+
+ /**
+ * Returns a new object of class 'Product1'.
+ *
+ * @return a new object of class 'Product1'.
+ * @generated
+ */
+ Product1 createProduct1();
+
+ /**
+ * Returns a new object of class 'Company'.
+ *
+ * @return a new object of class 'Company'.
+ * @generated
+ */
+ Company createCompany();
+
+ /**
+ * Returns a new object of class 'Customer'.
+ *
+ * @return a new object of class 'Customer'.
+ * @generated
+ */
+ Customer createCustomer();
+
+ /**
+ * Returns a new object of class 'Sales Order'.
+ *
+ * @return a new object of class 'Sales Order'.
+ * @generated
+ */
+ SalesOrder createSalesOrder();
+
+ /**
+ * Returns the package supported by this factory.
+ *
+ * @return the package supported by this factory.
+ * @generated
+ */
+ Model1Package getModel1Package();
+
+} // Model1Factory
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Model1Package.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Model1Package.java
index f0eb8c1e8a..b3129e00ca 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Model1Package.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Model1Package.java
@@ -1,1177 +1,1149 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-/**
- * The Package for the model. It contains accessors for the meta objects to represent
- *
- *
each class,
- *
each feature of each class,
- *
each enum,
- *
and each data type
- *
- *
- *
- * @see org.eclipse.emf.cdo.tests.model1.Model1Factory
- * @model kind="package" annotation="teneo.jpa value='@hbGenericGenerators( {@GenericGenerator(name=\"system-uuid\",
- * strategy =
- * \"org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOUUIDHexGenerator\")})'"
- * @generated
- */
-public interface Model1Package extends EPackage
-{
- /**
- *
- *
- * @generated
- */
- String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * The package name.
- *
- * @generated
- */
- String eNAME = "model1";
-
- /**
- * The package namespace URI.
- *
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/model1/1.0.0";
-
- /**
- * The package namespace name.
- *
- * @generated
- */
- String eNS_PREFIX = "model1";
-
- /**
- * The singleton instance of the package.
- *
- * @generated
- */
- Model1Package eINSTANCE = org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.AddressImpl Address}' class.
- *
- * @see org.eclipse.emf.cdo.tests.model1.impl.AddressImpl
- * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getAddress()
- * @generated
- */
- int ADDRESS = 0;
-
- /**
- * The feature id for the 'Name' attribute.
- *
- * @generated
- * @ordered
- */
- int ADDRESS__NAME = 0;
-
- /**
- * The feature id for the 'Street' attribute.
- *
- * @generated
- * @ordered
- */
- int ADDRESS__STREET = 1;
-
- /**
- * The feature id for the 'City' attribute.
- *
- * @generated
- * @ordered
- */
- int ADDRESS__CITY = 2;
-
- /**
- * The number of structural features of the 'Address' class.
- *
- * @generated
- * @ordered
- */
- int ADDRESS_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.SupplierImpl Supplier}' class.
- *
- *
- * @see org.eclipse.emf.cdo.tests.model1.impl.SupplierImpl
- * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getSupplier()
- * @generated
- */
- int SUPPLIER = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.PurchaseOrderImpl Purchase Order}
- * ' class.
- *
- * @see org.eclipse.emf.cdo.tests.model1.impl.PurchaseOrderImpl
- * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getPurchaseOrder()
- * @generated
- */
- int PURCHASE_ORDER = 6;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.OrderDetailImpl Order Detail}'
- * class.
- *
- * @see org.eclipse.emf.cdo.tests.model1.impl.OrderDetailImpl
- * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getOrderDetail()
- * @generated
- */
- int ORDER_DETAIL = 5;
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.Address Address}'.
- *
- * @return the meta object for class 'Address'.
- * @see org.eclipse.emf.cdo.tests.model1.Address
- * @generated
- */
- EClass getAddress();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.Address#getName Name}'.
- *
- *
- * @return the meta object for the attribute 'Name'.
- * @see org.eclipse.emf.cdo.tests.model1.Address#getName()
- * @see #getAddress()
- * @generated
- */
- EAttribute getAddress_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.Address#getStreet
- * Street}'.
- *
- * @return the meta object for the attribute 'Street'.
- * @see org.eclipse.emf.cdo.tests.model1.Address#getStreet()
- * @see #getAddress()
- * @generated
- */
- EAttribute getAddress_Street();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.Address#getCity City}'.
- *
- *
- * @return the meta object for the attribute 'City'.
- * @see org.eclipse.emf.cdo.tests.model1.Address#getCity()
- * @see #getAddress()
- * @generated
- */
- EAttribute getAddress_City();
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.CategoryImpl Category}' class.
- *
- *
- * @see org.eclipse.emf.cdo.tests.model1.impl.CategoryImpl
- * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getCategory()
- * @generated
- */
- int CATEGORY = 8;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.CompanyImpl Company}' class.
- *
- * @see org.eclipse.emf.cdo.tests.model1.impl.CompanyImpl
- * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getCompany()
- * @generated
- */
- int COMPANY = 1;
-
- /**
- * The feature id for the 'Name' attribute.
- *
- * @generated
- * @ordered
- */
- int COMPANY__NAME = ADDRESS__NAME;
-
- /**
- * The feature id for the 'Street' attribute.
- *
- * @generated
- * @ordered
- */
- int COMPANY__STREET = ADDRESS__STREET;
-
- /**
- * The feature id for the 'City' attribute.
- *
- * @generated
- * @ordered
- */
- int COMPANY__CITY = ADDRESS__CITY;
-
- /**
- * The feature id for the 'Categories' containment reference list.
- *
- * @generated
- * @ordered
- */
- int COMPANY__CATEGORIES = ADDRESS_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the 'Suppliers' containment reference list.
- *
- * @generated
- * @ordered
- */
- int COMPANY__SUPPLIERS = ADDRESS_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the 'Customers' containment reference list.
- *
- * @generated
- * @ordered
- */
- int COMPANY__CUSTOMERS = ADDRESS_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the 'Purchase Orders' containment reference list.
- *
- * @generated
- * @ordered
- */
- int COMPANY__PURCHASE_ORDERS = ADDRESS_FEATURE_COUNT + 3;
-
- /**
- * The feature id for the 'Sales Orders' containment reference list.
- *
- * @generated
- * @ordered
- */
- int COMPANY__SALES_ORDERS = ADDRESS_FEATURE_COUNT + 4;
-
- /**
- * The number of structural features of the 'Company' class.
- *
- * @generated
- * @ordered
- */
- int COMPANY_FEATURE_COUNT = ADDRESS_FEATURE_COUNT + 5;
-
- /**
- * The feature id for the 'Name' attribute.
- *
- * @generated
- * @ordered
- */
- int SUPPLIER__NAME = ADDRESS__NAME;
-
- /**
- * The feature id for the 'Street' attribute.
- *
- * @generated
- * @ordered
- */
- int SUPPLIER__STREET = ADDRESS__STREET;
-
- /**
- * The feature id for the 'City' attribute.
- *
- * @generated
- * @ordered
- */
- int SUPPLIER__CITY = ADDRESS__CITY;
-
- /**
- * The feature id for the 'Purchase Orders' reference list.
- *
- * @generated
- * @ordered
- */
- int SUPPLIER__PURCHASE_ORDERS = ADDRESS_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the 'Preferred' attribute.
- *
- * @generated
- * @ordered
- */
- int SUPPLIER__PREFERRED = ADDRESS_FEATURE_COUNT + 1;
-
- /**
- * The number of structural features of the 'Supplier' class.
- *
- * @generated
- * @ordered
- */
- int SUPPLIER_FEATURE_COUNT = ADDRESS_FEATURE_COUNT + 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.CustomerImpl Customer}' class.
- *
- *
- * @see org.eclipse.emf.cdo.tests.model1.impl.CustomerImpl
- * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getCustomer()
- * @generated
- */
- int CUSTOMER = 3;
-
- /**
- * The feature id for the 'Name' attribute.
- *
- * @generated
- * @ordered
- */
- int CUSTOMER__NAME = ADDRESS__NAME;
-
- /**
- * The feature id for the 'Street' attribute.
- *
- * @generated
- * @ordered
- */
- int CUSTOMER__STREET = ADDRESS__STREET;
-
- /**
- * The feature id for the 'City' attribute.
- *
- * @generated
- * @ordered
- */
- int CUSTOMER__CITY = ADDRESS__CITY;
-
- /**
- * The feature id for the 'Sales Orders' reference list.
- *
- * @generated
- * @ordered
- */
- int CUSTOMER__SALES_ORDERS = ADDRESS_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the 'Order By Product' map.
- *
- * @generated
- * @ordered
- */
- int CUSTOMER__ORDER_BY_PRODUCT = ADDRESS_FEATURE_COUNT + 1;
-
- /**
- * The number of structural features of the 'Customer' class.
- *
- * @generated
- * @ordered
- */
- int CUSTOMER_FEATURE_COUNT = ADDRESS_FEATURE_COUNT + 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.OrderImpl Order}' class.
- *
- * @see org.eclipse.emf.cdo.tests.model1.impl.OrderImpl
- * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getOrder()
- * @generated
- */
- int ORDER = 4;
-
- /**
- * The feature id for the 'Order Details' containment reference list.
- *
- * @generated
- * @ordered
- */
- int ORDER__ORDER_DETAILS = 0;
-
- /**
- * The number of structural features of the 'Order' class.
- *
- * @generated
- * @ordered
- */
- int ORDER_FEATURE_COUNT = 1;
-
- /**
- * The feature id for the 'Order' container reference.
- *
- * @generated
- * @ordered
- */
- int ORDER_DETAIL__ORDER = 0;
-
- /**
- * The feature id for the 'Product' reference.
- *
- * @generated
- * @ordered
- */
- int ORDER_DETAIL__PRODUCT = 1;
-
- /**
- * The feature id for the 'Price' attribute.
- *
- * @generated
- * @ordered
- */
- int ORDER_DETAIL__PRICE = 2;
-
- /**
- * The number of structural features of the 'Order Detail' class.
- *
- * @generated
- * @ordered
- */
- int ORDER_DETAIL_FEATURE_COUNT = 3;
-
- /**
- * The feature id for the 'Order Details' containment reference list.
- *
- * @generated
- * @ordered
- */
- int PURCHASE_ORDER__ORDER_DETAILS = ORDER__ORDER_DETAILS;
-
- /**
- * The feature id for the 'Date' attribute.
- *
- * @generated
- * @ordered
- */
- int PURCHASE_ORDER__DATE = ORDER_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the 'Supplier' reference.
- *
- * @generated
- * @ordered
- */
- int PURCHASE_ORDER__SUPPLIER = ORDER_FEATURE_COUNT + 1;
-
- /**
- * The number of structural features of the 'Purchase Order' class.
- *
- * @generated
- * @ordered
- */
- int PURCHASE_ORDER_FEATURE_COUNT = ORDER_FEATURE_COUNT + 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.SalesOrderImpl Sales Order}'
- * class.
- *
- * @see org.eclipse.emf.cdo.tests.model1.impl.SalesOrderImpl
- * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getSalesOrder()
- * @generated
- */
- int SALES_ORDER = 7;
-
- /**
- * The feature id for the 'Order Details' containment reference list.
- *
- * @generated
- * @ordered
- */
- int SALES_ORDER__ORDER_DETAILS = ORDER__ORDER_DETAILS;
-
- /**
- * The feature id for the 'Id' attribute.
- *
- * @generated
- * @ordered
- */
- int SALES_ORDER__ID = ORDER_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the 'Customer' reference.
- *
- * @generated
- * @ordered
- */
- int SALES_ORDER__CUSTOMER = ORDER_FEATURE_COUNT + 1;
-
- /**
- * The number of structural features of the 'Sales Order' class.
- *
- * @generated
- * @ordered
- */
- int SALES_ORDER_FEATURE_COUNT = ORDER_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the 'Name' attribute.
- *
- * @generated
- * @ordered
- */
- int CATEGORY__NAME = 0;
-
- /**
- * The feature id for the 'Categories' containment reference list.
- *
- * @generated
- * @ordered
- */
- int CATEGORY__CATEGORIES = 1;
-
- /**
- * The feature id for the 'Products' containment reference list.
- *
- * @generated
- * @ordered
- */
- int CATEGORY__PRODUCTS = 2;
-
- /**
- * The number of structural features of the 'Category' class.
- *
- * @generated
- * @ordered
- */
- int CATEGORY_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.Product1Impl Product1}' class.
- *
- *
- * @see org.eclipse.emf.cdo.tests.model1.impl.Product1Impl
- * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getProduct1()
- * @generated
- */
- int PRODUCT1 = 9;
-
- /**
- * The feature id for the 'Name' attribute.
- *
- * @generated
- * @ordered
- */
- int PRODUCT1__NAME = 0;
-
- /**
- * The feature id for the 'Order Details' reference list.
- *
- * @generated
- * @ordered
- */
- int PRODUCT1__ORDER_DETAILS = 1;
-
- /**
- * The feature id for the 'Vat' attribute.
- *
- * @generated
- * @ordered
- */
- int PRODUCT1__VAT = 2;
-
- /**
- * The feature id for the 'Description' attribute.
- *
- * @generated
- * @ordered
- */
- int PRODUCT1__DESCRIPTION = 3;
-
- /**
- * The number of structural features of the 'Product1' class.
- *
- * @generated
- * @ordered
- */
- int PRODUCT1_FEATURE_COUNT = 4;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.OrderAddressImpl Order Address}'
- * class.
- *
- * @see org.eclipse.emf.cdo.tests.model1.impl.OrderAddressImpl
- * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getOrderAddress()
- * @generated
- */
- int ORDER_ADDRESS = 10;
-
- /**
- * The feature id for the 'Name' attribute.
- *
- * @generated
- * @ordered
- */
- int ORDER_ADDRESS__NAME = ADDRESS__NAME;
-
- /**
- * The feature id for the 'Street' attribute.
- *
- * @generated
- * @ordered
- */
- int ORDER_ADDRESS__STREET = ADDRESS__STREET;
-
- /**
- * The feature id for the 'City' attribute.
- *
- * @generated
- * @ordered
- */
- int ORDER_ADDRESS__CITY = ADDRESS__CITY;
-
- /**
- * The feature id for the 'Order Details' containment reference list.
- *
- * @generated
- * @ordered
- */
- int ORDER_ADDRESS__ORDER_DETAILS = ADDRESS_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the 'Order' container reference.
- *
- * @generated
- * @ordered
- */
- int ORDER_ADDRESS__ORDER = ADDRESS_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the 'Product' reference.
- *
- * @generated
- * @ordered
- */
- int ORDER_ADDRESS__PRODUCT = ADDRESS_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the 'Price' attribute.
- *
- * @generated
- * @ordered
- */
- int ORDER_ADDRESS__PRICE = ADDRESS_FEATURE_COUNT + 3;
-
- /**
- * The feature id for the 'Test Attribute' attribute.
- *
- * @generated
- * @ordered
- */
- int ORDER_ADDRESS__TEST_ATTRIBUTE = ADDRESS_FEATURE_COUNT + 4;
-
- /**
- * The number of structural features of the 'Order Address' class.
- *
- * @generated
- * @ordered
- */
- int ORDER_ADDRESS_FEATURE_COUNT = ADDRESS_FEATURE_COUNT + 5;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.ProductToOrderImpl
- * Product To Order}' class.
- *
- * @see org.eclipse.emf.cdo.tests.model1.impl.ProductToOrderImpl
- * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getProductToOrder()
- * @generated
- */
- int PRODUCT_TO_ORDER = 11;
-
- /**
- * The feature id for the 'Key' reference.
- *
- * @generated
- * @ordered
- */
- int PRODUCT_TO_ORDER__KEY = 0;
-
- /**
- * The feature id for the 'Value' reference.
- *
- * @generated
- * @ordered
- */
- int PRODUCT_TO_ORDER__VALUE = 1;
-
- /**
- * The number of structural features of the 'Product To Order' class.
- *
- * @generated
- * @ordered
- */
- int PRODUCT_TO_ORDER_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.VAT VAT}' enum.
- *
- * @see org.eclipse.emf.cdo.tests.model1.VAT
- * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getVAT()
- * @generated
- */
- int VAT = 12;
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.Supplier Supplier}'.
- *
- * @return the meta object for class 'Supplier'.
- * @see org.eclipse.emf.cdo.tests.model1.Supplier
- * @generated
- */
- EClass getSupplier();
-
- /**
- * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.model1.Supplier#getPurchaseOrders
- * Purchase Orders}'.
- *
- * @return the meta object for the reference list 'Purchase Orders'.
- * @see org.eclipse.emf.cdo.tests.model1.Supplier#getPurchaseOrders()
- * @see #getSupplier()
- * @generated
- */
- EReference getSupplier_PurchaseOrders();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.Supplier#isPreferred
- * Preferred}'.
- *
- * @return the meta object for the attribute 'Preferred'.
- * @see org.eclipse.emf.cdo.tests.model1.Supplier#isPreferred()
- * @see #getSupplier()
- * @generated
- */
- EAttribute getSupplier_Preferred();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder Purchase Order}'.
- *
- *
- * @return the meta object for class 'Purchase Order'.
- * @see org.eclipse.emf.cdo.tests.model1.PurchaseOrder
- * @generated
- */
- EClass getPurchaseOrder();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder#getDate
- * Date}'.
- *
- * @return the meta object for the attribute 'Date'.
- * @see org.eclipse.emf.cdo.tests.model1.PurchaseOrder#getDate()
- * @see #getPurchaseOrder()
- * @generated
- */
- EAttribute getPurchaseOrder_Date();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder#getSupplier
- * Supplier}'.
- *
- * @return the meta object for the reference 'Supplier'.
- * @see org.eclipse.emf.cdo.tests.model1.PurchaseOrder#getSupplier()
- * @see #getPurchaseOrder()
- * @generated
- */
- EReference getPurchaseOrder_Supplier();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail Order Detail}'.
- *
- *
- * @return the meta object for class 'Order Detail'.
- * @see org.eclipse.emf.cdo.tests.model1.OrderDetail
- * @generated
- */
- EClass getOrderDetail();
-
- /**
- * Returns the meta object for the container reference '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail#getOrder
- * Order}'.
- *
- * @return the meta object for the container reference 'Order'.
- * @see org.eclipse.emf.cdo.tests.model1.OrderDetail#getOrder()
- * @see #getOrderDetail()
- * @generated
- */
- EReference getOrderDetail_Order();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail#getProduct
- * Product}'.
- *
- * @return the meta object for the reference 'Product'.
- * @see org.eclipse.emf.cdo.tests.model1.OrderDetail#getProduct()
- * @see #getOrderDetail()
- * @generated
- */
- EReference getOrderDetail_Product();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail#getPrice
- * Price}'.
- *
- * @return the meta object for the attribute 'Price'.
- * @see org.eclipse.emf.cdo.tests.model1.OrderDetail#getPrice()
- * @see #getOrderDetail()
- * @generated
- */
- EAttribute getOrderDetail_Price();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.OrderAddress Order Address}'.
- *
- *
- * @return the meta object for class 'Order Address'.
- * @see org.eclipse.emf.cdo.tests.model1.OrderAddress
- * @generated
- */
- EClass getOrderAddress();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.OrderAddress#isTestAttribute
- * Test Attribute}'.
- *
- * @return the meta object for the attribute 'Test Attribute'.
- * @see org.eclipse.emf.cdo.tests.model1.OrderAddress#isTestAttribute()
- * @see #getOrderAddress()
- * @generated
- */
- EAttribute getOrderAddress_TestAttribute();
-
- /**
- * Returns the meta object for class '{@link java.util.Map.Entry Product To Order}'.
- *
- *
- * @return the meta object for class 'Product To Order'.
- * @see java.util.Map.Entry
- * @model keyType="org.eclipse.emf.cdo.tests.model1.Product1" valueType="org.eclipse.emf.cdo.tests.model1.SalesOrder"
- * @generated
- */
- EClass getProductToOrder();
-
- /**
- * Returns the meta object for the reference '{@link java.util.Map.Entry Key}'.
- *
- * @return the meta object for the reference 'Key'.
- * @see java.util.Map.Entry
- * @see #getProductToOrder()
- * @generated
- */
- EReference getProductToOrder_Key();
-
- /**
- * Returns the meta object for the reference '{@link java.util.Map.Entry Value}'.
- *
- *
- * @return the meta object for the reference 'Value'.
- * @see java.util.Map.Entry
- * @see #getProductToOrder()
- * @generated
- */
- EReference getProductToOrder_Value();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.emf.cdo.tests.model1.VAT VAT}'.
- *
- * @return the meta object for enum 'VAT'.
- * @see org.eclipse.emf.cdo.tests.model1.VAT
- * @generated
- */
- EEnum getVAT();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.Category Category}'.
- *
- * @return the meta object for class 'Category'.
- * @see org.eclipse.emf.cdo.tests.model1.Category
- * @generated
- */
- EClass getCategory();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.Category#getName Name}
- * '.
- *
- * @return the meta object for the attribute 'Name'.
- * @see org.eclipse.emf.cdo.tests.model1.Category#getName()
- * @see #getCategory()
- * @generated
- */
- EAttribute getCategory_Name();
-
- /**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.emf.cdo.tests.model1.Category#getCategories Categories}'.
- *
- * @return the meta object for the containment reference list 'Categories'.
- * @see org.eclipse.emf.cdo.tests.model1.Category#getCategories()
- * @see #getCategory()
- * @generated
- */
- EReference getCategory_Categories();
-
- /**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.emf.cdo.tests.model1.Category#getProducts Products}'.
- *
- * @return the meta object for the containment reference list 'Products'.
- * @see org.eclipse.emf.cdo.tests.model1.Category#getProducts()
- * @see #getCategory()
- * @generated
- */
- EReference getCategory_Products();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.Product1 Product1}'.
- *
- * @return the meta object for class 'Product1'.
- * @see org.eclipse.emf.cdo.tests.model1.Product1
- * @generated
- */
- EClass getProduct1();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.Product1#getName Name}
- * '.
- *
- * @return the meta object for the attribute 'Name'.
- * @see org.eclipse.emf.cdo.tests.model1.Product1#getName()
- * @see #getProduct1()
- * @generated
- */
- EAttribute getProduct1_Name();
-
- /**
- * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.model1.Product1#getOrderDetails
- * Order Details}'.
- *
- * @return the meta object for the reference list 'Order Details'.
- * @see org.eclipse.emf.cdo.tests.model1.Product1#getOrderDetails()
- * @see #getProduct1()
- * @generated
- */
- EReference getProduct1_OrderDetails();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.Product1#getVat Vat}'.
- *
- *
- * @return the meta object for the attribute 'Vat'.
- * @see org.eclipse.emf.cdo.tests.model1.Product1#getVat()
- * @see #getProduct1()
- * @generated
- */
- EAttribute getProduct1_Vat();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.Product1#getDescription
- * Description}'.
- *
- * @return the meta object for the attribute 'Description'.
- * @see org.eclipse.emf.cdo.tests.model1.Product1#getDescription()
- * @see #getProduct1()
- * @generated
- */
- EAttribute getProduct1_Description();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.Company Company}'.
- *
- * @return the meta object for class 'Company'.
- * @see org.eclipse.emf.cdo.tests.model1.Company
- * @generated
- */
- EClass getCompany();
-
- /**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.emf.cdo.tests.model1.Company#getCategories Categories}'.
- *
- * @return the meta object for the containment reference list 'Categories'.
- * @see org.eclipse.emf.cdo.tests.model1.Company#getCategories()
- * @see #getCompany()
- * @generated
- */
- EReference getCompany_Categories();
-
- /**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.emf.cdo.tests.model1.Company#getSuppliers Suppliers}'.
- *
- * @return the meta object for the containment reference list 'Suppliers'.
- * @see org.eclipse.emf.cdo.tests.model1.Company#getSuppliers()
- * @see #getCompany()
- * @generated
- */
- EReference getCompany_Suppliers();
-
- /**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.emf.cdo.tests.model1.Company#getPurchaseOrders Purchase Orders}'.
- *
- * @return the meta object for the containment reference list 'Purchase Orders'.
- * @see org.eclipse.emf.cdo.tests.model1.Company#getPurchaseOrders()
- * @see #getCompany()
- * @generated
- */
- EReference getCompany_PurchaseOrders();
-
- /**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.emf.cdo.tests.model1.Company#getCustomers Customers}'.
- *
- * @return the meta object for the containment reference list 'Customers'.
- * @see org.eclipse.emf.cdo.tests.model1.Company#getCustomers()
- * @see #getCompany()
- * @generated
- */
- EReference getCompany_Customers();
-
- /**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.emf.cdo.tests.model1.Company#getSalesOrders Sales Orders}'.
- *
- *
- * @return the meta object for the containment reference list 'Sales Orders'.
- * @see org.eclipse.emf.cdo.tests.model1.Company#getSalesOrders()
- * @see #getCompany()
- * @generated
- */
- EReference getCompany_SalesOrders();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.Customer Customer}'.
- *
- * @return the meta object for class 'Customer'.
- * @see org.eclipse.emf.cdo.tests.model1.Customer
- * @generated
- */
- EClass getCustomer();
-
- /**
- * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.model1.Customer#getSalesOrders
- * Sales Orders}'.
- *
- * @return the meta object for the reference list 'Sales Orders'.
- * @see org.eclipse.emf.cdo.tests.model1.Customer#getSalesOrders()
- * @see #getCustomer()
- * @generated
- */
- EReference getCustomer_SalesOrders();
-
- /**
- * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model1.Customer#getOrderByProduct
- * Order By Product}'.
- *
- * @return the meta object for the map 'Order By Product'.
- * @see org.eclipse.emf.cdo.tests.model1.Customer#getOrderByProduct()
- * @see #getCustomer()
- * @generated
- */
- EReference getCustomer_OrderByProduct();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.Order Order}'.
- *
- * @return the meta object for class 'Order'.
- * @see org.eclipse.emf.cdo.tests.model1.Order
- * @generated
- */
- EClass getOrder();
-
- /**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.emf.cdo.tests.model1.Order#getOrderDetails Order Details}'.
- *
- *
- * @return the meta object for the containment reference list 'Order Details'.
- * @see org.eclipse.emf.cdo.tests.model1.Order#getOrderDetails()
- * @see #getOrder()
- * @generated
- */
- EReference getOrder_OrderDetails();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.SalesOrder Sales Order}'.
- *
- * @return the meta object for class 'Sales Order'.
- * @see org.eclipse.emf.cdo.tests.model1.SalesOrder
- * @generated
- */
- EClass getSalesOrder();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.SalesOrder#getId Id}'.
- *
- *
- * @return the meta object for the attribute 'Id'.
- * @see org.eclipse.emf.cdo.tests.model1.SalesOrder#getId()
- * @see #getSalesOrder()
- * @generated
- */
- EAttribute getSalesOrder_Id();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.model1.SalesOrder#getCustomer
- * Customer}'.
- *
- * @return the meta object for the reference 'Customer'.
- * @see org.eclipse.emf.cdo.tests.model1.SalesOrder#getCustomer()
- * @see #getSalesOrder()
- * @generated
- */
- EReference getSalesOrder_Customer();
-
- /**
- * Returns the factory that creates the instances of the model.
- *
- * @return the factory that creates the instances of the model.
- * @generated
- */
- Model1Factory getModel1Factory();
-
-} // Model1Package
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+/**
+ * The Package for the model. It contains accessors for the meta objects to represent
+ *
+ *
each class,
+ *
each feature of each class,
+ *
each enum,
+ *
and each data type
+ *
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Factory
+ * @model kind="package"
+ * annotation="teneo.jpa value='@hbGenericGenerators({@GenericGenerator(name=\"system-uuid\", strategy = \"org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOUUIDHexGenerator\")})'"
+ * @generated
+ */
+public interface Model1Package extends EPackage
+{
+ /**
+ * The package name.
+ *
+ * @generated
+ */
+ String eNAME = "model1";
+
+ /**
+ * The package namespace URI.
+ *
+ * @generated
+ */
+ String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/model1/1.0.0";
+
+ /**
+ * The package namespace name.
+ *
+ * @generated
+ */
+ String eNS_PREFIX = "model1";
+
+ /**
+ * The singleton instance of the package.
+ *
+ * @generated
+ */
+ Model1Package eINSTANCE = org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.AddressImpl Address}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.impl.AddressImpl
+ * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getAddress()
+ * @generated
+ */
+ int ADDRESS = 0;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int ADDRESS__NAME = 0;
+
+ /**
+ * The feature id for the 'Street' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int ADDRESS__STREET = 1;
+
+ /**
+ * The feature id for the 'City' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int ADDRESS__CITY = 2;
+
+ /**
+ * The number of structural features of the 'Address' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int ADDRESS_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.SupplierImpl Supplier}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.impl.SupplierImpl
+ * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getSupplier()
+ * @generated
+ */
+ int SUPPLIER = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.PurchaseOrderImpl Purchase Order}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.impl.PurchaseOrderImpl
+ * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getPurchaseOrder()
+ * @generated
+ */
+ int PURCHASE_ORDER = 6;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.OrderDetailImpl Order Detail}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.impl.OrderDetailImpl
+ * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getOrderDetail()
+ * @generated
+ */
+ int ORDER_DETAIL = 5;
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.Address Address}'.
+ *
+ * @return the meta object for class 'Address'.
+ * @see org.eclipse.emf.cdo.tests.model1.Address
+ * @generated
+ */
+ EClass getAddress();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.Address#getName Name}'.
+ *
+ * @return the meta object for the attribute 'Name'.
+ * @see org.eclipse.emf.cdo.tests.model1.Address#getName()
+ * @see #getAddress()
+ * @generated
+ */
+ EAttribute getAddress_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.Address#getStreet Street}'.
+ *
+ * @return the meta object for the attribute 'Street'.
+ * @see org.eclipse.emf.cdo.tests.model1.Address#getStreet()
+ * @see #getAddress()
+ * @generated
+ */
+ EAttribute getAddress_Street();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.Address#getCity City}'.
+ *
+ * @return the meta object for the attribute 'City'.
+ * @see org.eclipse.emf.cdo.tests.model1.Address#getCity()
+ * @see #getAddress()
+ * @generated
+ */
+ EAttribute getAddress_City();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.CategoryImpl Category}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.impl.CategoryImpl
+ * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getCategory()
+ * @generated
+ */
+ int CATEGORY = 8;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.CompanyImpl Company}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.impl.CompanyImpl
+ * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getCompany()
+ * @generated
+ */
+ int COMPANY = 1;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int COMPANY__NAME = ADDRESS__NAME;
+
+ /**
+ * The feature id for the 'Street' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int COMPANY__STREET = ADDRESS__STREET;
+
+ /**
+ * The feature id for the 'City' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int COMPANY__CITY = ADDRESS__CITY;
+
+ /**
+ * The feature id for the 'Categories' containment reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int COMPANY__CATEGORIES = ADDRESS_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the 'Suppliers' containment reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int COMPANY__SUPPLIERS = ADDRESS_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the 'Customers' containment reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int COMPANY__CUSTOMERS = ADDRESS_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the 'Purchase Orders' containment reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int COMPANY__PURCHASE_ORDERS = ADDRESS_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the 'Sales Orders' containment reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int COMPANY__SALES_ORDERS = ADDRESS_FEATURE_COUNT + 4;
+
+ /**
+ * The number of structural features of the 'Company' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int COMPANY_FEATURE_COUNT = ADDRESS_FEATURE_COUNT + 5;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int SUPPLIER__NAME = ADDRESS__NAME;
+
+ /**
+ * The feature id for the 'Street' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int SUPPLIER__STREET = ADDRESS__STREET;
+
+ /**
+ * The feature id for the 'City' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int SUPPLIER__CITY = ADDRESS__CITY;
+
+ /**
+ * The feature id for the 'Purchase Orders' reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int SUPPLIER__PURCHASE_ORDERS = ADDRESS_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the 'Preferred' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int SUPPLIER__PREFERRED = ADDRESS_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the 'Supplier' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int SUPPLIER_FEATURE_COUNT = ADDRESS_FEATURE_COUNT + 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.CustomerImpl Customer}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.impl.CustomerImpl
+ * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getCustomer()
+ * @generated
+ */
+ int CUSTOMER = 3;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int CUSTOMER__NAME = ADDRESS__NAME;
+
+ /**
+ * The feature id for the 'Street' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int CUSTOMER__STREET = ADDRESS__STREET;
+
+ /**
+ * The feature id for the 'City' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int CUSTOMER__CITY = ADDRESS__CITY;
+
+ /**
+ * The feature id for the 'Sales Orders' reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int CUSTOMER__SALES_ORDERS = ADDRESS_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the 'Order By Product' map.
+ *
+ * @generated
+ * @ordered
+ */
+ int CUSTOMER__ORDER_BY_PRODUCT = ADDRESS_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the 'Customer' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int CUSTOMER_FEATURE_COUNT = ADDRESS_FEATURE_COUNT + 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.OrderImpl Order}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.impl.OrderImpl
+ * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getOrder()
+ * @generated
+ */
+ int ORDER = 4;
+
+ /**
+ * The feature id for the 'Order Details' containment reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int ORDER__ORDER_DETAILS = 0;
+
+ /**
+ * The number of structural features of the 'Order' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int ORDER_FEATURE_COUNT = 1;
+
+ /**
+ * The feature id for the 'Order' container reference.
+ *
+ * @generated
+ * @ordered
+ */
+ int ORDER_DETAIL__ORDER = 0;
+
+ /**
+ * The feature id for the 'Product' reference.
+ *
+ * @generated
+ * @ordered
+ */
+ int ORDER_DETAIL__PRODUCT = 1;
+
+ /**
+ * The feature id for the 'Price' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int ORDER_DETAIL__PRICE = 2;
+
+ /**
+ * The number of structural features of the 'Order Detail' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int ORDER_DETAIL_FEATURE_COUNT = 3;
+
+ /**
+ * The feature id for the 'Order Details' containment reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int PURCHASE_ORDER__ORDER_DETAILS = ORDER__ORDER_DETAILS;
+
+ /**
+ * The feature id for the 'Date' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int PURCHASE_ORDER__DATE = ORDER_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the 'Supplier' reference.
+ *
+ * @generated
+ * @ordered
+ */
+ int PURCHASE_ORDER__SUPPLIER = ORDER_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the 'Purchase Order' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int PURCHASE_ORDER_FEATURE_COUNT = ORDER_FEATURE_COUNT + 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.SalesOrderImpl Sales Order}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.impl.SalesOrderImpl
+ * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getSalesOrder()
+ * @generated
+ */
+ int SALES_ORDER = 7;
+
+ /**
+ * The feature id for the 'Order Details' containment reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int SALES_ORDER__ORDER_DETAILS = ORDER__ORDER_DETAILS;
+
+ /**
+ * The feature id for the 'Id' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int SALES_ORDER__ID = ORDER_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the 'Customer' reference.
+ *
+ * @generated
+ * @ordered
+ */
+ int SALES_ORDER__CUSTOMER = ORDER_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the 'Sales Order' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int SALES_ORDER_FEATURE_COUNT = ORDER_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int CATEGORY__NAME = 0;
+
+ /**
+ * The feature id for the 'Categories' containment reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int CATEGORY__CATEGORIES = 1;
+
+ /**
+ * The feature id for the 'Products' containment reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int CATEGORY__PRODUCTS = 2;
+
+ /**
+ * The number of structural features of the 'Category' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int CATEGORY_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.Product1Impl Product1}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.impl.Product1Impl
+ * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getProduct1()
+ * @generated
+ */
+ int PRODUCT1 = 9;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int PRODUCT1__NAME = 0;
+
+ /**
+ * The feature id for the 'Order Details' reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int PRODUCT1__ORDER_DETAILS = 1;
+
+ /**
+ * The feature id for the 'Vat' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int PRODUCT1__VAT = 2;
+
+ /**
+ * The feature id for the 'Other VA Ts' attribute list.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int PRODUCT1__OTHER_VA_TS = 3;
+
+ /**
+ * The feature id for the 'Description' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int PRODUCT1__DESCRIPTION = 4;
+
+ /**
+ * The number of structural features of the 'Product1' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int PRODUCT1_FEATURE_COUNT = 5;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.OrderAddressImpl Order Address}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.impl.OrderAddressImpl
+ * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getOrderAddress()
+ * @generated
+ */
+ int ORDER_ADDRESS = 10;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int ORDER_ADDRESS__NAME = ADDRESS__NAME;
+
+ /**
+ * The feature id for the 'Street' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int ORDER_ADDRESS__STREET = ADDRESS__STREET;
+
+ /**
+ * The feature id for the 'City' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int ORDER_ADDRESS__CITY = ADDRESS__CITY;
+
+ /**
+ * The feature id for the 'Order Details' containment reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int ORDER_ADDRESS__ORDER_DETAILS = ADDRESS_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the 'Order' container reference.
+ *
+ * @generated
+ * @ordered
+ */
+ int ORDER_ADDRESS__ORDER = ADDRESS_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the 'Product' reference.
+ *
+ * @generated
+ * @ordered
+ */
+ int ORDER_ADDRESS__PRODUCT = ADDRESS_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the 'Price' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int ORDER_ADDRESS__PRICE = ADDRESS_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the 'Test Attribute' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int ORDER_ADDRESS__TEST_ATTRIBUTE = ADDRESS_FEATURE_COUNT + 4;
+
+ /**
+ * The number of structural features of the 'Order Address' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int ORDER_ADDRESS_FEATURE_COUNT = ADDRESS_FEATURE_COUNT + 5;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.impl.ProductToOrderImpl Product To Order}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.impl.ProductToOrderImpl
+ * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getProductToOrder()
+ * @generated
+ */
+ int PRODUCT_TO_ORDER = 11;
+
+ /**
+ * The feature id for the 'Key' reference.
+ *
+ * @generated
+ * @ordered
+ */
+ int PRODUCT_TO_ORDER__KEY = 0;
+
+ /**
+ * The feature id for the 'Value' reference.
+ *
+ * @generated
+ * @ordered
+ */
+ int PRODUCT_TO_ORDER__VALUE = 1;
+
+ /**
+ * The number of structural features of the 'Product To Order' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int PRODUCT_TO_ORDER_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model1.VAT VAT}' enum.
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.VAT
+ * @see org.eclipse.emf.cdo.tests.model1.impl.Model1PackageImpl#getVAT()
+ * @generated
+ */
+ int VAT = 12;
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.Supplier Supplier}'.
+ *
+ * @return the meta object for class 'Supplier'.
+ * @see org.eclipse.emf.cdo.tests.model1.Supplier
+ * @generated
+ */
+ EClass getSupplier();
+
+ /**
+ * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.model1.Supplier#getPurchaseOrders Purchase Orders}'.
+ *
+ * @return the meta object for the reference list 'Purchase Orders'.
+ * @see org.eclipse.emf.cdo.tests.model1.Supplier#getPurchaseOrders()
+ * @see #getSupplier()
+ * @generated
+ */
+ EReference getSupplier_PurchaseOrders();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.Supplier#isPreferred Preferred}'.
+ *
+ * @return the meta object for the attribute 'Preferred'.
+ * @see org.eclipse.emf.cdo.tests.model1.Supplier#isPreferred()
+ * @see #getSupplier()
+ * @generated
+ */
+ EAttribute getSupplier_Preferred();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder Purchase Order}'.
+ *
+ * @return the meta object for class 'Purchase Order'.
+ * @see org.eclipse.emf.cdo.tests.model1.PurchaseOrder
+ * @generated
+ */
+ EClass getPurchaseOrder();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder#getDate Date}'.
+ *
+ * @return the meta object for the attribute 'Date'.
+ * @see org.eclipse.emf.cdo.tests.model1.PurchaseOrder#getDate()
+ * @see #getPurchaseOrder()
+ * @generated
+ */
+ EAttribute getPurchaseOrder_Date();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder#getSupplier Supplier}'.
+ *
+ * @return the meta object for the reference 'Supplier'.
+ * @see org.eclipse.emf.cdo.tests.model1.PurchaseOrder#getSupplier()
+ * @see #getPurchaseOrder()
+ * @generated
+ */
+ EReference getPurchaseOrder_Supplier();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail Order Detail}'.
+ *
+ * @return the meta object for class 'Order Detail'.
+ * @see org.eclipse.emf.cdo.tests.model1.OrderDetail
+ * @generated
+ */
+ EClass getOrderDetail();
+
+ /**
+ * Returns the meta object for the container reference '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail#getOrder Order}'.
+ *
+ * @return the meta object for the container reference 'Order'.
+ * @see org.eclipse.emf.cdo.tests.model1.OrderDetail#getOrder()
+ * @see #getOrderDetail()
+ * @generated
+ */
+ EReference getOrderDetail_Order();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail#getProduct Product}'.
+ *
+ * @return the meta object for the reference 'Product'.
+ * @see org.eclipse.emf.cdo.tests.model1.OrderDetail#getProduct()
+ * @see #getOrderDetail()
+ * @generated
+ */
+ EReference getOrderDetail_Product();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail#getPrice Price}'.
+ *
+ * @return the meta object for the attribute 'Price'.
+ * @see org.eclipse.emf.cdo.tests.model1.OrderDetail#getPrice()
+ * @see #getOrderDetail()
+ * @generated
+ */
+ EAttribute getOrderDetail_Price();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.OrderAddress Order Address}'.
+ *
+ * @return the meta object for class 'Order Address'.
+ * @see org.eclipse.emf.cdo.tests.model1.OrderAddress
+ * @generated
+ */
+ EClass getOrderAddress();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.OrderAddress#isTestAttribute Test Attribute}'.
+ *
+ * @return the meta object for the attribute 'Test Attribute'.
+ * @see org.eclipse.emf.cdo.tests.model1.OrderAddress#isTestAttribute()
+ * @see #getOrderAddress()
+ * @generated
+ */
+ EAttribute getOrderAddress_TestAttribute();
+
+ /**
+ * Returns the meta object for class '{@link java.util.Map.Entry Product To Order}'.
+ *
+ *
+ * @return the meta object for class 'Product To Order'.
+ * @see java.util.Map.Entry
+ * @model keyType="org.eclipse.emf.cdo.tests.model1.Product1"
+ * valueType="org.eclipse.emf.cdo.tests.model1.SalesOrder"
+ * @generated
+ */
+ EClass getProductToOrder();
+
+ /**
+ * Returns the meta object for the reference '{@link java.util.Map.Entry Key}'.
+ *
+ * @return the meta object for the reference 'Key'.
+ * @see java.util.Map.Entry
+ * @see #getProductToOrder()
+ * @generated
+ */
+ EReference getProductToOrder_Key();
+
+ /**
+ * Returns the meta object for the reference '{@link java.util.Map.Entry Value}'.
+ *
+ *
+ * @return the meta object for the reference 'Value'.
+ * @see java.util.Map.Entry
+ * @see #getProductToOrder()
+ * @generated
+ */
+ EReference getProductToOrder_Value();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.emf.cdo.tests.model1.VAT VAT}'.
+ *
+ * @return the meta object for enum 'VAT'.
+ * @see org.eclipse.emf.cdo.tests.model1.VAT
+ * @generated
+ */
+ EEnum getVAT();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.Category Category}'.
+ *
+ * @return the meta object for class 'Category'.
+ * @see org.eclipse.emf.cdo.tests.model1.Category
+ * @generated
+ */
+ EClass getCategory();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.Category#getName Name}'.
+ *
+ * @return the meta object for the attribute 'Name'.
+ * @see org.eclipse.emf.cdo.tests.model1.Category#getName()
+ * @see #getCategory()
+ * @generated
+ */
+ EAttribute getCategory_Name();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model1.Category#getCategories Categories}'.
+ *
+ * @return the meta object for the containment reference list 'Categories'.
+ * @see org.eclipse.emf.cdo.tests.model1.Category#getCategories()
+ * @see #getCategory()
+ * @generated
+ */
+ EReference getCategory_Categories();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model1.Category#getProducts Products}'.
+ *
+ * @return the meta object for the containment reference list 'Products'.
+ * @see org.eclipse.emf.cdo.tests.model1.Category#getProducts()
+ * @see #getCategory()
+ * @generated
+ */
+ EReference getCategory_Products();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.Product1 Product1}'.
+ *
+ * @return the meta object for class 'Product1'.
+ * @see org.eclipse.emf.cdo.tests.model1.Product1
+ * @generated
+ */
+ EClass getProduct1();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.Product1#getName Name}'.
+ *
+ * @return the meta object for the attribute 'Name'.
+ * @see org.eclipse.emf.cdo.tests.model1.Product1#getName()
+ * @see #getProduct1()
+ * @generated
+ */
+ EAttribute getProduct1_Name();
+
+ /**
+ * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.model1.Product1#getOrderDetails Order Details}'.
+ *
+ * @return the meta object for the reference list 'Order Details'.
+ * @see org.eclipse.emf.cdo.tests.model1.Product1#getOrderDetails()
+ * @see #getProduct1()
+ * @generated
+ */
+ EReference getProduct1_OrderDetails();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.Product1#getVat Vat}'.
+ *
+ * @return the meta object for the attribute 'Vat'.
+ * @see org.eclipse.emf.cdo.tests.model1.Product1#getVat()
+ * @see #getProduct1()
+ * @generated
+ */
+ EAttribute getProduct1_Vat();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model1.Product1#getOtherVATs Other VA Ts}'.
+ *
+ *
+ * @return the meta object for the attribute list 'Other VA Ts'.
+ * @see org.eclipse.emf.cdo.tests.model1.Product1#getOtherVATs()
+ * @see #getProduct1()
+ * @generated
+ */
+ EAttribute getProduct1_OtherVATs();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.Product1#getDescription Description}'.
+ *
+ * @return the meta object for the attribute 'Description'.
+ * @see org.eclipse.emf.cdo.tests.model1.Product1#getDescription()
+ * @see #getProduct1()
+ * @generated
+ */
+ EAttribute getProduct1_Description();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.Company Company}'.
+ *
+ * @return the meta object for class 'Company'.
+ * @see org.eclipse.emf.cdo.tests.model1.Company
+ * @generated
+ */
+ EClass getCompany();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model1.Company#getCategories Categories}'.
+ *
+ * @return the meta object for the containment reference list 'Categories'.
+ * @see org.eclipse.emf.cdo.tests.model1.Company#getCategories()
+ * @see #getCompany()
+ * @generated
+ */
+ EReference getCompany_Categories();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model1.Company#getSuppliers Suppliers}'.
+ *
+ * @return the meta object for the containment reference list 'Suppliers'.
+ * @see org.eclipse.emf.cdo.tests.model1.Company#getSuppliers()
+ * @see #getCompany()
+ * @generated
+ */
+ EReference getCompany_Suppliers();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model1.Company#getPurchaseOrders Purchase Orders}'.
+ *
+ * @return the meta object for the containment reference list 'Purchase Orders'.
+ * @see org.eclipse.emf.cdo.tests.model1.Company#getPurchaseOrders()
+ * @see #getCompany()
+ * @generated
+ */
+ EReference getCompany_PurchaseOrders();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model1.Company#getCustomers Customers}'.
+ *
+ * @return the meta object for the containment reference list 'Customers'.
+ * @see org.eclipse.emf.cdo.tests.model1.Company#getCustomers()
+ * @see #getCompany()
+ * @generated
+ */
+ EReference getCompany_Customers();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model1.Company#getSalesOrders Sales Orders}'.
+ *
+ *
+ * @return the meta object for the containment reference list 'Sales Orders'.
+ * @see org.eclipse.emf.cdo.tests.model1.Company#getSalesOrders()
+ * @see #getCompany()
+ * @generated
+ */
+ EReference getCompany_SalesOrders();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.Customer Customer}'.
+ *
+ * @return the meta object for class 'Customer'.
+ * @see org.eclipse.emf.cdo.tests.model1.Customer
+ * @generated
+ */
+ EClass getCustomer();
+
+ /**
+ * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.model1.Customer#getSalesOrders Sales Orders}'.
+ *
+ * @return the meta object for the reference list 'Sales Orders'.
+ * @see org.eclipse.emf.cdo.tests.model1.Customer#getSalesOrders()
+ * @see #getCustomer()
+ * @generated
+ */
+ EReference getCustomer_SalesOrders();
+
+ /**
+ * Returns the meta object for the map '{@link org.eclipse.emf.cdo.tests.model1.Customer#getOrderByProduct Order By Product}'.
+ *
+ * @return the meta object for the map 'Order By Product'.
+ * @see org.eclipse.emf.cdo.tests.model1.Customer#getOrderByProduct()
+ * @see #getCustomer()
+ * @generated
+ */
+ EReference getCustomer_OrderByProduct();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.Order Order}'.
+ *
+ * @return the meta object for class 'Order'.
+ * @see org.eclipse.emf.cdo.tests.model1.Order
+ * @generated
+ */
+ EClass getOrder();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model1.Order#getOrderDetails Order Details}'.
+ *
+ *
+ * @return the meta object for the containment reference list 'Order Details'.
+ * @see org.eclipse.emf.cdo.tests.model1.Order#getOrderDetails()
+ * @see #getOrder()
+ * @generated
+ */
+ EReference getOrder_OrderDetails();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model1.SalesOrder Sales Order}'.
+ *
+ * @return the meta object for class 'Sales Order'.
+ * @see org.eclipse.emf.cdo.tests.model1.SalesOrder
+ * @generated
+ */
+ EClass getSalesOrder();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model1.SalesOrder#getId Id}'.
+ *
+ * @return the meta object for the attribute 'Id'.
+ * @see org.eclipse.emf.cdo.tests.model1.SalesOrder#getId()
+ * @see #getSalesOrder()
+ * @generated
+ */
+ EAttribute getSalesOrder_Id();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.model1.SalesOrder#getCustomer Customer}'.
+ *
+ * @return the meta object for the reference 'Customer'.
+ * @see org.eclipse.emf.cdo.tests.model1.SalesOrder#getCustomer()
+ * @see #getSalesOrder()
+ * @generated
+ */
+ EReference getSalesOrder_Customer();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ *
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ Model1Factory getModel1Factory();
+
+} // Model1Package
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Order.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Order.java
index c37c4aa1d2..00119b1b39 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Order.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Order.java
@@ -1,56 +1,51 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * A representation of the model object 'Order'.
- *
- * The following features are supported:
- *
- *
{@link org.eclipse.emf.cdo.tests.model1.Order#getOrderDetails Order Details}
- *
- *
- *
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getOrder()
- * @model abstract="true" annotation="teneo.jpa value='@Entity(name=\"BaseOrder\")'"
- * @generated
- */
-public interface Order extends EObject
-{
- /**
- *
- *
- * @generated
- */
- String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * Returns the value of the 'Order Details' containment reference list. The list contents are of type
- * {@link org.eclipse.emf.cdo.tests.model1.OrderDetail}. It is bidirectional and its opposite is '
- * {@link org.eclipse.emf.cdo.tests.model1.OrderDetail#getOrder Order}'.
- *
- * If the meaning of the 'Order Details' containment reference list isn't clear, there really should be more
- * of a description here...
- *
- *
- *
- * @return the value of the 'Order Details' containment reference list.
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getOrder_OrderDetails()
- * @see org.eclipse.emf.cdo.tests.model1.OrderDetail#getOrder
- * @model opposite="order" containment="true"
- * @generated
- */
- EList getOrderDetails();
-
-} // Order
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * A representation of the model object 'Order'.
+ *
+ *
+ * The following features are supported:
+ *
+ *
{@link org.eclipse.emf.cdo.tests.model1.Order#getOrderDetails Order Details}
+ *
+ *
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getOrder()
+ * @model abstract="true"
+ * annotation="teneo.jpa value='@Entity(name=\"BaseOrder\")'"
+ * @generated
+ */
+public interface Order extends EObject
+{
+ /**
+ * Returns the value of the 'Order Details' containment reference list.
+ * The list contents are of type {@link org.eclipse.emf.cdo.tests.model1.OrderDetail}.
+ * It is bidirectional and its opposite is '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail#getOrder Order}'.
+ *
+ *
+ * If the meaning of the 'Order Details' containment reference list isn't clear, there really should be more
+ * of a description here...
+ *
+ *
+ * @return the value of the 'Order Details' containment reference list.
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getOrder_OrderDetails()
+ * @see org.eclipse.emf.cdo.tests.model1.OrderDetail#getOrder
+ * @model opposite="order" containment="true"
+ * @generated
+ */
+ EList getOrderDetails();
+
+} // Order
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/OrderAddress.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/OrderAddress.java
index 9d402848ce..6014fe7510 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/OrderAddress.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/OrderAddress.java
@@ -1,63 +1,54 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1;
-
-/**
- * A representation of the model object 'Order Address'.
- *
- * The following features are supported:
- *
- *
{@link org.eclipse.emf.cdo.tests.model1.OrderAddress#isTestAttribute Test Attribute}
- *
- *
- *
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getOrderAddress()
- * @model annotation=
- * "teneo.jpa value='@AssociationOverride(name=\"orderDetails\", joinColumns=@JoinColumn(name=\"orderdetails_orderaddressid\"))'"
- * @generated
- */
-public interface OrderAddress extends Address, Order, OrderDetail
-{
- /**
- *
- *
- * @generated
- */
- String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * Returns the value of the 'Test Attribute' attribute.
- *
- * If the meaning of the 'Test Attribute' attribute isn't clear, there really should be more of a description
- * here...
- *
- *
- *
- * @return the value of the 'Test Attribute' attribute.
- * @see #setTestAttribute(boolean)
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getOrderAddress_TestAttribute()
- * @model
- * @generated
- */
- boolean isTestAttribute();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.OrderAddress#isTestAttribute
- * Test Attribute}' attribute.
- *
- * @param value
- * the new value of the 'Test Attribute' attribute.
- * @see #isTestAttribute()
- * @generated
- */
- void setTestAttribute(boolean value);
-
-} // OrderAddress
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1;
+
+/**
+ * A representation of the model object 'Order Address'.
+ *
+ *
+ * The following features are supported:
+ *
+ *
{@link org.eclipse.emf.cdo.tests.model1.OrderAddress#isTestAttribute Test Attribute}
+ * If the meaning of the 'Test Attribute' attribute isn't clear, there really should be more of a description
+ * here...
+ *
+ *
+ * @return the value of the 'Test Attribute' attribute.
+ * @see #setTestAttribute(boolean)
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getOrderAddress_TestAttribute()
+ * @model
+ * @generated
+ */
+ boolean isTestAttribute();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.OrderAddress#isTestAttribute Test Attribute}' attribute.
+ *
+ * @param value the new value of the 'Test Attribute' attribute.
+ * @see #isTestAttribute()
+ * @generated
+ */
+ void setTestAttribute(boolean value);
+
+} // OrderAddress
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/OrderDetail.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/OrderDetail.java
index a0676fdf1b..7665f4e09d 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/OrderDetail.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/OrderDetail.java
@@ -1,123 +1,111 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * A representation of the model object 'Order Detail'.
- *
- *
- *
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getOrderDetail()
- * @model
- * @generated
- */
-public interface OrderDetail extends EObject
-{
- /**
- *
- *
- * @generated
- */
- String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * Returns the value of the 'Order' container reference. It is bidirectional and its opposite is '
- * {@link org.eclipse.emf.cdo.tests.model1.Order#getOrderDetails Order Details}'.
- *
- * If the meaning of the 'Order' container reference isn't clear, there really should be more of a
- * description here...
- *
- *
- *
- * @return the value of the 'Order' container reference.
- * @see #setOrder(Order)
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getOrderDetail_Order()
- * @see org.eclipse.emf.cdo.tests.model1.Order#getOrderDetails
- * @model opposite="orderDetails" required="true" transient="false"
- * @generated
- */
- Order getOrder();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail#getOrder Order}' container
- * reference.
- *
- * @param value
- * the new value of the 'Order' container reference.
- * @see #getOrder()
- * @generated
- */
- void setOrder(Order value);
-
- /**
- * Returns the value of the 'Product' reference. It is bidirectional and its opposite is '
- * {@link org.eclipse.emf.cdo.tests.model1.Product1#getOrderDetails Order Details}'.
- *
- * If the meaning of the 'Product' reference isn't clear, there really should be more of a description
- * here...
- *
- *
- *
- * @return the value of the 'Product' reference.
- * @see #setProduct(Product1)
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getOrderDetail_Product()
- * @see org.eclipse.emf.cdo.tests.model1.Product1#getOrderDetails
- * @model opposite="orderDetails"
- * @generated
- */
- Product1 getProduct();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail#getProduct Product}' reference.
- *
- *
- * @param value
- * the new value of the 'Product' reference.
- * @see #getProduct()
- * @generated
- */
- void setProduct(Product1 value);
-
- /**
- * Returns the value of the 'Price' attribute.
- *
- * If the meaning of the 'Price' attribute isn't clear, there really should be more of a description here...
- *
- *
- *
- * @return the value of the 'Price' attribute.
- * @see #setPrice(float)
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getOrderDetail_Price()
- * @model
- * @generated
- */
- float getPrice();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail#getPrice Price}' attribute.
- *
- *
- * @param value
- * the new value of the 'Price' attribute.
- * @see #getPrice()
- * @generated
- */
- void setPrice(float value);
-
-} // OrderDetail
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * A representation of the model object 'Order Detail'.
+ *
+ *
+ *
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getOrderDetail()
+ * @model
+ * @generated
+ */
+public interface OrderDetail extends EObject
+{
+ /**
+ * Returns the value of the 'Order' container reference.
+ * It is bidirectional and its opposite is '{@link org.eclipse.emf.cdo.tests.model1.Order#getOrderDetails Order Details}'.
+ *
+ *
+ * If the meaning of the 'Order' container reference isn't clear, there really should be more of a
+ * description here...
+ *
+ *
+ * @return the value of the 'Order' container reference.
+ * @see #setOrder(Order)
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getOrderDetail_Order()
+ * @see org.eclipse.emf.cdo.tests.model1.Order#getOrderDetails
+ * @model opposite="orderDetails" required="true" transient="false"
+ * @generated
+ */
+ Order getOrder();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail#getOrder Order}' container reference.
+ *
+ * @param value the new value of the 'Order' container reference.
+ * @see #getOrder()
+ * @generated
+ */
+ void setOrder(Order value);
+
+ /**
+ * Returns the value of the 'Product' reference.
+ * It is bidirectional and its opposite is '{@link org.eclipse.emf.cdo.tests.model1.Product1#getOrderDetails Order Details}'.
+ *
+ *
+ * If the meaning of the 'Product' reference isn't clear, there really should be more of a description
+ * here...
+ *
+ *
+ * @return the value of the 'Product' reference.
+ * @see #setProduct(Product1)
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getOrderDetail_Product()
+ * @see org.eclipse.emf.cdo.tests.model1.Product1#getOrderDetails
+ * @model opposite="orderDetails"
+ * @generated
+ */
+ Product1 getProduct();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail#getProduct Product}' reference.
+ *
+ * @param value the new value of the 'Product' reference.
+ * @see #getProduct()
+ * @generated
+ */
+ void setProduct(Product1 value);
+
+ /**
+ * Returns the value of the 'Price' attribute.
+ *
+ *
+ * If the meaning of the 'Price' attribute isn't clear, there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Price' attribute.
+ * @see #setPrice(float)
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getOrderDetail_Price()
+ * @model
+ * @generated
+ */
+ float getPrice();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail#getPrice Price}' attribute.
+ *
+ * @param value the new value of the 'Price' attribute.
+ * @see #getPrice()
+ * @generated
+ */
+ void setPrice(float value);
+
+} // OrderDetail
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Product1.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Product1.java
index cc330e2adb..10727e4517 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Product1.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Product1.java
@@ -1,141 +1,153 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * A representation of the model object 'Product'.
- *
- *
- *
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getProduct1()
- * @model
- * @generated
- */
-public interface Product1 extends EObject
-{
- /**
- *
- *
- * @generated
- */
- String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * Returns the value of the 'Name' attribute.
- *
- * If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...
- *
- *
- *
- * @return the value of the 'Name' attribute.
- * @see #setName(String)
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getProduct1_Name()
- * @model annotation="teneo.jpa value='@Id'"
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.Product1#getName Name}' attribute.
- *
- * @param value
- * the new value of the 'Name' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the 'Order Details' reference list. The list contents are of type
- * {@link org.eclipse.emf.cdo.tests.model1.OrderDetail}. It is bidirectional and its opposite is '
- * {@link org.eclipse.emf.cdo.tests.model1.OrderDetail#getProduct Product}'.
- *
- * If the meaning of the 'Order Details' reference list isn't clear, there really should be more of a
- * description here...
- *
- *
- *
- * @return the value of the 'Order Details' reference list.
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getProduct1_OrderDetails()
- * @see org.eclipse.emf.cdo.tests.model1.OrderDetail#getProduct
- * @model opposite="product"
- * @generated
- */
- EList getOrderDetails();
-
- /**
- * Returns the value of the 'Vat' attribute. The default value is "vat15". The literals
- * are from the enumeration {@link org.eclipse.emf.cdo.tests.model1.VAT}.
- *
- * If the meaning of the 'Vat' attribute isn't clear, there really should be more of a description here...
- *
- *
- *
- * @return the value of the 'Vat' attribute.
- * @see org.eclipse.emf.cdo.tests.model1.VAT
- * @see #setVat(VAT)
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getProduct1_Vat()
- * @model default="vat15"
- * @generated
- */
- VAT getVat();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.Product1#getVat Vat}' attribute.
- *
- * @param value
- * the new value of the 'Vat' attribute.
- * @see org.eclipse.emf.cdo.tests.model1.VAT
- * @see #getVat()
- * @generated
- */
- void setVat(VAT value);
-
- /**
- * Returns the value of the 'Description' attribute.
- *
- * If the meaning of the 'Description' attribute isn't clear, there really should be more of a description
- * here...
- *
- *
- *
- * @return the value of the 'Description' attribute.
- * @see #setDescription(String)
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getProduct1_Description()
- * @model transient="true"
- * @generated
- */
- String getDescription();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.Product1#getDescription Description}'
- * attribute.
- *
- * @param value
- * the new value of the 'Description' attribute.
- * @see #getDescription()
- * @generated
- */
- void setDescription(String value);
-
-} // Product
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * A representation of the model object 'Product'.
+ *
+ *
+ *
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getProduct1()
+ * @model
+ * @generated
+ */
+public interface Product1 extends EObject
+{
+ /**
+ * Returns the value of the 'Name' attribute.
+ *
+ *
+ * If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Name' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getProduct1_Name()
+ * @model annotation="teneo.jpa value='@Id'"
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.Product1#getName Name}' attribute.
+ *
+ * @param value
+ * the new value of the 'Name' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the 'Order Details' reference list.
+ * The list contents are of type {@link org.eclipse.emf.cdo.tests.model1.OrderDetail}.
+ * It is bidirectional and its opposite is '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail#getProduct Product}'.
+ *
+ *
+ * If the meaning of the 'Order Details' reference list isn't clear, there really should be more of a
+ * description here...
+ *
+ *
+ * @return the value of the 'Order Details' reference list.
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getProduct1_OrderDetails()
+ * @see org.eclipse.emf.cdo.tests.model1.OrderDetail#getProduct
+ * @model opposite="product"
+ * @generated
+ */
+ EList getOrderDetails();
+
+ /**
+ * Returns the value of the 'Vat' attribute.
+ * The default value is "vat15".
+ * The literals are from the enumeration {@link org.eclipse.emf.cdo.tests.model1.VAT}.
+ *
+ *
+ * If the meaning of the 'Vat' attribute isn't clear, there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Vat' attribute.
+ * @see org.eclipse.emf.cdo.tests.model1.VAT
+ * @see #setVat(VAT)
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getProduct1_Vat()
+ * @model default="vat15"
+ * @generated
+ */
+ VAT getVat();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.Product1#getVat Vat}' attribute.
+ *
+ * @param value
+ * the new value of the 'Vat' attribute.
+ * @see org.eclipse.emf.cdo.tests.model1.VAT
+ * @see #getVat()
+ * @generated
+ */
+ void setVat(VAT value);
+
+ /**
+ * Returns the value of the 'Other VA Ts' attribute list.
+ * The list contents are of type {@link org.eclipse.emf.cdo.tests.model1.VAT}.
+ * The literals are from the enumeration {@link org.eclipse.emf.cdo.tests.model1.VAT}.
+ *
+ *
+ * If the meaning of the 'Other VA Ts' attribute list isn't clear,
+ * there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Other VA Ts' attribute list.
+ * @see org.eclipse.emf.cdo.tests.model1.VAT
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getProduct1_OtherVATs()
+ * @model default="vat15"
+ * @generated
+ */
+ EList getOtherVATs();
+
+ /**
+ * Returns the value of the 'Description' attribute.
+ *
+ *
+ * If the meaning of the 'Description' attribute isn't clear, there really should be more of a description
+ * here...
+ *
+ *
+ * @return the value of the 'Description' attribute.
+ * @see #setDescription(String)
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getProduct1_Description()
+ * @model transient="true"
+ * @generated
+ */
+ String getDescription();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.Product1#getDescription Description}' attribute.
+ *
+ * @param value the new value of the 'Description' attribute.
+ * @see #getDescription()
+ * @generated
+ */
+ void setDescription(String value);
+
+} // Product
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/PurchaseOrder.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/PurchaseOrder.java
index 00078f4452..f8873444a4 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/PurchaseOrder.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/PurchaseOrder.java
@@ -1,94 +1,84 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1;
-
-import java.util.Date;
-
-/**
- * A representation of the model object 'Purchase Order'.
- *
- *
- *
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getPurchaseOrder()
- * @model
- * @generated
- */
-public interface PurchaseOrder extends Order
-{
- /**
- *
- *
- * @generated
- */
- String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * Returns the value of the 'Date' attribute.
- *
- * If the meaning of the 'Date' attribute isn't clear, there really should be more of a description here...
- *
- *
- *
- * @return the value of the 'Date' attribute.
- * @see #setDate(Date)
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getPurchaseOrder_Date()
- * @model
- * @generated
- */
- Date getDate();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder#getDate Date}' attribute.
- *
- *
- * @param value
- * the new value of the 'Date' attribute.
- * @see #getDate()
- * @generated
- */
- void setDate(Date value);
-
- /**
- * Returns the value of the 'Supplier' reference. It is bidirectional and its opposite is '
- * {@link org.eclipse.emf.cdo.tests.model1.Supplier#getPurchaseOrders Purchase Orders}'.
- *
- * If the meaning of the 'Supplier' reference isn't clear, there really should be more of a description
- * here...
- *
- *
- *
- * @return the value of the 'Supplier' reference.
- * @see #setSupplier(Supplier)
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getPurchaseOrder_Supplier()
- * @see org.eclipse.emf.cdo.tests.model1.Supplier#getPurchaseOrders
- * @model opposite="purchaseOrders" required="true"
- * @generated
- */
- Supplier getSupplier();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder#getSupplier Supplier}'
- * reference.
- *
- * @param value
- * the new value of the 'Supplier' reference.
- * @see #getSupplier()
- * @generated
- */
- void setSupplier(Supplier value);
-
-} // PurchaseOrder
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1;
+
+import java.util.Date;
+
+/**
+ * A representation of the model object 'Purchase Order'.
+ *
+ *
+ *
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getPurchaseOrder()
+ * @model
+ * @generated
+ */
+public interface PurchaseOrder extends Order
+{
+ /**
+ * Returns the value of the 'Date' attribute.
+ *
+ *
+ * If the meaning of the 'Date' attribute isn't clear, there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Date' attribute.
+ * @see #setDate(Date)
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getPurchaseOrder_Date()
+ * @model
+ * @generated
+ */
+ Date getDate();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder#getDate Date}' attribute.
+ *
+ * @param value the new value of the 'Date' attribute.
+ * @see #getDate()
+ * @generated
+ */
+ void setDate(Date value);
+
+ /**
+ * Returns the value of the 'Supplier' reference.
+ * It is bidirectional and its opposite is '{@link org.eclipse.emf.cdo.tests.model1.Supplier#getPurchaseOrders Purchase Orders}'.
+ *
+ *
+ * If the meaning of the 'Supplier' reference isn't clear, there really should be more of a description
+ * here...
+ *
+ *
+ * @return the value of the 'Supplier' reference.
+ * @see #setSupplier(Supplier)
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getPurchaseOrder_Supplier()
+ * @see org.eclipse.emf.cdo.tests.model1.Supplier#getPurchaseOrders
+ * @model opposite="purchaseOrders" required="true"
+ * @generated
+ */
+ Supplier getSupplier();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder#getSupplier Supplier}' reference.
+ *
+ * @param value the new value of the 'Supplier' reference.
+ * @see #getSupplier()
+ * @generated
+ */
+ void setSupplier(Supplier value);
+
+} // PurchaseOrder
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/SalesOrder.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/SalesOrder.java
index a1a8f03908..c5756231d7 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/SalesOrder.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/SalesOrder.java
@@ -1,91 +1,83 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1;
-
-/**
- * A representation of the model object 'Sales Order'.
- *
- *
- *
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getSalesOrder()
- * @model
- * @generated
- */
-public interface SalesOrder extends Order
-{
- /**
- *
- *
- * @generated
- */
- String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * Returns the value of the 'Id' attribute.
- *
- * If the meaning of the 'Id' attribute isn't clear, there really should be more of a description here...
- *
- *
- *
- * @return the value of the 'Id' attribute.
- * @see #setId(int)
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getSalesOrder_Id()
- * @model
- * @generated
- */
- int getId();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.SalesOrder#getId Id}' attribute.
- *
- * @param value
- * the new value of the 'Id' attribute.
- * @see #getId()
- * @generated
- */
- void setId(int value);
-
- /**
- * Returns the value of the 'Customer' reference. It is bidirectional and its opposite is '
- * {@link org.eclipse.emf.cdo.tests.model1.Customer#getSalesOrders Sales Orders}'.
- *
- * If the meaning of the 'Customer' reference isn't clear, there really should be more of a description
- * here...
- *
- *
- *
- * @return the value of the 'Customer' reference.
- * @see #setCustomer(Customer)
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getSalesOrder_Customer()
- * @see org.eclipse.emf.cdo.tests.model1.Customer#getSalesOrders
- * @model opposite="salesOrders" required="true"
- * @generated
- */
- Customer getCustomer();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.SalesOrder#getCustomer Customer}'
- * reference.
- *
- * @param value
- * the new value of the 'Customer' reference.
- * @see #getCustomer()
- * @generated
- */
- void setCustomer(Customer value);
-
-} // SalesOrder
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1;
+
+/**
+ * A representation of the model object 'Sales Order'.
+ *
+ *
+ *
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getSalesOrder()
+ * @model
+ * @generated
+ */
+public interface SalesOrder extends Order
+{
+ /**
+ * Returns the value of the 'Id' attribute.
+ *
+ *
+ * If the meaning of the 'Id' attribute isn't clear, there really should be more of a description here...
+ *
+ *
+ * @return the value of the 'Id' attribute.
+ * @see #setId(int)
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getSalesOrder_Id()
+ * @model
+ * @generated
+ */
+ int getId();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.SalesOrder#getId Id}' attribute.
+ *
+ * @param value
+ * the new value of the 'Id' attribute.
+ * @see #getId()
+ * @generated
+ */
+ void setId(int value);
+
+ /**
+ * Returns the value of the 'Customer' reference.
+ * It is bidirectional and its opposite is '{@link org.eclipse.emf.cdo.tests.model1.Customer#getSalesOrders Sales Orders}'.
+ *
+ *
+ * If the meaning of the 'Customer' reference isn't clear, there really should be more of a description
+ * here...
+ *
+ *
+ * @return the value of the 'Customer' reference.
+ * @see #setCustomer(Customer)
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getSalesOrder_Customer()
+ * @see org.eclipse.emf.cdo.tests.model1.Customer#getSalesOrders
+ * @model opposite="salesOrders" required="true"
+ * @generated
+ */
+ Customer getCustomer();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.SalesOrder#getCustomer Customer}' reference.
+ *
+ * @param value the new value of the 'Customer' reference.
+ * @see #getCustomer()
+ * @generated
+ */
+ void setCustomer(Customer value);
+
+} // SalesOrder
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Supplier.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Supplier.java
index 350aff4e23..c0de3d4f69 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Supplier.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/Supplier.java
@@ -1,84 +1,76 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1;
-
-import org.eclipse.emf.common.util.EList;
-
-/**
- * A representation of the model object 'Supplier'.
- *
- *
- *
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getSupplier()
- * @model
- * @generated
- */
-public interface Supplier extends Address
-{
- /**
- *
- *
- * @generated
- */
- String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * Returns the value of the 'Purchase Orders' reference list. The list contents are of type
- * {@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder}. It is bidirectional and its opposite is '
- * {@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder#getSupplier Supplier}'.
- *
- * If the meaning of the 'Purchase Orders' reference list isn't clear, there really should be more of a
- * description here...
- *
- *
- *
- * @return the value of the 'Purchase Orders' reference list.
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getSupplier_PurchaseOrders()
- * @see org.eclipse.emf.cdo.tests.model1.PurchaseOrder#getSupplier
- * @model opposite="supplier"
- * @generated
- */
- EList getPurchaseOrders();
-
- /**
- * Returns the value of the 'Preferred' attribute. The default value is "true".
- *
- * If the meaning of the 'Preferred' attribute isn't clear, there really should be more of a description
- * here...
- *
- *
- *
- * @return the value of the 'Preferred' attribute.
- * @see #setPreferred(boolean)
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getSupplier_Preferred()
- * @model default="true"
- * @generated
- */
- boolean isPreferred();
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.Supplier#isPreferred Preferred}' attribute.
- *
- *
- * @param value
- * the new value of the 'Preferred' attribute.
- * @see #isPreferred()
- * @generated
- */
- void setPreferred(boolean value);
-
-} // Supplier
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ * A representation of the model object 'Supplier'.
+ *
+ *
+ *
+ *
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getSupplier()
+ * @model
+ * @generated
+ */
+public interface Supplier extends Address
+{
+ /**
+ * Returns the value of the 'Purchase Orders' reference list.
+ * The list contents are of type {@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder}.
+ * It is bidirectional and its opposite is '{@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder#getSupplier Supplier}'.
+ *
+ *
+ * If the meaning of the 'Purchase Orders' reference list isn't clear, there really should be more of a
+ * description here...
+ *
+ *
+ * @return the value of the 'Purchase Orders' reference list.
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getSupplier_PurchaseOrders()
+ * @see org.eclipse.emf.cdo.tests.model1.PurchaseOrder#getSupplier
+ * @model opposite="supplier"
+ * @generated
+ */
+ EList getPurchaseOrders();
+
+ /**
+ * Returns the value of the 'Preferred' attribute. The default value is "true".
+ *
+ * If the meaning of the 'Preferred' attribute isn't clear, there really should be more of a description
+ * here...
+ *
+ *
+ *
+ * @return the value of the 'Preferred' attribute.
+ * @see #setPreferred(boolean)
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getSupplier_Preferred()
+ * @model default="true"
+ * @generated
+ */
+ boolean isPreferred();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model1.Supplier#isPreferred Preferred}' attribute.
+ *
+ * @param value the new value of the 'Preferred' attribute.
+ * @see #isPreferred()
+ * @generated
+ */
+ void setPreferred(boolean value);
+
+} // Supplier
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/VAT.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/VAT.java
index fbab85ad3c..84074b7fd3 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/VAT.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/VAT.java
@@ -1,254 +1,240 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1;
-
-import org.eclipse.emf.common.util.Enumerator;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-/**
- * A representation of the literals of the enumeration 'VAT', and utility
- * methods for working with them.
- *
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getVAT()
- * @model
- * @generated
- */
-public enum VAT implements Enumerator
-{
- /**
- * The 'Vat0' literal object.
- *
- * @see #VAT0_VALUE
- * @generated
- * @ordered
- */
- VAT0(0, "vat0", "vat0"),
-
- /**
- * The 'Vat7' literal object.
- *
- * @see #VAT7_VALUE
- * @generated
- * @ordered
- */
- VAT7(7, "vat7", "vat7"),
-
- /**
- * The 'Vat15' literal object.
- *
- * @see #VAT15_VALUE
- * @generated
- * @ordered
- */
- VAT15(15, "vat15", "vat15");
-
- /**
- *
- *
- * @generated
- */
- public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * The 'Vat0' literal value.
- *
- * If the meaning of 'Vat0' literal object isn't clear, there really should be more of a description
- * here...
- *
- *
- *
- * @see #VAT0
- * @model name="vat0"
- * @generated
- * @ordered
- */
- public static final int VAT0_VALUE = 0;
-
- /**
- * The 'Vat7' literal value.
- *
- * If the meaning of 'Vat7' literal object isn't clear, there really should be more of a description
- * here...
- *
- *
- *
- * @see #VAT7
- * @model name="vat7"
- * @generated
- * @ordered
- */
- public static final int VAT7_VALUE = 7;
-
- /**
- * The 'Vat15' literal value.
- *
- * If the meaning of 'Vat15' literal object isn't clear, there really should be more of a description
- * here...
- *
- *
- *
- * @see #VAT15
- * @model name="vat15"
- * @generated
- * @ordered
- */
- public static final int VAT15_VALUE = 15;
-
- /**
- * An array of all the 'VAT' enumerators.
- *
- * @generated
- */
- private static final VAT[] VALUES_ARRAY = new VAT[] { VAT0, VAT7, VAT15, };
-
- /**
- * A public read-only list of all the 'VAT' enumerators.
- *
- * @generated
- */
- public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the 'VAT' literal with the specified literal value.
- *
- * @generated
- */
- public static VAT get(String literal)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- VAT result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the 'VAT' literal with the specified name.
- *
- * @generated
- */
- public static VAT getByName(String name)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- VAT result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the 'VAT' literal with the specified integer value.
- *
- * @generated
- */
- public static VAT get(int value)
- {
- switch (value)
- {
- case VAT0_VALUE:
- return VAT0;
- case VAT7_VALUE:
- return VAT7;
- case VAT15_VALUE:
- return VAT15;
- }
- return null;
- }
-
- /**
- *
- *
- * @generated
- */
- private final int value;
-
- /**
- *
- *
- * @generated
- */
- private final String name;
-
- /**
- *
- *
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- *
- * @generated
- */
- private VAT(int value, String name, String literal)
- {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- *
- *
- * @generated
- */
- public int getValue()
- {
- return value;
- }
-
- /**
- *
- *
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- *
- *
- * @generated
- */
- public String getLiteral()
- {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- *
- * @generated
- */
- @Override
- public String toString()
- {
- return literal;
- }
-
-} // VAT
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+/**
+ * A representation of the literals of the enumeration 'VAT', and utility
+ * methods for working with them.
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#getVAT()
+ * @model
+ * @generated
+ */
+public enum VAT implements Enumerator
+{
+ /**
+ * The 'Vat0' literal object.
+ *
+ * @see #VAT0_VALUE
+ * @generated
+ * @ordered
+ */
+ VAT0(0, "vat0", "vat0"),
+
+ /**
+ * The 'Vat7' literal object.
+ *
+ * @see #VAT7_VALUE
+ * @generated
+ * @ordered
+ */
+ VAT7(7, "vat7", "vat7"),
+
+ /**
+ * The 'Vat15' literal object.
+ *
+ * @see #VAT15_VALUE
+ * @generated
+ * @ordered
+ */
+ VAT15(15, "vat15", "vat15");
+
+ /**
+ * The 'Vat0' literal value.
+ *
+ *
+ * If the meaning of 'Vat0' literal object isn't clear, there really should be more of a description
+ * here...
+ *
+ *
+ * @see #VAT0
+ * @model name="vat0"
+ * @generated
+ * @ordered
+ */
+ public static final int VAT0_VALUE = 0;
+
+ /**
+ * The 'Vat7' literal value.
+ *
+ *
+ * If the meaning of 'Vat7' literal object isn't clear, there really should be more of a description
+ * here...
+ *
+ *
+ * @see #VAT7
+ * @model name="vat7"
+ * @generated
+ * @ordered
+ */
+ public static final int VAT7_VALUE = 7;
+
+ /**
+ * The 'Vat15' literal value.
+ *
+ *
+ * If the meaning of 'Vat15' literal object isn't clear, there really should be more of a description
+ * here...
+ *
+ *
+ * @see #VAT15
+ * @model name="vat15"
+ * @generated
+ * @ordered
+ */
+ public static final int VAT15_VALUE = 15;
+
+ /**
+ * An array of all the 'VAT' enumerators.
+ *
+ * @generated
+ */
+ private static final VAT[] VALUES_ARRAY = new VAT[] { VAT0, VAT7, VAT15, };
+
+ /**
+ * A public read-only list of all the 'VAT' enumerators.
+ *
+ * @generated
+ */
+ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the 'VAT' literal with the specified literal value.
+ *
+ * @generated
+ */
+ public static VAT get(String literal)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ VAT result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the 'VAT' literal with the specified name.
+ *
+ * @generated
+ */
+ public static VAT getByName(String name)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ VAT result = VALUES_ARRAY[i];
+ if (result.getName().equals(name))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the 'VAT' literal with the specified integer value.
+ *
+ * @generated
+ */
+ public static VAT get(int value)
+ {
+ switch (value)
+ {
+ case VAT0_VALUE:
+ return VAT0;
+ case VAT7_VALUE:
+ return VAT7;
+ case VAT15_VALUE:
+ return VAT15;
+ }
+ return null;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ private final int value;
+
+ /**
+ *
+ * @generated
+ */
+ private final String name;
+
+ /**
+ *
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ *
+ * @generated
+ */
+ private VAT(int value, String name, String literal)
+ {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public int getValue()
+ {
+ return value;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public String getLiteral()
+ {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ *
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ return literal;
+ }
+
+} // VAT
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/impl/AddressImpl.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/impl/AddressImpl.java
index bc3a924636..d32dbfeb15 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/impl/AddressImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/impl/AddressImpl.java
@@ -1,134 +1,118 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1.impl;
-
-import org.eclipse.emf.cdo.tests.model1.Address;
-import org.eclipse.emf.cdo.tests.model1.Model1Package;
-
-import org.eclipse.emf.internal.cdo.CDOObjectImpl;
-
-import org.eclipse.emf.ecore.EClass;
-
-/**
- * An implementation of the model object 'Address'.
- *
{@link org.eclipse.emf.cdo.tests.model1.impl.CustomerImpl#getOrderByProduct Order By Product}
+ *
+ *
+ *
+ * @generated
+ */
+public class CustomerImpl extends AddressImpl implements Customer
+{
+ /**
+ *
+ * @generated
+ */
+ protected CustomerImpl()
+ {
+ super();
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return Model1Package.eINSTANCE.getCustomer();
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList getSalesOrders()
+ {
+ return (EList)eGet(Model1Package.eINSTANCE.getCustomer_SalesOrders(), true);
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EMap getOrderByProduct()
+ {
+ return (EMap)eGet(Model1Package.eINSTANCE.getCustomer_OrderByProduct(), true);
+ }
+
+} // CustomerImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/impl/Model1FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/impl/Model1FactoryImpl.java
index e5d00c9316..d522133a5f 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/impl/Model1FactoryImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/impl/Model1FactoryImpl.java
@@ -1,321 +1,295 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1.impl;
-
-import org.eclipse.emf.cdo.tests.model1.Address;
-import org.eclipse.emf.cdo.tests.model1.Category;
-import org.eclipse.emf.cdo.tests.model1.Company;
-import org.eclipse.emf.cdo.tests.model1.Customer;
-import org.eclipse.emf.cdo.tests.model1.Model1Factory;
-import org.eclipse.emf.cdo.tests.model1.Model1Package;
-import org.eclipse.emf.cdo.tests.model1.OrderAddress;
-import org.eclipse.emf.cdo.tests.model1.OrderDetail;
-import org.eclipse.emf.cdo.tests.model1.Product1;
-import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
-import org.eclipse.emf.cdo.tests.model1.SalesOrder;
-import org.eclipse.emf.cdo.tests.model1.Supplier;
-import org.eclipse.emf.cdo.tests.model1.VAT;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-
-import java.util.Map;
-
-/**
- * An implementation of the model Factory.
- *
- * @generated
- */
-public class Model1FactoryImpl extends EFactoryImpl implements Model1Factory
-{
- /**
- *
- *
- * @generated
- */
- public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * Creates the default factory implementation.
- *
- * @generated
- */
- public static Model1Factory init()
- {
- try
- {
- Model1Factory theModel1Factory = (Model1Factory)EPackage.Registry.INSTANCE
- .getEFactory("http://www.eclipse.org/emf/CDO/tests/model1/1.0.0");
- if (theModel1Factory != null)
- {
- return theModel1Factory;
- }
- }
- catch (Exception exception)
- {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new Model1FactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- *
- * @generated
- */
- public Model1FactoryImpl()
- {
- super();
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass)
- {
- switch (eClass.getClassifierID())
- {
- case Model1Package.ADDRESS:
- return createAddress();
- case Model1Package.COMPANY:
- return createCompany();
- case Model1Package.SUPPLIER:
- return createSupplier();
- case Model1Package.CUSTOMER:
- return createCustomer();
- case Model1Package.ORDER_DETAIL:
- return createOrderDetail();
- case Model1Package.PURCHASE_ORDER:
- return createPurchaseOrder();
- case Model1Package.SALES_ORDER:
- return createSalesOrder();
- case Model1Package.CATEGORY:
- return createCategory();
- case Model1Package.PRODUCT1:
- return createProduct1();
- case Model1Package.ORDER_ADDRESS:
- return createOrderAddress();
- case Model1Package.PRODUCT_TO_ORDER:
- return (EObject)createProductToOrder();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public Object createFromString(EDataType eDataType, String initialValue)
- {
- switch (eDataType.getClassifierID())
- {
- case Model1Package.VAT:
- return createVATFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String convertToString(EDataType eDataType, Object instanceValue)
- {
- switch (eDataType.getClassifierID())
- {
- case Model1Package.VAT:
- return convertVATToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- *
- *
- * @generated
- */
- public Address createAddress()
- {
- AddressImpl address = new AddressImpl();
- return address;
- }
-
- /**
- *
- *
- * @generated
- */
- public Supplier createSupplier()
- {
- SupplierImpl supplier = new SupplierImpl();
- return supplier;
- }
-
- /**
- *
- *
- * @generated
- */
- public PurchaseOrder createPurchaseOrder()
- {
- PurchaseOrderImpl purchaseOrder = new PurchaseOrderImpl();
- return purchaseOrder;
- }
-
- /**
- *
- *
- * @generated
- */
- public OrderDetail createOrderDetail()
- {
- OrderDetailImpl orderDetail = new OrderDetailImpl();
- return orderDetail;
- }
-
- /**
- *
- *
- * @generated
- */
- public OrderAddress createOrderAddress()
- {
- OrderAddressImpl orderAddress = new OrderAddressImpl();
- return orderAddress;
- }
-
- /**
- *
- *
- * @generated
- */
- public Map.Entry createProductToOrder()
- {
- ProductToOrderImpl productToOrder = new ProductToOrderImpl();
- return productToOrder;
- }
-
- /**
- *
- *
- * @generated
- */
- public VAT createVATFromString(EDataType eDataType, String initialValue)
- {
- VAT result = VAT.get(initialValue);
- if (result == null)
- throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '"
- + eDataType.getName() + "'");
- return result;
- }
-
- /**
- *
- *
- * @generated
- */
- public String convertVATToString(EDataType eDataType, Object instanceValue)
- {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- *
- *
- * @generated
- */
- public Category createCategory()
- {
- CategoryImpl category = new CategoryImpl();
- return category;
- }
-
- /**
- *
- *
- * @generated
- */
- public Product1 createProduct1()
- {
- Product1Impl product1 = new Product1Impl();
- return product1;
- }
-
- /**
- *
- *
- * @generated
- */
- public Company createCompany()
- {
- CompanyImpl company = new CompanyImpl();
- return company;
- }
-
- /**
- *
- *
- * @generated
- */
- public Customer createCustomer()
- {
- CustomerImpl customer = new CustomerImpl();
- return customer;
- }
-
- /**
- *
- *
- * @generated
- */
- public SalesOrder createSalesOrder()
- {
- SalesOrderImpl salesOrder = new SalesOrderImpl();
- return salesOrder;
- }
-
- /**
- *
- *
- * @generated
- */
- public Model1Package getModel1Package()
- {
- return (Model1Package)getEPackage();
- }
-
- /**
- *
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static Model1Package getPackage()
- {
- return Model1Package.eINSTANCE;
- }
-
-} // Model1FactoryImpl
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1.impl;
+
+import org.eclipse.emf.cdo.tests.model1.Address;
+import org.eclipse.emf.cdo.tests.model1.Category;
+import org.eclipse.emf.cdo.tests.model1.Company;
+import org.eclipse.emf.cdo.tests.model1.Customer;
+import org.eclipse.emf.cdo.tests.model1.Model1Factory;
+import org.eclipse.emf.cdo.tests.model1.Model1Package;
+import org.eclipse.emf.cdo.tests.model1.OrderAddress;
+import org.eclipse.emf.cdo.tests.model1.OrderDetail;
+import org.eclipse.emf.cdo.tests.model1.Product1;
+import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
+import org.eclipse.emf.cdo.tests.model1.SalesOrder;
+import org.eclipse.emf.cdo.tests.model1.Supplier;
+import org.eclipse.emf.cdo.tests.model1.VAT;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+import java.util.Map;
+
+/**
+ * An implementation of the model Factory.
+ * @generated
+ */
+public class Model1FactoryImpl extends EFactoryImpl implements Model1Factory
+{
+ /**
+ * Creates the default factory implementation.
+ *
+ * @generated
+ */
+ public static Model1Factory init()
+ {
+ try
+ {
+ Model1Factory theModel1Factory = (Model1Factory)EPackage.Registry.INSTANCE
+ .getEFactory("http://www.eclipse.org/emf/CDO/tests/model1/1.0.0");
+ if (theModel1Factory != null)
+ {
+ return theModel1Factory;
+ }
+ }
+ catch (Exception exception)
+ {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new Model1FactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ *
+ * @generated
+ */
+ public Model1FactoryImpl()
+ {
+ super();
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass)
+ {
+ switch (eClass.getClassifierID())
+ {
+ case Model1Package.ADDRESS:
+ return createAddress();
+ case Model1Package.COMPANY:
+ return createCompany();
+ case Model1Package.SUPPLIER:
+ return createSupplier();
+ case Model1Package.CUSTOMER:
+ return createCustomer();
+ case Model1Package.ORDER_DETAIL:
+ return createOrderDetail();
+ case Model1Package.PURCHASE_ORDER:
+ return createPurchaseOrder();
+ case Model1Package.SALES_ORDER:
+ return createSalesOrder();
+ case Model1Package.CATEGORY:
+ return createCategory();
+ case Model1Package.PRODUCT1:
+ return createProduct1();
+ case Model1Package.ORDER_ADDRESS:
+ return createOrderAddress();
+ case Model1Package.PRODUCT_TO_ORDER:
+ return (EObject)createProductToOrder();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @Override
+ public Object createFromString(EDataType eDataType, String initialValue)
+ {
+ switch (eDataType.getClassifierID())
+ {
+ case Model1Package.VAT:
+ return createVATFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @Override
+ public String convertToString(EDataType eDataType, Object instanceValue)
+ {
+ switch (eDataType.getClassifierID())
+ {
+ case Model1Package.VAT:
+ return convertVATToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public Address createAddress()
+ {
+ AddressImpl address = new AddressImpl();
+ return address;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public Supplier createSupplier()
+ {
+ SupplierImpl supplier = new SupplierImpl();
+ return supplier;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public PurchaseOrder createPurchaseOrder()
+ {
+ PurchaseOrderImpl purchaseOrder = new PurchaseOrderImpl();
+ return purchaseOrder;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public OrderDetail createOrderDetail()
+ {
+ OrderDetailImpl orderDetail = new OrderDetailImpl();
+ return orderDetail;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public OrderAddress createOrderAddress()
+ {
+ OrderAddressImpl orderAddress = new OrderAddressImpl();
+ return orderAddress;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public Map.Entry createProductToOrder()
+ {
+ ProductToOrderImpl productToOrder = new ProductToOrderImpl();
+ return productToOrder;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public VAT createVATFromString(EDataType eDataType, String initialValue)
+ {
+ VAT result = VAT.get(initialValue);
+ if (result == null)
+ throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '"
+ + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public String convertVATToString(EDataType eDataType, Object instanceValue)
+ {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public Category createCategory()
+ {
+ CategoryImpl category = new CategoryImpl();
+ return category;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public Product1 createProduct1()
+ {
+ Product1Impl product1 = new Product1Impl();
+ return product1;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public Company createCompany()
+ {
+ CompanyImpl company = new CompanyImpl();
+ return company;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public Customer createCustomer()
+ {
+ CustomerImpl customer = new CustomerImpl();
+ return customer;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public SalesOrder createSalesOrder()
+ {
+ SalesOrderImpl salesOrder = new SalesOrderImpl();
+ return salesOrder;
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public Model1Package getModel1Package()
+ {
+ return (Model1Package)getEPackage();
+ }
+
+ /**
+ *
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static Model1Package getPackage()
+ {
+ return Model1Package.eINSTANCE;
+ }
+
+} // Model1FactoryImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/impl/Model1PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/impl/Model1PackageImpl.java
index 5d599f51e7..25295128af 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/impl/Model1PackageImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/impl/Model1PackageImpl.java
@@ -1,902 +1,847 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1.impl;
-
-import org.eclipse.emf.cdo.tests.model1.Address;
-import org.eclipse.emf.cdo.tests.model1.Category;
-import org.eclipse.emf.cdo.tests.model1.Company;
-import org.eclipse.emf.cdo.tests.model1.Customer;
-import org.eclipse.emf.cdo.tests.model1.Model1Factory;
-import org.eclipse.emf.cdo.tests.model1.Model1Package;
-import org.eclipse.emf.cdo.tests.model1.Order;
-import org.eclipse.emf.cdo.tests.model1.OrderAddress;
-import org.eclipse.emf.cdo.tests.model1.OrderDetail;
-import org.eclipse.emf.cdo.tests.model1.Product1;
-import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
-import org.eclipse.emf.cdo.tests.model1.SalesOrder;
-import org.eclipse.emf.cdo.tests.model1.Supplier;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-
-import java.util.Map;
-
-/**
- * An implementation of the model Package.
- *
- * @generated
- */
-public class Model1PackageImpl extends EPackageImpl implements Model1Package
-{
- /**
- *
- *
- * @generated
- */
- public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- *
- *
- * @generated
- */
- private EClass addressEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass supplierEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass purchaseOrderEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass orderDetailEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass orderAddressEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass productToOrderEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EEnum vatEEnum = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass categoryEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass product1EClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass companyEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass customerEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass orderEClass = null;
-
- /**
- *
- *
- * @generated
- */
- private EClass salesOrderEClass = null;
-
- /**
- * Creates an instance of the model Package, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
- * EPackage.Registry} by the package package URI value.
- *
- * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
- * performs initialization of the package, or returns the registered package, if one already exists.
- *
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package#eNS_URI
- * @see #init()
- * @generated
- */
- private Model1PackageImpl()
- {
- super(eNS_URI, Model1Factory.eINSTANCE);
- }
-
- /**
- *
- *
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the Package for this model, and for any others upon which it depends.
- *
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
+ * performs initialization of the package, or returns the registered package, if one already exists.
+ *
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private Model1PackageImpl()
+ {
+ super(eNS_URI, Model1Factory.eINSTANCE);
+ }
+
+ /**
+ *
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the Package for this model, and for any others upon which it depends.
+ *
+ *
+ *
+ *
+ * @generated
+ */
+public class SupplierImpl extends AddressImpl implements Supplier
+{
+ /**
+ *
+ * @generated
+ */
+ protected SupplierImpl()
+ {
+ super();
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return Model1Package.eINSTANCE.getSupplier();
+ }
+
+ /**
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList getPurchaseOrders()
+ {
+ return (EList)eGet(Model1Package.eINSTANCE.getSupplier_PurchaseOrders(), true);
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public boolean isPreferred()
+ {
+ return (Boolean)eGet(Model1Package.eINSTANCE.getSupplier_Preferred(), true);
+ }
+
+ /**
+ *
+ * @generated
+ */
+ public void setPreferred(boolean newPreferred)
+ {
+ eSet(Model1Package.eINSTANCE.getSupplier_Preferred(), newPreferred);
+ }
+
+} // SupplierImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/util/Model1AdapterFactory.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/util/Model1AdapterFactory.java
index 7a2f71bb34..0d6ec676a5 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/util/Model1AdapterFactory.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/util/Model1AdapterFactory.java
@@ -1,371 +1,352 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1.util;
-
-import org.eclipse.emf.cdo.tests.model1.Address;
-import org.eclipse.emf.cdo.tests.model1.Category;
-import org.eclipse.emf.cdo.tests.model1.Company;
-import org.eclipse.emf.cdo.tests.model1.Customer;
-import org.eclipse.emf.cdo.tests.model1.Model1Package;
-import org.eclipse.emf.cdo.tests.model1.Order;
-import org.eclipse.emf.cdo.tests.model1.OrderAddress;
-import org.eclipse.emf.cdo.tests.model1.OrderDetail;
-import org.eclipse.emf.cdo.tests.model1.Product1;
-import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
-import org.eclipse.emf.cdo.tests.model1.SalesOrder;
-import org.eclipse.emf.cdo.tests.model1.Supplier;
-
-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;
-
-/**
- * The Adapter Factory for the model. It provides an adapter createXXX
- * method for each class of the model.
- *
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package
- * @generated
- */
-public class Model1AdapterFactory extends AdapterFactoryImpl
-{
- /**
- *
- *
- * @generated
- */
- public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * The cached model package.
- *
- * @generated
- */
- protected static Model1Package modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- *
- * @generated
- */
- public Model1AdapterFactory()
- {
- if (modelPackage == null)
- {
- modelPackage = Model1Package.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object. This implementation
- * returns true if the object is either the model's package or is an instance object of the model.
- *
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object)
- {
- if (object == modelPackage)
- {
- return true;
- }
- if (object instanceof EObject)
- {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the createXXX methods.
- *
- * @generated
- */
- protected Model1Switch modelSwitch = new Model1Switch()
- {
- @Override
- public Adapter caseAddress(Address object)
- {
- return createAddressAdapter();
- }
-
- @Override
- public Adapter caseCompany(Company object)
- {
- return createCompanyAdapter();
- }
-
- @Override
- public Adapter caseSupplier(Supplier object)
- {
- return createSupplierAdapter();
- }
-
- @Override
- public Adapter caseCustomer(Customer object)
- {
- return createCustomerAdapter();
- }
-
- @Override
- public Adapter caseOrder(Order object)
- {
- return createOrderAdapter();
- }
-
- @Override
- public Adapter caseOrderDetail(OrderDetail object)
- {
- return createOrderDetailAdapter();
- }
-
- @Override
- public Adapter casePurchaseOrder(PurchaseOrder object)
- {
- return createPurchaseOrderAdapter();
- }
-
- @Override
- public Adapter caseSalesOrder(SalesOrder object)
- {
- return createSalesOrderAdapter();
- }
-
- @Override
- public Adapter caseCategory(Category object)
- {
- return createCategoryAdapter();
- }
-
- @Override
- public Adapter caseProduct1(Product1 object)
- {
- return createProduct1Adapter();
- }
-
- @Override
- public Adapter caseOrderAddress(OrderAddress object)
- {
- return createOrderAddressAdapter();
- }
-
- @Override
- public Adapter caseProductToOrder(Map.Entry object)
- {
- return createProductToOrderAdapter();
- }
-
- @Override
- public Adapter defaultCase(EObject object)
- {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the target.
- *
- * @param target
- * the object to adapt.
- * @return the adapter for the target.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target)
- {
- return modelSwitch.doSwitch((EObject)target);
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.Address Address}'.
- * This default implementation returns null so that we can easily ignore cases; it's useful to
- * ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.model1.Address
- * @generated
- */
- public Adapter createAddressAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.Supplier Supplier}'.
- * This default implementation returns null so that we can easily ignore cases; it's useful to
- * ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.model1.Supplier
- * @generated
- */
- public Adapter createSupplierAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder
- * Purchase Order}'. This default implementation returns null so that we can easily
- * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.model1.PurchaseOrder
- * @generated
- */
- public Adapter createPurchaseOrderAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail
- * Order Detail}'. This default implementation returns null so that we can easily
- * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.model1.OrderDetail
- * @generated
- */
- public Adapter createOrderDetailAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.OrderAddress
- * Order Address}'. This default implementation returns null so that we can easily
- * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.model1.OrderAddress
- * @generated
- */
- public Adapter createOrderAddressAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link java.util.Map.Entry Product To Order}'. This default implementation returns null so that we can easily ignore cases; it's useful to
- * ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see java.util.Map.Entry
- * @generated
- */
- public Adapter createProductToOrderAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.Category Category}'.
- * This default implementation returns null so that we can easily ignore cases; it's useful to
- * ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.model1.Category
- * @generated
- */
- public Adapter createCategoryAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.Product1 Product1}'.
- * This default implementation returns null so that we can easily ignore cases; it's useful to
- * ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.model1.Product1
- * @generated
- */
- public Adapter createProduct1Adapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.Company Company}'.
- * This default implementation returns null so that we can easily ignore cases; it's useful to
- * ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.model1.Company
- * @generated
- */
- public Adapter createCompanyAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.Customer Customer}'.
- * This default implementation returns null so that we can easily ignore cases; it's useful to
- * ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.model1.Customer
- * @generated
- */
- public Adapter createCustomerAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.Order Order}'. This default implementation returns null so that we can easily ignore cases; it's useful to
- * ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.model1.Order
- * @generated
- */
- public Adapter createOrderAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.SalesOrder
- * Sales Order}'. This default implementation returns null so that we can easily
- * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.model1.SalesOrder
- * @generated
- */
- public Adapter createSalesOrderAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case. This default implementation returns null.
- *
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter()
- {
- return null;
- }
-
-} // Model1AdapterFactory
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1.util;
+
+import org.eclipse.emf.cdo.tests.model1.Address;
+import org.eclipse.emf.cdo.tests.model1.Category;
+import org.eclipse.emf.cdo.tests.model1.Company;
+import org.eclipse.emf.cdo.tests.model1.Customer;
+import org.eclipse.emf.cdo.tests.model1.Model1Package;
+import org.eclipse.emf.cdo.tests.model1.Order;
+import org.eclipse.emf.cdo.tests.model1.OrderAddress;
+import org.eclipse.emf.cdo.tests.model1.OrderDetail;
+import org.eclipse.emf.cdo.tests.model1.Product1;
+import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
+import org.eclipse.emf.cdo.tests.model1.SalesOrder;
+import org.eclipse.emf.cdo.tests.model1.Supplier;
+
+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;
+
+/**
+ * The Adapter Factory for the model. It provides an adapter createXXX
+ * method for each class of the model.
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package
+ * @generated
+ */
+public class Model1AdapterFactory extends AdapterFactoryImpl
+{
+ /**
+ * The cached model package.
+ *
+ * @generated
+ */
+ protected static Model1Package modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ * @generated
+ */
+ public Model1AdapterFactory()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = Model1Package.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * This implementation
+ * returns true if the object is either the model's package or is an instance object of the model.
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object)
+ {
+ if (object == modelPackage)
+ {
+ return true;
+ }
+ if (object instanceof EObject)
+ {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the createXXX methods.
+ *
+ * @generated
+ */
+ protected Model1Switch modelSwitch = new Model1Switch()
+ {
+ @Override
+ public Adapter caseAddress(Address object)
+ {
+ return createAddressAdapter();
+ }
+
+ @Override
+ public Adapter caseCompany(Company object)
+ {
+ return createCompanyAdapter();
+ }
+
+ @Override
+ public Adapter caseSupplier(Supplier object)
+ {
+ return createSupplierAdapter();
+ }
+
+ @Override
+ public Adapter caseCustomer(Customer object)
+ {
+ return createCustomerAdapter();
+ }
+
+ @Override
+ public Adapter caseOrder(Order object)
+ {
+ return createOrderAdapter();
+ }
+
+ @Override
+ public Adapter caseOrderDetail(OrderDetail object)
+ {
+ return createOrderDetailAdapter();
+ }
+
+ @Override
+ public Adapter casePurchaseOrder(PurchaseOrder object)
+ {
+ return createPurchaseOrderAdapter();
+ }
+
+ @Override
+ public Adapter caseSalesOrder(SalesOrder object)
+ {
+ return createSalesOrderAdapter();
+ }
+
+ @Override
+ public Adapter caseCategory(Category object)
+ {
+ return createCategoryAdapter();
+ }
+
+ @Override
+ public Adapter caseProduct1(Product1 object)
+ {
+ return createProduct1Adapter();
+ }
+
+ @Override
+ public Adapter caseOrderAddress(OrderAddress object)
+ {
+ return createOrderAddressAdapter();
+ }
+
+ @Override
+ public Adapter caseProductToOrder(Map.Entry object)
+ {
+ return createProductToOrderAdapter();
+ }
+
+ @Override
+ public Adapter defaultCase(EObject object)
+ {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the target.
+ *
+ * @param target the object to adapt.
+ * @return the adapter for the target.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target)
+ {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.Address Address}'.
+ * This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway.
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model1.Address
+ * @generated
+ */
+ public Adapter createAddressAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.Supplier Supplier}'.
+ * This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway.
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model1.Supplier
+ * @generated
+ */
+ public Adapter createSupplierAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.PurchaseOrder Purchase Order}'.
+ * This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model1.PurchaseOrder
+ * @generated
+ */
+ public Adapter createPurchaseOrderAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.OrderDetail Order Detail}'.
+ * This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model1.OrderDetail
+ * @generated
+ */
+ public Adapter createOrderDetailAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.OrderAddress Order Address}'.
+ * This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model1.OrderAddress
+ * @generated
+ */
+ public Adapter createOrderAddressAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link java.util.Map.Entry Product To Order}'. This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see java.util.Map.Entry
+ * @generated
+ */
+ public Adapter createProductToOrderAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.Category Category}'.
+ * This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway.
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model1.Category
+ * @generated
+ */
+ public Adapter createCategoryAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.Product1 Product1}'.
+ * This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway.
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model1.Product1
+ * @generated
+ */
+ public Adapter createProduct1Adapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.Company Company}'.
+ * This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway.
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model1.Company
+ * @generated
+ */
+ public Adapter createCompanyAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.Customer Customer}'.
+ * This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway.
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model1.Customer
+ * @generated
+ */
+ public Adapter createCustomerAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.Order Order}'. This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model1.Order
+ * @generated
+ */
+ public Adapter createOrderAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model1.SalesOrder Sales Order}'.
+ * This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model1.SalesOrder
+ * @generated
+ */
+ public Adapter createSalesOrderAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * This default implementation returns null.
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter()
+ {
+ return null;
+ }
+
+} // Model1AdapterFactory
diff --git a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/util/Model1Switch.java b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/util/Model1Switch.java
index 1e04ce4435..b4050c710e 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/util/Model1Switch.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model1/src/org/eclipse/emf/cdo/tests/model1/util/Model1Switch.java
@@ -1,427 +1,389 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.tests.model1.util;
-
-import org.eclipse.emf.cdo.tests.model1.Address;
-import org.eclipse.emf.cdo.tests.model1.Category;
-import org.eclipse.emf.cdo.tests.model1.Company;
-import org.eclipse.emf.cdo.tests.model1.Customer;
-import org.eclipse.emf.cdo.tests.model1.Model1Package;
-import org.eclipse.emf.cdo.tests.model1.Order;
-import org.eclipse.emf.cdo.tests.model1.OrderAddress;
-import org.eclipse.emf.cdo.tests.model1.OrderDetail;
-import org.eclipse.emf.cdo.tests.model1.Product1;
-import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
-import org.eclipse.emf.cdo.tests.model1.SalesOrder;
-import org.eclipse.emf.cdo.tests.model1.Supplier;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-
-import java.util.List;
-import java.util.Map;
-
-/**
- * The Switch for the model's inheritance hierarchy. It supports the call
- * {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for each class of the model,
- * starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is
- * returned, which is the result of the switch.
- *
- * @see org.eclipse.emf.cdo.tests.model1.Model1Package
- * @generated
- */
-public class Model1Switch
-{
- /**
- *
- *
- * @generated
- */
- public static final String copyright = "Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * The cached model package
- *
- * @generated
- */
- protected static Model1Package modelPackage;
-
- /**
- * Creates an instance of the switch.
- *
- * @generated
- */
- public Model1Switch()
- {
- if (modelPackage == null)
- {
- modelPackage = Model1Package.eINSTANCE;
- }
- }
-
- /**
- * Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
- *
- *
- * @return the first non-null result returned by a caseXXX call.
- * @generated
- */
- public T doSwitch(EObject theEObject)
- {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
- *
- *
- * @return the first non-null result returned by a caseXXX call.
- * @generated
- */
- protected T doSwitch(EClass theEClass, EObject theEObject)
- {
- if (theEClass.eContainer() == modelPackage)
- {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- }
- else
- {
- List eSuperTypes = theEClass.getESuperTypes();
- return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject);
- }
- }
-
- /**
- * Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
- *
- *
- * @return the first non-null result returned by a caseXXX call.
- * @generated
- */
- protected T doSwitch(int classifierID, EObject theEObject)
- {
- switch (classifierID)
- {
- case Model1Package.ADDRESS:
- {
- Address address = (Address)theEObject;
- T result = caseAddress(address);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model1Package.COMPANY:
- {
- Company company = (Company)theEObject;
- T result = caseCompany(company);
- if (result == null)
- result = caseAddress(company);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model1Package.SUPPLIER:
- {
- Supplier supplier = (Supplier)theEObject;
- T result = caseSupplier(supplier);
- if (result == null)
- result = caseAddress(supplier);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model1Package.CUSTOMER:
- {
- Customer customer = (Customer)theEObject;
- T result = caseCustomer(customer);
- if (result == null)
- result = caseAddress(customer);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model1Package.ORDER:
- {
- Order order = (Order)theEObject;
- T result = caseOrder(order);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model1Package.ORDER_DETAIL:
- {
- OrderDetail orderDetail = (OrderDetail)theEObject;
- T result = caseOrderDetail(orderDetail);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model1Package.PURCHASE_ORDER:
- {
- PurchaseOrder purchaseOrder = (PurchaseOrder)theEObject;
- T result = casePurchaseOrder(purchaseOrder);
- if (result == null)
- result = caseOrder(purchaseOrder);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model1Package.SALES_ORDER:
- {
- SalesOrder salesOrder = (SalesOrder)theEObject;
- T result = caseSalesOrder(salesOrder);
- if (result == null)
- result = caseOrder(salesOrder);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model1Package.CATEGORY:
- {
- Category category = (Category)theEObject;
- T result = caseCategory(category);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model1Package.PRODUCT1:
- {
- Product1 product1 = (Product1)theEObject;
- T result = caseProduct1(product1);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model1Package.ORDER_ADDRESS:
- {
- OrderAddress orderAddress = (OrderAddress)theEObject;
- T result = caseOrderAddress(orderAddress);
- if (result == null)
- result = caseAddress(orderAddress);
- if (result == null)
- result = caseOrder(orderAddress);
- if (result == null)
- result = caseOrderDetail(orderAddress);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model1Package.PRODUCT_TO_ORDER:
- {
- @SuppressWarnings("unchecked")
- Map.Entry productToOrder = (Map.Entry)theEObject;
- T result = caseProductToOrder(productToOrder);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Address'. This
- * implementation returns null; returning a non-null result will terminate the switch.
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Address'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseAddress(Address object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Supplier'. This
- * implementation returns null; returning a non-null result will terminate the switch.
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Supplier'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseSupplier(Supplier object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Purchase Order'.
- * This implementation returns null; returning a non-null result will terminate the switch.
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Purchase Order'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T casePurchaseOrder(PurchaseOrder object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Order Detail'.
- * This implementation returns null; returning a non-null result will terminate the switch.
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Order Detail'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseOrderDetail(OrderDetail object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Order Address'.
- * This implementation returns null; returning a non-null result will terminate the switch.
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Order Address'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseOrderAddress(OrderAddress object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Product To Order'. This implementation returns null; returning a non-null result will terminate the switch.
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Product To Order'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseProductToOrder(Map.Entry object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Category'. This
- * implementation returns null; returning a non-null result will terminate the switch.
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Category'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCategory(Category object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Product1'. This
- * implementation returns null; returning a non-null result will terminate the switch.
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Product1'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseProduct1(Product1 object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Company'. This
- * implementation returns null; returning a non-null result will terminate the switch.
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Company'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCompany(Company object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Customer'. This
- * implementation returns null; returning a non-null result will terminate the switch.
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Customer'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCustomer(Customer object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Order'. This
- * implementation returns null; returning a non-null result will terminate the switch.
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Order'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseOrder(Order object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Sales Order'.
- * This implementation returns null; returning a non-null result will terminate the switch.
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'Sales Order'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseSalesOrder(SalesOrder object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'EObject'. This
- * implementation returns null; returning a non-null result will terminate the switch, but this is the last case
- * anyway.
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of 'EObject'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public T defaultCase(EObject object)
- {
- return null;
- }
-
-} // Model1Switch
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.model1.util;
+
+import org.eclipse.emf.cdo.tests.model1.Address;
+import org.eclipse.emf.cdo.tests.model1.Category;
+import org.eclipse.emf.cdo.tests.model1.Company;
+import org.eclipse.emf.cdo.tests.model1.Customer;
+import org.eclipse.emf.cdo.tests.model1.Model1Package;
+import org.eclipse.emf.cdo.tests.model1.Order;
+import org.eclipse.emf.cdo.tests.model1.OrderAddress;
+import org.eclipse.emf.cdo.tests.model1.OrderDetail;
+import org.eclipse.emf.cdo.tests.model1.Product1;
+import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
+import org.eclipse.emf.cdo.tests.model1.SalesOrder;
+import org.eclipse.emf.cdo.tests.model1.Supplier;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.util.Switch;
+
+import java.util.Map;
+
+/**
+ * The Switch for the model's inheritance hierarchy. It supports the call
+ * {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX method for each class of the model,
+ * starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is
+ * returned, which is the result of the switch.
+ * @see org.eclipse.emf.cdo.tests.model1.Model1Package
+ * @generated
+ */
+public class Model1Switch extends Switch
+{
+ /**
+ * The cached model package
+ *
+ * @generated
+ */
+ protected static Model1Package modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ *
+ * @generated
+ */
+ public Model1Switch()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = Model1Package.eINSTANCE;
+ }
+ }
+
+ /**
+ * Checks whether this is a switch for the given package.
+ *
+ *
+ * @parameter ePackage the package in question.
+ * @return whether this is a switch for the given package.
+ * @generated
+ */
+ @Override
+ protected boolean isSwitchFor(EPackage ePackage)
+ {
+ return ePackage == modelPackage;
+ }
+
+ /**
+ * Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
+ *
+ * @return the first non-null result returned by a caseXXX call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject)
+ {
+ switch (classifierID)
+ {
+ case Model1Package.ADDRESS:
+ {
+ Address address = (Address)theEObject;
+ T result = caseAddress(address);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model1Package.COMPANY:
+ {
+ Company company = (Company)theEObject;
+ T result = caseCompany(company);
+ if (result == null)
+ result = caseAddress(company);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model1Package.SUPPLIER:
+ {
+ Supplier supplier = (Supplier)theEObject;
+ T result = caseSupplier(supplier);
+ if (result == null)
+ result = caseAddress(supplier);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model1Package.CUSTOMER:
+ {
+ Customer customer = (Customer)theEObject;
+ T result = caseCustomer(customer);
+ if (result == null)
+ result = caseAddress(customer);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model1Package.ORDER:
+ {
+ Order order = (Order)theEObject;
+ T result = caseOrder(order);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model1Package.ORDER_DETAIL:
+ {
+ OrderDetail orderDetail = (OrderDetail)theEObject;
+ T result = caseOrderDetail(orderDetail);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model1Package.PURCHASE_ORDER:
+ {
+ PurchaseOrder purchaseOrder = (PurchaseOrder)theEObject;
+ T result = casePurchaseOrder(purchaseOrder);
+ if (result == null)
+ result = caseOrder(purchaseOrder);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model1Package.SALES_ORDER:
+ {
+ SalesOrder salesOrder = (SalesOrder)theEObject;
+ T result = caseSalesOrder(salesOrder);
+ if (result == null)
+ result = caseOrder(salesOrder);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model1Package.CATEGORY:
+ {
+ Category category = (Category)theEObject;
+ T result = caseCategory(category);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model1Package.PRODUCT1:
+ {
+ Product1 product1 = (Product1)theEObject;
+ T result = caseProduct1(product1);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model1Package.ORDER_ADDRESS:
+ {
+ OrderAddress orderAddress = (OrderAddress)theEObject;
+ T result = caseOrderAddress(orderAddress);
+ if (result == null)
+ result = caseAddress(orderAddress);
+ if (result == null)
+ result = caseOrder(orderAddress);
+ if (result == null)
+ result = caseOrderDetail(orderAddress);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model1Package.PRODUCT_TO_ORDER:
+ {
+ @SuppressWarnings("unchecked")
+ Map.Entry productToOrder = (Map.Entry)theEObject;
+ T result = caseProductToOrder(productToOrder);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Address'.
+ * This
+ * implementation returns null; returning a non-null result will terminate the switch.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Address'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAddress(Address object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Supplier'.
+ * This
+ * implementation returns null; returning a non-null result will terminate the switch.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Supplier'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSupplier(Supplier object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Purchase Order'.
+ *
+ * This implementation returns null; returning a non-null result will terminate the switch.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Purchase Order'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T casePurchaseOrder(PurchaseOrder object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Order Detail'.
+ *
+ * This implementation returns null; returning a non-null result will terminate the switch.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Order Detail'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOrderDetail(OrderDetail object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Order Address'.
+ *
+ * This implementation returns null; returning a non-null result will terminate the switch.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Order Address'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOrderAddress(OrderAddress object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Product To Order'.
+ * This implementation returns null; returning a non-null result will terminate the switch.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Product To Order'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseProductToOrder(Map.Entry object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Category'.
+ * This
+ * implementation returns null; returning a non-null result will terminate the switch.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Category'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCategory(Category object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Product1'.
+ * This
+ * implementation returns null; returning a non-null result will terminate the switch.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Product1'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseProduct1(Product1 object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Company'.
+ * This
+ * implementation returns null; returning a non-null result will terminate the switch.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Company'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCompany(Company object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Customer'.
+ * This
+ * implementation returns null; returning a non-null result will terminate the switch.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Customer'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCustomer(Customer object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Order'.
+ * This
+ * implementation returns null; returning a non-null result will terminate the switch.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Order'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOrder(Order object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Sales Order'.
+ *
+ * This implementation returns null; returning a non-null result will terminate the switch.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Sales Order'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSalesOrder(SalesOrder object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EObject'.
+ * This
+ * implementation returns null; returning a non-null result will terminate the switch, but this is the last case
+ * anyway.
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'EObject'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object)
+ {
+ return null;
+ }
+
+} // Model1Switch
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_376610_Test.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_376610_Test.java
new file mode 100644
index 0000000000..e83791e762
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_376610_Test.java
@@ -0,0 +1,69 @@
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Esteban Dugueperoux - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.bugzilla;
+
+import org.eclipse.emf.cdo.eresource.CDOResource;
+import org.eclipse.emf.cdo.session.CDOSession;
+import org.eclipse.emf.cdo.tests.AbstractCDOTest;
+import org.eclipse.emf.cdo.tests.model1.Product1;
+import org.eclipse.emf.cdo.tests.model1.VAT;
+import org.eclipse.emf.cdo.transaction.CDOTransaction;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+/**
+ * @author Esteban Dugueperoux
+ */
+public class Bugzilla_376610_Test extends AbstractCDOTest
+{
+ public void testRemoveOneEnumLiteral() throws Throwable
+ {
+ Product1 product = getModel1Factory().createProduct1();
+
+ CDOSession session = openSession();
+ CDOTransaction transaction = session.openTransaction();
+ CDOResource mainResource = transaction.createResource(getResourcePath("/mainResource.model1"));
+ mainResource.getContents().add(product);
+ transaction.commit();
+
+ // Add several enum literals
+ Collection vats = new ArrayList();
+ vats.add(VAT.VAT0);
+ vats.add(VAT.VAT7);
+ vats.add(VAT.VAT15);
+ product.getOtherVATs().addAll(vats);
+
+ // Remove them
+ product.getOtherVATs().remove(VAT.VAT15);
+ }
+
+ public void testRemoveAllEnumLiterals() throws Throwable
+ {
+ Product1 product = getModel1Factory().createProduct1();
+
+ CDOSession session = openSession();
+ CDOTransaction transaction = session.openTransaction();
+ CDOResource mainResource = transaction.createResource(getResourcePath("/mainResource.model1"));
+ mainResource.getContents().add(product);
+ transaction.commit();
+
+ // Add several enum literals
+ Collection vats = new ArrayList();
+ vats.add(VAT.VAT0);
+ vats.add(VAT.VAT7);
+ vats.add(VAT.VAT15);
+ product.getOtherVATs().addAll(vats);
+
+ // Remove them
+ product.getOtherVATs().removeAll(vats);
+ }
+}
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/object/CDOLegacyAdapter.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/object/CDOLegacyAdapter.java
index cbeaf33fd0..010142d1bd 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/object/CDOLegacyAdapter.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/object/CDOLegacyAdapter.java
@@ -223,13 +223,18 @@ public class CDOLegacyAdapter extends CDOLegacyWrapper implements Adapter.Intern
protected void notifyRemove(EStructuralFeature feature, int position)
{
CDOStore store = view.getStore();
- InternalEObject oldChild = (InternalEObject)store.remove(instance, feature, position);
- if (oldChild != null && feature instanceof EReference)
+
+ Object oldChild = store.remove(instance, feature, position);
+ if (oldChild instanceof InternalEObject)
{
- EReference reference = (EReference)feature;
- if (reference.isContainment())
+ if (feature instanceof EReference)
{
- setContainer(store, oldChild, null, 0);
+ EReference reference = (EReference)feature;
+ if (reference.isContainment())
+ {
+ InternalEObject oldChildEObject = (InternalEObject)oldChild;
+ setContainer(store, oldChildEObject, null, 0);
+ }
}
}
}
@@ -237,17 +242,22 @@ public class CDOLegacyAdapter extends CDOLegacyWrapper implements Adapter.Intern
protected void notifyRemoveMany(EStructuralFeature feature, Object oldValue)
{
CDOStore store = view.getStore();
+
@SuppressWarnings("unchecked")
List