KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > mapping > ecore2ecore > impl > Ecore2EcoreFactoryImpl


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2004-2005 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: Ecore2EcoreFactoryImpl.java,v 1.6 2005/06/08 06:21:24 nickb Exp $
16  */

17 package org.eclipse.emf.mapping.ecore2ecore.impl;
18
19
20 import org.eclipse.emf.ecore.EClass;
21 import org.eclipse.emf.ecore.EObject;
22
23 import org.eclipse.emf.ecore.impl.EFactoryImpl;
24
25 import org.eclipse.emf.mapping.ecore2ecore.*;
26
27
28 /**
29  * <!-- begin-user-doc -->
30  * An implementation of the model <b>Factory</b>.
31  * <!-- end-user-doc -->
32  * @generated
33  */

34 public class Ecore2EcoreFactoryImpl extends EFactoryImpl implements Ecore2EcoreFactory
35 {
36   /**
37    * Creates an instance of the factory.
38    * <!-- begin-user-doc -->
39    * <!-- end-user-doc -->
40    * @generated
41    */

42   public Ecore2EcoreFactoryImpl()
43   {
44     super();
45   }
46
47   /**
48    * <!-- begin-user-doc -->
49    * <!-- end-user-doc -->
50    * @generated
51    */

52   public EObject create(EClass eClass)
53   {
54     switch (eClass.getClassifierID())
55     {
56       case Ecore2EcorePackage.ECORE2_ECORE_MAPPING_ROOT: return createEcore2EcoreMappingRoot();
57       default:
58         throw new IllegalArgumentException JavaDoc("The class '" + eClass.getName() + "' is not a valid classifier");
59     }
60   }
61
62   /**
63    * <!-- begin-user-doc -->
64    * <!-- end-user-doc -->
65    * @generated
66    */

67   public Ecore2EcoreMappingRoot createEcore2EcoreMappingRoot()
68   {
69     Ecore2EcoreMappingRootImpl ecore2EcoreMappingRoot = new Ecore2EcoreMappingRootImpl();
70     return ecore2EcoreMappingRoot;
71   }
72
73   /**
74    * <!-- begin-user-doc -->
75    * <!-- end-user-doc -->
76    * @generated
77    */

78   public Ecore2EcorePackage getEcore2EcorePackage()
79   {
80     return (Ecore2EcorePackage)getEPackage();
81   }
82
83   /**
84    * <!-- begin-user-doc -->
85    * <!-- end-user-doc -->
86    * @deprecated
87    * @generated
88    */

89   public static Ecore2EcorePackage getPackage()
90   {
91     return Ecore2EcorePackage.eINSTANCE;
92   }
93
94 } //Ecore2EcoreFactoryImpl
95
Popular Tags