1 17 package org.eclipse.emf.ecore.impl; 18 19 20 import java.math.BigDecimal ; 21 import java.math.BigInteger ; 22 import java.util.Date ; 23 import java.util.Map ; 24 25 import org.eclipse.emf.common.util.DiagnosticChain; 26 import org.eclipse.emf.common.util.EList; 27 import org.eclipse.emf.common.util.Enumerator; 28 import org.eclipse.emf.common.util.TreeIterator; 29 import org.eclipse.emf.ecore.EAnnotation; 30 import org.eclipse.emf.ecore.EAttribute; 31 import org.eclipse.emf.ecore.EClass; 32 import org.eclipse.emf.ecore.EClassifier; 33 import org.eclipse.emf.ecore.EDataType; 34 import org.eclipse.emf.ecore.EEnum; 35 import org.eclipse.emf.ecore.EEnumLiteral; 36 import org.eclipse.emf.ecore.EFactory; 37 import org.eclipse.emf.ecore.EModelElement; 38 import org.eclipse.emf.ecore.ENamedElement; 39 import org.eclipse.emf.ecore.EObject; 40 import org.eclipse.emf.ecore.EOperation; 41 import org.eclipse.emf.ecore.EPackage; 42 import org.eclipse.emf.ecore.EParameter; 43 import org.eclipse.emf.ecore.EReference; 44 import org.eclipse.emf.ecore.EStructuralFeature; 45 import org.eclipse.emf.ecore.ETypedElement; 46 import org.eclipse.emf.ecore.EcoreFactory; 47 import org.eclipse.emf.ecore.EcorePackage; 48 import org.eclipse.emf.ecore.resource.Resource; 49 import org.eclipse.emf.ecore.resource.ResourceSet; 50 import org.eclipse.emf.ecore.util.FeatureMap; 51 52 53 59 public class EcorePackageImpl extends EPackageImpl implements EcorePackage 60 { 61 76 private EcorePackageImpl() 77 { 78 super(eNS_URI, EcoreFactory.eINSTANCE); 79 } 80 81 86 private static boolean isInited = false; 87 88 93 private EClass eAttributeEClass = null; 94 95 100 private EClass eAnnotationEClass = null; 101 102 107 private EClass eClassEClass = null; 108 109 114 private EClass eDataTypeEClass = null; 115 116 121 private EClass eEnumEClass = null; 122 123 128 private EClass eEnumLiteralEClass = null; 129 130 135 private EClass eFactoryEClass = null; 136 137 142 private EClass eClassifierEClass = null; 143 144 149 private EClass eModelElementEClass = null; 150 151 156 private EClass eNamedElementEClass = null; 157 158 163 private EClass eObjectEClass = null; 164 165 170 private EClass eOperationEClass = null; 171 172 177 private EClass ePackageEClass = null; 178 179 184 private EClass eParameterEClass = null; 185 186 191 private EClass eReferenceEClass = null; 192 193 198 private EClass eStructuralFeatureEClass = null; 199 200 205 private EClass eTypedElementEClass = null; 206 207 212 private EClass eStringToStringMapEntryEClass = null; 213 214 219 private EDataType eBigDecimalEDataType = null; 220 221 226 private EDataType eBigIntegerEDataType = null; 227 228 233 private EDataType eBooleanObjectEDataType = null; 234 235 240 private EDataType eCharacterObjectEDataType = null; 241 242 247 private EDataType eDateEDataType = null; 248 249 254 private EDataType eDiagnosticChainEDataType = null; 255 256 261 private EDataType eDoubleObjectEDataType = null; 262 263 268 private EDataType eFloatObjectEDataType = null; 269 270 275 private EDataType eIntegerObjectEDataType = null; 276 277 282 private EDataType eBooleanEDataType = null; 283 284 289 private EDataType eByteObjectEDataType = null; 290 291 296 private EDataType eByteEDataType = null; 297 298 303 private EDataType eByteArrayEDataType = null; 304 305 310 private EDataType eCharEDataType = null; 311 312 317 private EDataType eDoubleEDataType = null; 318 319 324 private EDataType eFloatEDataType = null; 325 326 331 private EDataType eIntEDataType = null; 332 333 338 private EDataType eJavaClassEDataType = null; 339 340 345 private EDataType eJavaObjectEDataType = null; 346 347 352 private EDataType eLongObjectEDataType = null; 353 354 359 private EDataType eMapEDataType = null; 360 361 366 private EDataType eShortObjectEDataType = null; 367 368 373 private EDataType eLongEDataType = null; 374 375 380 private EDataType eShortEDataType = null; 381 382 387 private EDataType eTreeIteratorEDataType = null; 388 389 394 private EDataType eFeatureMapEntryEDataType = null; 395 396 401 private EDataType eEnumeratorEDataType = null; 402 403 408 private EDataType eFeatureMapEDataType = null; 409 410 415 private EDataType eStringEDataType = null; 416 417 422 private EDataType eeListEDataType = null; 423 424 429 private EDataType eResourceEDataType = null; 430 431 436 private EDataType eResourceSetEDataType = null; 437 438 460 public static EcorePackage init() 461 { 462 if (isInited) return (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); 463 464 EcorePackageImpl theEcorePackage = (EcorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof EcorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new EcorePackageImpl()); 466 467 isInited = true; 468 469 theEcorePackage.createPackageContents(); 471 472 theEcorePackage.initializePackageContents(); 474 475 return theEcorePackage; 476 } 477 478 public static boolean internalBootstrap() 479 { 480 ((EPackageImpl)EcorePackage.eINSTANCE).freeze(); 481 return true; 482 } 483 484 489 public EClass getEClass() 490 { 491 return eClassEClass; 492 } 493 494 499 public EAttribute getEClass_Abstract() 500 { 501 return (EAttribute)eClassEClass.getEStructuralFeatures().get(0); 502 } 503 504 509 public EAttribute getEClass_Interface() 510 { 511 return (EAttribute)eClassEClass.getEStructuralFeatures().get(1); 512 } 513 514 519 public EReference getEClass_ESuperTypes() 520 { 521 return (EReference)eClassEClass.getEStructuralFeatures().get(2); 522 } 523 524 529 public EReference getEClass_EOperations() 530 { 531 return (EReference)eClassEClass.getEStructuralFeatures().get(3); 532 } 533 534 539 public EReference getEClass_EAllAttributes() 540 { 541 return (EReference)eClassEClass.getEStructuralFeatures().get(4); 542 } 543 544 549 public EReference getEClass_EAllReferences() 550 { 551 return (EReference)eClassEClass.getEStructuralFeatures().get(5); 552 } 553 554 559 public EReference getEClass_EReferences() 560 { 561 return (EReference)eClassEClass.getEStructuralFeatures().get(6); 562 } 563 564 569 public EReference getEClass_EAttributes() 570 { 571 return (EReference)eClassEClass.getEStructuralFeatures().get(7); 572 } 573 574 579 public EReference getEClass_EAllContainments() 580 { 581 return (EReference)eClassEClass.getEStructuralFeatures().get(8); 582 } 583 584 589 public EReference getEClass_EAllOperations() 590 { 591 return (EReference)eClassEClass.getEStructuralFeatures().get(9); 592 } 593 594 599 public EReference getEClass_EAllStructuralFeatures() 600 { 601 return (EReference)eClassEClass.getEStructuralFeatures().get(10); 602 } 603 604 609 public EReference getEClass_EAllSuperTypes() 610 { 611 return (EReference)eClassEClass.getEStructuralFeatures().get(11); 612 } 613 614 619 public EReference getEClass_EIDAttribute() 620 { 621 return (EReference)eClassEClass.getEStructuralFeatures().get(12); 622 } 623 624 629 public EReference getEClass_EStructuralFeatures() 630 { 631 return (EReference)eClassEClass.getEStructuralFeatures().get(13); 632 } 633 634 639 public EClass getEDataType() 640 { 641 return eDataTypeEClass; 642 } 643 644 649 public EAttribute getEDataType_Serializable() 650 { 651 return (EAttribute)eDataTypeEClass.getEStructuralFeatures().get(0); 652 } 653 654 659 public EClass getEClassifier() 660 { 661 return eClassifierEClass; 662 } 663 664 669 public EAttribute getEClassifier_InstanceClassName() 670 { 671 return (EAttribute)eClassifierEClass.getEStructuralFeatures().get(0); 672 } 673 674 679 public EAttribute getEClassifier_InstanceClass() 680 { 681 return (EAttribute)eClassifierEClass.getEStructuralFeatures().get(1); 682 } 683 684 689 public EAttribute getEClassifier_DefaultValue() 690 { 691 return (EAttribute)eClassifierEClass.getEStructuralFeatures().get(2); 692 } 693 694 699 public EReference getEClassifier_EPackage() 700 { 701 return (EReference)eClassifierEClass.getEStructuralFeatures().get(3); 702 } 703 704 709 public EClass getENamedElement() 710 { 711 return eNamedElementEClass; 712 } 713 714 719 public EAttribute getENamedElement_Name() 720 { 721 return (EAttribute)eNamedElementEClass.getEStructuralFeatures().get(0); 722 } 723 724 729 public EClass getEOperation() 730 { 731 return eOperationEClass; 732 } 733 734 739 public EReference getEOperation_EContainingClass() 740 { 741 return (EReference)eOperationEClass.getEStructuralFeatures().get(0); 742 } 743 744 749 public EReference getEOperation_EParameters() 750 { 751 return (EReference)eOperationEClass.getEStructuralFeatures().get(1); 752 } 753 754 759 public EReference getEOperation_EExceptions() 760 { 761 return (EReference)eOperationEClass.getEStructuralFeatures().get(2); 762 } 763 764 769 public EClass getEModelElement() 770 { 771 return eModelElementEClass; 772 } 773 774 779 public EReference getEModelElement_EAnnotations() 780 { 781 return (EReference)eModelElementEClass.getEStructuralFeatures().get(0); 782 } 783 784 789 public EClass getEStructuralFeature() 790 { 791 return eStructuralFeatureEClass; 792 } 793 794 799 public EAttribute getEStructuralFeature_Transient() 800 { 801 return (EAttribute)eStructuralFeatureEClass.getEStructuralFeatures().get(2); 802 } 803 804 809 public EAttribute getEStructuralFeature_Volatile() 810 { 811 return (EAttribute)eStructuralFeatureEClass.getEStructuralFeatures().get(1); 812 } 813 814 819 public EAttribute getEStructuralFeature_Changeable() 820 { 821 return (EAttribute)eStructuralFeatureEClass.getEStructuralFeatures().get(0); 822 } 823 824 829 public EAttribute getEStructuralFeature_DefaultValueLiteral() 830 { 831 return (EAttribute)eStructuralFeatureEClass.getEStructuralFeatures().get(3); 832 } 833 834 839 public EAttribute getEStructuralFeature_DefaultValue() 840 { 841 return (EAttribute)eStructuralFeatureEClass.getEStructuralFeatures().get(4); 842 } 843 844 849 public EAttribute getEStructuralFeature_Unsettable() 850 { 851 return (EAttribute)eStructuralFeatureEClass.getEStructuralFeatures().get(5); 852 } 853 854 859 public EAttribute getEStructuralFeature_Derived() 860 { 861 return (EAttribute)eStructuralFeatureEClass.getEStructuralFeatures().get(6); 862 } 863 864 869 public EReference getEStructuralFeature_EContainingClass() 870 { 871 return (EReference)eStructuralFeatureEClass.getEStructuralFeatures().get(7); 872 } 873 874 877 public EAttribute getEStructuralFeature_Unique() 878 { 879 return getETypedElement_Unique(); 880 } 881 882 885 public EAttribute getEStructuralFeature_LowerBound() 886 { 887 return getETypedElement_LowerBound(); 888 } 889 890 893 public EAttribute getEStructuralFeature_UpperBound() 894 { 895 return getETypedElement_UpperBound(); 896 } 897 898 901 public EAttribute getEStructuralFeature_Many() 902 { 903 return getETypedElement_Many(); 904 } 905 906 909 public EAttribute getEStructuralFeature_Required() 910 { 911 return getETypedElement_Required(); 912 } 913 914 919 public EClass getEAttribute() 920 { 921 return eAttributeEClass; 922 } 923 924 929 public EAttribute getEAttribute_ID() 930 { 931 return (EAttribute)eAttributeEClass.getEStructuralFeatures().get(0); 932 } 933 934 939 public EReference getEAttribute_EAttributeType() 940 { 941 return (EReference)eAttributeEClass.getEStructuralFeatures().get(1); 942 } 943 944 949 public EClass getEAnnotation() 950 { 951 return eAnnotationEClass; 952 } 953 954 959 public EAttribute getEAnnotation_Source() 960 { 961 return (EAttribute)eAnnotationEClass.getEStructuralFeatures().get(0); 962 } 963 964 969 public EReference getEAnnotation_Details() 970 { 971 return (EReference)eAnnotationEClass.getEStructuralFeatures().get(1); 972 } 973 974 979 public EReference getEAnnotation_EModelElement() 980 { 981 return (EReference)eAnnotationEClass.getEStructuralFeatures().get(2); 982 } 983 984 989 public EReference getEAnnotation_Contents() 990 { 991 return (EReference)eAnnotationEClass.getEStructuralFeatures().get(3); 992 } 993 994 999 public EReference getEAnnotation_References() 1000 { 1001 return (EReference)eAnnotationEClass.getEStructuralFeatures().get(4); 1002 } 1003 1004 1009 public EClass getEReference() 1010 { 1011 return eReferenceEClass; 1012 } 1013 1014 1019 public EAttribute getEReference_Containment() 1020 { 1021 return (EAttribute)eReferenceEClass.getEStructuralFeatures().get(0); 1022 } 1023 1024 1029 public EAttribute getEReference_Container() 1030 { 1031 return (EAttribute)eReferenceEClass.getEStructuralFeatures().get(1); 1032 } 1033 1034 1039 public EAttribute getEReference_ResolveProxies() 1040 { 1041 return (EAttribute)eReferenceEClass.getEStructuralFeatures().get(2); 1042 } 1043 1044 1049 public EReference getEReference_EOpposite() 1050 { 1051 return (EReference)eReferenceEClass.getEStructuralFeatures().get(3); 1052 } 1053 1054 1059 public EReference getEReference_EReferenceType() 1060 { 1061 return (EReference)eReferenceEClass.getEStructuralFeatures().get(4); 1062 } 1063 1064 1069 public EDataType getEEList() 1070 { 1071 return eeListEDataType; 1072 } 1073 1074 1079 public EDataType getEResource() 1080 { 1081 return eResourceEDataType; 1082 } 1083 1084 1089 public EDataType getEResourceSet() 1090 { 1091 return eResourceSetEDataType; 1092 } 1093 1094 1099 public EDataType getEBooleanObject() 1100 { 1101 return eBooleanObjectEDataType; 1102 } 1103 1104 1109 public EDataType getECharacterObject() 1110 { 1111 return eCharacterObjectEDataType; 1112 } 1113 1114 1119 public EDataType getEDate() 1120 { 1121 return eDateEDataType; 1122 } 1123 1124 1129 public EDataType getEDiagnosticChain() 1130 { 1131 return eDiagnosticChainEDataType; 1132 } 1133 1134 1139 public EDataType getEDoubleObject() 1140 { 1141 return eDoubleObjectEDataType; 1142 } 1143 1144 1149 public EDataType getEFloatObject() 1150 { 1151 return eFloatObjectEDataType; 1152 } 1153 1154 1159 public EDataType getEIntegerObject() 1160 { 1161 return eIntegerObjectEDataType; 1162 } 1163 1164 1169 public EClass getETypedElement() 1170 { 1171 return eTypedElementEClass; 1172 } 1173 1174 1179 public EAttribute getETypedElement_Ordered() 1180 { 1181 return (EAttribute)eTypedElementEClass.getEStructuralFeatures().get(0); 1182 } 1183 1184 1189 public EAttribute getETypedElement_Unique() 1190 { 1191 return (EAttribute)eTypedElementEClass.getEStructuralFeatures().get(1); 1192 } 1193 1194 1199 public EAttribute getETypedElement_LowerBound() 1200 { 1201 return (EAttribute)eTypedElementEClass.getEStructuralFeatures().get(2); 1202 } 1203 1204 1209 public EAttribute getETypedElement_UpperBound() 1210 { 1211 return (EAttribute)eTypedElementEClass.getEStructuralFeatures().get(3); 1212 } 1213 1214 1219 public EAttribute getETypedElement_Many() 1220 { 1221 return (EAttribute)eTypedElementEClass.getEStructuralFeatures().get(4); 1222 } 1223 1224 1229 public EAttribute getETypedElement_Required() 1230 { 1231 return (EAttribute)eTypedElementEClass.getEStructuralFeatures().get(5); 1232 } 1233 1234 1239 public EReference getETypedElement_EType() 1240 { 1241 return (EReference)eTypedElementEClass.getEStructuralFeatures().get(6); 1242 } 1243 1244 1249 public EClass getEStringToStringMapEntry() 1250 { 1251 return eStringToStringMapEntryEClass; 1252 } 1253 1254 1259 public EAttribute getEStringToStringMapEntry_Key() 1260 { 1261 return (EAttribute)eStringToStringMapEntryEClass.getEStructuralFeatures().get(0); 1262 } 1263 1264 1269 public EAttribute getEStringToStringMapEntry_Value() 1270 { 1271 return (EAttribute)eStringToStringMapEntryEClass.getEStructuralFeatures().get(1); 1272 } 1273 1274 1279 public EDataType getEBigDecimal() 1280 { 1281 return eBigDecimalEDataType; 1282 } 1283 1284 1289 public EDataType getEBigInteger() 1290 { 1291 return eBigIntegerEDataType; 1292 } 1293 1294 1299 public EClass getEParameter() 1300 { 1301 return eParameterEClass; 1302 } 1303 1304 1309 public EReference getEParameter_EOperation() 1310 { 1311 return (EReference)eParameterEClass.getEStructuralFeatures().get(0); 1312 } 1313 1314 1319 public EClass getEObject() 1320 { 1321 return eObjectEClass; 1322 } 1323 1324 1329 public EClass getEPackage() 1330 { 1331 return ePackageEClass; 1332 } 1333 1334 1339 public EAttribute getEPackage_NsURI() 1340 { 1341 return (EAttribute)ePackageEClass.getEStructuralFeatures().get(0); 1342 } 1343 1344 1349 public EAttribute getEPackage_NsPrefix() 1350 { 1351 return (EAttribute)ePackageEClass.getEStructuralFeatures().get(1); 1352 } 1353 1354 1359 public EReference getEPackage_EFactoryInstance() 1360 { 1361 return (EReference)ePackageEClass.getEStructuralFeatures().get(2); 1362 } 1363 1364 1369 public EReference getEPackage_EClassifiers() 1370 { 1371 return (EReference)ePackageEClass.getEStructuralFeatures().get(3); 1372 } 1373 1374 1379 public EReference getEPackage_ESubpackages() 1380 { 1381 return (EReference)ePackageEClass.getEStructuralFeatures().get(4); 1382 } 1383 1384 1389 public EReference getEPackage_ESuperPackage() 1390 { 1391 return (EReference)ePackageEClass.getEStructuralFeatures().get(5); 1392 } 1393 1394 1399 public EClass getEEnum() 1400 { 1401 return eEnumEClass; 1402 } 1403 1404 1409 public EReference getEEnum_ELiterals() 1410 { 1411 return (EReference)eEnumEClass.getEStructuralFeatures().get(0); 1412 } 1413 1414 1419 public EClass getEEnumLiteral() 1420 { 1421 return eEnumLiteralEClass; 1422 } 1423 1424 1429 public EAttribute getEEnumLiteral_Value() 1430 { 1431 return (EAttribute)eEnumLiteralEClass.getEStructuralFeatures().get(0); 1432 } 1433 1434 1439 public EAttribute getEEnumLiteral_Instance() 1440 { 1441 return (EAttribute)eEnumLiteralEClass.getEStructuralFeatures().get(1); 1442 } 1443 1444 1449 public EReference getEEnumLiteral_EEnum() 1450 { 1451 return (EReference)eEnumLiteralEClass.getEStructuralFeatures().get(2); 1452 } 1453 1454 1459 public EDataType getEBoolean() 1460 { 1461 return eBooleanEDataType; 1462 } 1463 1464 1469 public EDataType getEByteObject() 1470 { 1471 return eByteObjectEDataType; 1472 } 1473 1474 1479 public EDataType getEJavaClass() 1480 { 1481 return eJavaClassEDataType; 1482 } 1483 1484 1489 public EDataType getEJavaObject() 1490 { 1491 return eJavaObjectEDataType; 1492 } 1493 1494 1499 public EDataType getELongObject() 1500 { 1501 return eLongObjectEDataType; 1502 } 1503 1504 1509 public EDataType getEMap() 1510 { 1511 return eMapEDataType; 1512 } 1513 1514 1519 public EDataType getEShortObject() 1520 { 1521 return eShortObjectEDataType; 1522 } 1523 1524 1529 public EDataType getEString() 1530 { 1531 return eStringEDataType; 1532 } 1533 1534 1539 public EDataType getEInt() 1540 { 1541 return eIntEDataType; 1542 } 1543 1544 1549 public EDataType getEFloat() 1550 { 1551 return eFloatEDataType; 1552 } 1553 1554 1559 public EDataType getELong() 1560 { 1561 return eLongEDataType; 1562 } 1563 1564 1569 public EDataType getEDouble() 1570 { 1571 return eDoubleEDataType; 1572 } 1573 1574 1579 public EDataType getEShort() 1580 { 1581 return eShortEDataType; 1582 } 1583 1584 1589 public EDataType getETreeIterator() 1590 { 1591 return eTreeIteratorEDataType; 1592 } 1593 1594 1599 public EDataType getEFeatureMapEntry() 1600 { 1601 return eFeatureMapEntryEDataType; 1602 } 1603 1604 1609 public EDataType getEEnumerator() 1610 { 1611 return eEnumeratorEDataType; 1612 } 1613 1614 1619 public EDataType getEFeatureMap() 1620 { 1621 return eFeatureMapEDataType; 1622 } 1623 1624 1629 public EDataType getEChar() 1630 { 1631 return eCharEDataType; 1632 } 1633 1634 1639 public EDataType getEByte() 1640 { 1641 return eByteEDataType; 1642 } 1643 1644 1649 public EDataType getEByteArray() 1650 { 1651 return eByteArrayEDataType; 1652 } 1653 1654 1659 public EcoreFactory getEcoreFactory() 1660 { 1661 return (EcoreFactory)getEFactoryInstance(); 1662 } 1663 1664 1669 private boolean isCreated = false; 1670 1671 1678 public void createPackageContents() 1679 { 1680 if (isCreated) return; 1681 isCreated = true; 1682 1683 eAttributeEClass = createEClass(EATTRIBUTE); 1685 createEAttribute(eAttributeEClass, EATTRIBUTE__ID); 1686 createEReference(eAttributeEClass, EATTRIBUTE__EATTRIBUTE_TYPE); 1687 1688 eAnnotationEClass = createEClass(EANNOTATION); 1689 createEAttribute(eAnnotationEClass, EANNOTATION__SOURCE); 1690 createEReference(eAnnotationEClass, EANNOTATION__DETAILS); 1691 createEReference(eAnnotationEClass, EANNOTATION__EMODEL_ELEMENT); 1692 createEReference(eAnnotationEClass, EANNOTATION__CONTENTS); 1693 createEReference(eAnnotationEClass, EANNOTATION__REFERENCES); 1694 1695 eClassEClass = createEClass(ECLASS); 1696 createEAttribute(eClassEClass, ECLASS__ABSTRACT); 1697 createEAttribute(eClassEClass, ECLASS__INTERFACE); 1698 createEReference(eClassEClass, ECLASS__ESUPER_TYPES); 1699 createEReference(eClassEClass, ECLASS__EOPERATIONS); 1700 createEReference(eClassEClass, ECLASS__EALL_ATTRIBUTES); 1701 createEReference(eClassEClass, ECLASS__EALL_REFERENCES); 1702 createEReference(eClassEClass, ECLASS__EREFERENCES); 1703 createEReference(eClassEClass, ECLASS__EATTRIBUTES); 1704 createEReference(eClassEClass, ECLASS__EALL_CONTAINMENTS); 1705 createEReference(eClassEClass, ECLASS__EALL_OPERATIONS); 1706 createEReference(eClassEClass, ECLASS__EALL_STRUCTURAL_FEATURES); 1707 createEReference(eClassEClass, ECLASS__EALL_SUPER_TYPES); 1708 createEReference(eClassEClass, ECLASS__EID_ATTRIBUTE); 1709 createEReference(eClassEClass, ECLASS__ESTRUCTURAL_FEATURES); 1710 1711 eClassifierEClass = createEClass(ECLASSIFIER); 1712 createEAttribute(eClassifierEClass, ECLASSIFIER__INSTANCE_CLASS_NAME); 1713 createEAttribute(eClassifierEClass, ECLASSIFIER__INSTANCE_CLASS); 1714 createEAttribute(eClassifierEClass, ECLASSIFIER__DEFAULT_VALUE); 1715 createEReference(eClassifierEClass, ECLASSIFIER__EPACKAGE); 1716 1717 eDataTypeEClass = createEClass(EDATA_TYPE); 1718 createEAttribute(eDataTypeEClass, EDATA_TYPE__SERIALIZABLE); 1719 1720 eEnumEClass = createEClass(EENUM); 1721 createEReference(eEnumEClass, EENUM__ELITERALS); 1722 1723 eEnumLiteralEClass = createEClass(EENUM_LITERAL); 1724 createEAttribute(eEnumLiteralEClass, EENUM_LITERAL__VALUE); 1725 createEAttribute(eEnumLiteralEClass, EENUM_LITERAL__INSTANCE); 1726 createEReference(eEnumLiteralEClass, EENUM_LITERAL__EENUM); 1727 1728 eFactoryEClass = createEClass(EFACTORY); 1729 createEReference(eFactoryEClass, EFACTORY__EPACKAGE); 1730 1731 eModelElementEClass = createEClass(EMODEL_ELEMENT); 1732 createEReference(eModelElementEClass, EMODEL_ELEMENT__EANNOTATIONS); 1733 1734 eNamedElementEClass = createEClass(ENAMED_ELEMENT); 1735 createEAttribute(eNamedElementEClass, ENAMED_ELEMENT__NAME); 1736 1737 eObjectEClass = createEClass(EOBJECT); 1738 1739 eOperationEClass = createEClass(EOPERATION); 1740 createEReference(eOperationEClass, EOPERATION__ECONTAINING_CLASS); 1741 createEReference(eOperationEClass, EOPERATION__EPARAMETERS); 1742 createEReference(eOperationEClass, EOPERATION__EEXCEPTIONS); 1743 1744 ePackageEClass = createEClass(EPACKAGE); 1745 createEAttribute(ePackageEClass, EPACKAGE__NS_URI); 1746 createEAttribute(ePackageEClass, EPACKAGE__NS_PREFIX); 1747 createEReference(ePackageEClass, EPACKAGE__EFACTORY_INSTANCE); 1748 createEReference(ePackageEClass, EPACKAGE__ECLASSIFIERS); 1749 createEReference(ePackageEClass, EPACKAGE__ESUBPACKAGES); 1750 createEReference(ePackageEClass, EPACKAGE__ESUPER_PACKAGE); 1751 1752 eParameterEClass = createEClass(EPARAMETER); 1753 createEReference(eParameterEClass, EPARAMETER__EOPERATION); 1754 1755 eReferenceEClass = createEClass(EREFERENCE); 1756 createEAttribute(eReferenceEClass, EREFERENCE__CONTAINMENT); 1757 createEAttribute(eReferenceEClass, EREFERENCE__CONTAINER); 1758 createEAttribute(eReferenceEClass, EREFERENCE__RESOLVE_PROXIES); 1759 createEReference(eReferenceEClass, EREFERENCE__EOPPOSITE); 1760 createEReference(eReferenceEClass, EREFERENCE__EREFERENCE_TYPE); 1761 1762 eStructuralFeatureEClass = createEClass(ESTRUCTURAL_FEATURE); 1763 createEAttribute(eStructuralFeatureEClass, ESTRUCTURAL_FEATURE__CHANGEABLE); 1764 createEAttribute(eStructuralFeatureEClass, ESTRUCTURAL_FEATURE__VOLATILE); 1765 createEAttribute(eStructuralFeatureEClass, ESTRUCTURAL_FEATURE__TRANSIENT); 1766 createEAttribute(eStructuralFeatureEClass, ESTRUCTURAL_FEATURE__DEFAULT_VALUE_LITERAL); 1767 createEAttribute(eStructuralFeatureEClass, ESTRUCTURAL_FEATURE__DEFAULT_VALUE); 1768 createEAttribute(eStructuralFeatureEClass, ESTRUCTURAL_FEATURE__UNSETTABLE); 1769 createEAttribute(eStructuralFeatureEClass, ESTRUCTURAL_FEATURE__DERIVED); 1770 createEReference(eStructuralFeatureEClass, ESTRUCTURAL_FEATURE__ECONTAINING_CLASS); 1771 1772 eTypedElementEClass = createEClass(ETYPED_ELEMENT); 1773 createEAttribute(eTypedElementEClass, ETYPED_ELEMENT__ORDERED); 1774 createEAttribute(eTypedElementEClass, ETYPED_ELEMENT__UNIQUE); 1775 createEAttribute(eTypedElementEClass, ETYPED_ELEMENT__LOWER_BOUND); 1776 createEAttribute(eTypedElementEClass, ETYPED_ELEMENT__UPPER_BOUND); 1777 createEAttribute(eTypedElementEClass, ETYPED_ELEMENT__MANY); 1778 createEAttribute(eTypedElementEClass, ETYPED_ELEMENT__REQUIRED); 1779 createEReference(eTypedElementEClass, ETYPED_ELEMENT__ETYPE); 1780 1781 eStringToStringMapEntryEClass = createEClass(ESTRING_TO_STRING_MAP_ENTRY); 1782 createEAttribute(eStringToStringMapEntryEClass, ESTRING_TO_STRING_MAP_ENTRY__KEY); 1783 createEAttribute(eStringToStringMapEntryEClass, ESTRING_TO_STRING_MAP_ENTRY__VALUE); 1784 1785 eBigDecimalEDataType = createEDataType(EBIG_DECIMAL); 1787 eBigIntegerEDataType = createEDataType(EBIG_INTEGER); 1788 eBooleanEDataType = createEDataType(EBOOLEAN); 1789 eBooleanObjectEDataType = createEDataType(EBOOLEAN_OBJECT); 1790 eByteEDataType = createEDataType(EBYTE); 1791 eByteArrayEDataType = createEDataType(EBYTE_ARRAY); 1792 eByteObjectEDataType = createEDataType(EBYTE_OBJECT); 1793 eCharEDataType = createEDataType(ECHAR); 1794 eCharacterObjectEDataType = createEDataType(ECHARACTER_OBJECT); 1795 eDateEDataType = createEDataType(EDATE); 1796 eDiagnosticChainEDataType = createEDataType(EDIAGNOSTIC_CHAIN); 1797 eDoubleEDataType = createEDataType(EDOUBLE); 1798 eDoubleObjectEDataType = createEDataType(EDOUBLE_OBJECT); 1799 eeListEDataType = createEDataType(EE_LIST); 1800 eEnumeratorEDataType = createEDataType(EENUMERATOR); 1801 eFeatureMapEDataType = createEDataType(EFEATURE_MAP); 1802 eFeatureMapEntryEDataType = createEDataType(EFEATURE_MAP_ENTRY); 1803 eFloatEDataType = createEDataType(EFLOAT); 1804 eFloatObjectEDataType = createEDataType(EFLOAT_OBJECT); 1805 eIntEDataType = createEDataType(EINT); 1806 eIntegerObjectEDataType = createEDataType(EINTEGER_OBJECT); 1807 eJavaClassEDataType = createEDataType(EJAVA_CLASS); 1808 eJavaObjectEDataType = createEDataType(EJAVA_OBJECT); 1809 eLongEDataType = createEDataType(ELONG); 1810 eLongObjectEDataType = createEDataType(ELONG_OBJECT); 1811 eMapEDataType = createEDataType(EMAP); 1812 eResourceEDataType = createEDataType(ERESOURCE); 1813 eResourceSetEDataType = createEDataType(ERESOURCE_SET); 1814 eShortEDataType = createEDataType(ESHORT); 1815 eShortObjectEDataType = createEDataType(ESHORT_OBJECT); 1816 eStringEDataType = createEDataType(ESTRING); 1817 eTreeIteratorEDataType = createEDataType(ETREE_ITERATOR); 1818 } 1819 1820 1825 private boolean isInitialized = false; 1826 1827 1834 public void initializePackageContents() 1835 { 1836 if (isInitialized) return; 1837 isInitialized = true; 1838 1839 setName(eNAME); 1841 setNsPrefix(eNS_PREFIX); 1842 setNsURI(eNS_URI); 1843 1844 eAttributeEClass.getESuperTypes().add(this.getEStructuralFeature()); 1846 eAnnotationEClass.getESuperTypes().add(this.getEModelElement()); 1847 eClassEClass.getESuperTypes().add(this.getEClassifier()); 1848 eClassifierEClass.getESuperTypes().add(this.getENamedElement()); 1849 eDataTypeEClass.getESuperTypes().add(this.getEClassifier()); 1850 eEnumEClass.getESuperTypes().add(this.getEDataType()); 1851 eEnumLiteralEClass.getESuperTypes().add(this.getENamedElement()); 1852 eFactoryEClass.getESuperTypes().add(this.getEModelElement()); 1853 eModelElementEClass.getESuperTypes().add(this.getEObject()); 1854 eNamedElementEClass.getESuperTypes().add(this.getEModelElement()); 1855 eOperationEClass.getESuperTypes().add(this.getETypedElement()); 1856 ePackageEClass.getESuperTypes().add(this.getENamedElement()); 1857 eParameterEClass.getESuperTypes().add(this.getETypedElement()); 1858 eReferenceEClass.getESuperTypes().add(this.getEStructuralFeature()); 1859 eStructuralFeatureEClass.getESuperTypes().add(this.getETypedElement()); 1860 eTypedElementEClass.getESuperTypes().add(this.getENamedElement()); 1861 1862 initEClass(eAttributeEClass, EAttribute.class, "EAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 1864 initEAttribute(getEAttribute_ID(), ecorePackage.getEBoolean(), "iD", null, 0, 1, EAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1865 initEReference(getEAttribute_EAttributeType(), this.getEDataType(), null, "eAttributeType", null, 1, 1, EAttribute.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); 1866 1867 initEClass(eAnnotationEClass, EAnnotation.class, "EAnnotation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 1868 initEAttribute(getEAnnotation_Source(), ecorePackage.getEString(), "source", null, 0, 1, EAnnotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1869 initEReference(getEAnnotation_Details(), this.getEStringToStringMapEntry(), null, "details", null, 0, -1, EAnnotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1870 initEReference(getEAnnotation_EModelElement(), this.getEModelElement(), this.getEModelElement_EAnnotations(), "eModelElement", null, 0, 1, EAnnotation.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1871 initEReference(getEAnnotation_Contents(), this.getEObject(), null, "contents", null, 0, -1, EAnnotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1872 initEReference(getEAnnotation_References(), this.getEObject(), null, "references", null, 0, -1, EAnnotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1873 1874 initEClass(eClassEClass, EClass.class, "EClass", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 1875 initEAttribute(getEClass_Abstract(), ecorePackage.getEBoolean(), "abstract", null, 0, 1, EClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1876 initEAttribute(getEClass_Interface(), ecorePackage.getEBoolean(), "interface", null, 0, 1, EClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1877 initEReference(getEClass_ESuperTypes(), this.getEClass(), null, "eSuperTypes", null, 0, -1, EClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1878 initEReference(getEClass_EOperations(), this.getEOperation(), this.getEOperation_EContainingClass(), "eOperations", null, 0, -1, EClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1879 initEReference(getEClass_EAllAttributes(), this.getEAttribute(), null, "eAllAttributes", null, 0, -1, EClass.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); 1880 initEReference(getEClass_EAllReferences(), this.getEReference(), null, "eAllReferences", null, 0, -1, EClass.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); 1881 initEReference(getEClass_EReferences(), this.getEReference(), null, "eReferences", null, 0, -1, EClass.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); 1882 initEReference(getEClass_EAttributes(), this.getEAttribute(), null, "eAttributes", null, 0, -1, EClass.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); 1883 initEReference(getEClass_EAllContainments(), this.getEReference(), null, "eAllContainments", null, 0, -1, EClass.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); 1884 initEReference(getEClass_EAllOperations(), this.getEOperation(), null, "eAllOperations", null, 0, -1, EClass.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); 1885 initEReference(getEClass_EAllStructuralFeatures(), this.getEStructuralFeature(), null, "eAllStructuralFeatures", null, 0, -1, EClass.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); 1886 initEReference(getEClass_EAllSuperTypes(), this.getEClass(), null, "eAllSuperTypes", null, 0, -1, EClass.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); 1887 initEReference(getEClass_EIDAttribute(), this.getEAttribute(), null, "eIDAttribute", null, 0, 1, EClass.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); 1888 initEReference(getEClass_EStructuralFeatures(), this.getEStructuralFeature(), this.getEStructuralFeature_EContainingClass(), "eStructuralFeatures", null, 0, -1, EClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1889 1890 EOperation op = addEOperation(eClassEClass, ecorePackage.getEBoolean(), "isSuperTypeOf"); 1891 addEParameter(op, this.getEClass(), "someClass"); 1892 1893 addEOperation(eClassEClass, ecorePackage.getEInt(), "getFeatureCount"); 1894 1895 op = addEOperation(eClassEClass, this.getEStructuralFeature(), "getEStructuralFeature"); 1896 addEParameter(op, ecorePackage.getEInt(), "featureID"); 1897 1898 op = addEOperation(eClassEClass, ecorePackage.getEInt(), "getFeatureID"); 1899 addEParameter(op, this.getEStructuralFeature(), "feature"); 1900 1901 op = addEOperation(eClassEClass, this.getEStructuralFeature(), "getEStructuralFeature"); 1902 addEParameter(op, ecorePackage.getEString(), "featureName"); 1903 1904 initEClass(eClassifierEClass, EClassifier.class, "EClassifier", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 1905 initEAttribute(getEClassifier_InstanceClassName(), ecorePackage.getEString(), "instanceClassName", null, 0, 1, EClassifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1906 initEAttribute(getEClassifier_InstanceClass(), this.getEJavaClass(), "instanceClass", null, 0, 1, EClassifier.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1907 initEAttribute(getEClassifier_DefaultValue(), this.getEJavaObject(), "defaultValue", null, 0, 1, EClassifier.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1908 initEReference(getEClassifier_EPackage(), this.getEPackage(), this.getEPackage_EClassifiers(), "ePackage", null, 0, 1, EClassifier.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1909 1910 op = addEOperation(eClassifierEClass, ecorePackage.getEBoolean(), "isInstance"); 1911 addEParameter(op, this.getEJavaObject(), "object"); 1912 1913 addEOperation(eClassifierEClass, ecorePackage.getEInt(), "getClassifierID"); 1914 1915 initEClass(eDataTypeEClass, EDataType.class, "EDataType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 1916 initEAttribute(getEDataType_Serializable(), ecorePackage.getEBoolean(), "serializable", "true", 0, 1, EDataType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1917 1918 initEClass(eEnumEClass, EEnum.class, "EEnum", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 1919 initEReference(getEEnum_ELiterals(), this.getEEnumLiteral(), this.getEEnumLiteral_EEnum(), "eLiterals", null, 0, -1, EEnum.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1920 1921 op = addEOperation(eEnumEClass, this.getEEnumLiteral(), "getEEnumLiteral"); 1922 addEParameter(op, ecorePackage.getEString(), "name"); 1923 1924 op = addEOperation(eEnumEClass, this.getEEnumLiteral(), "getEEnumLiteral"); 1925 addEParameter(op, ecorePackage.getEInt(), "value"); 1926 1927 initEClass(eEnumLiteralEClass, EEnumLiteral.class, "EEnumLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 1928 initEAttribute(getEEnumLiteral_Value(), ecorePackage.getEInt(), "value", null, 0, 1, EEnumLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1929 initEAttribute(getEEnumLiteral_Instance(), this.getEEnumerator(), "instance", null, 0, 1, EEnumLiteral.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1930 initEReference(getEEnumLiteral_EEnum(), this.getEEnum(), this.getEEnum_ELiterals(), "eEnum", null, 0, 1, EEnumLiteral.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1931 1932 initEClass(eFactoryEClass, EFactory.class, "EFactory", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 1933 initEReference(getEFactory_EPackage(), this.getEPackage(), this.getEPackage_EFactoryInstance(), "ePackage", null, 1, 1, EFactory.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1934 1935 op = addEOperation(eFactoryEClass, this.getEObject(), "create"); 1936 addEParameter(op, this.getEClass(), "eClass"); 1937 1938 op = addEOperation(eFactoryEClass, this.getEJavaObject(), "createFromString"); 1939 addEParameter(op, this.getEDataType(), "eDataType"); 1940 addEParameter(op, ecorePackage.getEString(), "literalValue"); 1941 1942 op = addEOperation(eFactoryEClass, ecorePackage.getEString(), "convertToString"); 1943 addEParameter(op, this.getEDataType(), "eDataType"); 1944 addEParameter(op, this.getEJavaObject(), "instanceValue"); 1945 1946 initEClass(eModelElementEClass, EModelElement.class, "EModelElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 1947 initEReference(getEModelElement_EAnnotations(), this.getEAnnotation(), this.getEAnnotation_EModelElement(), "eAnnotations", null, 0, -1, EModelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1948 1949 op = addEOperation(eModelElementEClass, this.getEAnnotation(), "getEAnnotation"); 1950 addEParameter(op, ecorePackage.getEString(), "source"); 1951 1952 initEClass(eNamedElementEClass, ENamedElement.class, "ENamedElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 1953 initEAttribute(getENamedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, ENamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1954 1955 initEClass(eObjectEClass, EObject.class, "EObject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 1956 1957 addEOperation(eObjectEClass, this.getEClass(), "eClass"); 1958 1959 addEOperation(eObjectEClass, ecorePackage.getEBoolean(), "eIsProxy"); 1960 1961 addEOperation(eObjectEClass, this.getEResource(), "eResource"); 1962 1963 addEOperation(eObjectEClass, this.getEObject(), "eContainer"); 1964 1965 addEOperation(eObjectEClass, this.getEStructuralFeature(), "eContainingFeature"); 1966 1967 addEOperation(eObjectEClass, this.getEReference(), "eContainmentFeature"); 1968 1969 addEOperation(eObjectEClass, this.getEEList(), "eContents"); 1970 1971 addEOperation(eObjectEClass, this.getETreeIterator(), "eAllContents"); 1972 1973 addEOperation(eObjectEClass, this.getEEList(), "eCrossReferences"); 1974 1975 op = addEOperation(eObjectEClass, this.getEJavaObject(), "eGet"); 1976 addEParameter(op, this.getEStructuralFeature(), "feature"); 1977 1978 op = addEOperation(eObjectEClass, this.getEJavaObject(), "eGet"); 1979 addEParameter(op, this.getEStructuralFeature(), "feature"); 1980 addEParameter(op, ecorePackage.getEBoolean(), "resolve"); 1981 1982 op = addEOperation(eObjectEClass, null, "eSet"); 1983 addEParameter(op, this.getEStructuralFeature(), "feature"); 1984 addEParameter(op, this.getEJavaObject(), "newValue"); 1985 1986 op = addEOperation(eObjectEClass, ecorePackage.getEBoolean(), "eIsSet"); 1987 addEParameter(op, this.getEStructuralFeature(), "feature"); 1988 1989 op = addEOperation(eObjectEClass, null, "eUnset"); 1990 addEParameter(op, this.getEStructuralFeature(), "feature"); 1991 1992 initEClass(eOperationEClass, EOperation.class, "EOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 1993 initEReference(getEOperation_EContainingClass(), this.getEClass(), this.getEClass_EOperations(), "eContainingClass", null, 0, 1, EOperation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1994 initEReference(getEOperation_EParameters(), this.getEParameter(), this.getEParameter_EOperation(), "eParameters", null, 0, -1, EOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1995 initEReference(getEOperation_EExceptions(), this.getEClassifier(), null, "eExceptions", null, 0, -1, EOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1996 1997 initEClass(ePackageEClass, EPackage.class, "EPackage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 1998 initEAttribute(getEPackage_NsURI(), ecorePackage.getEString(), "nsURI", null, 0, 1, EPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1999 initEAttribute(getEPackage_NsPrefix(), ecorePackage.getEString(), "nsPrefix", null, 0, 1, EPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2000 initEReference(getEPackage_EFactoryInstance(), this.getEFactory(), this.getEFactory_EPackage(), "eFactoryInstance", null, 1, 1, EPackage.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2001 initEReference(getEPackage_EClassifiers(), this.getEClassifier(), this.getEClassifier_EPackage(), "eClassifiers", null, 0, -1, EPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2002 initEReference(getEPackage_ESubpackages(), this.getEPackage(), this.getEPackage_ESuperPackage(), "eSubpackages", null, 0, -1, EPackage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2003 initEReference(getEPackage_ESuperPackage(), this.getEPackage(), this.getEPackage_ESubpackages(), "eSuperPackage", null, 0, 1, EPackage.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2004 2005 op = addEOperation(ePackageEClass, this.getEClassifier(), "getEClassifier"); 2006 addEParameter(op, ecorePackage.getEString(), "name"); 2007 2008 initEClass(eParameterEClass, EParameter.class, "EParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 2009 initEReference(getEParameter_EOperation(), this.getEOperation(), this.getEOperation_EParameters(), "eOperation", null, 0, 1, EParameter.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2010 2011 initEClass(eReferenceEClass, EReference.class, "EReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 2012 initEAttribute(getEReference_Containment(), ecorePackage.getEBoolean(), "containment", null, 0, 1, EReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2013 initEAttribute(getEReference_Container(), ecorePackage.getEBoolean(), "container", null, 0, 1, EReference.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2014 initEAttribute(getEReference_ResolveProxies(), ecorePackage.getEBoolean(), "resolveProxies", "true", 0, 1, EReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2015 initEReference(getEReference_EOpposite(), this.getEReference(), null, "eOpposite", null, 0, 1, EReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2016 initEReference(getEReference_EReferenceType(), this.getEClass(), null, "eReferenceType", null, 1, 1, EReference.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); 2017 2018 initEClass(eStructuralFeatureEClass, EStructuralFeature.class, "EStructuralFeature", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 2019 initEAttribute(getEStructuralFeature_Changeable(), ecorePackage.getEBoolean(), "changeable", "true", 0, 1, EStructuralFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2020 initEAttribute(getEStructuralFeature_Volatile(), ecorePackage.getEBoolean(), "volatile", null, 0, 1, EStructuralFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2021 initEAttribute(getEStructuralFeature_Transient(), ecorePackage.getEBoolean(), "transient", null, 0, 1, EStructuralFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2022 initEAttribute(getEStructuralFeature_DefaultValueLiteral(), ecorePackage.getEString(), "defaultValueLiteral", null, 0, 1, EStructuralFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2023 initEAttribute(getEStructuralFeature_DefaultValue(), this.getEJavaObject(), "defaultValue", null, 0, 1, EStructuralFeature.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2024 initEAttribute(getEStructuralFeature_Unsettable(), ecorePackage.getEBoolean(), "unsettable", null, 0, 1, EStructuralFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2025 initEAttribute(getEStructuralFeature_Derived(), ecorePackage.getEBoolean(), "derived", null, 0, 1, EStructuralFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2026 initEReference(getEStructuralFeature_EContainingClass(), this.getEClass(), this.getEClass_EStructuralFeatures(), "eContainingClass", null, 0, 1, EStructuralFeature.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2027 2028 addEOperation(eStructuralFeatureEClass, ecorePackage.getEInt(), "getFeatureID"); 2029 2030 addEOperation(eStructuralFeatureEClass, this.getEJavaClass(), "getContainerClass"); 2031 2032 initEClass(eTypedElementEClass, ETypedElement.class, "ETypedElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 2033 initEAttribute(getETypedElement_Ordered(), ecorePackage.getEBoolean(), "ordered", "true", 0, 1, ETypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2034 initEAttribute(getETypedElement_Unique(), ecorePackage.getEBoolean(), "unique", "true", 0, 1, ETypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2035 initEAttribute(getETypedElement_LowerBound(), ecorePackage.getEInt(), "lowerBound", null, 0, 1, ETypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2036 initEAttribute(getETypedElement_UpperBound(), ecorePackage.getEInt(), "upperBound", "1", 0, 1, ETypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2037 initEAttribute(getETypedElement_Many(), ecorePackage.getEBoolean(), "many", null, 0, 1, ETypedElement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2038 initEAttribute(getETypedElement_Required(), ecorePackage.getEBoolean(), "required", null, 0, 1, ETypedElement.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2039 initEReference(getETypedElement_EType(), this.getEClassifier(), null, "eType", null, 0, 1, ETypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2040 2041 initEClass(eStringToStringMapEntryEClass, Map.Entry .class, "EStringToStringMapEntry", !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS); 2042 initEAttribute(getEStringToStringMapEntry_Key(), ecorePackage.getEString(), "key", null, 0, 1, Map.Entry .class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2043 initEAttribute(getEStringToStringMapEntry_Value(), ecorePackage.getEString(), "value", null, 0, 1, Map.Entry .class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 2044 2045 initEDataType(eBigDecimalEDataType, BigDecimal .class, "EBigDecimal", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2047 initEDataType(eBigIntegerEDataType, BigInteger .class, "EBigInteger", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2048 initEDataType(eBooleanEDataType, boolean.class, "EBoolean", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2049 initEDataType(eBooleanObjectEDataType, Boolean .class, "EBooleanObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2050 initEDataType(eByteEDataType, byte.class, "EByte", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2051 initEDataType(eByteArrayEDataType, byte[].class, "EByteArray", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2052 initEDataType(eByteObjectEDataType, Byte .class, "EByteObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2053 initEDataType(eCharEDataType, char.class, "EChar", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2054 initEDataType(eCharacterObjectEDataType, Character .class, "ECharacterObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2055 initEDataType(eDateEDataType, Date .class, "EDate", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2056 initEDataType(eDiagnosticChainEDataType, DiagnosticChain.class, "EDiagnosticChain", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2057 initEDataType(eDoubleEDataType, double.class, "EDouble", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2058 initEDataType(eDoubleObjectEDataType, Double .class, "EDoubleObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2059 initEDataType(eeListEDataType, EList.class, "EEList", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2060 initEDataType(eEnumeratorEDataType, Enumerator.class, "EEnumerator", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2061 initEDataType(eFeatureMapEDataType, FeatureMap.class, "EFeatureMap", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2062 initEDataType(eFeatureMapEntryEDataType, FeatureMap.Entry.class, "EFeatureMapEntry", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2063 initEDataType(eFloatEDataType, float.class, "EFloat", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2064 initEDataType(eFloatObjectEDataType, Float .class, "EFloatObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2065 initEDataType(eIntEDataType, int.class, "EInt", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2066 initEDataType(eIntegerObjectEDataType, Integer .class, "EIntegerObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2067 initEDataType(eJavaClassEDataType, Class .class, "EJavaClass", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2068 initEDataType(eJavaObjectEDataType, Object .class, "EJavaObject", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2069 initEDataType(eLongEDataType, long.class, "ELong", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2070 initEDataType(eLongObjectEDataType, Long .class, "ELongObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2071 initEDataType(eMapEDataType, Map .class, "EMap", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2072 initEDataType(eResourceEDataType, Resource.class, "EResource", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2073 initEDataType(eResourceSetEDataType, ResourceSet.class, "EResourceSet", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2074 initEDataType(eShortEDataType, short.class, "EShort", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2075 initEDataType(eShortObjectEDataType, Short .class, "EShortObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2076 initEDataType(eStringEDataType, String .class, "EString", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2077 initEDataType(eTreeIteratorEDataType, TreeIterator.class, "ETreeIterator", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); 2078 2079 createResource(eNS_URI); 2081 } 2082 2083 2088 public EClass getEFactory() 2089 { 2090 return eFactoryEClass; 2091 } 2092 2093 2098 public EReference getEFactory_EPackage() 2099 { 2100 return (EReference)eFactoryEClass.getEStructuralFeatures().get(0); 2101 } 2102 2103} 2104 | Popular Tags |