Modidy a package name of nemo
[nemo.git] / nemo-tools / eclipse-plugin / nemo-editor / org.opendaylight.nemo.tool.eclipse.plugin.editor / src-gen / org / opendaylight / nemo / tool / eclipse / plugin / editor / impl / EditorFactoryImpl.java
1 /**
2  */
3 package org.opendaylight.nemo.tool.eclipse.plugin.editor.impl;
4
5 import org.eclipse.emf.ecore.EClass;
6 import org.eclipse.emf.ecore.EObject;
7 import org.eclipse.emf.ecore.EPackage;
8
9 import org.eclipse.emf.ecore.impl.EFactoryImpl;
10
11 import org.eclipse.emf.ecore.plugin.EcorePlugin;
12
13 import org.opendaylight.nemo.tool.eclipse.plugin.editor.*;
14
15 /**
16  * <!-- begin-user-doc -->
17  * An implementation of the model <b>Factory</b>.
18  * <!-- end-user-doc -->
19  * @generated
20  */
21 public class EditorFactoryImpl extends EFactoryImpl implements EditorFactory
22 {
23   /**
24    * Creates the default factory implementation.
25    * <!-- begin-user-doc -->
26    * <!-- end-user-doc -->
27    * @generated
28    */
29   public static EditorFactory init()
30   {
31     try
32     {
33       EditorFactory theEditorFactory = (EditorFactory)EPackage.Registry.INSTANCE.getEFactory(EditorPackage.eNS_URI);
34       if (theEditorFactory != null)
35       {
36         return theEditorFactory;
37       }
38     }
39     catch (Exception exception)
40     {
41       EcorePlugin.INSTANCE.log(exception);
42     }
43     return new EditorFactoryImpl();
44   }
45
46   /**
47    * Creates an instance of the factory.
48    * <!-- begin-user-doc -->
49    * <!-- end-user-doc -->
50    * @generated
51    */
52   public EditorFactoryImpl()
53   {
54     super();
55   }
56
57   /**
58    * <!-- begin-user-doc -->
59    * <!-- end-user-doc -->
60    * @generated
61    */
62   @Override
63   public EObject create(EClass eClass)
64   {
65     switch (eClass.getClassifierID())
66     {
67       case EditorPackage.MODEL: return createModel();
68       case EditorPackage.SENTENCE: return createSentence();
69       case EditorPackage.NODE: return createNode();
70       case EditorPackage.NODE_MODEL: return createNodeModel();
71       case EditorPackage.NODE_OPERATING: return createNodeOperating();
72       case EditorPackage.CONNECTION: return createConnection();
73       case EditorPackage.CONNECTION_UPDATE: return createConnectionUpdate();
74       case EditorPackage.FLOW: return createFlow();
75       case EditorPackage.FLOW_UPDATE: return createFlowUpdate();
76       case EditorPackage.OPERATION: return createOperation();
77       default:
78         throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
79     }
80   }
81
82   /**
83    * <!-- begin-user-doc -->
84    * <!-- end-user-doc -->
85    * @generated
86    */
87   public Model createModel()
88   {
89     ModelImpl model = new ModelImpl();
90     return model;
91   }
92
93   /**
94    * <!-- begin-user-doc -->
95    * <!-- end-user-doc -->
96    * @generated
97    */
98   public Sentence createSentence()
99   {
100     SentenceImpl sentence = new SentenceImpl();
101     return sentence;
102   }
103
104   /**
105    * <!-- begin-user-doc -->
106    * <!-- end-user-doc -->
107    * @generated
108    */
109   public Node createNode()
110   {
111     NodeImpl node = new NodeImpl();
112     return node;
113   }
114
115   /**
116    * <!-- begin-user-doc -->
117    * <!-- end-user-doc -->
118    * @generated
119    */
120   public NodeModel createNodeModel()
121   {
122     NodeModelImpl nodeModel = new NodeModelImpl();
123     return nodeModel;
124   }
125
126   /**
127    * <!-- begin-user-doc -->
128    * <!-- end-user-doc -->
129    * @generated
130    */
131   public NodeOperating createNodeOperating()
132   {
133     NodeOperatingImpl nodeOperating = new NodeOperatingImpl();
134     return nodeOperating;
135   }
136
137   /**
138    * <!-- begin-user-doc -->
139    * <!-- end-user-doc -->
140    * @generated
141    */
142   public Connection createConnection()
143   {
144     ConnectionImpl connection = new ConnectionImpl();
145     return connection;
146   }
147
148   /**
149    * <!-- begin-user-doc -->
150    * <!-- end-user-doc -->
151    * @generated
152    */
153   public ConnectionUpdate createConnectionUpdate()
154   {
155     ConnectionUpdateImpl connectionUpdate = new ConnectionUpdateImpl();
156     return connectionUpdate;
157   }
158
159   /**
160    * <!-- begin-user-doc -->
161    * <!-- end-user-doc -->
162    * @generated
163    */
164   public Flow createFlow()
165   {
166     FlowImpl flow = new FlowImpl();
167     return flow;
168   }
169
170   /**
171    * <!-- begin-user-doc -->
172    * <!-- end-user-doc -->
173    * @generated
174    */
175   public FlowUpdate createFlowUpdate()
176   {
177     FlowUpdateImpl flowUpdate = new FlowUpdateImpl();
178     return flowUpdate;
179   }
180
181   /**
182    * <!-- begin-user-doc -->
183    * <!-- end-user-doc -->
184    * @generated
185    */
186   public Operation createOperation()
187   {
188     OperationImpl operation = new OperationImpl();
189     return operation;
190   }
191
192   /**
193    * <!-- begin-user-doc -->
194    * <!-- end-user-doc -->
195    * @generated
196    */
197   public EditorPackage getEditorPackage()
198   {
199     return (EditorPackage)getEPackage();
200   }
201
202   /**
203    * <!-- begin-user-doc -->
204    * <!-- end-user-doc -->
205    * @deprecated
206    * @generated
207    */
208   @Deprecated
209   public static EditorPackage getPackage()
210   {
211     return EditorPackage.eINSTANCE;
212   }
213
214 } //EditorFactoryImpl