/
ecorepackage_impl.go
1445 lines (1223 loc) · 72.4 KB
/
ecorepackage_impl.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by soft.generator.go. DO NOT EDIT.
// *****************************************************************************
// Copyright(c) 2021 MASA Group
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// *****************************************************************************
package ecore
// ecorePackageImpl is the EcorePackage implementation
type ecorePackageImpl struct {
EPackageExt
eAnnotation EClass
eAttribute EClass
eClass EClass
eClassifier EClass
eDataType EClass
eEnum EClass
eEnumLiteral EClass
eFactory EClass
eGenericType EClass
eModelElement EClass
eNamedElement EClass
eObject EClass
eOperation EClass
ePackage EClass
eParameter EClass
eReference EClass
eStringToStringMapEntry EClass
eStructuralFeature EClass
eTypeParameter EClass
eTypedElement EClass
eBigDecimal EDataType
eBigInteger EDataType
eBoolean EDataType
eBooleanObject EDataType
eByte EDataType
eByteArray EDataType
eByteObject EDataType
eChar EDataType
eCharacterObject EDataType
eDate EDataType
eDiagnosticChain EDataType
eDouble EDataType
eDoubleObject EDataType
eEList EDataType
eEnumerator EDataType
eFeatureMap EDataType
eFeatureMapEntry EDataType
eFloat EDataType
eFloatObject EDataType
eInt EDataType
eIntegerObject EDataType
eInvocationTargetException EDataType
eJavaClass EDataType
eJavaObject EDataType
eLong EDataType
eLongObject EDataType
eMap EDataType
eResource EDataType
eResourceSet EDataType
eShort EDataType
eShortObject EDataType
eString EDataType
eTreeIterator EDataType
}
func newEcorePackageImpl() *ecorePackageImpl {
p := new(ecorePackageImpl)
p.SetInterfaces(p)
p.Initialize()
return p
}
func (p *ecorePackageImpl) Initialize() {
p.EPackageExt.Initialize()
p.SetName(NAME)
p.SetNsPrefix(NS_PREFIX)
p.SetNsURI(NS_URI)
p.SetEFactoryInstance(GetFactory())
p.createPackageContents()
p.initializePackageContents()
p.CreateResource()
}
// GetEAnnotationClass returns the meta object corresponding to
func (p *ecorePackageImpl) GetEAnnotationClass() EClass {
return p.eAnnotation
}
// GetEAnnotation_Source returns the meta object corresponding to
func (p *ecorePackageImpl) GetEAnnotation_Source() EAttribute {
return p.eAnnotation.GetEStructuralFeatures().Get(0).(EAttribute)
}
// GetEAnnotation_Contents returns the meta object corresponding to
func (p *ecorePackageImpl) GetEAnnotation_Contents() EReference {
return p.eAnnotation.GetEStructuralFeatures().Get(3).(EReference)
}
// GetEAnnotation_Details returns the meta object corresponding to
func (p *ecorePackageImpl) GetEAnnotation_Details() EReference {
return p.eAnnotation.GetEStructuralFeatures().Get(1).(EReference)
}
// GetEAnnotation_EModelElement returns the meta object corresponding to
func (p *ecorePackageImpl) GetEAnnotation_EModelElement() EReference {
return p.eAnnotation.GetEStructuralFeatures().Get(2).(EReference)
}
// GetEAnnotation_References returns the meta object corresponding to
func (p *ecorePackageImpl) GetEAnnotation_References() EReference {
return p.eAnnotation.GetEStructuralFeatures().Get(4).(EReference)
}
// GetEAttribute returns the meta object corresponding to
func (p *ecorePackageImpl) GetEAttribute() EClass {
return p.eAttribute
}
// GetEAttribute_ID returns the meta object corresponding to
func (p *ecorePackageImpl) GetEAttribute_ID() EAttribute {
return p.eAttribute.GetEStructuralFeatures().Get(0).(EAttribute)
}
// GetEAttribute_EAttributeType returns the meta object corresponding to
func (p *ecorePackageImpl) GetEAttribute_EAttributeType() EReference {
return p.eAttribute.GetEStructuralFeatures().Get(1).(EReference)
}
// GetEClass returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass() EClass {
return p.eClass
}
// GetEClass_Abstract returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_Abstract() EAttribute {
return p.eClass.GetEStructuralFeatures().Get(0).(EAttribute)
}
// GetEClass_Interface returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_Interface() EAttribute {
return p.eClass.GetEStructuralFeatures().Get(1).(EAttribute)
}
// GetEClass_EAllAttributes returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_EAllAttributes() EReference {
return p.eClass.GetEStructuralFeatures().Get(9).(EReference)
}
// GetEClass_EAllContainments returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_EAllContainments() EReference {
return p.eClass.GetEStructuralFeatures().Get(11).(EReference)
}
// GetEClass_EAllOperations returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_EAllOperations() EReference {
return p.eClass.GetEStructuralFeatures().Get(12).(EReference)
}
// GetEClass_EAllReferences returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_EAllReferences() EReference {
return p.eClass.GetEStructuralFeatures().Get(10).(EReference)
}
// GetEClass_EAllStructuralFeatures returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_EAllStructuralFeatures() EReference {
return p.eClass.GetEStructuralFeatures().Get(13).(EReference)
}
// GetEClass_EAllSuperTypes returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_EAllSuperTypes() EReference {
return p.eClass.GetEStructuralFeatures().Get(14).(EReference)
}
// GetEClass_EAttributes returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_EAttributes() EReference {
return p.eClass.GetEStructuralFeatures().Get(3).(EReference)
}
// GetEClass_EContainmentFeatures returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_EContainmentFeatures() EReference {
return p.eClass.GetEStructuralFeatures().Get(7).(EReference)
}
// GetEClass_ECrossReferenceFeatures returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_ECrossReferenceFeatures() EReference {
return p.eClass.GetEStructuralFeatures().Get(8).(EReference)
}
// GetEClass_EIDAttribute returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_EIDAttribute() EReference {
return p.eClass.GetEStructuralFeatures().Get(15).(EReference)
}
// GetEClass_EOperations returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_EOperations() EReference {
return p.eClass.GetEStructuralFeatures().Get(6).(EReference)
}
// GetEClass_EReferences returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_EReferences() EReference {
return p.eClass.GetEStructuralFeatures().Get(4).(EReference)
}
// GetEClass_EStructuralFeatures returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_EStructuralFeatures() EReference {
return p.eClass.GetEStructuralFeatures().Get(2).(EReference)
}
// GetEClass_ESuperTypes returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_ESuperTypes() EReference {
return p.eClass.GetEStructuralFeatures().Get(5).(EReference)
}
// GetEClass_GetEOperation_EInt returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_GetEOperation_EInt() EOperation {
return p.eClass.GetEOperations().Get(6).(EOperation)
}
// GetEClass_GetEStructuralFeature_EInt returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_GetEStructuralFeature_EInt() EOperation {
return p.eClass.GetEOperations().Get(2).(EOperation)
}
// GetEClass_GetEStructuralFeature_EString returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_GetEStructuralFeature_EString() EOperation {
return p.eClass.GetEOperations().Get(3).(EOperation)
}
// GetEClass_GetFeatureCount returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_GetFeatureCount() EOperation {
return p.eClass.GetEOperations().Get(1).(EOperation)
}
// GetEClass_GetFeatureID_EStructuralFeature returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_GetFeatureID_EStructuralFeature() EOperation {
return p.eClass.GetEOperations().Get(4).(EOperation)
}
// GetEClass_GetFeatureType_EStructuralFeature returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_GetFeatureType_EStructuralFeature() EOperation {
return p.eClass.GetEOperations().Get(9).(EOperation)
}
// GetEClass_GetOperationCount returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_GetOperationCount() EOperation {
return p.eClass.GetEOperations().Get(5).(EOperation)
}
// GetEClass_GetOperationID_EOperation returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_GetOperationID_EOperation() EOperation {
return p.eClass.GetEOperations().Get(7).(EOperation)
}
// GetEClass_GetOverride_EOperation returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_GetOverride_EOperation() EOperation {
return p.eClass.GetEOperations().Get(8).(EOperation)
}
// GetEClass_IsSuperTypeOf_EClass returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClass_IsSuperTypeOf_EClass() EOperation {
return p.eClass.GetEOperations().Get(0).(EOperation)
}
// GetEClassifierClass returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClassifierClass() EClass {
return p.eClassifier
}
// GetEClassifier_ClassifierID returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClassifier_ClassifierID() EAttribute {
return p.eClassifier.GetEStructuralFeatures().Get(4).(EAttribute)
}
// GetEClassifier_DefaultValue returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClassifier_DefaultValue() EAttribute {
return p.eClassifier.GetEStructuralFeatures().Get(2).(EAttribute)
}
// GetEClassifier_InstanceClass returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClassifier_InstanceClass() EAttribute {
return p.eClassifier.GetEStructuralFeatures().Get(1).(EAttribute)
}
// GetEClassifier_InstanceTypeName returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClassifier_InstanceTypeName() EAttribute {
return p.eClassifier.GetEStructuralFeatures().Get(0).(EAttribute)
}
// GetEClassifier_EPackage returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClassifier_EPackage() EReference {
return p.eClassifier.GetEStructuralFeatures().Get(3).(EReference)
}
// GetEClassifier_IsInstance_EJavaObject returns the meta object corresponding to
func (p *ecorePackageImpl) GetEClassifier_IsInstance_EJavaObject() EOperation {
return p.eClassifier.GetEOperations().Get(0).(EOperation)
}
// GetEDataType returns the meta object corresponding to
func (p *ecorePackageImpl) GetEDataType() EClass {
return p.eDataType
}
// GetEDataType_Serializable returns the meta object corresponding to
func (p *ecorePackageImpl) GetEDataType_Serializable() EAttribute {
return p.eDataType.GetEStructuralFeatures().Get(0).(EAttribute)
}
// GetEEnum returns the meta object corresponding to
func (p *ecorePackageImpl) GetEEnum() EClass {
return p.eEnum
}
// GetEEnum_ELiterals returns the meta object corresponding to
func (p *ecorePackageImpl) GetEEnum_ELiterals() EReference {
return p.eEnum.GetEStructuralFeatures().Get(0).(EReference)
}
// GetEEnum_GetEEnumLiteral_EString returns the meta object corresponding to
func (p *ecorePackageImpl) GetEEnum_GetEEnumLiteral_EString() EOperation {
return p.eEnum.GetEOperations().Get(0).(EOperation)
}
// GetEEnum_GetEEnumLiteral_EInt returns the meta object corresponding to
func (p *ecorePackageImpl) GetEEnum_GetEEnumLiteral_EInt() EOperation {
return p.eEnum.GetEOperations().Get(1).(EOperation)
}
// GetEEnum_GetEEnumLiteralByLiteral_EString returns the meta object corresponding to
func (p *ecorePackageImpl) GetEEnum_GetEEnumLiteralByLiteral_EString() EOperation {
return p.eEnum.GetEOperations().Get(2).(EOperation)
}
// GetEEnumLiteral returns the meta object corresponding to
func (p *ecorePackageImpl) GetEEnumLiteral() EClass {
return p.eEnumLiteral
}
// GetEEnumLiteral_Instance returns the meta object corresponding to
func (p *ecorePackageImpl) GetEEnumLiteral_Instance() EAttribute {
return p.eEnumLiteral.GetEStructuralFeatures().Get(1).(EAttribute)
}
// GetEEnumLiteral_Literal returns the meta object corresponding to
func (p *ecorePackageImpl) GetEEnumLiteral_Literal() EAttribute {
return p.eEnumLiteral.GetEStructuralFeatures().Get(2).(EAttribute)
}
// GetEEnumLiteral_Value returns the meta object corresponding to
func (p *ecorePackageImpl) GetEEnumLiteral_Value() EAttribute {
return p.eEnumLiteral.GetEStructuralFeatures().Get(0).(EAttribute)
}
// GetEEnumLiteral_EEnum returns the meta object corresponding to
func (p *ecorePackageImpl) GetEEnumLiteral_EEnum() EReference {
return p.eEnumLiteral.GetEStructuralFeatures().Get(3).(EReference)
}
// GetEFactory returns the meta object corresponding to
func (p *ecorePackageImpl) GetEFactory() EClass {
return p.eFactory
}
// GetEFactory_EPackage returns the meta object corresponding to
func (p *ecorePackageImpl) GetEFactory_EPackage() EReference {
return p.eFactory.GetEStructuralFeatures().Get(0).(EReference)
}
// GetEFactory_ConvertToString_EDataType_EJavaObject returns the meta object corresponding to
func (p *ecorePackageImpl) GetEFactory_ConvertToString_EDataType_EJavaObject() EOperation {
return p.eFactory.GetEOperations().Get(2).(EOperation)
}
// GetEFactory_Create_EClass returns the meta object corresponding to
func (p *ecorePackageImpl) GetEFactory_Create_EClass() EOperation {
return p.eFactory.GetEOperations().Get(0).(EOperation)
}
// GetEFactory_CreateFromString_EDataType_EString returns the meta object corresponding to
func (p *ecorePackageImpl) GetEFactory_CreateFromString_EDataType_EString() EOperation {
return p.eFactory.GetEOperations().Get(1).(EOperation)
}
// GetEGenericType returns the meta object corresponding to
func (p *ecorePackageImpl) GetEGenericType() EClass {
return p.eGenericType
}
// GetEGenericType_EClassifier returns the meta object corresponding to
func (p *ecorePackageImpl) GetEGenericType_EClassifier() EReference {
return p.eGenericType.GetEStructuralFeatures().Get(5).(EReference)
}
// GetEGenericType_ELowerBound returns the meta object corresponding to
func (p *ecorePackageImpl) GetEGenericType_ELowerBound() EReference {
return p.eGenericType.GetEStructuralFeatures().Get(3).(EReference)
}
// GetEGenericType_ERawType returns the meta object corresponding to
func (p *ecorePackageImpl) GetEGenericType_ERawType() EReference {
return p.eGenericType.GetEStructuralFeatures().Get(2).(EReference)
}
// GetEGenericType_ETypeArguments returns the meta object corresponding to
func (p *ecorePackageImpl) GetEGenericType_ETypeArguments() EReference {
return p.eGenericType.GetEStructuralFeatures().Get(1).(EReference)
}
// GetEGenericType_ETypeParameter returns the meta object corresponding to
func (p *ecorePackageImpl) GetEGenericType_ETypeParameter() EReference {
return p.eGenericType.GetEStructuralFeatures().Get(4).(EReference)
}
// GetEGenericType_EUpperBound returns the meta object corresponding to
func (p *ecorePackageImpl) GetEGenericType_EUpperBound() EReference {
return p.eGenericType.GetEStructuralFeatures().Get(0).(EReference)
}
// GetEGenericType_IsInstance_EJavaObject returns the meta object corresponding to
func (p *ecorePackageImpl) GetEGenericType_IsInstance_EJavaObject() EOperation {
return p.eGenericType.GetEOperations().Get(0).(EOperation)
}
// GetEModelElement returns the meta object corresponding to
func (p *ecorePackageImpl) GetEModelElement() EClass {
return p.eModelElement
}
// GetEModelElement_EAnnotations returns the meta object corresponding to
func (p *ecorePackageImpl) GetEModelElement_EAnnotations() EReference {
return p.eModelElement.GetEStructuralFeatures().Get(0).(EReference)
}
// GetEModelElement_GetEAnnotation_EString returns the meta object corresponding to
func (p *ecorePackageImpl) GetEModelElement_GetEAnnotation_EString() EOperation {
return p.eModelElement.GetEOperations().Get(0).(EOperation)
}
// GetENamedElement returns the meta object corresponding to
func (p *ecorePackageImpl) GetENamedElement() EClass {
return p.eNamedElement
}
// GetENamedElement_Name returns the meta object corresponding to
func (p *ecorePackageImpl) GetENamedElement_Name() EAttribute {
return p.eNamedElement.GetEStructuralFeatures().Get(0).(EAttribute)
}
// GetEObject returns the meta object corresponding to
func (p *ecorePackageImpl) GetEObject() EClass {
return p.eObject
}
// GetEObject_EAllContents returns the meta object corresponding to
func (p *ecorePackageImpl) GetEObject_EAllContents() EOperation {
return p.eObject.GetEOperations().Get(7).(EOperation)
}
// GetEObject_EClass returns the meta object corresponding to
func (p *ecorePackageImpl) GetEObject_EClass() EOperation {
return p.eObject.GetEOperations().Get(0).(EOperation)
}
// GetEObject_EContainer returns the meta object corresponding to
func (p *ecorePackageImpl) GetEObject_EContainer() EOperation {
return p.eObject.GetEOperations().Get(3).(EOperation)
}
// GetEObject_EContainingFeature returns the meta object corresponding to
func (p *ecorePackageImpl) GetEObject_EContainingFeature() EOperation {
return p.eObject.GetEOperations().Get(4).(EOperation)
}
// GetEObject_EContainmentFeature returns the meta object corresponding to
func (p *ecorePackageImpl) GetEObject_EContainmentFeature() EOperation {
return p.eObject.GetEOperations().Get(5).(EOperation)
}
// GetEObject_EContents returns the meta object corresponding to
func (p *ecorePackageImpl) GetEObject_EContents() EOperation {
return p.eObject.GetEOperations().Get(6).(EOperation)
}
// GetEObject_ECrossReferences returns the meta object corresponding to
func (p *ecorePackageImpl) GetEObject_ECrossReferences() EOperation {
return p.eObject.GetEOperations().Get(8).(EOperation)
}
// GetEObject_EGet_EStructuralFeature returns the meta object corresponding to
func (p *ecorePackageImpl) GetEObject_EGet_EStructuralFeature() EOperation {
return p.eObject.GetEOperations().Get(9).(EOperation)
}
// GetEObject_EGet_EStructuralFeature_EBoolean returns the meta object corresponding to
func (p *ecorePackageImpl) GetEObject_EGet_EStructuralFeature_EBoolean() EOperation {
return p.eObject.GetEOperations().Get(10).(EOperation)
}
// GetEObject_EInvoke_EOperation_EEList returns the meta object corresponding to
func (p *ecorePackageImpl) GetEObject_EInvoke_EOperation_EEList() EOperation {
return p.eObject.GetEOperations().Get(14).(EOperation)
}
// GetEObject_EIsProxy returns the meta object corresponding to
func (p *ecorePackageImpl) GetEObject_EIsProxy() EOperation {
return p.eObject.GetEOperations().Get(1).(EOperation)
}
// GetEObject_EIsSet_EStructuralFeature returns the meta object corresponding to
func (p *ecorePackageImpl) GetEObject_EIsSet_EStructuralFeature() EOperation {
return p.eObject.GetEOperations().Get(12).(EOperation)
}
// GetEObject_EResource returns the meta object corresponding to
func (p *ecorePackageImpl) GetEObject_EResource() EOperation {
return p.eObject.GetEOperations().Get(2).(EOperation)
}
// GetEObject_ESet_EStructuralFeature_EJavaObject returns the meta object corresponding to
func (p *ecorePackageImpl) GetEObject_ESet_EStructuralFeature_EJavaObject() EOperation {
return p.eObject.GetEOperations().Get(11).(EOperation)
}
// GetEObject_EUnset_EStructuralFeature returns the meta object corresponding to
func (p *ecorePackageImpl) GetEObject_EUnset_EStructuralFeature() EOperation {
return p.eObject.GetEOperations().Get(13).(EOperation)
}
// GetEOperation returns the meta object corresponding to
func (p *ecorePackageImpl) GetEOperation() EClass {
return p.eOperation
}
// GetEOperation_OperationID returns the meta object corresponding to
func (p *ecorePackageImpl) GetEOperation_OperationID() EAttribute {
return p.eOperation.GetEStructuralFeatures().Get(3).(EAttribute)
}
// GetEOperation_EContainingClass returns the meta object corresponding to
func (p *ecorePackageImpl) GetEOperation_EContainingClass() EReference {
return p.eOperation.GetEStructuralFeatures().Get(0).(EReference)
}
// GetEOperation_EExceptions returns the meta object corresponding to
func (p *ecorePackageImpl) GetEOperation_EExceptions() EReference {
return p.eOperation.GetEStructuralFeatures().Get(2).(EReference)
}
// GetEOperation_EParameters returns the meta object corresponding to
func (p *ecorePackageImpl) GetEOperation_EParameters() EReference {
return p.eOperation.GetEStructuralFeatures().Get(1).(EReference)
}
// GetEOperation_IsOverrideOf_EOperation returns the meta object corresponding to
func (p *ecorePackageImpl) GetEOperation_IsOverrideOf_EOperation() EOperation {
return p.eOperation.GetEOperations().Get(0).(EOperation)
}
// GetEPackage returns the meta object corresponding to
func (p *ecorePackageImpl) GetEPackage() EClass {
return p.ePackage
}
// GetEPackage_NsPrefix returns the meta object corresponding to
func (p *ecorePackageImpl) GetEPackage_NsPrefix() EAttribute {
return p.ePackage.GetEStructuralFeatures().Get(1).(EAttribute)
}
// GetEPackage_NsURI returns the meta object corresponding to
func (p *ecorePackageImpl) GetEPackage_NsURI() EAttribute {
return p.ePackage.GetEStructuralFeatures().Get(0).(EAttribute)
}
// GetEPackage_EClassifiers returns the meta object corresponding to
func (p *ecorePackageImpl) GetEPackage_EClassifiers() EReference {
return p.ePackage.GetEStructuralFeatures().Get(3).(EReference)
}
// GetEPackage_EFactoryInstance returns the meta object corresponding to
func (p *ecorePackageImpl) GetEPackage_EFactoryInstance() EReference {
return p.ePackage.GetEStructuralFeatures().Get(2).(EReference)
}
// GetEPackage_ESubPackages returns the meta object corresponding to
func (p *ecorePackageImpl) GetEPackage_ESubPackages() EReference {
return p.ePackage.GetEStructuralFeatures().Get(4).(EReference)
}
// GetEPackage_ESuperPackage returns the meta object corresponding to
func (p *ecorePackageImpl) GetEPackage_ESuperPackage() EReference {
return p.ePackage.GetEStructuralFeatures().Get(5).(EReference)
}
// GetEPackage_GetEClassifier_EString returns the meta object corresponding to
func (p *ecorePackageImpl) GetEPackage_GetEClassifier_EString() EOperation {
return p.ePackage.GetEOperations().Get(0).(EOperation)
}
// GetEParameter returns the meta object corresponding to
func (p *ecorePackageImpl) GetEParameter() EClass {
return p.eParameter
}
// GetEParameter_EOperation returns the meta object corresponding to
func (p *ecorePackageImpl) GetEParameter_EOperation() EReference {
return p.eParameter.GetEStructuralFeatures().Get(0).(EReference)
}
// GetEReference returns the meta object corresponding to
func (p *ecorePackageImpl) GetEReference() EClass {
return p.eReference
}
// GetEReference_Container returns the meta object corresponding to
func (p *ecorePackageImpl) GetEReference_Container() EAttribute {
return p.eReference.GetEStructuralFeatures().Get(1).(EAttribute)
}
// GetEReference_Containment returns the meta object corresponding to
func (p *ecorePackageImpl) GetEReference_Containment() EAttribute {
return p.eReference.GetEStructuralFeatures().Get(0).(EAttribute)
}
// GetEReference_ResolveProxies returns the meta object corresponding to
func (p *ecorePackageImpl) GetEReference_ResolveProxies() EAttribute {
return p.eReference.GetEStructuralFeatures().Get(2).(EAttribute)
}
// GetEReference_EKeys returns the meta object corresponding to
func (p *ecorePackageImpl) GetEReference_EKeys() EReference {
return p.eReference.GetEStructuralFeatures().Get(5).(EReference)
}
// GetEReference_EOpposite returns the meta object corresponding to
func (p *ecorePackageImpl) GetEReference_EOpposite() EReference {
return p.eReference.GetEStructuralFeatures().Get(3).(EReference)
}
// GetEReference_EReferenceType returns the meta object corresponding to
func (p *ecorePackageImpl) GetEReference_EReferenceType() EReference {
return p.eReference.GetEStructuralFeatures().Get(4).(EReference)
}
// GetEStringToStringMapEntry returns the meta object corresponding to
func (p *ecorePackageImpl) GetEStringToStringMapEntry() EClass {
return p.eStringToStringMapEntry
}
// GetEStringToStringMapEntry_Key returns the meta object corresponding to
func (p *ecorePackageImpl) GetEStringToStringMapEntry_Key() EAttribute {
return p.eStringToStringMapEntry.GetEStructuralFeatures().Get(0).(EAttribute)
}
// GetEStringToStringMapEntry_Value returns the meta object corresponding to
func (p *ecorePackageImpl) GetEStringToStringMapEntry_Value() EAttribute {
return p.eStringToStringMapEntry.GetEStructuralFeatures().Get(1).(EAttribute)
}
// GetEStructuralFeature returns the meta object corresponding to
func (p *ecorePackageImpl) GetEStructuralFeature() EClass {
return p.eStructuralFeature
}
// GetEStructuralFeature_Changeable returns the meta object corresponding to
func (p *ecorePackageImpl) GetEStructuralFeature_Changeable() EAttribute {
return p.eStructuralFeature.GetEStructuralFeatures().Get(0).(EAttribute)
}
// GetEStructuralFeature_DefaultValue returns the meta object corresponding to
func (p *ecorePackageImpl) GetEStructuralFeature_DefaultValue() EAttribute {
return p.eStructuralFeature.GetEStructuralFeatures().Get(4).(EAttribute)
}
// GetEStructuralFeature_DefaultValueLiteral returns the meta object corresponding to
func (p *ecorePackageImpl) GetEStructuralFeature_DefaultValueLiteral() EAttribute {
return p.eStructuralFeature.GetEStructuralFeatures().Get(3).(EAttribute)
}
// GetEStructuralFeature_Derived returns the meta object corresponding to
func (p *ecorePackageImpl) GetEStructuralFeature_Derived() EAttribute {
return p.eStructuralFeature.GetEStructuralFeatures().Get(6).(EAttribute)
}
// GetEStructuralFeature_FeatureID returns the meta object corresponding to
func (p *ecorePackageImpl) GetEStructuralFeature_FeatureID() EAttribute {
return p.eStructuralFeature.GetEStructuralFeatures().Get(8).(EAttribute)
}
// GetEStructuralFeature_Transient returns the meta object corresponding to
func (p *ecorePackageImpl) GetEStructuralFeature_Transient() EAttribute {
return p.eStructuralFeature.GetEStructuralFeatures().Get(2).(EAttribute)
}
// GetEStructuralFeature_Unsettable returns the meta object corresponding to
func (p *ecorePackageImpl) GetEStructuralFeature_Unsettable() EAttribute {
return p.eStructuralFeature.GetEStructuralFeatures().Get(5).(EAttribute)
}
// GetEStructuralFeature_Volatile returns the meta object corresponding to
func (p *ecorePackageImpl) GetEStructuralFeature_Volatile() EAttribute {
return p.eStructuralFeature.GetEStructuralFeatures().Get(1).(EAttribute)
}
// GetEStructuralFeature_EContainingClass returns the meta object corresponding to
func (p *ecorePackageImpl) GetEStructuralFeature_EContainingClass() EReference {
return p.eStructuralFeature.GetEStructuralFeatures().Get(7).(EReference)
}
// GetEStructuralFeature_GetContainerClass returns the meta object corresponding to
func (p *ecorePackageImpl) GetEStructuralFeature_GetContainerClass() EOperation {
return p.eStructuralFeature.GetEOperations().Get(0).(EOperation)
}
// GetETypeParameter returns the meta object corresponding to
func (p *ecorePackageImpl) GetETypeParameter() EClass {
return p.eTypeParameter
}
// GetETypeParameter_EBounds returns the meta object corresponding to
func (p *ecorePackageImpl) GetETypeParameter_EBounds() EReference {
return p.eTypeParameter.GetEStructuralFeatures().Get(0).(EReference)
}
// GetETypedElement returns the meta object corresponding to
func (p *ecorePackageImpl) GetETypedElement() EClass {
return p.eTypedElement
}
// GetETypedElement_LowerBound returns the meta object corresponding to
func (p *ecorePackageImpl) GetETypedElement_LowerBound() EAttribute {
return p.eTypedElement.GetEStructuralFeatures().Get(2).(EAttribute)
}
// GetETypedElement_Many returns the meta object corresponding to
func (p *ecorePackageImpl) GetETypedElement_Many() EAttribute {
return p.eTypedElement.GetEStructuralFeatures().Get(4).(EAttribute)
}
// GetETypedElement_Ordered returns the meta object corresponding to
func (p *ecorePackageImpl) GetETypedElement_Ordered() EAttribute {
return p.eTypedElement.GetEStructuralFeatures().Get(0).(EAttribute)
}
// GetETypedElement_Required returns the meta object corresponding to
func (p *ecorePackageImpl) GetETypedElement_Required() EAttribute {
return p.eTypedElement.GetEStructuralFeatures().Get(5).(EAttribute)
}
// GetETypedElement_Unique returns the meta object corresponding to
func (p *ecorePackageImpl) GetETypedElement_Unique() EAttribute {
return p.eTypedElement.GetEStructuralFeatures().Get(1).(EAttribute)
}
// GetETypedElement_UpperBound returns the meta object corresponding to
func (p *ecorePackageImpl) GetETypedElement_UpperBound() EAttribute {
return p.eTypedElement.GetEStructuralFeatures().Get(3).(EAttribute)
}
// GetETypedElement_EType returns the meta object corresponding to
func (p *ecorePackageImpl) GetETypedElement_EType() EReference {
return p.eTypedElement.GetEStructuralFeatures().Get(6).(EReference)
}
// GetEBigDecimal returns the meta object corresponding to
func (p *ecorePackageImpl) GetEBigDecimal() EDataType {
return p.eBigDecimal
}
// GetEBigInteger returns the meta object corresponding to
func (p *ecorePackageImpl) GetEBigInteger() EDataType {
return p.eBigInteger
}
// GetEBoolean returns the meta object corresponding to
func (p *ecorePackageImpl) GetEBoolean() EDataType {
return p.eBoolean
}
// GetEBooleanObject returns the meta object corresponding to
func (p *ecorePackageImpl) GetEBooleanObject() EDataType {
return p.eBooleanObject
}
// GetEByte returns the meta object corresponding to
func (p *ecorePackageImpl) GetEByte() EDataType {
return p.eByte
}
// GetEByteArray returns the meta object corresponding to
func (p *ecorePackageImpl) GetEByteArray() EDataType {
return p.eByteArray
}
// GetEByteObject returns the meta object corresponding to
func (p *ecorePackageImpl) GetEByteObject() EDataType {
return p.eByteObject
}
// GetEChar returns the meta object corresponding to
func (p *ecorePackageImpl) GetEChar() EDataType {
return p.eChar
}
// GetECharacterObject returns the meta object corresponding to
func (p *ecorePackageImpl) GetECharacterObject() EDataType {
return p.eCharacterObject
}
// GetEDate returns the meta object corresponding to
func (p *ecorePackageImpl) GetEDate() EDataType {
return p.eDate
}
// GetEDiagnosticChain returns the meta object corresponding to
func (p *ecorePackageImpl) GetEDiagnosticChain() EDataType {
return p.eDiagnosticChain
}
// GetEDouble returns the meta object corresponding to
func (p *ecorePackageImpl) GetEDouble() EDataType {
return p.eDouble
}
// GetEDoubleObject returns the meta object corresponding to
func (p *ecorePackageImpl) GetEDoubleObject() EDataType {
return p.eDoubleObject
}
// GetEEList returns the meta object corresponding to
func (p *ecorePackageImpl) GetEEList() EDataType {
return p.eEList
}
// GetEEnumerator returns the meta object corresponding to
func (p *ecorePackageImpl) GetEEnumerator() EDataType {
return p.eEnumerator
}
// GetEFeatureMap returns the meta object corresponding to
func (p *ecorePackageImpl) GetEFeatureMap() EDataType {
return p.eFeatureMap
}
// GetEFeatureMapEntry returns the meta object corresponding to
func (p *ecorePackageImpl) GetEFeatureMapEntry() EDataType {
return p.eFeatureMapEntry
}
// GetEFloat returns the meta object corresponding to
func (p *ecorePackageImpl) GetEFloat() EDataType {
return p.eFloat
}
// GetEFloatObject returns the meta object corresponding to
func (p *ecorePackageImpl) GetEFloatObject() EDataType {
return p.eFloatObject
}
// GetEInt returns the meta object corresponding to
func (p *ecorePackageImpl) GetEInt() EDataType {
return p.eInt
}
// GetEIntegerObject returns the meta object corresponding to
func (p *ecorePackageImpl) GetEIntegerObject() EDataType {
return p.eIntegerObject
}
// GetEInvocationTargetException returns the meta object corresponding to
func (p *ecorePackageImpl) GetEInvocationTargetException() EDataType {
return p.eInvocationTargetException
}
// GetEJavaClass returns the meta object corresponding to
func (p *ecorePackageImpl) GetEJavaClass() EDataType {
return p.eJavaClass
}
// GetEJavaObject returns the meta object corresponding to
func (p *ecorePackageImpl) GetEJavaObject() EDataType {
return p.eJavaObject
}
// GetELong returns the meta object corresponding to
func (p *ecorePackageImpl) GetELong() EDataType {
return p.eLong
}
// GetELongObject returns the meta object corresponding to
func (p *ecorePackageImpl) GetELongObject() EDataType {
return p.eLongObject
}
// GetEMap returns the meta object corresponding to
func (p *ecorePackageImpl) GetEMap() EDataType {
return p.eMap
}
// GetEResource returns the meta object corresponding to
func (p *ecorePackageImpl) GetEResource() EDataType {
return p.eResource
}
// GetEResourceSet returns the meta object corresponding to
func (p *ecorePackageImpl) GetEResourceSet() EDataType {
return p.eResourceSet
}
// GetEShort returns the meta object corresponding to
func (p *ecorePackageImpl) GetEShort() EDataType {
return p.eShort
}
// GetEShortObject returns the meta object corresponding to
func (p *ecorePackageImpl) GetEShortObject() EDataType {
return p.eShortObject
}
// GetEString returns the meta object corresponding to
func (p *ecorePackageImpl) GetEString() EDataType {
return p.eString
}
// GetETreeIterator returns the meta object corresponding to
func (p *ecorePackageImpl) GetETreeIterator() EDataType {
return p.eTreeIterator
}
func (p *ecorePackageImpl) createPackageContents() {
factory := GetFactory()
p.eAnnotation = factory.CreateEClassFromContainerAndClassID(p, EANNOTATION)
factory.CreateEAttributeFromContainerAndClassID(p.eAnnotation, EANNOTATION__SOURCE)
factory.CreateEReferenceFromContainerAndClassID(p.eAnnotation, EANNOTATION__DETAILS)
factory.CreateEReferenceFromContainerAndClassID(p.eAnnotation, EANNOTATION__EMODEL_ELEMENT)
factory.CreateEReferenceFromContainerAndClassID(p.eAnnotation, EANNOTATION__CONTENTS)
factory.CreateEReferenceFromContainerAndClassID(p.eAnnotation, EANNOTATION__REFERENCES)
p.eAttribute = factory.CreateEClassFromContainerAndClassID(p, EATTRIBUTE)
factory.CreateEAttributeFromContainerAndClassID(p.eAttribute, EATTRIBUTE__ID)
factory.CreateEReferenceFromContainerAndClassID(p.eAttribute, EATTRIBUTE__EATTRIBUTE_TYPE)
p.eClass = factory.CreateEClassFromContainerAndClassID(p, ECLASS)
factory.CreateEAttributeFromContainerAndClassID(p.eClass, ECLASS__ABSTRACT)
factory.CreateEAttributeFromContainerAndClassID(p.eClass, ECLASS__INTERFACE)
factory.CreateEReferenceFromContainerAndClassID(p.eClass, ECLASS__ESTRUCTURAL_FEATURES)
factory.CreateEReferenceFromContainerAndClassID(p.eClass, ECLASS__EATTRIBUTES)
factory.CreateEReferenceFromContainerAndClassID(p.eClass, ECLASS__EREFERENCES)
factory.CreateEReferenceFromContainerAndClassID(p.eClass, ECLASS__ESUPER_TYPES)
factory.CreateEReferenceFromContainerAndClassID(p.eClass, ECLASS__EOPERATIONS)
factory.CreateEReferenceFromContainerAndClassID(p.eClass, ECLASS__ECONTAINMENT_FEATURES)
factory.CreateEReferenceFromContainerAndClassID(p.eClass, ECLASS__ECROSS_REFERENCE_FEATURES)
factory.CreateEReferenceFromContainerAndClassID(p.eClass, ECLASS__EALL_ATTRIBUTES)
factory.CreateEReferenceFromContainerAndClassID(p.eClass, ECLASS__EALL_REFERENCES)
factory.CreateEReferenceFromContainerAndClassID(p.eClass, ECLASS__EALL_CONTAINMENTS)
factory.CreateEReferenceFromContainerAndClassID(p.eClass, ECLASS__EALL_OPERATIONS)
factory.CreateEReferenceFromContainerAndClassID(p.eClass, ECLASS__EALL_STRUCTURAL_FEATURES)
factory.CreateEReferenceFromContainerAndClassID(p.eClass, ECLASS__EALL_SUPER_TYPES)
factory.CreateEReferenceFromContainerAndClassID(p.eClass, ECLASS__EID_ATTRIBUTE)
factory.CreateEOperationFromContainerAndClassID(p.eClass, ECLASS__IS_SUPER_TYPE_OF_ECLASS)
factory.CreateEOperationFromContainerAndClassID(p.eClass, ECLASS__GET_FEATURE_COUNT)
factory.CreateEOperationFromContainerAndClassID(p.eClass, ECLASS__GET_ESTRUCTURAL_FEATURE_EINT)
factory.CreateEOperationFromContainerAndClassID(p.eClass, ECLASS__GET_ESTRUCTURAL_FEATURE_ESTRING)
factory.CreateEOperationFromContainerAndClassID(p.eClass, ECLASS__GET_FEATURE_ID_ESTRUCTURALFEATURE)
factory.CreateEOperationFromContainerAndClassID(p.eClass, ECLASS__GET_OPERATION_COUNT)
factory.CreateEOperationFromContainerAndClassID(p.eClass, ECLASS__GET_EOPERATION_EINT)
factory.CreateEOperationFromContainerAndClassID(p.eClass, ECLASS__GET_OPERATION_ID_EOPERATION)
factory.CreateEOperationFromContainerAndClassID(p.eClass, ECLASS__GET_OVERRIDE_EOPERATION)
factory.CreateEOperationFromContainerAndClassID(p.eClass, ECLASS__GET_FEATURE_TYPE_ESTRUCTURALFEATURE)
p.eClassifier = factory.CreateEClassFromContainerAndClassID(p, ECLASSIFIER)
factory.CreateEAttributeFromContainerAndClassID(p.eClassifier, ECLASSIFIER__INSTANCE_TYPE_NAME)
factory.CreateEAttributeFromContainerAndClassID(p.eClassifier, ECLASSIFIER__INSTANCE_CLASS)
factory.CreateEAttributeFromContainerAndClassID(p.eClassifier, ECLASSIFIER__DEFAULT_VALUE)
factory.CreateEReferenceFromContainerAndClassID(p.eClassifier, ECLASSIFIER__EPACKAGE)
factory.CreateEAttributeFromContainerAndClassID(p.eClassifier, ECLASSIFIER__CLASSIFIER_ID)
factory.CreateEOperationFromContainerAndClassID(p.eClassifier, ECLASSIFIER__IS_INSTANCE_EJAVAOBJECT)
p.eDataType = factory.CreateEClassFromContainerAndClassID(p, EDATA_TYPE)
factory.CreateEAttributeFromContainerAndClassID(p.eDataType, EDATA_TYPE__SERIALIZABLE)
p.eEnum = factory.CreateEClassFromContainerAndClassID(p, EENUM)
factory.CreateEReferenceFromContainerAndClassID(p.eEnum, EENUM__ELITERALS)
factory.CreateEOperationFromContainerAndClassID(p.eEnum, EENUM__GET_EENUM_LITERAL_ESTRING)
factory.CreateEOperationFromContainerAndClassID(p.eEnum, EENUM__GET_EENUM_LITERAL_EINT)
factory.CreateEOperationFromContainerAndClassID(p.eEnum, EENUM__GET_EENUM_LITERAL_BY_LITERAL_ESTRING)
p.eEnumLiteral = factory.CreateEClassFromContainerAndClassID(p, EENUM_LITERAL)
factory.CreateEAttributeFromContainerAndClassID(p.eEnumLiteral, EENUM_LITERAL__VALUE)
factory.CreateEAttributeFromContainerAndClassID(p.eEnumLiteral, EENUM_LITERAL__INSTANCE)
factory.CreateEAttributeFromContainerAndClassID(p.eEnumLiteral, EENUM_LITERAL__LITERAL)
factory.CreateEReferenceFromContainerAndClassID(p.eEnumLiteral, EENUM_LITERAL__EENUM)