1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package EssentialOCL.impl; |
8 | |
9 | import EMOF.EMOFPackage; |
10 | |
11 | import EMOF.impl.EMOFPackageImpl; |
12 | |
13 | import EssentialOCL.AnyType; |
14 | import EssentialOCL.BagType; |
15 | import EssentialOCL.BooleanLiteralExp; |
16 | import EssentialOCL.CallExp; |
17 | import EssentialOCL.CollectionItem; |
18 | import EssentialOCL.CollectionKind; |
19 | import EssentialOCL.CollectionLiteralExp; |
20 | import EssentialOCL.CollectionLiteralPart; |
21 | import EssentialOCL.CollectionRange; |
22 | import EssentialOCL.CollectionType; |
23 | import EssentialOCL.EnumLiteralExp; |
24 | import EssentialOCL.EssentialOCLFactory; |
25 | import EssentialOCL.EssentialOCLPackage; |
26 | import EssentialOCL.ExpressionInOcl; |
27 | import EssentialOCL.FeatureCallExp; |
28 | import EssentialOCL.IfExp; |
29 | import EssentialOCL.IntegerLiteralExp; |
30 | import EssentialOCL.InvalidLiteralExp; |
31 | import EssentialOCL.InvalidType; |
32 | import EssentialOCL.IterateExp; |
33 | import EssentialOCL.IteratorExp; |
34 | import EssentialOCL.LetExp; |
35 | import EssentialOCL.LiteralExp; |
36 | import EssentialOCL.LoopExp; |
37 | import EssentialOCL.NavigationCallExp; |
38 | import EssentialOCL.NullLiteralExp; |
39 | import EssentialOCL.NumericLiteralExp; |
40 | import EssentialOCL.OclExpression; |
41 | import EssentialOCL.OperationCallExp; |
42 | import EssentialOCL.OrderedSetType; |
43 | import EssentialOCL.PrimitiveLiteralExp; |
44 | import EssentialOCL.PropertyCallExp; |
45 | import EssentialOCL.RealLiteralExp; |
46 | import EssentialOCL.SequenceType; |
47 | import EssentialOCL.SetType; |
48 | import EssentialOCL.StringLiteralExp; |
49 | import EssentialOCL.TupleLiteralExp; |
50 | import EssentialOCL.TupleLiteralPart; |
51 | import EssentialOCL.TupleType; |
52 | import EssentialOCL.TypeExp; |
53 | import EssentialOCL.TypeType; |
54 | import EssentialOCL.UnlimitedNaturalExp; |
55 | import EssentialOCL.Variable; |
56 | import EssentialOCL.VariableExp; |
57 | import EssentialOCL.VoidType; |
58 | |
59 | import QVTBase.QVTBasePackage; |
60 | |
61 | import QVTBase.impl.QVTBasePackageImpl; |
62 | |
63 | import QVTRelation.QVTRelationPackage; |
64 | |
65 | import QVTRelation.impl.QVTRelationPackageImpl; |
66 | |
67 | import QVTTemplate.QVTTemplatePackage; |
68 | |
69 | import QVTTemplate.impl.QVTTemplatePackageImpl; |
70 | |
71 | import org.eclipse.emf.ecore.EAttribute; |
72 | import org.eclipse.emf.ecore.EClass; |
73 | import org.eclipse.emf.ecore.EEnum; |
74 | import org.eclipse.emf.ecore.EPackage; |
75 | import org.eclipse.emf.ecore.EReference; |
76 | |
77 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
78 | |
79 | /** |
80 | * <!-- begin-user-doc --> |
81 | * An implementation of the model <b>Package</b>. |
82 | * <!-- end-user-doc --> |
83 | * @generated |
84 | */ |
85 | public class EssentialOCLPackageImpl extends EPackageImpl implements EssentialOCLPackage { |
86 | /** |
87 | * <!-- begin-user-doc --> |
88 | * <!-- end-user-doc --> |
89 | * @generated |
90 | */ |
91 | private EClass anyTypeEClass = null; |
92 | |
93 | /** |
94 | * <!-- begin-user-doc --> |
95 | * <!-- end-user-doc --> |
96 | * @generated |
97 | */ |
98 | private EClass bagTypeEClass = null; |
99 | |
100 | /** |
101 | * <!-- begin-user-doc --> |
102 | * <!-- end-user-doc --> |
103 | * @generated |
104 | */ |
105 | private EClass booleanLiteralExpEClass = null; |
106 | |
107 | /** |
108 | * <!-- begin-user-doc --> |
109 | * <!-- end-user-doc --> |
110 | * @generated |
111 | */ |
112 | private EClass callExpEClass = null; |
113 | |
114 | /** |
115 | * <!-- begin-user-doc --> |
116 | * <!-- end-user-doc --> |
117 | * @generated |
118 | */ |
119 | private EClass collectionItemEClass = null; |
120 | |
121 | /** |
122 | * <!-- begin-user-doc --> |
123 | * <!-- end-user-doc --> |
124 | * @generated |
125 | */ |
126 | private EClass collectionLiteralExpEClass = null; |
127 | |
128 | /** |
129 | * <!-- begin-user-doc --> |
130 | * <!-- end-user-doc --> |
131 | * @generated |
132 | */ |
133 | private EClass collectionLiteralPartEClass = null; |
134 | |
135 | /** |
136 | * <!-- begin-user-doc --> |
137 | * <!-- end-user-doc --> |
138 | * @generated |
139 | */ |
140 | private EClass collectionRangeEClass = null; |
141 | |
142 | /** |
143 | * <!-- begin-user-doc --> |
144 | * <!-- end-user-doc --> |
145 | * @generated |
146 | */ |
147 | private EClass collectionTypeEClass = null; |
148 | |
149 | /** |
150 | * <!-- begin-user-doc --> |
151 | * <!-- end-user-doc --> |
152 | * @generated |
153 | */ |
154 | private EClass enumLiteralExpEClass = null; |
155 | |
156 | /** |
157 | * <!-- begin-user-doc --> |
158 | * <!-- end-user-doc --> |
159 | * @generated |
160 | */ |
161 | private EClass expressionInOclEClass = null; |
162 | |
163 | /** |
164 | * <!-- begin-user-doc --> |
165 | * <!-- end-user-doc --> |
166 | * @generated |
167 | */ |
168 | private EClass featureCallExpEClass = null; |
169 | |
170 | /** |
171 | * <!-- begin-user-doc --> |
172 | * <!-- end-user-doc --> |
173 | * @generated |
174 | */ |
175 | private EClass ifExpEClass = null; |
176 | |
177 | /** |
178 | * <!-- begin-user-doc --> |
179 | * <!-- end-user-doc --> |
180 | * @generated |
181 | */ |
182 | private EClass integerLiteralExpEClass = null; |
183 | |
184 | /** |
185 | * <!-- begin-user-doc --> |
186 | * <!-- end-user-doc --> |
187 | * @generated |
188 | */ |
189 | private EClass invalidLiteralExpEClass = null; |
190 | |
191 | /** |
192 | * <!-- begin-user-doc --> |
193 | * <!-- end-user-doc --> |
194 | * @generated |
195 | */ |
196 | private EClass invalidTypeEClass = null; |
197 | |
198 | /** |
199 | * <!-- begin-user-doc --> |
200 | * <!-- end-user-doc --> |
201 | * @generated |
202 | */ |
203 | private EClass iterateExpEClass = null; |
204 | |
205 | /** |
206 | * <!-- begin-user-doc --> |
207 | * <!-- end-user-doc --> |
208 | * @generated |
209 | */ |
210 | private EClass iteratorExpEClass = null; |
211 | |
212 | /** |
213 | * <!-- begin-user-doc --> |
214 | * <!-- end-user-doc --> |
215 | * @generated |
216 | */ |
217 | private EClass letExpEClass = null; |
218 | |
219 | /** |
220 | * <!-- begin-user-doc --> |
221 | * <!-- end-user-doc --> |
222 | * @generated |
223 | */ |
224 | private EClass literalExpEClass = null; |
225 | |
226 | /** |
227 | * <!-- begin-user-doc --> |
228 | * <!-- end-user-doc --> |
229 | * @generated |
230 | */ |
231 | private EClass loopExpEClass = null; |
232 | |
233 | /** |
234 | * <!-- begin-user-doc --> |
235 | * <!-- end-user-doc --> |
236 | * @generated |
237 | */ |
238 | private EClass navigationCallExpEClass = null; |
239 | |
240 | /** |
241 | * <!-- begin-user-doc --> |
242 | * <!-- end-user-doc --> |
243 | * @generated |
244 | */ |
245 | private EClass nullLiteralExpEClass = null; |
246 | |
247 | /** |
248 | * <!-- begin-user-doc --> |
249 | * <!-- end-user-doc --> |
250 | * @generated |
251 | */ |
252 | private EClass numericLiteralExpEClass = null; |
253 | |
254 | /** |
255 | * <!-- begin-user-doc --> |
256 | * <!-- end-user-doc --> |
257 | * @generated |
258 | */ |
259 | private EClass oclExpressionEClass = null; |
260 | |
261 | /** |
262 | * <!-- begin-user-doc --> |
263 | * <!-- end-user-doc --> |
264 | * @generated |
265 | */ |
266 | private EClass operationCallExpEClass = null; |
267 | |
268 | /** |
269 | * <!-- begin-user-doc --> |
270 | * <!-- end-user-doc --> |
271 | * @generated |
272 | */ |
273 | private EClass orderedSetTypeEClass = null; |
274 | |
275 | /** |
276 | * <!-- begin-user-doc --> |
277 | * <!-- end-user-doc --> |
278 | * @generated |
279 | */ |
280 | private EClass primitiveLiteralExpEClass = null; |
281 | |
282 | /** |
283 | * <!-- begin-user-doc --> |
284 | * <!-- end-user-doc --> |
285 | * @generated |
286 | */ |
287 | private EClass propertyCallExpEClass = null; |
288 | |
289 | /** |
290 | * <!-- begin-user-doc --> |
291 | * <!-- end-user-doc --> |
292 | * @generated |
293 | */ |
294 | private EClass realLiteralExpEClass = null; |
295 | |
296 | /** |
297 | * <!-- begin-user-doc --> |
298 | * <!-- end-user-doc --> |
299 | * @generated |
300 | */ |
301 | private EClass sequenceTypeEClass = null; |
302 | |
303 | /** |
304 | * <!-- begin-user-doc --> |
305 | * <!-- end-user-doc --> |
306 | * @generated |
307 | */ |
308 | private EClass setTypeEClass = null; |
309 | |
310 | /** |
311 | * <!-- begin-user-doc --> |
312 | * <!-- end-user-doc --> |
313 | * @generated |
314 | */ |
315 | private EClass stringLiteralExpEClass = null; |
316 | |
317 | /** |
318 | * <!-- begin-user-doc --> |
319 | * <!-- end-user-doc --> |
320 | * @generated |
321 | */ |
322 | private EClass tupleLiteralExpEClass = null; |
323 | |
324 | /** |
325 | * <!-- begin-user-doc --> |
326 | * <!-- end-user-doc --> |
327 | * @generated |
328 | */ |
329 | private EClass tupleLiteralPartEClass = null; |
330 | |
331 | /** |
332 | * <!-- begin-user-doc --> |
333 | * <!-- end-user-doc --> |
334 | * @generated |
335 | */ |
336 | private EClass tupleTypeEClass = null; |
337 | |
338 | /** |
339 | * <!-- begin-user-doc --> |
340 | * <!-- end-user-doc --> |
341 | * @generated |
342 | */ |
343 | private EClass typeExpEClass = null; |
344 | |
345 | /** |
346 | * <!-- begin-user-doc --> |
347 | * <!-- end-user-doc --> |
348 | * @generated |
349 | */ |
350 | private EClass typeTypeEClass = null; |
351 | |
352 | /** |
353 | * <!-- begin-user-doc --> |
354 | * <!-- end-user-doc --> |
355 | * @generated |
356 | */ |
357 | private EClass unlimitedNaturalExpEClass = null; |
358 | |
359 | /** |
360 | * <!-- begin-user-doc --> |
361 | * <!-- end-user-doc --> |
362 | * @generated |
363 | */ |
364 | private EClass variableEClass = null; |
365 | |
366 | /** |
367 | * <!-- begin-user-doc --> |
368 | * <!-- end-user-doc --> |
369 | * @generated |
370 | */ |
371 | private EClass variableExpEClass = null; |
372 | |
373 | /** |
374 | * <!-- begin-user-doc --> |
375 | * <!-- end-user-doc --> |
376 | * @generated |
377 | */ |
378 | private EClass voidTypeEClass = null; |
379 | |
380 | /** |
381 | * <!-- begin-user-doc --> |
382 | * <!-- end-user-doc --> |
383 | * @generated |
384 | */ |
385 | private EEnum collectionKindEEnum = null; |
386 | |
387 | /** |
388 | * Creates an instance of the model <b>Package</b>, registered with |
389 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
390 | * package URI value. |
391 | * <p>Note: the correct way to create the package is via the static |
392 | * factory method {@link #init init()}, which also performs |
393 | * initialization of the package, or returns the registered package, |
394 | * if one already exists. |
395 | * <!-- begin-user-doc --> |
396 | * <!-- end-user-doc --> |
397 | * @see org.eclipse.emf.ecore.EPackage.Registry |
398 | * @see EssentialOCL.EssentialOCLPackage#eNS_URI |
399 | * @see #init() |
400 | * @generated |
401 | */ |
402 | private EssentialOCLPackageImpl() { |
403 | super(eNS_URI, EssentialOCLFactory.eINSTANCE); |
404 | } |
405 | |
406 | /** |
407 | * <!-- begin-user-doc --> |
408 | * <!-- end-user-doc --> |
409 | * @generated |
410 | */ |
411 | private static boolean isInited = false; |
412 | |
413 | /** |
414 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
415 | * |
416 | * <p>This method is used to initialize {@link EssentialOCLPackage#eINSTANCE} when that field is accessed. |
417 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
418 | * <!-- begin-user-doc --> |
419 | * <!-- end-user-doc --> |
420 | * @see #eNS_URI |
421 | * @see #createPackageContents() |
422 | * @see #initializePackageContents() |
423 | * @generated |
424 | */ |
425 | public static EssentialOCLPackage init() { |
426 | if (isInited) return (EssentialOCLPackage)EPackage.Registry.INSTANCE.getEPackage(EssentialOCLPackage.eNS_URI); |
427 | |
428 | // Obtain or create and register package |
429 | EssentialOCLPackageImpl theEssentialOCLPackage = (EssentialOCLPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof EssentialOCLPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new EssentialOCLPackageImpl()); |
430 | |
431 | isInited = true; |
432 | |
433 | // Obtain or create and register interdependencies |
434 | EMOFPackageImpl theEMOFPackage = (EMOFPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EMOFPackage.eNS_URI) instanceof EMOFPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EMOFPackage.eNS_URI) : EMOFPackage.eINSTANCE); |
435 | QVTBasePackageImpl theQVTBasePackage = (QVTBasePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QVTBasePackage.eNS_URI) instanceof QVTBasePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QVTBasePackage.eNS_URI) : QVTBasePackage.eINSTANCE); |
436 | QVTRelationPackageImpl theQVTRelationPackage = (QVTRelationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QVTRelationPackage.eNS_URI) instanceof QVTRelationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QVTRelationPackage.eNS_URI) : QVTRelationPackage.eINSTANCE); |
437 | QVTTemplatePackageImpl theQVTTemplatePackage = (QVTTemplatePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QVTTemplatePackage.eNS_URI) instanceof QVTTemplatePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QVTTemplatePackage.eNS_URI) : QVTTemplatePackage.eINSTANCE); |
438 | |
439 | // Create package meta-data objects |
440 | theEssentialOCLPackage.createPackageContents(); |
441 | theEMOFPackage.createPackageContents(); |
442 | theQVTBasePackage.createPackageContents(); |
443 | theQVTRelationPackage.createPackageContents(); |
444 | theQVTTemplatePackage.createPackageContents(); |
445 | |
446 | // Initialize created meta-data |
447 | theEssentialOCLPackage.initializePackageContents(); |
448 | theEMOFPackage.initializePackageContents(); |
449 | theQVTBasePackage.initializePackageContents(); |
450 | theQVTRelationPackage.initializePackageContents(); |
451 | theQVTTemplatePackage.initializePackageContents(); |
452 | |
453 | // Mark meta-data to indicate it can't be changed |
454 | theEssentialOCLPackage.freeze(); |
455 | |
456 | |
457 | // Update the registry and return the package |
458 | EPackage.Registry.INSTANCE.put(EssentialOCLPackage.eNS_URI, theEssentialOCLPackage); |
459 | return theEssentialOCLPackage; |
460 | } |
461 | |
462 | /** |
463 | * <!-- begin-user-doc --> |
464 | * <!-- end-user-doc --> |
465 | * @generated |
466 | */ |
467 | public EClass getAnyType() { |
468 | return anyTypeEClass; |
469 | } |
470 | |
471 | /** |
472 | * <!-- begin-user-doc --> |
473 | * <!-- end-user-doc --> |
474 | * @generated |
475 | */ |
476 | public EClass getBagType() { |
477 | return bagTypeEClass; |
478 | } |
479 | |
480 | /** |
481 | * <!-- begin-user-doc --> |
482 | * <!-- end-user-doc --> |
483 | * @generated |
484 | */ |
485 | public EClass getBooleanLiteralExp() { |
486 | return booleanLiteralExpEClass; |
487 | } |
488 | |
489 | /** |
490 | * <!-- begin-user-doc --> |
491 | * <!-- end-user-doc --> |
492 | * @generated |
493 | */ |
494 | public EAttribute getBooleanLiteralExp_BooleanSymbol() { |
495 | return (EAttribute)booleanLiteralExpEClass.getEStructuralFeatures().get(0); |
496 | } |
497 | |
498 | /** |
499 | * <!-- begin-user-doc --> |
500 | * <!-- end-user-doc --> |
501 | * @generated |
502 | */ |
503 | public EClass getCallExp() { |
504 | return callExpEClass; |
505 | } |
506 | |
507 | /** |
508 | * <!-- begin-user-doc --> |
509 | * <!-- end-user-doc --> |
510 | * @generated |
511 | */ |
512 | public EReference getCallExp_Source() { |
513 | return (EReference)callExpEClass.getEStructuralFeatures().get(0); |
514 | } |
515 | |
516 | /** |
517 | * <!-- begin-user-doc --> |
518 | * <!-- end-user-doc --> |
519 | * @generated |
520 | */ |
521 | public EClass getCollectionItem() { |
522 | return collectionItemEClass; |
523 | } |
524 | |
525 | /** |
526 | * <!-- begin-user-doc --> |
527 | * <!-- end-user-doc --> |
528 | * @generated |
529 | */ |
530 | public EReference getCollectionItem_Item() { |
531 | return (EReference)collectionItemEClass.getEStructuralFeatures().get(0); |
532 | } |
533 | |
534 | /** |
535 | * <!-- begin-user-doc --> |
536 | * <!-- end-user-doc --> |
537 | * @generated |
538 | */ |
539 | public EClass getCollectionLiteralExp() { |
540 | return collectionLiteralExpEClass; |
541 | } |
542 | |
543 | /** |
544 | * <!-- begin-user-doc --> |
545 | * <!-- end-user-doc --> |
546 | * @generated |
547 | */ |
548 | public EAttribute getCollectionLiteralExp_Kind() { |
549 | return (EAttribute)collectionLiteralExpEClass.getEStructuralFeatures().get(0); |
550 | } |
551 | |
552 | /** |
553 | * <!-- begin-user-doc --> |
554 | * <!-- end-user-doc --> |
555 | * @generated |
556 | */ |
557 | public EReference getCollectionLiteralExp_Part() { |
558 | return (EReference)collectionLiteralExpEClass.getEStructuralFeatures().get(1); |
559 | } |
560 | |
561 | /** |
562 | * <!-- begin-user-doc --> |
563 | * <!-- end-user-doc --> |
564 | * @generated |
565 | */ |
566 | public EClass getCollectionLiteralPart() { |
567 | return collectionLiteralPartEClass; |
568 | } |
569 | |
570 | /** |
571 | * <!-- begin-user-doc --> |
572 | * <!-- end-user-doc --> |
573 | * @generated |
574 | */ |
575 | public EReference getCollectionLiteralPart_CollectionLiteralExp() { |
576 | return (EReference)collectionLiteralPartEClass.getEStructuralFeatures().get(0); |
577 | } |
578 | |
579 | /** |
580 | * <!-- begin-user-doc --> |
581 | * <!-- end-user-doc --> |
582 | * @generated |
583 | */ |
584 | public EClass getCollectionRange() { |
585 | return collectionRangeEClass; |
586 | } |
587 | |
588 | /** |
589 | * <!-- begin-user-doc --> |
590 | * <!-- end-user-doc --> |
591 | * @generated |
592 | */ |
593 | public EReference getCollectionRange_First() { |
594 | return (EReference)collectionRangeEClass.getEStructuralFeatures().get(0); |
595 | } |
596 | |
597 | /** |
598 | * <!-- begin-user-doc --> |
599 | * <!-- end-user-doc --> |
600 | * @generated |
601 | */ |
602 | public EReference getCollectionRange_Last() { |
603 | return (EReference)collectionRangeEClass.getEStructuralFeatures().get(1); |
604 | } |
605 | |
606 | /** |
607 | * <!-- begin-user-doc --> |
608 | * <!-- end-user-doc --> |
609 | * @generated |
610 | */ |
611 | public EClass getCollectionType() { |
612 | return collectionTypeEClass; |
613 | } |
614 | |
615 | /** |
616 | * <!-- begin-user-doc --> |
617 | * <!-- end-user-doc --> |
618 | * @generated |
619 | */ |
620 | public EReference getCollectionType_ElementType() { |
621 | return (EReference)collectionTypeEClass.getEStructuralFeatures().get(0); |
622 | } |
623 | |
624 | /** |
625 | * <!-- begin-user-doc --> |
626 | * <!-- end-user-doc --> |
627 | * @generated |
628 | */ |
629 | public EClass getEnumLiteralExp() { |
630 | return enumLiteralExpEClass; |
631 | } |
632 | |
633 | /** |
634 | * <!-- begin-user-doc --> |
635 | * <!-- end-user-doc --> |
636 | * @generated |
637 | */ |
638 | public EReference getEnumLiteralExp_ReferredEnumLiteral() { |
639 | return (EReference)enumLiteralExpEClass.getEStructuralFeatures().get(0); |
640 | } |
641 | |
642 | /** |
643 | * <!-- begin-user-doc --> |
644 | * <!-- end-user-doc --> |
645 | * @generated |
646 | */ |
647 | public EClass getExpressionInOcl() { |
648 | return expressionInOclEClass; |
649 | } |
650 | |
651 | /** |
652 | * <!-- begin-user-doc --> |
653 | * <!-- end-user-doc --> |
654 | * @generated |
655 | */ |
656 | public EReference getExpressionInOcl_BodyExpression() { |
657 | return (EReference)expressionInOclEClass.getEStructuralFeatures().get(0); |
658 | } |
659 | |
660 | /** |
661 | * <!-- begin-user-doc --> |
662 | * <!-- end-user-doc --> |
663 | * @generated |
664 | */ |
665 | public EReference getExpressionInOcl_ContextVariable() { |
666 | return (EReference)expressionInOclEClass.getEStructuralFeatures().get(1); |
667 | } |
668 | |
669 | /** |
670 | * <!-- begin-user-doc --> |
671 | * <!-- end-user-doc --> |
672 | * @generated |
673 | */ |
674 | public EReference getExpressionInOcl_ParameterVariable() { |
675 | return (EReference)expressionInOclEClass.getEStructuralFeatures().get(2); |
676 | } |
677 | |
678 | /** |
679 | * <!-- begin-user-doc --> |
680 | * <!-- end-user-doc --> |
681 | * @generated |
682 | */ |
683 | public EReference getExpressionInOcl_ResultVariable() { |
684 | return (EReference)expressionInOclEClass.getEStructuralFeatures().get(3); |
685 | } |
686 | |
687 | /** |
688 | * <!-- begin-user-doc --> |
689 | * <!-- end-user-doc --> |
690 | * @generated |
691 | */ |
692 | public EClass getFeatureCallExp() { |
693 | return featureCallExpEClass; |
694 | } |
695 | |
696 | /** |
697 | * <!-- begin-user-doc --> |
698 | * <!-- end-user-doc --> |
699 | * @generated |
700 | */ |
701 | public EClass getIfExp() { |
702 | return ifExpEClass; |
703 | } |
704 | |
705 | /** |
706 | * <!-- begin-user-doc --> |
707 | * <!-- end-user-doc --> |
708 | * @generated |
709 | */ |
710 | public EReference getIfExp_Condition() { |
711 | return (EReference)ifExpEClass.getEStructuralFeatures().get(0); |
712 | } |
713 | |
714 | /** |
715 | * <!-- begin-user-doc --> |
716 | * <!-- end-user-doc --> |
717 | * @generated |
718 | */ |
719 | public EReference getIfExp_ElseExpression() { |
720 | return (EReference)ifExpEClass.getEStructuralFeatures().get(1); |
721 | } |
722 | |
723 | /** |
724 | * <!-- begin-user-doc --> |
725 | * <!-- end-user-doc --> |
726 | * @generated |
727 | */ |
728 | public EReference getIfExp_ThenExpression() { |
729 | return (EReference)ifExpEClass.getEStructuralFeatures().get(2); |
730 | } |
731 | |
732 | /** |
733 | * <!-- begin-user-doc --> |
734 | * <!-- end-user-doc --> |
735 | * @generated |
736 | */ |
737 | public EClass getIntegerLiteralExp() { |
738 | return integerLiteralExpEClass; |
739 | } |
740 | |
741 | /** |
742 | * <!-- begin-user-doc --> |
743 | * <!-- end-user-doc --> |
744 | * @generated |
745 | */ |
746 | public EAttribute getIntegerLiteralExp_IntegerSymbol() { |
747 | return (EAttribute)integerLiteralExpEClass.getEStructuralFeatures().get(0); |
748 | } |
749 | |
750 | /** |
751 | * <!-- begin-user-doc --> |
752 | * <!-- end-user-doc --> |
753 | * @generated |
754 | */ |
755 | public EClass getInvalidLiteralExp() { |
756 | return invalidLiteralExpEClass; |
757 | } |
758 | |
759 | /** |
760 | * <!-- begin-user-doc --> |
761 | * <!-- end-user-doc --> |
762 | * @generated |
763 | */ |
764 | public EClass getInvalidType() { |
765 | return invalidTypeEClass; |
766 | } |
767 | |
768 | /** |
769 | * <!-- begin-user-doc --> |
770 | * <!-- end-user-doc --> |
771 | * @generated |
772 | */ |
773 | public EClass getIterateExp() { |
774 | return iterateExpEClass; |
775 | } |
776 | |
777 | /** |
778 | * <!-- begin-user-doc --> |
779 | * <!-- end-user-doc --> |
780 | * @generated |
781 | */ |
782 | public EReference getIterateExp_Result() { |
783 | return (EReference)iterateExpEClass.getEStructuralFeatures().get(0); |
784 | } |
785 | |
786 | /** |
787 | * <!-- begin-user-doc --> |
788 | * <!-- end-user-doc --> |
789 | * @generated |
790 | */ |
791 | public EClass getIteratorExp() { |
792 | return iteratorExpEClass; |
793 | } |
794 | |
795 | /** |
796 | * <!-- begin-user-doc --> |
797 | * <!-- end-user-doc --> |
798 | * @generated |
799 | */ |
800 | public EClass getLetExp() { |
801 | return letExpEClass; |
802 | } |
803 | |
804 | /** |
805 | * <!-- begin-user-doc --> |
806 | * <!-- end-user-doc --> |
807 | * @generated |
808 | */ |
809 | public EReference getLetExp_In() { |
810 | return (EReference)letExpEClass.getEStructuralFeatures().get(0); |
811 | } |
812 | |
813 | /** |
814 | * <!-- begin-user-doc --> |
815 | * <!-- end-user-doc --> |
816 | * @generated |
817 | */ |
818 | public EReference getLetExp_Variable() { |
819 | return (EReference)letExpEClass.getEStructuralFeatures().get(1); |
820 | } |
821 | |
822 | /** |
823 | * <!-- begin-user-doc --> |
824 | * <!-- end-user-doc --> |
825 | * @generated |
826 | */ |
827 | public EClass getLiteralExp() { |
828 | return literalExpEClass; |
829 | } |
830 | |
831 | /** |
832 | * <!-- begin-user-doc --> |
833 | * <!-- end-user-doc --> |
834 | * @generated |
835 | */ |
836 | public EClass getLoopExp() { |
837 | return loopExpEClass; |
838 | } |
839 | |
840 | /** |
841 | * <!-- begin-user-doc --> |
842 | * <!-- end-user-doc --> |
843 | * @generated |
844 | */ |
845 | public EReference getLoopExp_Body() { |
846 | return (EReference)loopExpEClass.getEStructuralFeatures().get(0); |
847 | } |
848 | |
849 | /** |
850 | * <!-- begin-user-doc --> |
851 | * <!-- end-user-doc --> |
852 | * @generated |
853 | */ |
854 | public EReference getLoopExp_Iterator() { |
855 | return (EReference)loopExpEClass.getEStructuralFeatures().get(1); |
856 | } |
857 | |
858 | /** |
859 | * <!-- begin-user-doc --> |
860 | * <!-- end-user-doc --> |
861 | * @generated |
862 | */ |
863 | public EClass getNavigationCallExp() { |
864 | return navigationCallExpEClass; |
865 | } |
866 | |
867 | /** |
868 | * <!-- begin-user-doc --> |
869 | * <!-- end-user-doc --> |
870 | * @generated |
871 | */ |
872 | public EClass getNullLiteralExp() { |
873 | return nullLiteralExpEClass; |
874 | } |
875 | |
876 | /** |
877 | * <!-- begin-user-doc --> |
878 | * <!-- end-user-doc --> |
879 | * @generated |
880 | */ |
881 | public EClass getNumericLiteralExp() { |
882 | return numericLiteralExpEClass; |
883 | } |
884 | |
885 | /** |
886 | * <!-- begin-user-doc --> |
887 | * <!-- end-user-doc --> |
888 | * @generated |
889 | */ |
890 | public EClass getOclExpression() { |
891 | return oclExpressionEClass; |
892 | } |
893 | |
894 | /** |
895 | * <!-- begin-user-doc --> |
896 | * <!-- end-user-doc --> |
897 | * @generated |
898 | */ |
899 | public EClass getOperationCallExp() { |
900 | return operationCallExpEClass; |
901 | } |
902 | |
903 | /** |
904 | * <!-- begin-user-doc --> |
905 | * <!-- end-user-doc --> |
906 | * @generated |
907 | */ |
908 | public EReference getOperationCallExp_Argument() { |
909 | return (EReference)operationCallExpEClass.getEStructuralFeatures().get(0); |
910 | } |
911 | |
912 | /** |
913 | * <!-- begin-user-doc --> |
914 | * <!-- end-user-doc --> |
915 | * @generated |
916 | */ |
917 | public EReference getOperationCallExp_ReferredOperation() { |
918 | return (EReference)operationCallExpEClass.getEStructuralFeatures().get(1); |
919 | } |
920 | |
921 | /** |
922 | * <!-- begin-user-doc --> |
923 | * <!-- end-user-doc --> |
924 | * @generated |
925 | */ |
926 | public EClass getOrderedSetType() { |
927 | return orderedSetTypeEClass; |
928 | } |
929 | |
930 | /** |
931 | * <!-- begin-user-doc --> |
932 | * <!-- end-user-doc --> |
933 | * @generated |
934 | */ |
935 | public EClass getPrimitiveLiteralExp() { |
936 | return primitiveLiteralExpEClass; |
937 | } |
938 | |
939 | /** |
940 | * <!-- begin-user-doc --> |
941 | * <!-- end-user-doc --> |
942 | * @generated |
943 | */ |
944 | public EClass getPropertyCallExp() { |
945 | return propertyCallExpEClass; |
946 | } |
947 | |
948 | /** |
949 | * <!-- begin-user-doc --> |
950 | * <!-- end-user-doc --> |
951 | * @generated |
952 | */ |
953 | public EReference getPropertyCallExp_ReferredProperty() { |
954 | return (EReference)propertyCallExpEClass.getEStructuralFeatures().get(0); |
955 | } |
956 | |
957 | /** |
958 | * <!-- begin-user-doc --> |
959 | * <!-- end-user-doc --> |
960 | * @generated |
961 | */ |
962 | public EClass getRealLiteralExp() { |
963 | return realLiteralExpEClass; |
964 | } |
965 | |
966 | /** |
967 | * <!-- begin-user-doc --> |
968 | * <!-- end-user-doc --> |
969 | * @generated |
970 | */ |
971 | public EAttribute getRealLiteralExp_RealSymbol() { |
972 | return (EAttribute)realLiteralExpEClass.getEStructuralFeatures().get(0); |
973 | } |
974 | |
975 | /** |
976 | * <!-- begin-user-doc --> |
977 | * <!-- end-user-doc --> |
978 | * @generated |
979 | */ |
980 | public EClass getSequenceType() { |
981 | return sequenceTypeEClass; |
982 | } |
983 | |
984 | /** |
985 | * <!-- begin-user-doc --> |
986 | * <!-- end-user-doc --> |
987 | * @generated |
988 | */ |
989 | public EClass getSetType() { |
990 | return setTypeEClass; |
991 | } |
992 | |
993 | /** |
994 | * <!-- begin-user-doc --> |
995 | * <!-- end-user-doc --> |
996 | * @generated |
997 | */ |
998 | public EClass getStringLiteralExp() { |
999 | return stringLiteralExpEClass; |
1000 | } |
1001 | |
1002 | /** |
1003 | * <!-- begin-user-doc --> |
1004 | * <!-- end-user-doc --> |
1005 | * @generated |
1006 | */ |
1007 | public EAttribute getStringLiteralExp_StringSymbol() { |
1008 | return (EAttribute)stringLiteralExpEClass.getEStructuralFeatures().get(0); |
1009 | } |
1010 | |
1011 | /** |
1012 | * <!-- begin-user-doc --> |
1013 | * <!-- end-user-doc --> |
1014 | * @generated |
1015 | */ |
1016 | public EClass getTupleLiteralExp() { |
1017 | return tupleLiteralExpEClass; |
1018 | } |
1019 | |
1020 | /** |
1021 | * <!-- begin-user-doc --> |
1022 | * <!-- end-user-doc --> |
1023 | * @generated |
1024 | */ |
1025 | public EReference getTupleLiteralExp_Part() { |
1026 | return (EReference)tupleLiteralExpEClass.getEStructuralFeatures().get(0); |
1027 | } |
1028 | |
1029 | /** |
1030 | * <!-- begin-user-doc --> |
1031 | * <!-- end-user-doc --> |
1032 | * @generated |
1033 | */ |
1034 | public EClass getTupleLiteralPart() { |
1035 | return tupleLiteralPartEClass; |
1036 | } |
1037 | |
1038 | /** |
1039 | * <!-- begin-user-doc --> |
1040 | * <!-- end-user-doc --> |
1041 | * @generated |
1042 | */ |
1043 | public EReference getTupleLiteralPart_Attribute() { |
1044 | return (EReference)tupleLiteralPartEClass.getEStructuralFeatures().get(0); |
1045 | } |
1046 | |
1047 | /** |
1048 | * <!-- begin-user-doc --> |
1049 | * <!-- end-user-doc --> |
1050 | * @generated |
1051 | */ |
1052 | public EReference getTupleLiteralPart_TupleLiteralExp() { |
1053 | return (EReference)tupleLiteralPartEClass.getEStructuralFeatures().get(1); |
1054 | } |
1055 | |
1056 | /** |
1057 | * <!-- begin-user-doc --> |
1058 | * <!-- end-user-doc --> |
1059 | * @generated |
1060 | */ |
1061 | public EReference getTupleLiteralPart_Value() { |
1062 | return (EReference)tupleLiteralPartEClass.getEStructuralFeatures().get(2); |
1063 | } |
1064 | |
1065 | /** |
1066 | * <!-- begin-user-doc --> |
1067 | * <!-- end-user-doc --> |
1068 | * @generated |
1069 | */ |
1070 | public EClass getTupleType() { |
1071 | return tupleTypeEClass; |
1072 | } |
1073 | |
1074 | /** |
1075 | * <!-- begin-user-doc --> |
1076 | * <!-- end-user-doc --> |
1077 | * @generated |
1078 | */ |
1079 | public EClass getTypeExp() { |
1080 | return typeExpEClass; |
1081 | } |
1082 | |
1083 | /** |
1084 | * <!-- begin-user-doc --> |
1085 | * <!-- end-user-doc --> |
1086 | * @generated |
1087 | */ |
1088 | public EReference getTypeExp_ReferredType() { |
1089 | return (EReference)typeExpEClass.getEStructuralFeatures().get(0); |
1090 | } |
1091 | |
1092 | /** |
1093 | * <!-- begin-user-doc --> |
1094 | * <!-- end-user-doc --> |
1095 | * @generated |
1096 | */ |
1097 | public EClass getTypeType() { |
1098 | return typeTypeEClass; |
1099 | } |
1100 | |
1101 | /** |
1102 | * <!-- begin-user-doc --> |
1103 | * <!-- end-user-doc --> |
1104 | * @generated |
1105 | */ |
1106 | public EClass getUnlimitedNaturalExp() { |
1107 | return unlimitedNaturalExpEClass; |
1108 | } |
1109 | |
1110 | /** |
1111 | * <!-- begin-user-doc --> |
1112 | * <!-- end-user-doc --> |
1113 | * @generated |
1114 | */ |
1115 | public EAttribute getUnlimitedNaturalExp_Symbol() { |
1116 | return (EAttribute)unlimitedNaturalExpEClass.getEStructuralFeatures().get(0); |
1117 | } |
1118 | |
1119 | /** |
1120 | * <!-- begin-user-doc --> |
1121 | * <!-- end-user-doc --> |
1122 | * @generated |
1123 | */ |
1124 | public EClass getVariable() { |
1125 | return variableEClass; |
1126 | } |
1127 | |
1128 | /** |
1129 | * <!-- begin-user-doc --> |
1130 | * <!-- end-user-doc --> |
1131 | * @generated |
1132 | */ |
1133 | public EReference getVariable_InitExpression() { |
1134 | return (EReference)variableEClass.getEStructuralFeatures().get(0); |
1135 | } |
1136 | |
1137 | /** |
1138 | * <!-- begin-user-doc --> |
1139 | * <!-- end-user-doc --> |
1140 | * @generated |
1141 | */ |
1142 | public EReference getVariable_LetExp() { |
1143 | return (EReference)variableEClass.getEStructuralFeatures().get(1); |
1144 | } |
1145 | |
1146 | /** |
1147 | * <!-- begin-user-doc --> |
1148 | * <!-- end-user-doc --> |
1149 | * @generated |
1150 | */ |
1151 | public EReference getVariable_RepresentedParameter() { |
1152 | return (EReference)variableEClass.getEStructuralFeatures().get(2); |
1153 | } |
1154 | |
1155 | /** |
1156 | * <!-- begin-user-doc --> |
1157 | * <!-- end-user-doc --> |
1158 | * @generated |
1159 | */ |
1160 | public EClass getVariableExp() { |
1161 | return variableExpEClass; |
1162 | } |
1163 | |
1164 | /** |
1165 | * <!-- begin-user-doc --> |
1166 | * <!-- end-user-doc --> |
1167 | * @generated |
1168 | */ |
1169 | public EReference getVariableExp_ReferredVariable() { |
1170 | return (EReference)variableExpEClass.getEStructuralFeatures().get(0); |
1171 | } |
1172 | |
1173 | /** |
1174 | * <!-- begin-user-doc --> |
1175 | * <!-- end-user-doc --> |
1176 | * @generated |
1177 | */ |
1178 | public EClass getVoidType() { |
1179 | return voidTypeEClass; |
1180 | } |
1181 | |
1182 | /** |
1183 | * <!-- begin-user-doc --> |
1184 | * <!-- end-user-doc --> |
1185 | * @generated |
1186 | */ |
1187 | public EEnum getCollectionKind() { |
1188 | return collectionKindEEnum; |
1189 | } |
1190 | |
1191 | /** |
1192 | * <!-- begin-user-doc --> |
1193 | * <!-- end-user-doc --> |
1194 | * @generated |
1195 | */ |
1196 | public EssentialOCLFactory getEssentialOCLFactory() { |
1197 | return (EssentialOCLFactory)getEFactoryInstance(); |
1198 | } |
1199 | |
1200 | /** |
1201 | * <!-- begin-user-doc --> |
1202 | * <!-- end-user-doc --> |
1203 | * @generated |
1204 | */ |
1205 | private boolean isCreated = false; |
1206 | |
1207 | /** |
1208 | * Creates the meta-model objects for the package. This method is |
1209 | * guarded to have no affect on any invocation but its first. |
1210 | * <!-- begin-user-doc --> |
1211 | * <!-- end-user-doc --> |
1212 | * @generated |
1213 | */ |
1214 | public void createPackageContents() { |
1215 | if (isCreated) return; |
1216 | isCreated = true; |
1217 | |
1218 | // Create classes and their features |
1219 | anyTypeEClass = createEClass(ANY_TYPE); |
1220 | |
1221 | bagTypeEClass = createEClass(BAG_TYPE); |
1222 | |
1223 | booleanLiteralExpEClass = createEClass(BOOLEAN_LITERAL_EXP); |
1224 | createEAttribute(booleanLiteralExpEClass, BOOLEAN_LITERAL_EXP__BOOLEAN_SYMBOL); |
1225 | |
1226 | callExpEClass = createEClass(CALL_EXP); |
1227 | createEReference(callExpEClass, CALL_EXP__SOURCE); |
1228 | |
1229 | collectionItemEClass = createEClass(COLLECTION_ITEM); |
1230 | createEReference(collectionItemEClass, COLLECTION_ITEM__ITEM); |
1231 | |
1232 | collectionLiteralExpEClass = createEClass(COLLECTION_LITERAL_EXP); |
1233 | createEAttribute(collectionLiteralExpEClass, COLLECTION_LITERAL_EXP__KIND); |
1234 | createEReference(collectionLiteralExpEClass, COLLECTION_LITERAL_EXP__PART); |
1235 | |
1236 | collectionLiteralPartEClass = createEClass(COLLECTION_LITERAL_PART); |
1237 | createEReference(collectionLiteralPartEClass, COLLECTION_LITERAL_PART__COLLECTION_LITERAL_EXP); |
1238 | |
1239 | collectionRangeEClass = createEClass(COLLECTION_RANGE); |
1240 | createEReference(collectionRangeEClass, COLLECTION_RANGE__FIRST); |
1241 | createEReference(collectionRangeEClass, COLLECTION_RANGE__LAST); |
1242 | |
1243 | collectionTypeEClass = createEClass(COLLECTION_TYPE); |
1244 | createEReference(collectionTypeEClass, COLLECTION_TYPE__ELEMENT_TYPE); |
1245 | |
1246 | enumLiteralExpEClass = createEClass(ENUM_LITERAL_EXP); |
1247 | createEReference(enumLiteralExpEClass, ENUM_LITERAL_EXP__REFERRED_ENUM_LITERAL); |
1248 | |
1249 | expressionInOclEClass = createEClass(EXPRESSION_IN_OCL); |
1250 | createEReference(expressionInOclEClass, EXPRESSION_IN_OCL__BODY_EXPRESSION); |
1251 | createEReference(expressionInOclEClass, EXPRESSION_IN_OCL__CONTEXT_VARIABLE); |
1252 | createEReference(expressionInOclEClass, EXPRESSION_IN_OCL__PARAMETER_VARIABLE); |
1253 | createEReference(expressionInOclEClass, EXPRESSION_IN_OCL__RESULT_VARIABLE); |
1254 | |
1255 | featureCallExpEClass = createEClass(FEATURE_CALL_EXP); |
1256 | |
1257 | ifExpEClass = createEClass(IF_EXP); |
1258 | createEReference(ifExpEClass, IF_EXP__CONDITION); |
1259 | createEReference(ifExpEClass, IF_EXP__ELSE_EXPRESSION); |
1260 | createEReference(ifExpEClass, IF_EXP__THEN_EXPRESSION); |
1261 | |
1262 | integerLiteralExpEClass = createEClass(INTEGER_LITERAL_EXP); |
1263 | createEAttribute(integerLiteralExpEClass, INTEGER_LITERAL_EXP__INTEGER_SYMBOL); |
1264 | |
1265 | invalidLiteralExpEClass = createEClass(INVALID_LITERAL_EXP); |
1266 | |
1267 | invalidTypeEClass = createEClass(INVALID_TYPE); |
1268 | |
1269 | iterateExpEClass = createEClass(ITERATE_EXP); |
1270 | createEReference(iterateExpEClass, ITERATE_EXP__RESULT); |
1271 | |
1272 | iteratorExpEClass = createEClass(ITERATOR_EXP); |
1273 | |
1274 | letExpEClass = createEClass(LET_EXP); |
1275 | createEReference(letExpEClass, LET_EXP__IN); |
1276 | createEReference(letExpEClass, LET_EXP__VARIABLE); |
1277 | |
1278 | literalExpEClass = createEClass(LITERAL_EXP); |
1279 | |
1280 | loopExpEClass = createEClass(LOOP_EXP); |
1281 | createEReference(loopExpEClass, LOOP_EXP__BODY); |
1282 | createEReference(loopExpEClass, LOOP_EXP__ITERATOR); |
1283 | |
1284 | navigationCallExpEClass = createEClass(NAVIGATION_CALL_EXP); |
1285 | |
1286 | nullLiteralExpEClass = createEClass(NULL_LITERAL_EXP); |
1287 | |
1288 | numericLiteralExpEClass = createEClass(NUMERIC_LITERAL_EXP); |
1289 | |
1290 | oclExpressionEClass = createEClass(OCL_EXPRESSION); |
1291 | |
1292 | operationCallExpEClass = createEClass(OPERATION_CALL_EXP); |
1293 | createEReference(operationCallExpEClass, OPERATION_CALL_EXP__ARGUMENT); |
1294 | createEReference(operationCallExpEClass, OPERATION_CALL_EXP__REFERRED_OPERATION); |
1295 | |
1296 | orderedSetTypeEClass = createEClass(ORDERED_SET_TYPE); |
1297 | |
1298 | primitiveLiteralExpEClass = createEClass(PRIMITIVE_LITERAL_EXP); |
1299 | |
1300 | propertyCallExpEClass = createEClass(PROPERTY_CALL_EXP); |
1301 | createEReference(propertyCallExpEClass, PROPERTY_CALL_EXP__REFERRED_PROPERTY); |
1302 | |
1303 | realLiteralExpEClass = createEClass(REAL_LITERAL_EXP); |
1304 | createEAttribute(realLiteralExpEClass, REAL_LITERAL_EXP__REAL_SYMBOL); |
1305 | |
1306 | sequenceTypeEClass = createEClass(SEQUENCE_TYPE); |
1307 | |
1308 | setTypeEClass = createEClass(SET_TYPE); |
1309 | |
1310 | stringLiteralExpEClass = createEClass(STRING_LITERAL_EXP); |
1311 | createEAttribute(stringLiteralExpEClass, STRING_LITERAL_EXP__STRING_SYMBOL); |
1312 | |
1313 | tupleLiteralExpEClass = createEClass(TUPLE_LITERAL_EXP); |
1314 | createEReference(tupleLiteralExpEClass, TUPLE_LITERAL_EXP__PART); |
1315 | |
1316 | tupleLiteralPartEClass = createEClass(TUPLE_LITERAL_PART); |
1317 | createEReference(tupleLiteralPartEClass, TUPLE_LITERAL_PART__ATTRIBUTE); |
1318 | createEReference(tupleLiteralPartEClass, TUPLE_LITERAL_PART__TUPLE_LITERAL_EXP); |
1319 | createEReference(tupleLiteralPartEClass, TUPLE_LITERAL_PART__VALUE); |
1320 | |
1321 | tupleTypeEClass = createEClass(TUPLE_TYPE); |
1322 | |
1323 | typeExpEClass = createEClass(TYPE_EXP); |
1324 | createEReference(typeExpEClass, TYPE_EXP__REFERRED_TYPE); |
1325 | |
1326 | typeTypeEClass = createEClass(TYPE_TYPE); |
1327 | |
1328 | unlimitedNaturalExpEClass = createEClass(UNLIMITED_NATURAL_EXP); |
1329 | createEAttribute(unlimitedNaturalExpEClass, UNLIMITED_NATURAL_EXP__SYMBOL); |
1330 | |
1331 | variableEClass = createEClass(VARIABLE); |
1332 | createEReference(variableEClass, VARIABLE__INIT_EXPRESSION); |
1333 | createEReference(variableEClass, VARIABLE__LET_EXP); |
1334 | createEReference(variableEClass, VARIABLE__REPRESENTED_PARAMETER); |
1335 | |
1336 | variableExpEClass = createEClass(VARIABLE_EXP); |
1337 | createEReference(variableExpEClass, VARIABLE_EXP__REFERRED_VARIABLE); |
1338 | |
1339 | voidTypeEClass = createEClass(VOID_TYPE); |
1340 | |
1341 | // Create enums |
1342 | collectionKindEEnum = createEEnum(COLLECTION_KIND); |
1343 | } |
1344 | |
1345 | /** |
1346 | * <!-- begin-user-doc --> |
1347 | * <!-- end-user-doc --> |
1348 | * @generated |
1349 | */ |
1350 | private boolean isInitialized = false; |
1351 | |
1352 | /** |
1353 | * Complete the initialization of the package and its meta-model. This |
1354 | * method is guarded to have no affect on any invocation but its first. |
1355 | * <!-- begin-user-doc --> |
1356 | * <!-- end-user-doc --> |
1357 | * @generated |
1358 | */ |
1359 | public void initializePackageContents() { |
1360 | if (isInitialized) return; |
1361 | isInitialized = true; |
1362 | |
1363 | // Initialize package |
1364 | setName(eNAME); |
1365 | setNsPrefix(eNS_PREFIX); |
1366 | setNsURI(eNS_URI); |
1367 | |
1368 | // Obtain other dependent packages |
1369 | EMOFPackage theEMOFPackage = (EMOFPackage)EPackage.Registry.INSTANCE.getEPackage(EMOFPackage.eNS_URI); |
1370 | |
1371 | // Create type parameters |
1372 | |
1373 | // Set bounds for type parameters |
1374 | |
1375 | // Add supertypes to classes |
1376 | anyTypeEClass.getESuperTypes().add(theEMOFPackage.getType()); |
1377 | bagTypeEClass.getESuperTypes().add(this.getCollectionType()); |
1378 | booleanLiteralExpEClass.getESuperTypes().add(this.getPrimitiveLiteralExp()); |
1379 | callExpEClass.getESuperTypes().add(this.getOclExpression()); |
1380 | collectionItemEClass.getESuperTypes().add(this.getCollectionLiteralPart()); |
1381 | collectionLiteralExpEClass.getESuperTypes().add(this.getLiteralExp()); |
1382 | collectionLiteralPartEClass.getESuperTypes().add(theEMOFPackage.getTypedElement()); |
1383 | collectionRangeEClass.getESuperTypes().add(this.getCollectionLiteralPart()); |
1384 | collectionTypeEClass.getESuperTypes().add(theEMOFPackage.getDataType()); |
1385 | enumLiteralExpEClass.getESuperTypes().add(this.getLiteralExp()); |
1386 | expressionInOclEClass.getESuperTypes().add(theEMOFPackage.getTypedElement()); |
1387 | featureCallExpEClass.getESuperTypes().add(this.getCallExp()); |
1388 | ifExpEClass.getESuperTypes().add(this.getOclExpression()); |
1389 | integerLiteralExpEClass.getESuperTypes().add(this.getNumericLiteralExp()); |
1390 | invalidLiteralExpEClass.getESuperTypes().add(this.getLiteralExp()); |
1391 | invalidTypeEClass.getESuperTypes().add(theEMOFPackage.getType()); |
1392 | iterateExpEClass.getESuperTypes().add(this.getLoopExp()); |
1393 | iteratorExpEClass.getESuperTypes().add(this.getLoopExp()); |
1394 | letExpEClass.getESuperTypes().add(this.getOclExpression()); |
1395 | literalExpEClass.getESuperTypes().add(this.getOclExpression()); |
1396 | loopExpEClass.getESuperTypes().add(this.getCallExp()); |
1397 | loopExpEClass.getESuperTypes().add(this.getOclExpression()); |
1398 | navigationCallExpEClass.getESuperTypes().add(this.getFeatureCallExp()); |
1399 | nullLiteralExpEClass.getESuperTypes().add(this.getLiteralExp()); |
1400 | numericLiteralExpEClass.getESuperTypes().add(this.getPrimitiveLiteralExp()); |
1401 | oclExpressionEClass.getESuperTypes().add(theEMOFPackage.getTypedElement()); |
1402 | operationCallExpEClass.getESuperTypes().add(this.getFeatureCallExp()); |
1403 | orderedSetTypeEClass.getESuperTypes().add(this.getCollectionType()); |
1404 | primitiveLiteralExpEClass.getESuperTypes().add(this.getLiteralExp()); |
1405 | propertyCallExpEClass.getESuperTypes().add(this.getNavigationCallExp()); |
1406 | realLiteralExpEClass.getESuperTypes().add(this.getNumericLiteralExp()); |
1407 | sequenceTypeEClass.getESuperTypes().add(this.getCollectionType()); |
1408 | setTypeEClass.getESuperTypes().add(this.getCollectionType()); |
1409 | stringLiteralExpEClass.getESuperTypes().add(this.getPrimitiveLiteralExp()); |
1410 | tupleLiteralExpEClass.getESuperTypes().add(this.getLiteralExp()); |
1411 | tupleLiteralPartEClass.getESuperTypes().add(theEMOFPackage.getTypedElement()); |
1412 | tupleTypeEClass.getESuperTypes().add(theEMOFPackage.getClass_()); |
1413 | tupleTypeEClass.getESuperTypes().add(theEMOFPackage.getDataType()); |
1414 | typeExpEClass.getESuperTypes().add(this.getOclExpression()); |
1415 | typeTypeEClass.getESuperTypes().add(theEMOFPackage.getType()); |
1416 | unlimitedNaturalExpEClass.getESuperTypes().add(this.getNumericLiteralExp()); |
1417 | variableEClass.getESuperTypes().add(theEMOFPackage.getTypedElement()); |
1418 | variableExpEClass.getESuperTypes().add(this.getOclExpression()); |
1419 | voidTypeEClass.getESuperTypes().add(theEMOFPackage.getType()); |
1420 | |
1421 | // Initialize classes and features; add operations and parameters |
1422 | initEClass(anyTypeEClass, AnyType.class, "AnyType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1423 | |
1424 | initEClass(bagTypeEClass, BagType.class, "BagType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1425 | |
1426 | initEClass(booleanLiteralExpEClass, BooleanLiteralExp.class, "BooleanLiteralExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1427 | initEAttribute(getBooleanLiteralExp_BooleanSymbol(), theEMOFPackage.getBoolean(), "booleanSymbol", null, 0, 1, BooleanLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1428 | |
1429 | initEClass(callExpEClass, CallExp.class, "CallExp", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1430 | initEReference(getCallExp_Source(), this.getOclExpression(), null, "source", null, 0, 1, CallExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1431 | |
1432 | initEClass(collectionItemEClass, CollectionItem.class, "CollectionItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1433 | initEReference(getCollectionItem_Item(), this.getOclExpression(), null, "item", null, 1, 1, CollectionItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1434 | |
1435 | initEClass(collectionLiteralExpEClass, CollectionLiteralExp.class, "CollectionLiteralExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1436 | initEAttribute(getCollectionLiteralExp_Kind(), this.getCollectionKind(), "kind", null, 0, 1, CollectionLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1437 | initEReference(getCollectionLiteralExp_Part(), this.getCollectionLiteralPart(), this.getCollectionLiteralPart_CollectionLiteralExp(), "part", null, 0, -1, CollectionLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
1438 | |
1439 | initEClass(collectionLiteralPartEClass, CollectionLiteralPart.class, "CollectionLiteralPart", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1440 | initEReference(getCollectionLiteralPart_CollectionLiteralExp(), this.getCollectionLiteralExp(), this.getCollectionLiteralExp_Part(), "collectionLiteralExp", null, 1, 1, CollectionLiteralPart.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1441 | |
1442 | initEClass(collectionRangeEClass, CollectionRange.class, "CollectionRange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1443 | initEReference(getCollectionRange_First(), this.getOclExpression(), null, "first", null, 1, 1, CollectionRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1444 | initEReference(getCollectionRange_Last(), this.getOclExpression(), null, "last", null, 1, 1, CollectionRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1445 | |
1446 | initEClass(collectionTypeEClass, CollectionType.class, "CollectionType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1447 | initEReference(getCollectionType_ElementType(), theEMOFPackage.getType(), null, "elementType", null, 1, 1, CollectionType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1448 | |
1449 | initEClass(enumLiteralExpEClass, EnumLiteralExp.class, "EnumLiteralExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1450 | initEReference(getEnumLiteralExp_ReferredEnumLiteral(), theEMOFPackage.getEnumerationLiteral(), null, "referredEnumLiteral", null, 0, 1, EnumLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1451 | |
1452 | initEClass(expressionInOclEClass, ExpressionInOcl.class, "ExpressionInOcl", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1453 | initEReference(getExpressionInOcl_BodyExpression(), this.getOclExpression(), null, "bodyExpression", null, 1, 1, ExpressionInOcl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1454 | initEReference(getExpressionInOcl_ContextVariable(), this.getVariable(), null, "contextVariable", null, 0, 1, ExpressionInOcl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1455 | initEReference(getExpressionInOcl_ParameterVariable(), this.getVariable(), null, "parameterVariable", null, 0, -1, ExpressionInOcl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
1456 | initEReference(getExpressionInOcl_ResultVariable(), this.getVariable(), null, "resultVariable", null, 0, 1, ExpressionInOcl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1457 | |
1458 | initEClass(featureCallExpEClass, FeatureCallExp.class, "FeatureCallExp", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1459 | |
1460 | initEClass(ifExpEClass, IfExp.class, "IfExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1461 | initEReference(getIfExp_Condition(), this.getOclExpression(), null, "condition", null, 1, 1, IfExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1462 | initEReference(getIfExp_ElseExpression(), this.getOclExpression(), null, "elseExpression", null, 1, 1, IfExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1463 | initEReference(getIfExp_ThenExpression(), this.getOclExpression(), null, "thenExpression", null, 1, 1, IfExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1464 | |
1465 | initEClass(integerLiteralExpEClass, IntegerLiteralExp.class, "IntegerLiteralExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1466 | initEAttribute(getIntegerLiteralExp_IntegerSymbol(), theEMOFPackage.getInteger(), "integerSymbol", null, 0, 1, IntegerLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1467 | |
1468 | initEClass(invalidLiteralExpEClass, InvalidLiteralExp.class, "InvalidLiteralExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1469 | |
1470 | initEClass(invalidTypeEClass, InvalidType.class, "InvalidType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1471 | |
1472 | initEClass(iterateExpEClass, IterateExp.class, "IterateExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1473 | initEReference(getIterateExp_Result(), this.getVariable(), null, "result", null, 0, 1, IterateExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1474 | |
1475 | initEClass(iteratorExpEClass, IteratorExp.class, "IteratorExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1476 | |
1477 | initEClass(letExpEClass, LetExp.class, "LetExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1478 | initEReference(getLetExp_In(), this.getOclExpression(), null, "in", null, 1, 1, LetExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1479 | initEReference(getLetExp_Variable(), this.getVariable(), this.getVariable_LetExp(), "variable", null, 1, 1, LetExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1480 | |
1481 | initEClass(literalExpEClass, LiteralExp.class, "LiteralExp", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1482 | |
1483 | initEClass(loopExpEClass, LoopExp.class, "LoopExp", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1484 | initEReference(getLoopExp_Body(), this.getOclExpression(), null, "body", null, 1, 1, LoopExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1485 | initEReference(getLoopExp_Iterator(), this.getVariable(), null, "iterator", null, 0, -1, LoopExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
1486 | |
1487 | initEClass(navigationCallExpEClass, NavigationCallExp.class, "NavigationCallExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1488 | |
1489 | initEClass(nullLiteralExpEClass, NullLiteralExp.class, "NullLiteralExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1490 | |
1491 | initEClass(numericLiteralExpEClass, NumericLiteralExp.class, "NumericLiteralExp", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1492 | |
1493 | initEClass(oclExpressionEClass, OclExpression.class, "OclExpression", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1494 | |
1495 | initEClass(operationCallExpEClass, OperationCallExp.class, "OperationCallExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1496 | initEReference(getOperationCallExp_Argument(), this.getOclExpression(), null, "argument", null, 0, -1, OperationCallExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1497 | initEReference(getOperationCallExp_ReferredOperation(), theEMOFPackage.getOperation(), null, "referredOperation", null, 0, 1, OperationCallExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1498 | |
1499 | initEClass(orderedSetTypeEClass, OrderedSetType.class, "OrderedSetType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1500 | |
1501 | initEClass(primitiveLiteralExpEClass, PrimitiveLiteralExp.class, "PrimitiveLiteralExp", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1502 | |
1503 | initEClass(propertyCallExpEClass, PropertyCallExp.class, "PropertyCallExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1504 | initEReference(getPropertyCallExp_ReferredProperty(), theEMOFPackage.getProperty(), null, "referredProperty", null, 0, 1, PropertyCallExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1505 | |
1506 | initEClass(realLiteralExpEClass, RealLiteralExp.class, "RealLiteralExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1507 | initEAttribute(getRealLiteralExp_RealSymbol(), theEMOFPackage.getReal(), "realSymbol", null, 0, 1, RealLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1508 | |
1509 | initEClass(sequenceTypeEClass, SequenceType.class, "SequenceType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1510 | |
1511 | initEClass(setTypeEClass, SetType.class, "SetType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1512 | |
1513 | initEClass(stringLiteralExpEClass, StringLiteralExp.class, "StringLiteralExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1514 | initEAttribute(getStringLiteralExp_StringSymbol(), theEMOFPackage.getString(), "stringSymbol", null, 0, 1, StringLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1515 | |
1516 | initEClass(tupleLiteralExpEClass, TupleLiteralExp.class, "TupleLiteralExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1517 | initEReference(getTupleLiteralExp_Part(), this.getTupleLiteralPart(), this.getTupleLiteralPart_TupleLiteralExp(), "part", null, 0, -1, TupleLiteralExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
1518 | |
1519 | initEClass(tupleLiteralPartEClass, TupleLiteralPart.class, "TupleLiteralPart", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1520 | initEReference(getTupleLiteralPart_Attribute(), theEMOFPackage.getProperty(), null, "attribute", null, 0, 1, TupleLiteralPart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1521 | initEReference(getTupleLiteralPart_TupleLiteralExp(), this.getTupleLiteralExp(), this.getTupleLiteralExp_Part(), "tupleLiteralExp", null, 0, 1, TupleLiteralPart.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1522 | initEReference(getTupleLiteralPart_Value(), this.getOclExpression(), null, "value", null, 1, 1, TupleLiteralPart.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1523 | |
1524 | initEClass(tupleTypeEClass, TupleType.class, "TupleType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1525 | |
1526 | initEClass(typeExpEClass, TypeExp.class, "TypeExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1527 | initEReference(getTypeExp_ReferredType(), theEMOFPackage.getType(), null, "referredType", null, 0, 1, TypeExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1528 | |
1529 | initEClass(typeTypeEClass, TypeType.class, "TypeType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1530 | |
1531 | initEClass(unlimitedNaturalExpEClass, UnlimitedNaturalExp.class, "UnlimitedNaturalExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1532 | initEAttribute(getUnlimitedNaturalExp_Symbol(), theEMOFPackage.getUnlimitedNatural(), "symbol", null, 0, 1, UnlimitedNaturalExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1533 | |
1534 | initEClass(variableEClass, Variable.class, "Variable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1535 | initEReference(getVariable_InitExpression(), this.getOclExpression(), null, "initExpression", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1536 | initEReference(getVariable_LetExp(), this.getLetExp(), this.getLetExp_Variable(), "letExp", null, 0, 1, Variable.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1537 | initEReference(getVariable_RepresentedParameter(), theEMOFPackage.getParameter(), null, "representedParameter", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1538 | |
1539 | initEClass(variableExpEClass, VariableExp.class, "VariableExp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1540 | initEReference(getVariableExp_ReferredVariable(), this.getVariable(), null, "referredVariable", null, 0, 1, VariableExp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
1541 | |
1542 | initEClass(voidTypeEClass, VoidType.class, "VoidType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1543 | |
1544 | // Initialize enums and add enum literals |
1545 | initEEnum(collectionKindEEnum, CollectionKind.class, "CollectionKind"); |
1546 | addEEnumLiteral(collectionKindEEnum, CollectionKind.SET); |
1547 | addEEnumLiteral(collectionKindEEnum, CollectionKind.ORDERED_SET); |
1548 | addEEnumLiteral(collectionKindEEnum, CollectionKind.BAG); |
1549 | addEEnumLiteral(collectionKindEEnum, CollectionKind.SEQUENCE); |
1550 | addEEnumLiteral(collectionKindEEnum, CollectionKind.COLLECTION); |
1551 | |
1552 | // Create resource |
1553 | createResource(eNS_URI); |
1554 | |
1555 | // Create annotations |
1556 | // http://schema.omg.org/spec/MOF/2.0/emof.xml#Property.oppositeRoleName |
1557 | createEmofAnnotations(); |
1558 | } |
1559 | |
1560 | /** |
1561 | * Initializes the annotations for <b>http://schema.omg.org/spec/MOF/2.0/emof.xml#Property.oppositeRoleName</b>. |
1562 | * <!-- begin-user-doc --> |
1563 | * <!-- end-user-doc --> |
1564 | * @generated |
1565 | */ |
1566 | protected void createEmofAnnotations() { |
1567 | String source = "http://schema.omg.org/spec/MOF/2.0/emof.xml#Property.oppositeRoleName"; |
1568 | addAnnotation |
1569 | (getCallExp_Source(), |
1570 | source, |
1571 | new String[] { |
1572 | "body", "appliedElement" |
1573 | }); |
1574 | addAnnotation |
1575 | (getCollectionRange_First(), |
1576 | source, |
1577 | new String[] { |
1578 | "body", "firstOwner" |
1579 | }); |
1580 | addAnnotation |
1581 | (getCollectionRange_Last(), |
1582 | source, |
1583 | new String[] { |
1584 | "body", "lastOwner" |
1585 | }); |
1586 | addAnnotation |
1587 | (getEnumLiteralExp_ReferredEnumLiteral(), |
1588 | source, |
1589 | new String[] { |
1590 | "body", "literalExp" |
1591 | }); |
1592 | addAnnotation |
1593 | (getExpressionInOcl_BodyExpression(), |
1594 | source, |
1595 | new String[] { |
1596 | "body", "topExpression" |
1597 | }); |
1598 | addAnnotation |
1599 | (getExpressionInOcl_ContextVariable(), |
1600 | source, |
1601 | new String[] { |
1602 | "body", "selfOwner" |
1603 | }); |
1604 | addAnnotation |
1605 | (getExpressionInOcl_ParameterVariable(), |
1606 | source, |
1607 | new String[] { |
1608 | "body", "varOwner" |
1609 | }); |
1610 | addAnnotation |
1611 | (getExpressionInOcl_ResultVariable(), |
1612 | source, |
1613 | new String[] { |
1614 | "body", "resultOwner" |
1615 | }); |
1616 | addAnnotation |
1617 | (getIfExp_Condition(), |
1618 | source, |
1619 | new String[] { |
1620 | "body", "ifOwner" |
1621 | }); |
1622 | addAnnotation |
1623 | (getIfExp_ElseExpression(), |
1624 | source, |
1625 | new String[] { |
1626 | "body", "elseOwner" |
1627 | }); |
1628 | addAnnotation |
1629 | (getIfExp_ThenExpression(), |
1630 | source, |
1631 | new String[] { |
1632 | "body", "thenOwner" |
1633 | }); |
1634 | addAnnotation |
1635 | (getIterateExp_Result(), |
1636 | source, |
1637 | new String[] { |
1638 | "body", "baseExp" |
1639 | }); |
1640 | addAnnotation |
1641 | (getLoopExp_Body(), |
1642 | source, |
1643 | new String[] { |
1644 | "body", "loopBodyOwner" |
1645 | }); |
1646 | addAnnotation |
1647 | (getOperationCallExp_Argument(), |
1648 | source, |
1649 | new String[] { |
1650 | "body", "parentCall" |
1651 | }); |
1652 | addAnnotation |
1653 | (getOperationCallExp_ReferredOperation(), |
1654 | source, |
1655 | new String[] { |
1656 | "body", "referringExp" |
1657 | }); |
1658 | addAnnotation |
1659 | (getPropertyCallExp_ReferredProperty(), |
1660 | source, |
1661 | new String[] { |
1662 | "body", "referringExp" |
1663 | }); |
1664 | addAnnotation |
1665 | (getVariable_InitExpression(), |
1666 | source, |
1667 | new String[] { |
1668 | "body", "initializedElement" |
1669 | }); |
1670 | addAnnotation |
1671 | (getVariableExp_ReferredVariable(), |
1672 | source, |
1673 | new String[] { |
1674 | "body", "referringExp" |
1675 | }); |
1676 | } |
1677 | |
1678 | } //EssentialOCLPackageImpl |