Modify pom file
[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 / EditorPackageImpl.java
1 /**
2  */
3 package org.opendaylight.nemo.tool.eclipse.plugin.editor.impl;
4
5 import org.eclipse.emf.ecore.EAttribute;
6 import org.eclipse.emf.ecore.EClass;
7 import org.eclipse.emf.ecore.EPackage;
8 import org.eclipse.emf.ecore.EReference;
9
10 import org.eclipse.emf.ecore.impl.EPackageImpl;
11
12 import org.opendaylight.nemo.tool.eclipse.plugin.editor.Connection;
13 import org.opendaylight.nemo.tool.eclipse.plugin.editor.ConnectionUpdate;
14 import org.opendaylight.nemo.tool.eclipse.plugin.editor.EditorFactory;
15 import org.opendaylight.nemo.tool.eclipse.plugin.editor.EditorPackage;
16 import org.opendaylight.nemo.tool.eclipse.plugin.editor.Flow;
17 import org.opendaylight.nemo.tool.eclipse.plugin.editor.FlowUpdate;
18 import org.opendaylight.nemo.tool.eclipse.plugin.editor.Model;
19 import org.opendaylight.nemo.tool.eclipse.plugin.editor.Node;
20 import org.opendaylight.nemo.tool.eclipse.plugin.editor.NodeModel;
21 import org.opendaylight.nemo.tool.eclipse.plugin.editor.NodeOperating;
22 import org.opendaylight.nemo.tool.eclipse.plugin.editor.Operation;
23 import org.opendaylight.nemo.tool.eclipse.plugin.editor.Sentence;
24
25 /**
26  * <!-- begin-user-doc -->
27  * An implementation of the model <b>Package</b>.
28  * <!-- end-user-doc -->
29  * @generated
30  */
31 public class EditorPackageImpl extends EPackageImpl implements EditorPackage
32 {
33   /**
34    * <!-- begin-user-doc -->
35    * <!-- end-user-doc -->
36    * @generated
37    */
38   private EClass modelEClass = null;
39
40   /**
41    * <!-- begin-user-doc -->
42    * <!-- end-user-doc -->
43    * @generated
44    */
45   private EClass sentenceEClass = null;
46
47   /**
48    * <!-- begin-user-doc -->
49    * <!-- end-user-doc -->
50    * @generated
51    */
52   private EClass nodeEClass = null;
53
54   /**
55    * <!-- begin-user-doc -->
56    * <!-- end-user-doc -->
57    * @generated
58    */
59   private EClass nodeModelEClass = null;
60
61   /**
62    * <!-- begin-user-doc -->
63    * <!-- end-user-doc -->
64    * @generated
65    */
66   private EClass nodeOperatingEClass = null;
67
68   /**
69    * <!-- begin-user-doc -->
70    * <!-- end-user-doc -->
71    * @generated
72    */
73   private EClass connectionEClass = null;
74
75   /**
76    * <!-- begin-user-doc -->
77    * <!-- end-user-doc -->
78    * @generated
79    */
80   private EClass connectionUpdateEClass = null;
81
82   /**
83    * <!-- begin-user-doc -->
84    * <!-- end-user-doc -->
85    * @generated
86    */
87   private EClass flowEClass = null;
88
89   /**
90    * <!-- begin-user-doc -->
91    * <!-- end-user-doc -->
92    * @generated
93    */
94   private EClass flowUpdateEClass = null;
95
96   /**
97    * <!-- begin-user-doc -->
98    * <!-- end-user-doc -->
99    * @generated
100    */
101   private EClass operationEClass = null;
102
103   /**
104    * Creates an instance of the model <b>Package</b>, registered with
105    * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
106    * package URI value.
107    * <p>Note: the correct way to create the package is via the static
108    * factory method {@link #init init()}, which also performs
109    * initialization of the package, or returns the registered package,
110    * if one already exists.
111    * <!-- begin-user-doc -->
112    * <!-- end-user-doc -->
113    * @see org.eclipse.emf.ecore.EPackage.Registry
114    * @see org.opendaylight.nemo.tool.eclipse.plugin.editor.EditorPackage#eNS_URI
115    * @see #init()
116    * @generated
117    */
118   private EditorPackageImpl()
119   {
120     super(eNS_URI, EditorFactory.eINSTANCE);
121   }
122
123   /**
124    * <!-- begin-user-doc -->
125    * <!-- end-user-doc -->
126    * @generated
127    */
128   private static boolean isInited = false;
129
130   /**
131    * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
132    * 
133    * <p>This method is used to initialize {@link EditorPackage#eINSTANCE} when that field is accessed.
134    * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
135    * <!-- begin-user-doc -->
136    * <!-- end-user-doc -->
137    * @see #eNS_URI
138    * @see #createPackageContents()
139    * @see #initializePackageContents()
140    * @generated
141    */
142   public static EditorPackage init()
143   {
144     if (isInited) return (EditorPackage)EPackage.Registry.INSTANCE.getEPackage(EditorPackage.eNS_URI);
145
146     // Obtain or create and register package
147     EditorPackageImpl theEditorPackage = (EditorPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof EditorPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new EditorPackageImpl());
148
149     isInited = true;
150
151     // Create package meta-data objects
152     theEditorPackage.createPackageContents();
153
154     // Initialize created meta-data
155     theEditorPackage.initializePackageContents();
156
157     // Mark meta-data to indicate it can't be changed
158     theEditorPackage.freeze();
159
160   
161     // Update the registry and return the package
162     EPackage.Registry.INSTANCE.put(EditorPackage.eNS_URI, theEditorPackage);
163     return theEditorPackage;
164   }
165
166   /**
167    * <!-- begin-user-doc -->
168    * <!-- end-user-doc -->
169    * @generated
170    */
171   public EClass getModel()
172   {
173     return modelEClass;
174   }
175
176   /**
177    * <!-- begin-user-doc -->
178    * <!-- end-user-doc -->
179    * @generated
180    */
181   public EReference getModel_Sentences()
182   {
183     return (EReference)modelEClass.getEStructuralFeatures().get(0);
184   }
185
186   /**
187    * <!-- begin-user-doc -->
188    * <!-- end-user-doc -->
189    * @generated
190    */
191   public EClass getSentence()
192   {
193     return sentenceEClass;
194   }
195
196   /**
197    * <!-- begin-user-doc -->
198    * <!-- end-user-doc -->
199    * @generated
200    */
201   public EClass getNode()
202   {
203     return nodeEClass;
204   }
205
206   /**
207    * <!-- begin-user-doc -->
208    * <!-- end-user-doc -->
209    * @generated
210    */
211   public EAttribute getNode_Name()
212   {
213     return (EAttribute)nodeEClass.getEStructuralFeatures().get(0);
214   }
215
216   /**
217    * <!-- begin-user-doc -->
218    * <!-- end-user-doc -->
219    * @generated
220    */
221   public EReference getNode_Nodes()
222   {
223     return (EReference)nodeEClass.getEStructuralFeatures().get(1);
224   }
225
226   /**
227    * <!-- begin-user-doc -->
228    * <!-- end-user-doc -->
229    * @generated
230    */
231   public EClass getNodeModel()
232   {
233     return nodeModelEClass;
234   }
235
236   /**
237    * <!-- begin-user-doc -->
238    * <!-- end-user-doc -->
239    * @generated
240    */
241   public EAttribute getNodeModel_Name()
242   {
243     return (EAttribute)nodeModelEClass.getEStructuralFeatures().get(0);
244   }
245
246   /**
247    * <!-- begin-user-doc -->
248    * <!-- end-user-doc -->
249    * @generated
250    */
251   public EClass getNodeOperating()
252   {
253     return nodeOperatingEClass;
254   }
255
256   /**
257    * <!-- begin-user-doc -->
258    * <!-- end-user-doc -->
259    * @generated
260    */
261   public EReference getNodeOperating_Nodename()
262   {
263     return (EReference)nodeOperatingEClass.getEStructuralFeatures().get(0);
264   }
265
266   /**
267    * <!-- begin-user-doc -->
268    * <!-- end-user-doc -->
269    * @generated
270    */
271   public EReference getNodeOperating_Nodes()
272   {
273     return (EReference)nodeOperatingEClass.getEStructuralFeatures().get(1);
274   }
275
276   /**
277    * <!-- begin-user-doc -->
278    * <!-- end-user-doc -->
279    * @generated
280    */
281   public EClass getConnection()
282   {
283     return connectionEClass;
284   }
285
286   /**
287    * <!-- begin-user-doc -->
288    * <!-- end-user-doc -->
289    * @generated
290    */
291   public EAttribute getConnection_Name()
292   {
293     return (EAttribute)connectionEClass.getEStructuralFeatures().get(0);
294   }
295
296   /**
297    * <!-- begin-user-doc -->
298    * <!-- end-user-doc -->
299    * @generated
300    */
301   public EReference getConnection_Endnode()
302   {
303     return (EReference)connectionEClass.getEStructuralFeatures().get(1);
304   }
305
306   /**
307    * <!-- begin-user-doc -->
308    * <!-- end-user-doc -->
309    * @generated
310    */
311   public EClass getConnectionUpdate()
312   {
313     return connectionUpdateEClass;
314   }
315
316   /**
317    * <!-- begin-user-doc -->
318    * <!-- end-user-doc -->
319    * @generated
320    */
321   public EReference getConnectionUpdate_Connectionname()
322   {
323     return (EReference)connectionUpdateEClass.getEStructuralFeatures().get(0);
324   }
325
326   /**
327    * <!-- begin-user-doc -->
328    * <!-- end-user-doc -->
329    * @generated
330    */
331   public EReference getConnectionUpdate_Endnode()
332   {
333     return (EReference)connectionUpdateEClass.getEStructuralFeatures().get(1);
334   }
335
336   /**
337    * <!-- begin-user-doc -->
338    * <!-- end-user-doc -->
339    * @generated
340    */
341   public EClass getFlow()
342   {
343     return flowEClass;
344   }
345
346   /**
347    * <!-- begin-user-doc -->
348    * <!-- end-user-doc -->
349    * @generated
350    */
351   public EAttribute getFlow_Name()
352   {
353     return (EAttribute)flowEClass.getEStructuralFeatures().get(0);
354   }
355
356   /**
357    * <!-- begin-user-doc -->
358    * <!-- end-user-doc -->
359    * @generated
360    */
361   public EClass getFlowUpdate()
362   {
363     return flowUpdateEClass;
364   }
365
366   /**
367    * <!-- begin-user-doc -->
368    * <!-- end-user-doc -->
369    * @generated
370    */
371   public EReference getFlowUpdate_FlowId()
372   {
373     return (EReference)flowUpdateEClass.getEStructuralFeatures().get(0);
374   }
375
376   /**
377    * <!-- begin-user-doc -->
378    * <!-- end-user-doc -->
379    * @generated
380    */
381   public EClass getOperation()
382   {
383     return operationEClass;
384   }
385
386   /**
387    * <!-- begin-user-doc -->
388    * <!-- end-user-doc -->
389    * @generated
390    */
391   public EAttribute getOperation_Name()
392   {
393     return (EAttribute)operationEClass.getEStructuralFeatures().get(0);
394   }
395
396   /**
397    * <!-- begin-user-doc -->
398    * <!-- end-user-doc -->
399    * @generated
400    */
401   public EAttribute getOperation_Value()
402   {
403     return (EAttribute)operationEClass.getEStructuralFeatures().get(1);
404   }
405
406   /**
407    * <!-- begin-user-doc -->
408    * <!-- end-user-doc -->
409    * @generated
410    */
411   public EReference getOperation_TargetId()
412   {
413     return (EReference)operationEClass.getEStructuralFeatures().get(2);
414   }
415
416   /**
417    * <!-- begin-user-doc -->
418    * <!-- end-user-doc -->
419    * @generated
420    */
421   public EReference getOperation_TargetNode()
422   {
423     return (EReference)operationEClass.getEStructuralFeatures().get(3);
424   }
425
426   /**
427    * <!-- begin-user-doc -->
428    * <!-- end-user-doc -->
429    * @generated
430    */
431   public EditorFactory getEditorFactory()
432   {
433     return (EditorFactory)getEFactoryInstance();
434   }
435
436   /**
437    * <!-- begin-user-doc -->
438    * <!-- end-user-doc -->
439    * @generated
440    */
441   private boolean isCreated = false;
442
443   /**
444    * Creates the meta-model objects for the package.  This method is
445    * guarded to have no affect on any invocation but its first.
446    * <!-- begin-user-doc -->
447    * <!-- end-user-doc -->
448    * @generated
449    */
450   public void createPackageContents()
451   {
452     if (isCreated) return;
453     isCreated = true;
454
455     // Create classes and their features
456     modelEClass = createEClass(MODEL);
457     createEReference(modelEClass, MODEL__SENTENCES);
458
459     sentenceEClass = createEClass(SENTENCE);
460
461     nodeEClass = createEClass(NODE);
462     createEAttribute(nodeEClass, NODE__NAME);
463     createEReference(nodeEClass, NODE__NODES);
464
465     nodeModelEClass = createEClass(NODE_MODEL);
466     createEAttribute(nodeModelEClass, NODE_MODEL__NAME);
467
468     nodeOperatingEClass = createEClass(NODE_OPERATING);
469     createEReference(nodeOperatingEClass, NODE_OPERATING__NODENAME);
470     createEReference(nodeOperatingEClass, NODE_OPERATING__NODES);
471
472     connectionEClass = createEClass(CONNECTION);
473     createEAttribute(connectionEClass, CONNECTION__NAME);
474     createEReference(connectionEClass, CONNECTION__ENDNODE);
475
476     connectionUpdateEClass = createEClass(CONNECTION_UPDATE);
477     createEReference(connectionUpdateEClass, CONNECTION_UPDATE__CONNECTIONNAME);
478     createEReference(connectionUpdateEClass, CONNECTION_UPDATE__ENDNODE);
479
480     flowEClass = createEClass(FLOW);
481     createEAttribute(flowEClass, FLOW__NAME);
482
483     flowUpdateEClass = createEClass(FLOW_UPDATE);
484     createEReference(flowUpdateEClass, FLOW_UPDATE__FLOW_ID);
485
486     operationEClass = createEClass(OPERATION);
487     createEAttribute(operationEClass, OPERATION__NAME);
488     createEAttribute(operationEClass, OPERATION__VALUE);
489     createEReference(operationEClass, OPERATION__TARGET_ID);
490     createEReference(operationEClass, OPERATION__TARGET_NODE);
491   }
492
493   /**
494    * <!-- begin-user-doc -->
495    * <!-- end-user-doc -->
496    * @generated
497    */
498   private boolean isInitialized = false;
499
500   /**
501    * Complete the initialization of the package and its meta-model.  This
502    * method is guarded to have no affect on any invocation but its first.
503    * <!-- begin-user-doc -->
504    * <!-- end-user-doc -->
505    * @generated
506    */
507   public void initializePackageContents()
508   {
509     if (isInitialized) return;
510     isInitialized = true;
511
512     // Initialize package
513     setName(eNAME);
514     setNsPrefix(eNS_PREFIX);
515     setNsURI(eNS_URI);
516
517     // Create type parameters
518
519     // Set bounds for type parameters
520
521     // Add supertypes to classes
522     nodeEClass.getESuperTypes().add(this.getSentence());
523     nodeOperatingEClass.getESuperTypes().add(this.getSentence());
524     connectionEClass.getESuperTypes().add(this.getSentence());
525     connectionUpdateEClass.getESuperTypes().add(this.getSentence());
526     flowEClass.getESuperTypes().add(this.getSentence());
527     flowUpdateEClass.getESuperTypes().add(this.getSentence());
528     operationEClass.getESuperTypes().add(this.getSentence());
529
530     // Initialize classes and features; add operations and parameters
531     initEClass(modelEClass, Model.class, "Model", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
532     initEReference(getModel_Sentences(), this.getSentence(), null, "sentences", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
533
534     initEClass(sentenceEClass, Sentence.class, "Sentence", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
535
536     initEClass(nodeEClass, Node.class, "Node", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
537     initEAttribute(getNode_Name(), ecorePackage.getEString(), "name", null, 0, 1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
538     initEReference(getNode_Nodes(), this.getNode(), null, "nodes", null, 0, -1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
539
540     initEClass(nodeModelEClass, NodeModel.class, "NodeModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
541     initEAttribute(getNodeModel_Name(), ecorePackage.getEString(), "name", null, 0, 1, NodeModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
542
543     initEClass(nodeOperatingEClass, NodeOperating.class, "NodeOperating", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
544     initEReference(getNodeOperating_Nodename(), this.getNode(), null, "nodename", null, 0, -1, NodeOperating.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
545     initEReference(getNodeOperating_Nodes(), this.getNode(), null, "nodes", null, 0, -1, NodeOperating.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
546
547     initEClass(connectionEClass, Connection.class, "Connection", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
548     initEAttribute(getConnection_Name(), ecorePackage.getEString(), "name", null, 0, 1, Connection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
549     initEReference(getConnection_Endnode(), this.getNode(), null, "endnode", null, 0, -1, Connection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
550
551     initEClass(connectionUpdateEClass, ConnectionUpdate.class, "ConnectionUpdate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
552     initEReference(getConnectionUpdate_Connectionname(), this.getConnection(), null, "connectionname", null, 0, -1, ConnectionUpdate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
553     initEReference(getConnectionUpdate_Endnode(), this.getNode(), null, "endnode", null, 0, -1, ConnectionUpdate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
554
555     initEClass(flowEClass, Flow.class, "Flow", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
556     initEAttribute(getFlow_Name(), ecorePackage.getEString(), "name", null, 0, 1, Flow.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
557
558     initEClass(flowUpdateEClass, FlowUpdate.class, "FlowUpdate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
559     initEReference(getFlowUpdate_FlowId(), this.getFlow(), null, "flowId", null, 0, -1, FlowUpdate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
560
561     initEClass(operationEClass, Operation.class, "Operation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
562     initEAttribute(getOperation_Name(), ecorePackage.getEString(), "name", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
563     initEAttribute(getOperation_Value(), ecorePackage.getEInt(), "value", null, 0, -1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
564     initEReference(getOperation_TargetId(), this.getFlow(), null, "targetId", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
565     initEReference(getOperation_TargetNode(), this.getNode(), null, "targetNode", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
566
567     // Create resource
568     createResource(eNS_URI);
569   }
570
571 } //EditorPackageImpl