Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/epo2/impl/EPO2FactoryImpl.java')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/epo2/impl/EPO2FactoryImpl.java269
1 files changed, 0 insertions, 269 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/epo2/impl/EPO2FactoryImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/epo2/impl/EPO2FactoryImpl.java
deleted file mode 100644
index b0a263a82..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/epo2/impl/EPO2FactoryImpl.java
+++ /dev/null
@@ -1,269 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: EPO2FactoryImpl.java,v 1.3 2007/02/08 23:09:21 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.sample.epo2.impl;
-
-import java.util.Date;
-
-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 org.eclipse.emf.teneo.samples.emf.sample.epo2.*;
-import org.eclipse.emf.teneo.samples.emf.sample.epo2.Customer;
-import org.eclipse.emf.teneo.samples.emf.sample.epo2.EPO2Factory;
-import org.eclipse.emf.teneo.samples.emf.sample.epo2.EPO2Package;
-import org.eclipse.emf.teneo.samples.emf.sample.epo2.GlobalAddress;
-import org.eclipse.emf.teneo.samples.emf.sample.epo2.GlobalLocation;
-import org.eclipse.emf.teneo.samples.emf.sample.epo2.Item;
-import org.eclipse.emf.teneo.samples.emf.sample.epo2.OrderStatus;
-import org.eclipse.emf.teneo.samples.emf.sample.epo2.PurchaseOrder;
-import org.eclipse.emf.teneo.samples.emf.sample.epo2.Supplier;
-import org.eclipse.emf.teneo.samples.emf.sample.epo2.USAddress;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class EPO2FactoryImpl extends EFactoryImpl implements EPO2Factory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static EPO2Factory init() {
- try {
- EPO2Factory theEPO2Factory = (EPO2Factory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/teneo/samples/emf/extendedpo2");
- if (theEPO2Factory != null) {
- return theEPO2Factory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new EPO2FactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EPO2FactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case EPO2Package.ITEM: return createItem();
- case EPO2Package.US_ADDRESS: return createUSAddress();
- case EPO2Package.PURCHASE_ORDER: return createPurchaseOrder();
- case EPO2Package.SUPPLIER: return createSupplier();
- case EPO2Package.CUSTOMER: return createCustomer();
- case EPO2Package.GLOBAL_ADDRESS: return createGlobalAddress();
- case EPO2Package.GLOBAL_LOCATION: return createGlobalLocation();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object createFromString(EDataType eDataType, String initialValue) {
- switch (eDataType.getClassifierID()) {
- case EPO2Package.ORDER_STATUS:
- return createOrderStatusFromString(eDataType, initialValue);
- case EPO2Package.SKU:
- return createSKUFromString(eDataType, initialValue);
- case EPO2Package.DATE:
- return createDateFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String convertToString(EDataType eDataType, Object instanceValue) {
- switch (eDataType.getClassifierID()) {
- case EPO2Package.ORDER_STATUS:
- return convertOrderStatusToString(eDataType, instanceValue);
- case EPO2Package.SKU:
- return convertSKUToString(eDataType, instanceValue);
- case EPO2Package.DATE:
- return convertDateToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Item createItem() {
- ItemImpl item = new ItemImpl();
- return item;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public USAddress createUSAddress() {
- USAddressImpl usAddress = new USAddressImpl();
- return usAddress;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public PurchaseOrder createPurchaseOrder() {
- PurchaseOrderImpl purchaseOrder = new PurchaseOrderImpl();
- return purchaseOrder;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Supplier createSupplier() {
- SupplierImpl supplier = new SupplierImpl();
- return supplier;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Customer createCustomer() {
- CustomerImpl customer = new CustomerImpl();
- return customer;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public GlobalAddress createGlobalAddress() {
- GlobalAddressImpl globalAddress = new GlobalAddressImpl();
- return globalAddress;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public GlobalLocation createGlobalLocation() {
- GlobalLocationImpl globalLocation = new GlobalLocationImpl();
- return globalLocation;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public OrderStatus createOrderStatusFromString(EDataType eDataType, String initialValue) {
- OrderStatus result = OrderStatus.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertOrderStatusToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String createSKUFromString(EDataType eDataType, String initialValue) {
- return (String)super.createFromString(initialValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertSKUToString(EDataType eDataType, Object instanceValue) {
- return super.convertToString(instanceValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Date createDateFromString(EDataType eDataType, String initialValue) {
- return (Date)super.createFromString(initialValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String convertDateToString(EDataType eDataType, Object instanceValue) {
- return super.convertToString(instanceValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EPO2Package getEPO2Package() {
- return (EPO2Package)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static EPO2Package getPackage() {
- return EPO2Package.eINSTANCE;
- }
-
-} //EPO2FactoryImpl

Back to the top