diff options
author | 2019-08-01 14:49:53 +0200 | |
---|---|---|
committer | 2019-08-01 14:49:53 +0200 | |
commit | 972baab642bd889d2c3476c0c9e17a6929e0c318 (patch) | |
tree | 8f724cb348c60e4fc45d446d8532988ed8e40748 /Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java | |
parent | Counting scope propagator (simpler than BasicTypeHierarchy) (diff) | |
download | VIATRA-Generator-972baab642bd889d2c3476c0c9e17a6929e0c318.tar.gz VIATRA-Generator-972baab642bd889d2c3476c0c9e17a6929e0c318.tar.zst VIATRA-Generator-972baab642bd889d2c3476c0c9e17a6929e0c318.zip |
[Stochastic] Remove fault tree support for now
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java | 712 |
1 files changed, 0 insertions, 712 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java deleted file mode 100644 index d4e06dde..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java +++ /dev/null | |||
@@ -1,712 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguageFactory; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; | ||
18 | |||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
20 | |||
21 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
22 | |||
23 | import org.eclipse.emf.ecore.EAttribute; | ||
24 | import org.eclipse.emf.ecore.EClass; | ||
25 | import org.eclipse.emf.ecore.EPackage; | ||
26 | import org.eclipse.emf.ecore.EReference; | ||
27 | import org.eclipse.emf.ecore.EcorePackage; | ||
28 | |||
29 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
30 | |||
31 | import org.eclipse.viatra.query.patternlanguage.emf.vql.PatternLanguagePackage; | ||
32 | |||
33 | import org.eclipse.xtext.common.types.TypesPackage; | ||
34 | |||
35 | import org.eclipse.xtext.xbase.XbasePackage; | ||
36 | |||
37 | import org.eclipse.xtext.xtype.XtypePackage; | ||
38 | |||
39 | /** | ||
40 | * <!-- begin-user-doc --> | ||
41 | * An implementation of the model <b>Package</b>. | ||
42 | * <!-- end-user-doc --> | ||
43 | * @generated | ||
44 | */ | ||
45 | public class CftLanguagePackageImpl extends EPackageImpl implements CftLanguagePackage | ||
46 | { | ||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | private EClass cftModelEClass = null; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | private EClass importDeclarationEClass = null; | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | private EClass transformationDefinitionEClass = null; | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | private EClass mappingDefinitionEClass = null; | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | private EClass mappingParameterEClass = null; | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | private EClass lookupDefinitionEClass = null; | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | private EClass variableEClass = null; | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | private EClass assignmentEClass = null; | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | private EClass eventReferenceEClass = null; | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | private EClass componentInstanceEClass = null; | ||
116 | |||
117 | /** | ||
118 | * Creates an instance of the model <b>Package</b>, registered with | ||
119 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
120 | * package URI value. | ||
121 | * <p>Note: the correct way to create the package is via the static | ||
122 | * factory method {@link #init init()}, which also performs | ||
123 | * initialization of the package, or returns the registered package, | ||
124 | * if one already exists. | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
128 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#eNS_URI | ||
129 | * @see #init() | ||
130 | * @generated | ||
131 | */ | ||
132 | private CftLanguagePackageImpl() | ||
133 | { | ||
134 | super(eNS_URI, CftLanguageFactory.eINSTANCE); | ||
135 | } | ||
136 | |||
137 | /** | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @generated | ||
141 | */ | ||
142 | private static boolean isInited = false; | ||
143 | |||
144 | /** | ||
145 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
146 | * | ||
147 | * <p>This method is used to initialize {@link CftLanguagePackage#eINSTANCE} when that field is accessed. | ||
148 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @see #eNS_URI | ||
152 | * @see #createPackageContents() | ||
153 | * @see #initializePackageContents() | ||
154 | * @generated | ||
155 | */ | ||
156 | public static CftLanguagePackage init() | ||
157 | { | ||
158 | if (isInited) return (CftLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(CftLanguagePackage.eNS_URI); | ||
159 | |||
160 | // Obtain or create and register package | ||
161 | Object registeredCftLanguagePackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
162 | CftLanguagePackageImpl theCftLanguagePackage = registeredCftLanguagePackage instanceof CftLanguagePackageImpl ? (CftLanguagePackageImpl)registeredCftLanguagePackage : new CftLanguagePackageImpl(); | ||
163 | |||
164 | isInited = true; | ||
165 | |||
166 | // Initialize simple dependencies | ||
167 | CftPackage.eINSTANCE.eClass(); | ||
168 | EcorePackage.eINSTANCE.eClass(); | ||
169 | PatternLanguagePackage.eINSTANCE.eClass(); | ||
170 | FtPackage.eINSTANCE.eClass(); | ||
171 | XtypePackage.eINSTANCE.eClass(); | ||
172 | TypesPackage.eINSTANCE.eClass(); | ||
173 | XbasePackage.eINSTANCE.eClass(); | ||
174 | |||
175 | // Create package meta-data objects | ||
176 | theCftLanguagePackage.createPackageContents(); | ||
177 | |||
178 | // Initialize created meta-data | ||
179 | theCftLanguagePackage.initializePackageContents(); | ||
180 | |||
181 | // Mark meta-data to indicate it can't be changed | ||
182 | theCftLanguagePackage.freeze(); | ||
183 | |||
184 | // Update the registry and return the package | ||
185 | EPackage.Registry.INSTANCE.put(CftLanguagePackage.eNS_URI, theCftLanguagePackage); | ||
186 | return theCftLanguagePackage; | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public EClass getCftModel() | ||
196 | { | ||
197 | return cftModelEClass; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public EAttribute getCftModel_PackageName() | ||
207 | { | ||
208 | return (EAttribute)cftModelEClass.getEStructuralFeatures().get(0); | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public EReference getCftModel_Imports() | ||
218 | { | ||
219 | return (EReference)cftModelEClass.getEStructuralFeatures().get(1); | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public EReference getCftModel_ComponentDefinitions() | ||
229 | { | ||
230 | return (EReference)cftModelEClass.getEStructuralFeatures().get(2); | ||
231 | } | ||
232 | |||
233 | /** | ||
234 | * <!-- begin-user-doc --> | ||
235 | * <!-- end-user-doc --> | ||
236 | * @generated | ||
237 | */ | ||
238 | @Override | ||
239 | public EReference getCftModel_TransformationDefinitions() | ||
240 | { | ||
241 | return (EReference)cftModelEClass.getEStructuralFeatures().get(3); | ||
242 | } | ||
243 | |||
244 | /** | ||
245 | * <!-- begin-user-doc --> | ||
246 | * <!-- end-user-doc --> | ||
247 | * @generated | ||
248 | */ | ||
249 | @Override | ||
250 | public EClass getImportDeclaration() | ||
251 | { | ||
252 | return importDeclarationEClass; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public EAttribute getImportDeclaration_ImportedNamespace() | ||
262 | { | ||
263 | return (EAttribute)importDeclarationEClass.getEStructuralFeatures().get(0); | ||
264 | } | ||
265 | |||
266 | /** | ||
267 | * <!-- begin-user-doc --> | ||
268 | * <!-- end-user-doc --> | ||
269 | * @generated | ||
270 | */ | ||
271 | @Override | ||
272 | public EClass getTransformationDefinition() | ||
273 | { | ||
274 | return transformationDefinitionEClass; | ||
275 | } | ||
276 | |||
277 | /** | ||
278 | * <!-- begin-user-doc --> | ||
279 | * <!-- end-user-doc --> | ||
280 | * @generated | ||
281 | */ | ||
282 | @Override | ||
283 | public EAttribute getTransformationDefinition_Name() | ||
284 | { | ||
285 | return (EAttribute)transformationDefinitionEClass.getEStructuralFeatures().get(0); | ||
286 | } | ||
287 | |||
288 | /** | ||
289 | * <!-- begin-user-doc --> | ||
290 | * <!-- end-user-doc --> | ||
291 | * @generated | ||
292 | */ | ||
293 | @Override | ||
294 | public EReference getTransformationDefinition_MappingDefinitions() | ||
295 | { | ||
296 | return (EReference)transformationDefinitionEClass.getEStructuralFeatures().get(1); | ||
297 | } | ||
298 | |||
299 | /** | ||
300 | * <!-- begin-user-doc --> | ||
301 | * <!-- end-user-doc --> | ||
302 | * @generated | ||
303 | */ | ||
304 | @Override | ||
305 | public EClass getMappingDefinition() | ||
306 | { | ||
307 | return mappingDefinitionEClass; | ||
308 | } | ||
309 | |||
310 | /** | ||
311 | * <!-- begin-user-doc --> | ||
312 | * <!-- end-user-doc --> | ||
313 | * @generated | ||
314 | */ | ||
315 | @Override | ||
316 | public EAttribute getMappingDefinition_TopLevel() | ||
317 | { | ||
318 | return (EAttribute)mappingDefinitionEClass.getEStructuralFeatures().get(0); | ||
319 | } | ||
320 | |||
321 | /** | ||
322 | * <!-- begin-user-doc --> | ||
323 | * <!-- end-user-doc --> | ||
324 | * @generated | ||
325 | */ | ||
326 | @Override | ||
327 | public EReference getMappingDefinition_Pattern() | ||
328 | { | ||
329 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(1); | ||
330 | } | ||
331 | |||
332 | /** | ||
333 | * <!-- begin-user-doc --> | ||
334 | * <!-- end-user-doc --> | ||
335 | * @generated | ||
336 | */ | ||
337 | @Override | ||
338 | public EReference getMappingDefinition_Parameters() | ||
339 | { | ||
340 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(2); | ||
341 | } | ||
342 | |||
343 | /** | ||
344 | * <!-- begin-user-doc --> | ||
345 | * <!-- end-user-doc --> | ||
346 | * @generated | ||
347 | */ | ||
348 | @Override | ||
349 | public EReference getMappingDefinition_ComponentInstance() | ||
350 | { | ||
351 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(3); | ||
352 | } | ||
353 | |||
354 | /** | ||
355 | * <!-- begin-user-doc --> | ||
356 | * <!-- end-user-doc --> | ||
357 | * @generated | ||
358 | */ | ||
359 | @Override | ||
360 | public EReference getMappingDefinition_LookupDefinitions() | ||
361 | { | ||
362 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(4); | ||
363 | } | ||
364 | |||
365 | /** | ||
366 | * <!-- begin-user-doc --> | ||
367 | * <!-- end-user-doc --> | ||
368 | * @generated | ||
369 | */ | ||
370 | @Override | ||
371 | public EReference getMappingDefinition_Assignments() | ||
372 | { | ||
373 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(5); | ||
374 | } | ||
375 | |||
376 | /** | ||
377 | * <!-- begin-user-doc --> | ||
378 | * <!-- end-user-doc --> | ||
379 | * @generated | ||
380 | */ | ||
381 | @Override | ||
382 | public EClass getMappingParameter() | ||
383 | { | ||
384 | return mappingParameterEClass; | ||
385 | } | ||
386 | |||
387 | /** | ||
388 | * <!-- begin-user-doc --> | ||
389 | * <!-- end-user-doc --> | ||
390 | * @generated | ||
391 | */ | ||
392 | @Override | ||
393 | public EAttribute getMappingParameter_Name() | ||
394 | { | ||
395 | return (EAttribute)mappingParameterEClass.getEStructuralFeatures().get(0); | ||
396 | } | ||
397 | |||
398 | /** | ||
399 | * <!-- begin-user-doc --> | ||
400 | * <!-- end-user-doc --> | ||
401 | * @generated | ||
402 | */ | ||
403 | @Override | ||
404 | public EClass getLookupDefinition() | ||
405 | { | ||
406 | return lookupDefinitionEClass; | ||
407 | } | ||
408 | |||
409 | /** | ||
410 | * <!-- begin-user-doc --> | ||
411 | * <!-- end-user-doc --> | ||
412 | * @generated | ||
413 | */ | ||
414 | @Override | ||
415 | public EReference getLookupDefinition_Mapping() | ||
416 | { | ||
417 | return (EReference)lookupDefinitionEClass.getEStructuralFeatures().get(0); | ||
418 | } | ||
419 | |||
420 | /** | ||
421 | * <!-- begin-user-doc --> | ||
422 | * <!-- end-user-doc --> | ||
423 | * @generated | ||
424 | */ | ||
425 | @Override | ||
426 | public EReference getLookupDefinition_Arguments() | ||
427 | { | ||
428 | return (EReference)lookupDefinitionEClass.getEStructuralFeatures().get(1); | ||
429 | } | ||
430 | |||
431 | /** | ||
432 | * <!-- begin-user-doc --> | ||
433 | * <!-- end-user-doc --> | ||
434 | * @generated | ||
435 | */ | ||
436 | @Override | ||
437 | public EClass getVariable() | ||
438 | { | ||
439 | return variableEClass; | ||
440 | } | ||
441 | |||
442 | /** | ||
443 | * <!-- begin-user-doc --> | ||
444 | * <!-- end-user-doc --> | ||
445 | * @generated | ||
446 | */ | ||
447 | @Override | ||
448 | public EAttribute getVariable_Name() | ||
449 | { | ||
450 | return (EAttribute)variableEClass.getEStructuralFeatures().get(0); | ||
451 | } | ||
452 | |||
453 | /** | ||
454 | * <!-- begin-user-doc --> | ||
455 | * <!-- end-user-doc --> | ||
456 | * @generated | ||
457 | */ | ||
458 | @Override | ||
459 | public EClass getAssignment() | ||
460 | { | ||
461 | return assignmentEClass; | ||
462 | } | ||
463 | |||
464 | /** | ||
465 | * <!-- begin-user-doc --> | ||
466 | * <!-- end-user-doc --> | ||
467 | * @generated | ||
468 | */ | ||
469 | @Override | ||
470 | public EReference getAssignment_Input() | ||
471 | { | ||
472 | return (EReference)assignmentEClass.getEStructuralFeatures().get(0); | ||
473 | } | ||
474 | |||
475 | /** | ||
476 | * <!-- begin-user-doc --> | ||
477 | * <!-- end-user-doc --> | ||
478 | * @generated | ||
479 | */ | ||
480 | @Override | ||
481 | public EAttribute getAssignment_Multiple() | ||
482 | { | ||
483 | return (EAttribute)assignmentEClass.getEStructuralFeatures().get(1); | ||
484 | } | ||
485 | |||
486 | /** | ||
487 | * <!-- begin-user-doc --> | ||
488 | * <!-- end-user-doc --> | ||
489 | * @generated | ||
490 | */ | ||
491 | @Override | ||
492 | public EReference getAssignment_Output() | ||
493 | { | ||
494 | return (EReference)assignmentEClass.getEStructuralFeatures().get(2); | ||
495 | } | ||
496 | |||
497 | /** | ||
498 | * <!-- begin-user-doc --> | ||
499 | * <!-- end-user-doc --> | ||
500 | * @generated | ||
501 | */ | ||
502 | @Override | ||
503 | public EClass getEventReference() | ||
504 | { | ||
505 | return eventReferenceEClass; | ||
506 | } | ||
507 | |||
508 | /** | ||
509 | * <!-- begin-user-doc --> | ||
510 | * <!-- end-user-doc --> | ||
511 | * @generated | ||
512 | */ | ||
513 | @Override | ||
514 | public EReference getEventReference_Component() | ||
515 | { | ||
516 | return (EReference)eventReferenceEClass.getEStructuralFeatures().get(0); | ||
517 | } | ||
518 | |||
519 | /** | ||
520 | * <!-- begin-user-doc --> | ||
521 | * <!-- end-user-doc --> | ||
522 | * @generated | ||
523 | */ | ||
524 | @Override | ||
525 | public EReference getEventReference_Event() | ||
526 | { | ||
527 | return (EReference)eventReferenceEClass.getEStructuralFeatures().get(1); | ||
528 | } | ||
529 | |||
530 | /** | ||
531 | * <!-- begin-user-doc --> | ||
532 | * <!-- end-user-doc --> | ||
533 | * @generated | ||
534 | */ | ||
535 | @Override | ||
536 | public EClass getComponentInstance() | ||
537 | { | ||
538 | return componentInstanceEClass; | ||
539 | } | ||
540 | |||
541 | /** | ||
542 | * <!-- begin-user-doc --> | ||
543 | * <!-- end-user-doc --> | ||
544 | * @generated | ||
545 | */ | ||
546 | @Override | ||
547 | public EReference getComponentInstance_ComponentType() | ||
548 | { | ||
549 | return (EReference)componentInstanceEClass.getEStructuralFeatures().get(0); | ||
550 | } | ||
551 | |||
552 | /** | ||
553 | * <!-- begin-user-doc --> | ||
554 | * <!-- end-user-doc --> | ||
555 | * @generated | ||
556 | */ | ||
557 | @Override | ||
558 | public CftLanguageFactory getCftLanguageFactory() | ||
559 | { | ||
560 | return (CftLanguageFactory)getEFactoryInstance(); | ||
561 | } | ||
562 | |||
563 | /** | ||
564 | * <!-- begin-user-doc --> | ||
565 | * <!-- end-user-doc --> | ||
566 | * @generated | ||
567 | */ | ||
568 | private boolean isCreated = false; | ||
569 | |||
570 | /** | ||
571 | * Creates the meta-model objects for the package. This method is | ||
572 | * guarded to have no affect on any invocation but its first. | ||
573 | * <!-- begin-user-doc --> | ||
574 | * <!-- end-user-doc --> | ||
575 | * @generated | ||
576 | */ | ||
577 | public void createPackageContents() | ||
578 | { | ||
579 | if (isCreated) return; | ||
580 | isCreated = true; | ||
581 | |||
582 | // Create classes and their features | ||
583 | cftModelEClass = createEClass(CFT_MODEL); | ||
584 | createEAttribute(cftModelEClass, CFT_MODEL__PACKAGE_NAME); | ||
585 | createEReference(cftModelEClass, CFT_MODEL__IMPORTS); | ||
586 | createEReference(cftModelEClass, CFT_MODEL__COMPONENT_DEFINITIONS); | ||
587 | createEReference(cftModelEClass, CFT_MODEL__TRANSFORMATION_DEFINITIONS); | ||
588 | |||
589 | importDeclarationEClass = createEClass(IMPORT_DECLARATION); | ||
590 | createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__IMPORTED_NAMESPACE); | ||
591 | |||
592 | transformationDefinitionEClass = createEClass(TRANSFORMATION_DEFINITION); | ||
593 | createEAttribute(transformationDefinitionEClass, TRANSFORMATION_DEFINITION__NAME); | ||
594 | createEReference(transformationDefinitionEClass, TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS); | ||
595 | |||
596 | mappingDefinitionEClass = createEClass(MAPPING_DEFINITION); | ||
597 | createEAttribute(mappingDefinitionEClass, MAPPING_DEFINITION__TOP_LEVEL); | ||
598 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__PATTERN); | ||
599 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__PARAMETERS); | ||
600 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__COMPONENT_INSTANCE); | ||
601 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__LOOKUP_DEFINITIONS); | ||
602 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__ASSIGNMENTS); | ||
603 | |||
604 | mappingParameterEClass = createEClass(MAPPING_PARAMETER); | ||
605 | createEAttribute(mappingParameterEClass, MAPPING_PARAMETER__NAME); | ||
606 | |||
607 | lookupDefinitionEClass = createEClass(LOOKUP_DEFINITION); | ||
608 | createEReference(lookupDefinitionEClass, LOOKUP_DEFINITION__MAPPING); | ||
609 | createEReference(lookupDefinitionEClass, LOOKUP_DEFINITION__ARGUMENTS); | ||
610 | |||
611 | variableEClass = createEClass(VARIABLE); | ||
612 | createEAttribute(variableEClass, VARIABLE__NAME); | ||
613 | |||
614 | assignmentEClass = createEClass(ASSIGNMENT); | ||
615 | createEReference(assignmentEClass, ASSIGNMENT__INPUT); | ||
616 | createEAttribute(assignmentEClass, ASSIGNMENT__MULTIPLE); | ||
617 | createEReference(assignmentEClass, ASSIGNMENT__OUTPUT); | ||
618 | |||
619 | eventReferenceEClass = createEClass(EVENT_REFERENCE); | ||
620 | createEReference(eventReferenceEClass, EVENT_REFERENCE__COMPONENT); | ||
621 | createEReference(eventReferenceEClass, EVENT_REFERENCE__EVENT); | ||
622 | |||
623 | componentInstanceEClass = createEClass(COMPONENT_INSTANCE); | ||
624 | createEReference(componentInstanceEClass, COMPONENT_INSTANCE__COMPONENT_TYPE); | ||
625 | } | ||
626 | |||
627 | /** | ||
628 | * <!-- begin-user-doc --> | ||
629 | * <!-- end-user-doc --> | ||
630 | * @generated | ||
631 | */ | ||
632 | private boolean isInitialized = false; | ||
633 | |||
634 | /** | ||
635 | * Complete the initialization of the package and its meta-model. This | ||
636 | * method is guarded to have no affect on any invocation but its first. | ||
637 | * <!-- begin-user-doc --> | ||
638 | * <!-- end-user-doc --> | ||
639 | * @generated | ||
640 | */ | ||
641 | public void initializePackageContents() | ||
642 | { | ||
643 | if (isInitialized) return; | ||
644 | isInitialized = true; | ||
645 | |||
646 | // Initialize package | ||
647 | setName(eNAME); | ||
648 | setNsPrefix(eNS_PREFIX); | ||
649 | setNsURI(eNS_URI); | ||
650 | |||
651 | // Obtain other dependent packages | ||
652 | EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); | ||
653 | CftPackage theCftPackage = (CftPackage)EPackage.Registry.INSTANCE.getEPackage(CftPackage.eNS_URI); | ||
654 | PatternLanguagePackage thePatternLanguagePackage = (PatternLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(PatternLanguagePackage.eNS_URI); | ||
655 | |||
656 | // Create type parameters | ||
657 | |||
658 | // Set bounds for type parameters | ||
659 | |||
660 | // Add supertypes to classes | ||
661 | lookupDefinitionEClass.getESuperTypes().add(this.getVariable()); | ||
662 | componentInstanceEClass.getESuperTypes().add(this.getVariable()); | ||
663 | |||
664 | // Initialize classes and features; add operations and parameters | ||
665 | initEClass(cftModelEClass, CftModel.class, "CftModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
666 | initEAttribute(getCftModel_PackageName(), theEcorePackage.getEString(), "packageName", null, 0, 1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
667 | initEReference(getCftModel_Imports(), this.getImportDeclaration(), null, "imports", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
668 | initEReference(getCftModel_ComponentDefinitions(), theCftPackage.getComponentDefinition(), null, "componentDefinitions", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
669 | initEReference(getCftModel_TransformationDefinitions(), this.getTransformationDefinition(), null, "transformationDefinitions", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
670 | |||
671 | initEClass(importDeclarationEClass, ImportDeclaration.class, "ImportDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
672 | initEAttribute(getImportDeclaration_ImportedNamespace(), theEcorePackage.getEString(), "importedNamespace", null, 0, 1, ImportDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
673 | |||
674 | initEClass(transformationDefinitionEClass, TransformationDefinition.class, "TransformationDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
675 | initEAttribute(getTransformationDefinition_Name(), theEcorePackage.getEString(), "name", null, 0, 1, TransformationDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
676 | initEReference(getTransformationDefinition_MappingDefinitions(), this.getMappingDefinition(), null, "mappingDefinitions", null, 0, -1, TransformationDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
677 | |||
678 | initEClass(mappingDefinitionEClass, MappingDefinition.class, "MappingDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
679 | initEAttribute(getMappingDefinition_TopLevel(), theEcorePackage.getEBoolean(), "topLevel", null, 0, 1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
680 | initEReference(getMappingDefinition_Pattern(), thePatternLanguagePackage.getPattern(), null, "pattern", null, 0, 1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
681 | initEReference(getMappingDefinition_Parameters(), this.getMappingParameter(), null, "parameters", null, 0, -1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
682 | initEReference(getMappingDefinition_ComponentInstance(), this.getComponentInstance(), null, "componentInstance", null, 0, 1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
683 | initEReference(getMappingDefinition_LookupDefinitions(), this.getLookupDefinition(), null, "lookupDefinitions", null, 0, -1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
684 | initEReference(getMappingDefinition_Assignments(), this.getAssignment(), null, "assignments", null, 0, -1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
685 | |||
686 | initEClass(mappingParameterEClass, MappingParameter.class, "MappingParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
687 | initEAttribute(getMappingParameter_Name(), theEcorePackage.getEString(), "name", null, 0, 1, MappingParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
688 | |||
689 | initEClass(lookupDefinitionEClass, LookupDefinition.class, "LookupDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
690 | initEReference(getLookupDefinition_Mapping(), this.getMappingDefinition(), null, "mapping", null, 0, 1, LookupDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
691 | initEReference(getLookupDefinition_Arguments(), this.getMappingParameter(), null, "arguments", null, 0, -1, LookupDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
692 | |||
693 | initEClass(variableEClass, Variable.class, "Variable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
694 | initEAttribute(getVariable_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
695 | |||
696 | initEClass(assignmentEClass, Assignment.class, "Assignment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
697 | initEReference(getAssignment_Input(), this.getEventReference(), null, "input", null, 0, 1, Assignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
698 | initEAttribute(getAssignment_Multiple(), theEcorePackage.getEBoolean(), "multiple", null, 0, 1, Assignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
699 | initEReference(getAssignment_Output(), this.getEventReference(), null, "output", null, 0, 1, Assignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
700 | |||
701 | initEClass(eventReferenceEClass, EventReference.class, "EventReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
702 | initEReference(getEventReference_Component(), this.getVariable(), null, "component", null, 0, 1, EventReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
703 | initEReference(getEventReference_Event(), theCftPackage.getEventDeclaration(), null, "event", null, 0, 1, EventReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
704 | |||
705 | initEClass(componentInstanceEClass, ComponentInstance.class, "ComponentInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
706 | initEReference(getComponentInstance_ComponentType(), theCftPackage.getComponentDefinition(), null, "componentType", null, 0, 1, ComponentInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
707 | |||
708 | // Create resource | ||
709 | createResource(eNS_URI); | ||
710 | } | ||
711 | |||
712 | } //CftLanguagePackageImpl | ||