1
2
3
4
5
6
7 package org.mod4j.dsl.datacontract.mm.DataContractDsl.impl;
8
9 import org.eclipse.emf.ecore.EAttribute;
10 import org.eclipse.emf.ecore.EClass;
11 import org.eclipse.emf.ecore.EEnum;
12 import org.eclipse.emf.ecore.EPackage;
13 import org.eclipse.emf.ecore.EReference;
14
15 import org.eclipse.emf.ecore.impl.EPackageImpl;
16
17 import org.mod4j.dsl.datacontract.mm.DataContractDsl.BusinessClassAssociationRoleReference;
18 import org.mod4j.dsl.datacontract.mm.DataContractDsl.BusinessClassDto;
19 import org.mod4j.dsl.datacontract.mm.DataContractDsl.BusinessClassPropertyReference;
20 import org.mod4j.dsl.datacontract.mm.DataContractDsl.CustomDto;
21 import org.mod4j.dsl.datacontract.mm.DataContractDsl.DataContractDslFactory;
22 import org.mod4j.dsl.datacontract.mm.DataContractDsl.DataContractDslPackage;
23 import org.mod4j.dsl.datacontract.mm.DataContractDsl.DataContractModel;
24 import org.mod4j.dsl.datacontract.mm.DataContractDsl.Dto;
25 import org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoAssociationRoleProperty;
26 import org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoBooleanProperty;
27 import org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoDataProperty;
28 import org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoDateTimeProperty;
29 import org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoDecimalProperty;
30 import org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoEnumerationProperty;
31 import org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoIntegerProperty;
32 import org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoProperty;
33 import org.mod4j.dsl.datacontract.mm.DataContractDsl.DtoStringProperty;
34 import org.mod4j.dsl.datacontract.mm.DataContractDsl.EnumerationDto;
35 import org.mod4j.dsl.datacontract.mm.DataContractDsl.EnumerationDtoLiteral;
36 import org.mod4j.dsl.datacontract.mm.DataContractDsl.ExternalReference;
37 import org.mod4j.dsl.datacontract.mm.DataContractDsl.ModelElement;
38 import org.mod4j.dsl.datacontract.mm.DataContractDsl.Multiplicity;
39
40
41
42
43
44
45
46 public class DataContractDslPackageImpl extends EPackageImpl implements DataContractDslPackage {
47
48
49
50
51
52 private EClass dataContractModelEClass = null;
53
54
55
56
57
58
59 private EClass dtoEClass = null;
60
61
62
63
64
65
66 private EClass businessClassDtoEClass = null;
67
68
69
70
71
72
73 private EClass dtoPropertyEClass = null;
74
75
76
77
78
79
80 private EClass dtoDataPropertyEClass = null;
81
82
83
84
85
86
87 private EClass dtoStringPropertyEClass = null;
88
89
90
91
92
93
94 private EClass dtoBooleanPropertyEClass = null;
95
96
97
98
99
100
101 private EClass enumerationDtoEClass = null;
102
103
104
105
106
107
108 private EClass enumerationDtoLiteralEClass = null;
109
110
111
112
113
114
115 private EClass modelElementEClass = null;
116
117
118
119
120
121
122 private EClass customDtoEClass = null;
123
124
125
126
127
128
129 private EClass dtoIntegerPropertyEClass = null;
130
131
132
133
134
135
136 private EClass dtoDecimalPropertyEClass = null;
137
138
139
140
141
142
143 private EClass dtoEnumerationPropertyEClass = null;
144
145
146
147
148
149
150 private EClass dtoDateTimePropertyEClass = null;
151
152
153
154
155
156
157 private EClass businessClassPropertyReferenceEClass = null;
158
159
160
161
162
163
164 private EClass businessClassAssociationRoleReferenceEClass = null;
165
166
167
168
169
170
171 private EClass dtoAssociationRolePropertyEClass = null;
172
173
174
175
176
177
178 private EClass externalReferenceEClass = null;
179
180
181
182
183
184
185 private EEnum multiplicityEEnum = null;
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202 private DataContractDslPackageImpl() {
203 super(eNS_URI, DataContractDslFactory.eINSTANCE);
204 }
205
206
207
208
209
210
211 private static boolean isInited = false;
212
213
214
215
216
217
218
219
220
221
222
223
224
225 public static DataContractDslPackage init() {
226 if (isInited) return (DataContractDslPackage)EPackage.Registry.INSTANCE.getEPackage(DataContractDslPackage.eNS_URI);
227
228
229 DataContractDslPackageImpl theDataContractDslPackage = (DataContractDslPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof DataContractDslPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new DataContractDslPackageImpl());
230
231 isInited = true;
232
233
234 theDataContractDslPackage.createPackageContents();
235
236
237 theDataContractDslPackage.initializePackageContents();
238
239
240 theDataContractDslPackage.freeze();
241
242
243
244 EPackage.Registry.INSTANCE.put(DataContractDslPackage.eNS_URI, theDataContractDslPackage);
245 return theDataContractDslPackage;
246 }
247
248
249
250
251
252
253 public EClass getDataContractModel() {
254 return dataContractModelEClass;
255 }
256
257
258
259
260
261
262 public EReference getDataContractModel_Dtos() {
263 return (EReference)dataContractModelEClass.getEStructuralFeatures().get(0);
264 }
265
266
267
268
269
270
271 public EReference getDataContractModel_Enumerations() {
272 return (EReference)dataContractModelEClass.getEStructuralFeatures().get(1);
273 }
274
275
276
277
278
279
280 public EReference getDataContractModel_ExternalReferences() {
281 return (EReference)dataContractModelEClass.getEStructuralFeatures().get(2);
282 }
283
284
285
286
287
288
289 public EClass getDto() {
290 return dtoEClass;
291 }
292
293
294
295
296
297
298 public EReference getDto_DatacontractModel() {
299 return (EReference)dtoEClass.getEStructuralFeatures().get(0);
300 }
301
302
303
304
305
306
307 public EClass getBusinessClassDto() {
308 return businessClassDtoEClass;
309 }
310
311
312
313
314
315
316 public EReference getBusinessClassDto_Properties() {
317 return (EReference)businessClassDtoEClass.getEStructuralFeatures().get(0);
318 }
319
320
321
322
323
324
325 public EReference getBusinessClassDto_Base() {
326 return (EReference)businessClassDtoEClass.getEStructuralFeatures().get(1);
327 }
328
329
330
331
332
333
334 public EReference getBusinessClassDto_PropertyReferences() {
335 return (EReference)businessClassDtoEClass.getEStructuralFeatures().get(2);
336 }
337
338
339
340
341
342
343 public EReference getBusinessClassDto_AssociationReferences() {
344 return (EReference)businessClassDtoEClass.getEStructuralFeatures().get(3);
345 }
346
347
348
349
350
351
352 public EAttribute getBusinessClassDto_Creatable() {
353 return (EAttribute)businessClassDtoEClass.getEStructuralFeatures().get(4);
354 }
355
356
357
358
359
360
361 public EClass getDtoProperty() {
362 return dtoPropertyEClass;
363 }
364
365
366
367
368
369
370 public EAttribute getDtoProperty_DataType() {
371 return (EAttribute)dtoPropertyEClass.getEStructuralFeatures().get(0);
372 }
373
374
375
376
377
378
379 public EReference getDtoProperty_BusinessClassDto() {
380 return (EReference)dtoPropertyEClass.getEStructuralFeatures().get(1);
381 }
382
383
384
385
386
387
388 public EReference getDtoProperty_CustomDto() {
389 return (EReference)dtoPropertyEClass.getEStructuralFeatures().get(2);
390 }
391
392
393
394
395
396
397 public EAttribute getDtoProperty_MandatoryForCreation() {
398 return (EAttribute)dtoPropertyEClass.getEStructuralFeatures().get(3);
399 }
400
401
402
403
404
405
406 public EAttribute getDtoProperty_Nullable() {
407 return (EAttribute)dtoPropertyEClass.getEStructuralFeatures().get(4);
408 }
409
410
411
412
413
414
415 public EAttribute getDtoProperty_Writable() {
416 return (EAttribute)dtoPropertyEClass.getEStructuralFeatures().get(5);
417 }
418
419
420
421
422
423
424 public EClass getDtoDataProperty() {
425 return dtoDataPropertyEClass;
426 }
427
428
429
430
431
432
433 public EAttribute getDtoDataProperty_HasDefault() {
434 return (EAttribute)dtoDataPropertyEClass.getEStructuralFeatures().get(0);
435 }
436
437
438
439
440
441
442 public EClass getDtoStringProperty() {
443 return dtoStringPropertyEClass;
444 }
445
446
447
448
449
450
451 public EAttribute getDtoStringProperty_DefaultValue() {
452 return (EAttribute)dtoStringPropertyEClass.getEStructuralFeatures().get(0);
453 }
454
455
456
457
458
459
460 public EClass getDtoBooleanProperty() {
461 return dtoBooleanPropertyEClass;
462 }
463
464
465
466
467
468
469 public EAttribute getDtoBooleanProperty_DefaultValue() {
470 return (EAttribute)dtoBooleanPropertyEClass.getEStructuralFeatures().get(0);
471 }
472
473
474
475
476
477
478 public EClass getEnumerationDto() {
479 return enumerationDtoEClass;
480 }
481
482
483
484
485
486
487 public EReference getEnumerationDto_Literals() {
488 return (EReference)enumerationDtoEClass.getEStructuralFeatures().get(0);
489 }
490
491
492
493
494
495
496 public EReference getEnumerationDto_Base() {
497 return (EReference)enumerationDtoEClass.getEStructuralFeatures().get(1);
498 }
499
500
501
502
503
504
505 public EReference getEnumerationDto_DatacontractModel() {
506 return (EReference)enumerationDtoEClass.getEStructuralFeatures().get(2);
507 }
508
509
510
511
512
513
514 public EClass getEnumerationDtoLiteral() {
515 return enumerationDtoLiteralEClass;
516 }
517
518
519
520
521
522
523 public EAttribute getEnumerationDtoLiteral_Value() {
524 return (EAttribute)enumerationDtoLiteralEClass.getEStructuralFeatures().get(0);
525 }
526
527
528
529
530
531
532 public EClass getModelElement() {
533 return modelElementEClass;
534 }
535
536
537
538
539
540
541 public EAttribute getModelElement_Name() {
542 return (EAttribute)modelElementEClass.getEStructuralFeatures().get(0);
543 }
544
545
546
547
548
549
550 public EAttribute getModelElement_Description() {
551 return (EAttribute)modelElementEClass.getEStructuralFeatures().get(1);
552 }
553
554
555
556
557
558
559 public EClass getCustomDto() {
560 return customDtoEClass;
561 }
562
563
564
565
566
567
568 public EReference getCustomDto_Properties() {
569 return (EReference)customDtoEClass.getEStructuralFeatures().get(0);
570 }
571
572
573
574
575
576
577 public EClass getDtoIntegerProperty() {
578 return dtoIntegerPropertyEClass;
579 }
580
581
582
583
584
585
586 public EAttribute getDtoIntegerProperty_DefaultValue() {
587 return (EAttribute)dtoIntegerPropertyEClass.getEStructuralFeatures().get(0);
588 }
589
590
591
592
593
594
595 public EClass getDtoDecimalProperty() {
596 return dtoDecimalPropertyEClass;
597 }
598
599
600
601
602
603
604 public EAttribute getDtoDecimalProperty_DefaultValue() {
605 return (EAttribute)dtoDecimalPropertyEClass.getEStructuralFeatures().get(0);
606 }
607
608
609
610
611
612
613 public EClass getDtoEnumerationProperty() {
614 return dtoEnumerationPropertyEClass;
615 }
616
617
618
619
620
621
622 public EReference getDtoEnumerationProperty_Type() {
623 return (EReference)dtoEnumerationPropertyEClass.getEStructuralFeatures().get(0);
624 }
625
626
627
628
629
630
631 public EAttribute getDtoEnumerationProperty_DefaultValueAsString() {
632 return (EAttribute)dtoEnumerationPropertyEClass.getEStructuralFeatures().get(1);
633 }
634
635
636
637
638
639
640 public EClass getDtoDateTimeProperty() {
641 return dtoDateTimePropertyEClass;
642 }
643
644
645
646
647
648
649 public EAttribute getDtoDateTimeProperty_DefaultValue() {
650 return (EAttribute)dtoDateTimePropertyEClass.getEStructuralFeatures().get(0);
651 }
652
653
654
655
656
657
658 public EClass getBusinessClassPropertyReference() {
659 return businessClassPropertyReferenceEClass;
660 }
661
662
663
664
665
666
667 public EReference getBusinessClassPropertyReference_Dto() {
668 return (EReference)businessClassPropertyReferenceEClass.getEStructuralFeatures().get(0);
669 }
670
671
672
673
674
675
676 public EClass getBusinessClassAssociationRoleReference() {
677 return businessClassAssociationRoleReferenceEClass;
678 }
679
680
681
682
683
684
685 public EReference getBusinessClassAssociationRoleReference_Dto() {
686 return (EReference)businessClassAssociationRoleReferenceEClass.getEStructuralFeatures().get(0);
687 }
688
689
690
691
692
693
694 public EReference getBusinessClassAssociationRoleReference_DtoType() {
695 return (EReference)businessClassAssociationRoleReferenceEClass.getEStructuralFeatures().get(1);
696 }
697
698
699
700
701
702
703 public EClass getDtoAssociationRoleProperty() {
704 return dtoAssociationRolePropertyEClass;
705 }
706
707
708
709
710
711
712 public EReference getDtoAssociationRoleProperty_DtoType() {
713 return (EReference)dtoAssociationRolePropertyEClass.getEStructuralFeatures().get(0);
714 }
715
716
717
718
719
720
721 public EAttribute getDtoAssociationRoleProperty_Ordered() {
722 return (EAttribute)dtoAssociationRolePropertyEClass.getEStructuralFeatures().get(1);
723 }
724
725
726
727
728
729
730 public EAttribute getDtoAssociationRoleProperty_Multiplicity() {
731 return (EAttribute)dtoAssociationRolePropertyEClass.getEStructuralFeatures().get(2);
732 }
733
734
735
736
737
738
739 public EClass getExternalReference() {
740 return externalReferenceEClass;
741 }
742
743
744
745
746
747
748 public EAttribute getExternalReference_Modelname() {
749 return (EAttribute)externalReferenceEClass.getEStructuralFeatures().get(0);
750 }
751
752
753
754
755
756
757 public EReference getExternalReference_DatacontractModel() {
758 return (EReference)externalReferenceEClass.getEStructuralFeatures().get(1);
759 }
760
761
762
763
764
765
766 public EAttribute getExternalReference_Keyword() {
767 return (EAttribute)externalReferenceEClass.getEStructuralFeatures().get(2);
768 }
769
770
771
772
773
774
775 public EEnum getMultiplicity() {
776 return multiplicityEEnum;
777 }
778
779
780
781
782
783
784 public DataContractDslFactory getDataContractDslFactory() {
785 return (DataContractDslFactory)getEFactoryInstance();
786 }
787
788
789
790
791
792
793 private boolean isCreated = false;
794
795
796
797
798
799
800
801
802 public void createPackageContents() {
803 if (isCreated) return;
804 isCreated = true;
805
806
807 dataContractModelEClass = createEClass(DATA_CONTRACT_MODEL);
808 createEReference(dataContractModelEClass, DATA_CONTRACT_MODEL__DTOS);
809 createEReference(dataContractModelEClass, DATA_CONTRACT_MODEL__ENUMERATIONS);
810 createEReference(dataContractModelEClass, DATA_CONTRACT_MODEL__EXTERNAL_REFERENCES);
811
812 dtoEClass = createEClass(DTO);
813 createEReference(dtoEClass, DTO__DATACONTRACT_MODEL);
814
815 businessClassDtoEClass = createEClass(BUSINESS_CLASS_DTO);
816 createEReference(businessClassDtoEClass, BUSINESS_CLASS_DTO__PROPERTIES);
817 createEReference(businessClassDtoEClass, BUSINESS_CLASS_DTO__BASE);
818 createEReference(businessClassDtoEClass, BUSINESS_CLASS_DTO__PROPERTY_REFERENCES);
819 createEReference(businessClassDtoEClass, BUSINESS_CLASS_DTO__ASSOCIATION_REFERENCES);
820 createEAttribute(businessClassDtoEClass, BUSINESS_CLASS_DTO__CREATABLE);
821
822 dtoPropertyEClass = createEClass(DTO_PROPERTY);
823 createEAttribute(dtoPropertyEClass, DTO_PROPERTY__DATA_TYPE);
824 createEReference(dtoPropertyEClass, DTO_PROPERTY__BUSINESS_CLASS_DTO);
825 createEReference(dtoPropertyEClass, DTO_PROPERTY__CUSTOM_DTO);
826 createEAttribute(dtoPropertyEClass, DTO_PROPERTY__MANDATORY_FOR_CREATION);
827 createEAttribute(dtoPropertyEClass, DTO_PROPERTY__NULLABLE);
828 createEAttribute(dtoPropertyEClass, DTO_PROPERTY__WRITABLE);
829
830 dtoDataPropertyEClass = createEClass(DTO_DATA_PROPERTY);
831 createEAttribute(dtoDataPropertyEClass, DTO_DATA_PROPERTY__HAS_DEFAULT);
832
833 dtoStringPropertyEClass = createEClass(DTO_STRING_PROPERTY);
834 createEAttribute(dtoStringPropertyEClass, DTO_STRING_PROPERTY__DEFAULT_VALUE);
835
836 dtoBooleanPropertyEClass = createEClass(DTO_BOOLEAN_PROPERTY);
837 createEAttribute(dtoBooleanPropertyEClass, DTO_BOOLEAN_PROPERTY__DEFAULT_VALUE);
838
839 enumerationDtoEClass = createEClass(ENUMERATION_DTO);
840 createEReference(enumerationDtoEClass, ENUMERATION_DTO__LITERALS);
841 createEReference(enumerationDtoEClass, ENUMERATION_DTO__BASE);
842 createEReference(enumerationDtoEClass, ENUMERATION_DTO__DATACONTRACT_MODEL);
843
844 enumerationDtoLiteralEClass = createEClass(ENUMERATION_DTO_LITERAL);
845 createEAttribute(enumerationDtoLiteralEClass, ENUMERATION_DTO_LITERAL__VALUE);
846
847 modelElementEClass = createEClass(MODEL_ELEMENT);
848 createEAttribute(modelElementEClass, MODEL_ELEMENT__NAME);
849 createEAttribute(modelElementEClass, MODEL_ELEMENT__DESCRIPTION);
850
851 customDtoEClass = createEClass(CUSTOM_DTO);
852 createEReference(customDtoEClass, CUSTOM_DTO__PROPERTIES);
853
854 dtoIntegerPropertyEClass = createEClass(DTO_INTEGER_PROPERTY);
855 createEAttribute(dtoIntegerPropertyEClass, DTO_INTEGER_PROPERTY__DEFAULT_VALUE);
856
857 dtoDecimalPropertyEClass = createEClass(DTO_DECIMAL_PROPERTY);
858 createEAttribute(dtoDecimalPropertyEClass, DTO_DECIMAL_PROPERTY__DEFAULT_VALUE);
859
860 dtoEnumerationPropertyEClass = createEClass(DTO_ENUMERATION_PROPERTY);
861 createEReference(dtoEnumerationPropertyEClass, DTO_ENUMERATION_PROPERTY__TYPE);
862 createEAttribute(dtoEnumerationPropertyEClass, DTO_ENUMERATION_PROPERTY__DEFAULT_VALUE_AS_STRING);
863
864 dtoDateTimePropertyEClass = createEClass(DTO_DATE_TIME_PROPERTY);
865 createEAttribute(dtoDateTimePropertyEClass, DTO_DATE_TIME_PROPERTY__DEFAULT_VALUE);
866
867 businessClassPropertyReferenceEClass = createEClass(BUSINESS_CLASS_PROPERTY_REFERENCE);
868 createEReference(businessClassPropertyReferenceEClass, BUSINESS_CLASS_PROPERTY_REFERENCE__DTO);
869
870 businessClassAssociationRoleReferenceEClass = createEClass(BUSINESS_CLASS_ASSOCIATION_ROLE_REFERENCE);
871 createEReference(businessClassAssociationRoleReferenceEClass, BUSINESS_CLASS_ASSOCIATION_ROLE_REFERENCE__DTO);
872 createEReference(businessClassAssociationRoleReferenceEClass, BUSINESS_CLASS_ASSOCIATION_ROLE_REFERENCE__DTO_TYPE);
873
874 dtoAssociationRolePropertyEClass = createEClass(DTO_ASSOCIATION_ROLE_PROPERTY);
875 createEReference(dtoAssociationRolePropertyEClass, DTO_ASSOCIATION_ROLE_PROPERTY__DTO_TYPE);
876 createEAttribute(dtoAssociationRolePropertyEClass, DTO_ASSOCIATION_ROLE_PROPERTY__ORDERED);
877 createEAttribute(dtoAssociationRolePropertyEClass, DTO_ASSOCIATION_ROLE_PROPERTY__MULTIPLICITY);
878
879 externalReferenceEClass = createEClass(EXTERNAL_REFERENCE);
880 createEAttribute(externalReferenceEClass, EXTERNAL_REFERENCE__MODELNAME);
881 createEReference(externalReferenceEClass, EXTERNAL_REFERENCE__DATACONTRACT_MODEL);
882 createEAttribute(externalReferenceEClass, EXTERNAL_REFERENCE__KEYWORD);
883
884
885 multiplicityEEnum = createEEnum(MULTIPLICITY);
886 }
887
888
889
890
891
892
893 private boolean isInitialized = false;
894
895
896
897
898
899
900
901
902 public void initializePackageContents() {
903 if (isInitialized) return;
904 isInitialized = true;
905
906
907 setName(eNAME);
908 setNsPrefix(eNS_PREFIX);
909 setNsURI(eNS_URI);
910
911
912
913
914
915
916 dataContractModelEClass.getESuperTypes().add(this.getModelElement());
917 dtoEClass.getESuperTypes().add(this.getModelElement());
918 businessClassDtoEClass.getESuperTypes().add(this.getDto());
919 dtoPropertyEClass.getESuperTypes().add(this.getModelElement());
920 dtoDataPropertyEClass.getESuperTypes().add(this.getDtoProperty());
921 dtoStringPropertyEClass.getESuperTypes().add(this.getDtoDataProperty());
922 dtoBooleanPropertyEClass.getESuperTypes().add(this.getDtoDataProperty());
923 enumerationDtoEClass.getESuperTypes().add(this.getModelElement());
924 enumerationDtoLiteralEClass.getESuperTypes().add(this.getModelElement());
925 customDtoEClass.getESuperTypes().add(this.getDto());
926 dtoIntegerPropertyEClass.getESuperTypes().add(this.getDtoDataProperty());
927 dtoDecimalPropertyEClass.getESuperTypes().add(this.getDtoDataProperty());
928 dtoEnumerationPropertyEClass.getESuperTypes().add(this.getDtoDataProperty());
929 dtoDateTimePropertyEClass.getESuperTypes().add(this.getDtoDataProperty());
930 businessClassPropertyReferenceEClass.getESuperTypes().add(this.getModelElement());
931 businessClassAssociationRoleReferenceEClass.getESuperTypes().add(this.getModelElement());
932 dtoAssociationRolePropertyEClass.getESuperTypes().add(this.getDtoProperty());
933 externalReferenceEClass.getESuperTypes().add(this.getModelElement());
934
935
936 initEClass(dataContractModelEClass, DataContractModel.class, "DataContractModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
937 initEReference(getDataContractModel_Dtos(), this.getDto(), this.getDto_DatacontractModel(), "dtos", null, 0, -1, DataContractModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
938 initEReference(getDataContractModel_Enumerations(), this.getEnumerationDto(), this.getEnumerationDto_DatacontractModel(), "enumerations", null, 0, -1, DataContractModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
939 initEReference(getDataContractModel_ExternalReferences(), this.getExternalReference(), this.getExternalReference_DatacontractModel(), "externalReferences", null, 0, -1, DataContractModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
940
941 initEClass(dtoEClass, Dto.class, "Dto", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
942 initEReference(getDto_DatacontractModel(), this.getDataContractModel(), this.getDataContractModel_Dtos(), "datacontractModel", null, 0, 1, Dto.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
943
944 initEClass(businessClassDtoEClass, BusinessClassDto.class, "BusinessClassDto", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
945 initEReference(getBusinessClassDto_Properties(), this.getDtoProperty(), this.getDtoProperty_BusinessClassDto(), "properties", null, 0, -1, BusinessClassDto.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
946 initEReference(getBusinessClassDto_Base(), this.getExternalReference(), null, "base", null, 0, 1, BusinessClassDto.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
947 initEReference(getBusinessClassDto_PropertyReferences(), this.getBusinessClassPropertyReference(), this.getBusinessClassPropertyReference_Dto(), "propertyReferences", null, 0, -1, BusinessClassDto.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
948 initEReference(getBusinessClassDto_AssociationReferences(), this.getBusinessClassAssociationRoleReference(), this.getBusinessClassAssociationRoleReference_Dto(), "associationReferences", null, 0, -1, BusinessClassDto.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
949 initEAttribute(getBusinessClassDto_Creatable(), ecorePackage.getEBoolean(), "creatable", null, 0, 1, BusinessClassDto.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
950
951 initEClass(dtoPropertyEClass, DtoProperty.class, "DtoProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
952 initEAttribute(getDtoProperty_DataType(), ecorePackage.getEString(), "dataType", null, 0, 1, DtoProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
953 initEReference(getDtoProperty_BusinessClassDto(), this.getBusinessClassDto(), this.getBusinessClassDto_Properties(), "businessClassDto", null, 0, 1, DtoProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
954 initEReference(getDtoProperty_CustomDto(), this.getCustomDto(), this.getCustomDto_Properties(), "customDto", null, 0, 1, DtoProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
955 initEAttribute(getDtoProperty_MandatoryForCreation(), ecorePackage.getEBoolean(), "mandatoryForCreation", "false", 0, 1, DtoProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
956 initEAttribute(getDtoProperty_Nullable(), ecorePackage.getEBoolean(), "nullable", "true", 0, 1, DtoProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
957 initEAttribute(getDtoProperty_Writable(), ecorePackage.getEBoolean(), "writable", "true", 0, 1, DtoProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
958
959 initEClass(dtoDataPropertyEClass, DtoDataProperty.class, "DtoDataProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
960 initEAttribute(getDtoDataProperty_HasDefault(), ecorePackage.getEBoolean(), "hasDefault", "false", 0, 1, DtoDataProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
961
962 initEClass(dtoStringPropertyEClass, DtoStringProperty.class, "DtoStringProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
963 initEAttribute(getDtoStringProperty_DefaultValue(), ecorePackage.getEString(), "defaultValue", null, 0, 1, DtoStringProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
964
965 initEClass(dtoBooleanPropertyEClass, DtoBooleanProperty.class, "DtoBooleanProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
966 initEAttribute(getDtoBooleanProperty_DefaultValue(), ecorePackage.getEBooleanObject(), "defaultValue", null, 0, 1, DtoBooleanProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
967
968 initEClass(enumerationDtoEClass, EnumerationDto.class, "EnumerationDto", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
969 initEReference(getEnumerationDto_Literals(), this.getEnumerationDtoLiteral(), null, "literals", null, 0, -1, EnumerationDto.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
970 initEReference(getEnumerationDto_Base(), this.getExternalReference(), null, "base", null, 0, 1, EnumerationDto.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
971 initEReference(getEnumerationDto_DatacontractModel(), this.getDataContractModel(), this.getDataContractModel_Enumerations(), "datacontractModel", null, 0, 1, EnumerationDto.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
972
973 initEClass(enumerationDtoLiteralEClass, EnumerationDtoLiteral.class, "EnumerationDtoLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
974 initEAttribute(getEnumerationDtoLiteral_Value(), ecorePackage.getEInt(), "value", null, 0, 1, EnumerationDtoLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
975
976 initEClass(modelElementEClass, ModelElement.class, "ModelElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
977 initEAttribute(getModelElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, ModelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
978 initEAttribute(getModelElement_Description(), ecorePackage.getEString(), "description", null, 0, 1, ModelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
979
980 initEClass(customDtoEClass, CustomDto.class, "CustomDto", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
981 initEReference(getCustomDto_Properties(), this.getDtoProperty(), this.getDtoProperty_CustomDto(), "properties", null, 0, -1, CustomDto.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
982
983 initEClass(dtoIntegerPropertyEClass, DtoIntegerProperty.class, "DtoIntegerProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
984 initEAttribute(getDtoIntegerProperty_DefaultValue(), ecorePackage.getEIntegerObject(), "defaultValue", null, 0, 1, DtoIntegerProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
985
986 initEClass(dtoDecimalPropertyEClass, DtoDecimalProperty.class, "DtoDecimalProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
987 initEAttribute(getDtoDecimalProperty_DefaultValue(), ecorePackage.getEBigDecimal(), "defaultValue", null, 0, 1, DtoDecimalProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
988
989 initEClass(dtoEnumerationPropertyEClass, DtoEnumerationProperty.class, "DtoEnumerationProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
990 initEReference(getDtoEnumerationProperty_Type(), this.getEnumerationDto(), null, "type", null, 0, 1, DtoEnumerationProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
991 initEAttribute(getDtoEnumerationProperty_DefaultValueAsString(), ecorePackage.getEString(), "defaultValueAsString", null, 0, 1, DtoEnumerationProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
992
993 initEClass(dtoDateTimePropertyEClass, DtoDateTimeProperty.class, "DtoDateTimeProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
994 initEAttribute(getDtoDateTimeProperty_DefaultValue(), ecorePackage.getEString(), "defaultValue", null, 0, 1, DtoDateTimeProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
995
996 initEClass(businessClassPropertyReferenceEClass, BusinessClassPropertyReference.class, "BusinessClassPropertyReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
997 initEReference(getBusinessClassPropertyReference_Dto(), this.getBusinessClassDto(), this.getBusinessClassDto_PropertyReferences(), "dto", null, 0, 1, BusinessClassPropertyReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
998
999 initEClass(businessClassAssociationRoleReferenceEClass, BusinessClassAssociationRoleReference.class, "BusinessClassAssociationRoleReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1000 initEReference(getBusinessClassAssociationRoleReference_Dto(), this.getBusinessClassDto(), this.getBusinessClassDto_AssociationReferences(), "dto", null, 0, 1, BusinessClassAssociationRoleReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1001 initEReference(getBusinessClassAssociationRoleReference_DtoType(), this.getDto(), null, "dtoType", null, 0, 1, BusinessClassAssociationRoleReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1002
1003 initEClass(dtoAssociationRolePropertyEClass, DtoAssociationRoleProperty.class, "DtoAssociationRoleProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1004 initEReference(getDtoAssociationRoleProperty_DtoType(), this.getDto(), null, "dtoType", null, 0, 1, DtoAssociationRoleProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1005 initEAttribute(getDtoAssociationRoleProperty_Ordered(), ecorePackage.getEBoolean(), "ordered", "false", 0, 1, DtoAssociationRoleProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1006 initEAttribute(getDtoAssociationRoleProperty_Multiplicity(), this.getMultiplicity(), "multiplicity", "ONE", 0, 1, DtoAssociationRoleProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1007
1008 initEClass(externalReferenceEClass, ExternalReference.class, "ExternalReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
1009 initEAttribute(getExternalReference_Modelname(), ecorePackage.getEString(), "modelname", "", 0, 1, ExternalReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1010 initEReference(getExternalReference_DatacontractModel(), this.getDataContractModel(), this.getDataContractModel_ExternalReferences(), "datacontractModel", null, 0, 1, ExternalReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1011 initEAttribute(getExternalReference_Keyword(), ecorePackage.getEString(), "keyword", null, 0, 1, ExternalReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
1012
1013
1014 initEEnum(multiplicityEEnum, Multiplicity.class, "Multiplicity");
1015 addEEnumLiteral(multiplicityEEnum, Multiplicity.NONE);
1016 addEEnumLiteral(multiplicityEEnum, Multiplicity.ONE);
1017 addEEnumLiteral(multiplicityEEnum, Multiplicity.MANY);
1018
1019
1020 createResource(eNS_URI);
1021 }
1022
1023 }