| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package EMOF.impl; |
| 8 | |
| 9 | import EMOF.Comment; |
| 10 | import EMOF.DataType; |
| 11 | import EMOF.EMOFFactory; |
| 12 | import EMOF.EMOFPackage; |
| 13 | import EMOF.Element; |
| 14 | import EMOF.Enumeration; |
| 15 | import EMOF.EnumerationLiteral; |
| 16 | import EMOF.Extent; |
| 17 | import EMOF.Factory; |
| 18 | import EMOF.MultiplicityElement; |
| 19 | import EMOF.NamedElement; |
| 20 | import EMOF.Operation; |
| 21 | import EMOF.Parameter; |
| 22 | import EMOF.PrimitiveType; |
| 23 | import EMOF.Property; |
| 24 | import EMOF.ReflectiveCollection; |
| 25 | import EMOF.ReflectiveSequence; |
| 26 | import EMOF.Tag; |
| 27 | import EMOF.Type; |
| 28 | import EMOF.TypedElement; |
| 29 | import EMOF.URIExtent; |
| 30 | |
| 31 | import EssentialOCL.EssentialOCLPackage; |
| 32 | |
| 33 | import EssentialOCL.impl.EssentialOCLPackageImpl; |
| 34 | |
| 35 | import QVTBase.QVTBasePackage; |
| 36 | |
| 37 | import QVTBase.impl.QVTBasePackageImpl; |
| 38 | |
| 39 | import QVTRelation.QVTRelationPackage; |
| 40 | |
| 41 | import QVTRelation.impl.QVTRelationPackageImpl; |
| 42 | |
| 43 | import QVTTemplate.QVTTemplatePackage; |
| 44 | |
| 45 | import QVTTemplate.impl.QVTTemplatePackageImpl; |
| 46 | |
| 47 | import org.eclipse.emf.ecore.EAttribute; |
| 48 | import org.eclipse.emf.ecore.EClass; |
| 49 | import org.eclipse.emf.ecore.EDataType; |
| 50 | import org.eclipse.emf.ecore.EOperation; |
| 51 | import org.eclipse.emf.ecore.EPackage; |
| 52 | import org.eclipse.emf.ecore.EReference; |
| 53 | |
| 54 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
| 55 | |
| 56 | /** |
| 57 | * <!-- begin-user-doc --> |
| 58 | * An implementation of the model <b>Package</b>. |
| 59 | * <!-- end-user-doc --> |
| 60 | * @generated |
| 61 | */ |
| 62 | public class EMOFPackageImpl extends EPackageImpl implements EMOFPackage { |
| 63 | /** |
| 64 | * <!-- begin-user-doc --> |
| 65 | * <!-- end-user-doc --> |
| 66 | * @generated |
| 67 | */ |
| 68 | private EClass classEClass = null; |
| 69 | |
| 70 | /** |
| 71 | * <!-- begin-user-doc --> |
| 72 | * <!-- end-user-doc --> |
| 73 | * @generated |
| 74 | */ |
| 75 | private EClass commentEClass = null; |
| 76 | |
| 77 | /** |
| 78 | * <!-- begin-user-doc --> |
| 79 | * <!-- end-user-doc --> |
| 80 | * @generated |
| 81 | */ |
| 82 | private EClass dataTypeEClass = null; |
| 83 | |
| 84 | /** |
| 85 | * <!-- begin-user-doc --> |
| 86 | * <!-- end-user-doc --> |
| 87 | * @generated |
| 88 | */ |
| 89 | private EClass elementEClass = null; |
| 90 | |
| 91 | /** |
| 92 | * <!-- begin-user-doc --> |
| 93 | * <!-- end-user-doc --> |
| 94 | * @generated |
| 95 | */ |
| 96 | private EClass enumerationEClass = null; |
| 97 | |
| 98 | /** |
| 99 | * <!-- begin-user-doc --> |
| 100 | * <!-- end-user-doc --> |
| 101 | * @generated |
| 102 | */ |
| 103 | private EClass enumerationLiteralEClass = null; |
| 104 | |
| 105 | /** |
| 106 | * <!-- begin-user-doc --> |
| 107 | * <!-- end-user-doc --> |
| 108 | * @generated |
| 109 | */ |
| 110 | private EClass extentEClass = null; |
| 111 | |
| 112 | /** |
| 113 | * <!-- begin-user-doc --> |
| 114 | * <!-- end-user-doc --> |
| 115 | * @generated |
| 116 | */ |
| 117 | private EClass factoryEClass = null; |
| 118 | |
| 119 | /** |
| 120 | * <!-- begin-user-doc --> |
| 121 | * <!-- end-user-doc --> |
| 122 | * @generated |
| 123 | */ |
| 124 | private EClass multiplicityElementEClass = null; |
| 125 | |
| 126 | /** |
| 127 | * <!-- begin-user-doc --> |
| 128 | * <!-- end-user-doc --> |
| 129 | * @generated |
| 130 | */ |
| 131 | private EClass namedElementEClass = null; |
| 132 | |
| 133 | /** |
| 134 | * <!-- begin-user-doc --> |
| 135 | * <!-- end-user-doc --> |
| 136 | * @generated |
| 137 | */ |
| 138 | private EClass objectEClass = null; |
| 139 | |
| 140 | /** |
| 141 | * <!-- begin-user-doc --> |
| 142 | * <!-- end-user-doc --> |
| 143 | * @generated |
| 144 | */ |
| 145 | private EClass operationEClass = null; |
| 146 | |
| 147 | /** |
| 148 | * <!-- begin-user-doc --> |
| 149 | * <!-- end-user-doc --> |
| 150 | * @generated |
| 151 | */ |
| 152 | private EClass packageEClass = null; |
| 153 | |
| 154 | /** |
| 155 | * <!-- begin-user-doc --> |
| 156 | * <!-- end-user-doc --> |
| 157 | * @generated |
| 158 | */ |
| 159 | private EClass parameterEClass = null; |
| 160 | |
| 161 | /** |
| 162 | * <!-- begin-user-doc --> |
| 163 | * <!-- end-user-doc --> |
| 164 | * @generated |
| 165 | */ |
| 166 | private EClass primitiveTypeEClass = null; |
| 167 | |
| 168 | /** |
| 169 | * <!-- begin-user-doc --> |
| 170 | * <!-- end-user-doc --> |
| 171 | * @generated |
| 172 | */ |
| 173 | private EClass propertyEClass = null; |
| 174 | |
| 175 | /** |
| 176 | * <!-- begin-user-doc --> |
| 177 | * <!-- end-user-doc --> |
| 178 | * @generated |
| 179 | */ |
| 180 | private EClass reflectiveCollectionEClass = null; |
| 181 | |
| 182 | /** |
| 183 | * <!-- begin-user-doc --> |
| 184 | * <!-- end-user-doc --> |
| 185 | * @generated |
| 186 | */ |
| 187 | private EClass reflectiveSequenceEClass = null; |
| 188 | |
| 189 | /** |
| 190 | * <!-- begin-user-doc --> |
| 191 | * <!-- end-user-doc --> |
| 192 | * @generated |
| 193 | */ |
| 194 | private EClass tagEClass = null; |
| 195 | |
| 196 | /** |
| 197 | * <!-- begin-user-doc --> |
| 198 | * <!-- end-user-doc --> |
| 199 | * @generated |
| 200 | */ |
| 201 | private EClass typeEClass = null; |
| 202 | |
| 203 | /** |
| 204 | * <!-- begin-user-doc --> |
| 205 | * <!-- end-user-doc --> |
| 206 | * @generated |
| 207 | */ |
| 208 | private EClass typedElementEClass = null; |
| 209 | |
| 210 | /** |
| 211 | * <!-- begin-user-doc --> |
| 212 | * <!-- end-user-doc --> |
| 213 | * @generated |
| 214 | */ |
| 215 | private EClass uriExtentEClass = null; |
| 216 | |
| 217 | /** |
| 218 | * <!-- begin-user-doc --> |
| 219 | * <!-- end-user-doc --> |
| 220 | * @generated |
| 221 | */ |
| 222 | private EDataType booleanEDataType = null; |
| 223 | |
| 224 | /** |
| 225 | * <!-- begin-user-doc --> |
| 226 | * <!-- end-user-doc --> |
| 227 | * @generated |
| 228 | */ |
| 229 | private EDataType integerEDataType = null; |
| 230 | |
| 231 | /** |
| 232 | * <!-- begin-user-doc --> |
| 233 | * <!-- end-user-doc --> |
| 234 | * @generated |
| 235 | */ |
| 236 | private EDataType realEDataType = null; |
| 237 | |
| 238 | /** |
| 239 | * <!-- begin-user-doc --> |
| 240 | * <!-- end-user-doc --> |
| 241 | * @generated |
| 242 | */ |
| 243 | private EDataType stringEDataType = null; |
| 244 | |
| 245 | /** |
| 246 | * <!-- begin-user-doc --> |
| 247 | * <!-- end-user-doc --> |
| 248 | * @generated |
| 249 | */ |
| 250 | private EDataType unlimitedNaturalEDataType = null; |
| 251 | |
| 252 | /** |
| 253 | * Creates an instance of the model <b>Package</b>, registered with |
| 254 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
| 255 | * package URI value. |
| 256 | * <p>Note: the correct way to create the package is via the static |
| 257 | * factory method {@link #init init()}, which also performs |
| 258 | * initialization of the package, or returns the registered package, |
| 259 | * if one already exists. |
| 260 | * <!-- begin-user-doc --> |
| 261 | * <!-- end-user-doc --> |
| 262 | * @see org.eclipse.emf.ecore.EPackage.Registry |
| 263 | * @see EMOF.EMOFPackage#eNS_URI |
| 264 | * @see #init() |
| 265 | * @generated |
| 266 | */ |
| 267 | private EMOFPackageImpl() { |
| 268 | super(eNS_URI, EMOFFactory.eINSTANCE); |
| 269 | } |
| 270 | |
| 271 | /** |
| 272 | * <!-- begin-user-doc --> |
| 273 | * <!-- end-user-doc --> |
| 274 | * @generated |
| 275 | */ |
| 276 | private static boolean isInited = false; |
| 277 | |
| 278 | /** |
| 279 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
| 280 | * |
| 281 | * <p>This method is used to initialize {@link EMOFPackage#eINSTANCE} when that field is accessed. |
| 282 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
| 283 | * <!-- begin-user-doc --> |
| 284 | * <!-- end-user-doc --> |
| 285 | * @see #eNS_URI |
| 286 | * @see #createPackageContents() |
| 287 | * @see #initializePackageContents() |
| 288 | * @generated |
| 289 | */ |
| 290 | public static EMOFPackage init() { |
| 291 | if (isInited) return (EMOFPackage)EPackage.Registry.INSTANCE.getEPackage(EMOFPackage.eNS_URI); |
| 292 | |
| 293 | // Obtain or create and register package |
| 294 | EMOFPackageImpl theEMOFPackage = (EMOFPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof EMOFPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new EMOFPackageImpl()); |
| 295 | |
| 296 | isInited = true; |
| 297 | |
| 298 | // Obtain or create and register interdependencies |
| 299 | EssentialOCLPackageImpl theEssentialOCLPackage = (EssentialOCLPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EssentialOCLPackage.eNS_URI) instanceof EssentialOCLPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EssentialOCLPackage.eNS_URI) : EssentialOCLPackage.eINSTANCE); |
| 300 | QVTBasePackageImpl theQVTBasePackage = (QVTBasePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QVTBasePackage.eNS_URI) instanceof QVTBasePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QVTBasePackage.eNS_URI) : QVTBasePackage.eINSTANCE); |
| 301 | QVTRelationPackageImpl theQVTRelationPackage = (QVTRelationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QVTRelationPackage.eNS_URI) instanceof QVTRelationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QVTRelationPackage.eNS_URI) : QVTRelationPackage.eINSTANCE); |
| 302 | QVTTemplatePackageImpl theQVTTemplatePackage = (QVTTemplatePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QVTTemplatePackage.eNS_URI) instanceof QVTTemplatePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QVTTemplatePackage.eNS_URI) : QVTTemplatePackage.eINSTANCE); |
| 303 | |
| 304 | // Create package meta-data objects |
| 305 | theEMOFPackage.createPackageContents(); |
| 306 | theEssentialOCLPackage.createPackageContents(); |
| 307 | theQVTBasePackage.createPackageContents(); |
| 308 | theQVTRelationPackage.createPackageContents(); |
| 309 | theQVTTemplatePackage.createPackageContents(); |
| 310 | |
| 311 | // Initialize created meta-data |
| 312 | theEMOFPackage.initializePackageContents(); |
| 313 | theEssentialOCLPackage.initializePackageContents(); |
| 314 | theQVTBasePackage.initializePackageContents(); |
| 315 | theQVTRelationPackage.initializePackageContents(); |
| 316 | theQVTTemplatePackage.initializePackageContents(); |
| 317 | |
| 318 | // Mark meta-data to indicate it can't be changed |
| 319 | theEMOFPackage.freeze(); |
| 320 | |
| 321 | |
| 322 | // Update the registry and return the package |
| 323 | EPackage.Registry.INSTANCE.put(EMOFPackage.eNS_URI, theEMOFPackage); |
| 324 | return theEMOFPackage; |
| 325 | } |
| 326 | |
| 327 | /** |
| 328 | * <!-- begin-user-doc --> |
| 329 | * <!-- end-user-doc --> |
| 330 | * @generated |
| 331 | */ |
| 332 | public EClass getClass_() { |
| 333 | return classEClass; |
| 334 | } |
| 335 | |
| 336 | /** |
| 337 | * <!-- begin-user-doc --> |
| 338 | * <!-- end-user-doc --> |
| 339 | * @generated |
| 340 | */ |
| 341 | public EAttribute getClass_IsAbstract() { |
| 342 | return (EAttribute)classEClass.getEStructuralFeatures().get(0); |
| 343 | } |
| 344 | |
| 345 | /** |
| 346 | * <!-- begin-user-doc --> |
| 347 | * <!-- end-user-doc --> |
| 348 | * @generated |
| 349 | */ |
| 350 | public EReference getClass_OwnedAttribute() { |
| 351 | return (EReference)classEClass.getEStructuralFeatures().get(1); |
| 352 | } |
| 353 | |
| 354 | /** |
| 355 | * <!-- begin-user-doc --> |
| 356 | * <!-- end-user-doc --> |
| 357 | * @generated |
| 358 | */ |
| 359 | public EReference getClass_OwnedOperation() { |
| 360 | return (EReference)classEClass.getEStructuralFeatures().get(2); |
| 361 | } |
| 362 | |
| 363 | /** |
| 364 | * <!-- begin-user-doc --> |
| 365 | * <!-- end-user-doc --> |
| 366 | * @generated |
| 367 | */ |
| 368 | public EReference getClass_SuperClass() { |
| 369 | return (EReference)classEClass.getEStructuralFeatures().get(3); |
| 370 | } |
| 371 | |
| 372 | /** |
| 373 | * <!-- begin-user-doc --> |
| 374 | * <!-- end-user-doc --> |
| 375 | * @generated |
| 376 | */ |
| 377 | public EClass getComment() { |
| 378 | return commentEClass; |
| 379 | } |
| 380 | |
| 381 | /** |
| 382 | * <!-- begin-user-doc --> |
| 383 | * <!-- end-user-doc --> |
| 384 | * @generated |
| 385 | */ |
| 386 | public EReference getComment_AnnotatedElement() { |
| 387 | return (EReference)commentEClass.getEStructuralFeatures().get(0); |
| 388 | } |
| 389 | |
| 390 | /** |
| 391 | * <!-- begin-user-doc --> |
| 392 | * <!-- end-user-doc --> |
| 393 | * @generated |
| 394 | */ |
| 395 | public EAttribute getComment_Body() { |
| 396 | return (EAttribute)commentEClass.getEStructuralFeatures().get(1); |
| 397 | } |
| 398 | |
| 399 | /** |
| 400 | * <!-- begin-user-doc --> |
| 401 | * <!-- end-user-doc --> |
| 402 | * @generated |
| 403 | */ |
| 404 | public EClass getDataType() { |
| 405 | return dataTypeEClass; |
| 406 | } |
| 407 | |
| 408 | /** |
| 409 | * <!-- begin-user-doc --> |
| 410 | * <!-- end-user-doc --> |
| 411 | * @generated |
| 412 | */ |
| 413 | public EClass getElement() { |
| 414 | return elementEClass; |
| 415 | } |
| 416 | |
| 417 | /** |
| 418 | * <!-- begin-user-doc --> |
| 419 | * <!-- end-user-doc --> |
| 420 | * @generated |
| 421 | */ |
| 422 | public EReference getElement_OwnedComment() { |
| 423 | return (EReference)elementEClass.getEStructuralFeatures().get(0); |
| 424 | } |
| 425 | |
| 426 | /** |
| 427 | * <!-- begin-user-doc --> |
| 428 | * <!-- end-user-doc --> |
| 429 | * @generated |
| 430 | */ |
| 431 | public EClass getEnumeration() { |
| 432 | return enumerationEClass; |
| 433 | } |
| 434 | |
| 435 | /** |
| 436 | * <!-- begin-user-doc --> |
| 437 | * <!-- end-user-doc --> |
| 438 | * @generated |
| 439 | */ |
| 440 | public EReference getEnumeration_OwnedLiteral() { |
| 441 | return (EReference)enumerationEClass.getEStructuralFeatures().get(0); |
| 442 | } |
| 443 | |
| 444 | /** |
| 445 | * <!-- begin-user-doc --> |
| 446 | * <!-- end-user-doc --> |
| 447 | * @generated |
| 448 | */ |
| 449 | public EClass getEnumerationLiteral() { |
| 450 | return enumerationLiteralEClass; |
| 451 | } |
| 452 | |
| 453 | /** |
| 454 | * <!-- begin-user-doc --> |
| 455 | * <!-- end-user-doc --> |
| 456 | * @generated |
| 457 | */ |
| 458 | public EReference getEnumerationLiteral_Enumeration() { |
| 459 | return (EReference)enumerationLiteralEClass.getEStructuralFeatures().get(0); |
| 460 | } |
| 461 | |
| 462 | /** |
| 463 | * <!-- begin-user-doc --> |
| 464 | * <!-- end-user-doc --> |
| 465 | * @generated |
| 466 | */ |
| 467 | public EClass getExtent() { |
| 468 | return extentEClass; |
| 469 | } |
| 470 | |
| 471 | /** |
| 472 | * <!-- begin-user-doc --> |
| 473 | * <!-- end-user-doc --> |
| 474 | * @generated |
| 475 | */ |
| 476 | public EClass getFactory() { |
| 477 | return factoryEClass; |
| 478 | } |
| 479 | |
| 480 | /** |
| 481 | * <!-- begin-user-doc --> |
| 482 | * <!-- end-user-doc --> |
| 483 | * @generated |
| 484 | */ |
| 485 | public EReference getFactory_Package() { |
| 486 | return (EReference)factoryEClass.getEStructuralFeatures().get(0); |
| 487 | } |
| 488 | |
| 489 | /** |
| 490 | * <!-- begin-user-doc --> |
| 491 | * <!-- end-user-doc --> |
| 492 | * @generated |
| 493 | */ |
| 494 | public EClass getMultiplicityElement() { |
| 495 | return multiplicityElementEClass; |
| 496 | } |
| 497 | |
| 498 | /** |
| 499 | * <!-- begin-user-doc --> |
| 500 | * <!-- end-user-doc --> |
| 501 | * @generated |
| 502 | */ |
| 503 | public EAttribute getMultiplicityElement_IsOrdered() { |
| 504 | return (EAttribute)multiplicityElementEClass.getEStructuralFeatures().get(0); |
| 505 | } |
| 506 | |
| 507 | /** |
| 508 | * <!-- begin-user-doc --> |
| 509 | * <!-- end-user-doc --> |
| 510 | * @generated |
| 511 | */ |
| 512 | public EAttribute getMultiplicityElement_IsUnique() { |
| 513 | return (EAttribute)multiplicityElementEClass.getEStructuralFeatures().get(1); |
| 514 | } |
| 515 | |
| 516 | /** |
| 517 | * <!-- begin-user-doc --> |
| 518 | * <!-- end-user-doc --> |
| 519 | * @generated |
| 520 | */ |
| 521 | public EAttribute getMultiplicityElement_Lower() { |
| 522 | return (EAttribute)multiplicityElementEClass.getEStructuralFeatures().get(2); |
| 523 | } |
| 524 | |
| 525 | /** |
| 526 | * <!-- begin-user-doc --> |
| 527 | * <!-- end-user-doc --> |
| 528 | * @generated |
| 529 | */ |
| 530 | public EAttribute getMultiplicityElement_Upper() { |
| 531 | return (EAttribute)multiplicityElementEClass.getEStructuralFeatures().get(3); |
| 532 | } |
| 533 | |
| 534 | /** |
| 535 | * <!-- begin-user-doc --> |
| 536 | * <!-- end-user-doc --> |
| 537 | * @generated |
| 538 | */ |
| 539 | public EClass getNamedElement() { |
| 540 | return namedElementEClass; |
| 541 | } |
| 542 | |
| 543 | /** |
| 544 | * <!-- begin-user-doc --> |
| 545 | * <!-- end-user-doc --> |
| 546 | * @generated |
| 547 | */ |
| 548 | public EAttribute getNamedElement_Name() { |
| 549 | return (EAttribute)namedElementEClass.getEStructuralFeatures().get(0); |
| 550 | } |
| 551 | |
| 552 | /** |
| 553 | * <!-- begin-user-doc --> |
| 554 | * <!-- end-user-doc --> |
| 555 | * @generated |
| 556 | */ |
| 557 | public EClass getObject() { |
| 558 | return objectEClass; |
| 559 | } |
| 560 | |
| 561 | /** |
| 562 | * <!-- begin-user-doc --> |
| 563 | * <!-- end-user-doc --> |
| 564 | * @generated |
| 565 | */ |
| 566 | public EClass getOperation() { |
| 567 | return operationEClass; |
| 568 | } |
| 569 | |
| 570 | /** |
| 571 | * <!-- begin-user-doc --> |
| 572 | * <!-- end-user-doc --> |
| 573 | * @generated |
| 574 | */ |
| 575 | public EReference getOperation_Class() { |
| 576 | return (EReference)operationEClass.getEStructuralFeatures().get(0); |
| 577 | } |
| 578 | |
| 579 | /** |
| 580 | * <!-- begin-user-doc --> |
| 581 | * <!-- end-user-doc --> |
| 582 | * @generated |
| 583 | */ |
| 584 | public EReference getOperation_OwnedParameter() { |
| 585 | return (EReference)operationEClass.getEStructuralFeatures().get(1); |
| 586 | } |
| 587 | |
| 588 | /** |
| 589 | * <!-- begin-user-doc --> |
| 590 | * <!-- end-user-doc --> |
| 591 | * @generated |
| 592 | */ |
| 593 | public EReference getOperation_RaisedException() { |
| 594 | return (EReference)operationEClass.getEStructuralFeatures().get(2); |
| 595 | } |
| 596 | |
| 597 | /** |
| 598 | * <!-- begin-user-doc --> |
| 599 | * <!-- end-user-doc --> |
| 600 | * @generated |
| 601 | */ |
| 602 | public EClass getPackage() { |
| 603 | return packageEClass; |
| 604 | } |
| 605 | |
| 606 | /** |
| 607 | * <!-- begin-user-doc --> |
| 608 | * <!-- end-user-doc --> |
| 609 | * @generated |
| 610 | */ |
| 611 | public EReference getPackage_NestedPackage() { |
| 612 | return (EReference)packageEClass.getEStructuralFeatures().get(0); |
| 613 | } |
| 614 | |
| 615 | /** |
| 616 | * <!-- begin-user-doc --> |
| 617 | * <!-- end-user-doc --> |
| 618 | * @generated |
| 619 | */ |
| 620 | public EReference getPackage_NestingPackage() { |
| 621 | return (EReference)packageEClass.getEStructuralFeatures().get(1); |
| 622 | } |
| 623 | |
| 624 | /** |
| 625 | * <!-- begin-user-doc --> |
| 626 | * <!-- end-user-doc --> |
| 627 | * @generated |
| 628 | */ |
| 629 | public EReference getPackage_OwnedType() { |
| 630 | return (EReference)packageEClass.getEStructuralFeatures().get(2); |
| 631 | } |
| 632 | |
| 633 | /** |
| 634 | * <!-- begin-user-doc --> |
| 635 | * <!-- end-user-doc --> |
| 636 | * @generated |
| 637 | */ |
| 638 | public EAttribute getPackage_Uri() { |
| 639 | return (EAttribute)packageEClass.getEStructuralFeatures().get(3); |
| 640 | } |
| 641 | |
| 642 | /** |
| 643 | * <!-- begin-user-doc --> |
| 644 | * <!-- end-user-doc --> |
| 645 | * @generated |
| 646 | */ |
| 647 | public EClass getParameter() { |
| 648 | return parameterEClass; |
| 649 | } |
| 650 | |
| 651 | /** |
| 652 | * <!-- begin-user-doc --> |
| 653 | * <!-- end-user-doc --> |
| 654 | * @generated |
| 655 | */ |
| 656 | public EReference getParameter_Operation() { |
| 657 | return (EReference)parameterEClass.getEStructuralFeatures().get(0); |
| 658 | } |
| 659 | |
| 660 | /** |
| 661 | * <!-- begin-user-doc --> |
| 662 | * <!-- end-user-doc --> |
| 663 | * @generated |
| 664 | */ |
| 665 | public EClass getPrimitiveType() { |
| 666 | return primitiveTypeEClass; |
| 667 | } |
| 668 | |
| 669 | /** |
| 670 | * <!-- begin-user-doc --> |
| 671 | * <!-- end-user-doc --> |
| 672 | * @generated |
| 673 | */ |
| 674 | public EClass getProperty() { |
| 675 | return propertyEClass; |
| 676 | } |
| 677 | |
| 678 | /** |
| 679 | * <!-- begin-user-doc --> |
| 680 | * <!-- end-user-doc --> |
| 681 | * @generated |
| 682 | */ |
| 683 | public EReference getProperty_Class() { |
| 684 | return (EReference)propertyEClass.getEStructuralFeatures().get(0); |
| 685 | } |
| 686 | |
| 687 | /** |
| 688 | * <!-- begin-user-doc --> |
| 689 | * <!-- end-user-doc --> |
| 690 | * @generated |
| 691 | */ |
| 692 | public EAttribute getProperty_Default() { |
| 693 | return (EAttribute)propertyEClass.getEStructuralFeatures().get(1); |
| 694 | } |
| 695 | |
| 696 | /** |
| 697 | * <!-- begin-user-doc --> |
| 698 | * <!-- end-user-doc --> |
| 699 | * @generated |
| 700 | */ |
| 701 | public EAttribute getProperty_IsComposite() { |
| 702 | return (EAttribute)propertyEClass.getEStructuralFeatures().get(2); |
| 703 | } |
| 704 | |
| 705 | /** |
| 706 | * <!-- begin-user-doc --> |
| 707 | * <!-- end-user-doc --> |
| 708 | * @generated |
| 709 | */ |
| 710 | public EAttribute getProperty_IsDerived() { |
| 711 | return (EAttribute)propertyEClass.getEStructuralFeatures().get(3); |
| 712 | } |
| 713 | |
| 714 | /** |
| 715 | * <!-- begin-user-doc --> |
| 716 | * <!-- end-user-doc --> |
| 717 | * @generated |
| 718 | */ |
| 719 | public EAttribute getProperty_IsID() { |
| 720 | return (EAttribute)propertyEClass.getEStructuralFeatures().get(4); |
| 721 | } |
| 722 | |
| 723 | /** |
| 724 | * <!-- begin-user-doc --> |
| 725 | * <!-- end-user-doc --> |
| 726 | * @generated |
| 727 | */ |
| 728 | public EAttribute getProperty_IsReadOnly() { |
| 729 | return (EAttribute)propertyEClass.getEStructuralFeatures().get(5); |
| 730 | } |
| 731 | |
| 732 | /** |
| 733 | * <!-- begin-user-doc --> |
| 734 | * <!-- end-user-doc --> |
| 735 | * @generated |
| 736 | */ |
| 737 | public EReference getProperty_Opposite() { |
| 738 | return (EReference)propertyEClass.getEStructuralFeatures().get(6); |
| 739 | } |
| 740 | |
| 741 | /** |
| 742 | * <!-- begin-user-doc --> |
| 743 | * <!-- end-user-doc --> |
| 744 | * @generated |
| 745 | */ |
| 746 | public EClass getReflectiveCollection() { |
| 747 | return reflectiveCollectionEClass; |
| 748 | } |
| 749 | |
| 750 | /** |
| 751 | * <!-- begin-user-doc --> |
| 752 | * <!-- end-user-doc --> |
| 753 | * @generated |
| 754 | */ |
| 755 | public EClass getReflectiveSequence() { |
| 756 | return reflectiveSequenceEClass; |
| 757 | } |
| 758 | |
| 759 | /** |
| 760 | * <!-- begin-user-doc --> |
| 761 | * <!-- end-user-doc --> |
| 762 | * @generated |
| 763 | */ |
| 764 | public EClass getTag() { |
| 765 | return tagEClass; |
| 766 | } |
| 767 | |
| 768 | /** |
| 769 | * <!-- begin-user-doc --> |
| 770 | * <!-- end-user-doc --> |
| 771 | * @generated |
| 772 | */ |
| 773 | public EReference getTag_Element() { |
| 774 | return (EReference)tagEClass.getEStructuralFeatures().get(0); |
| 775 | } |
| 776 | |
| 777 | /** |
| 778 | * <!-- begin-user-doc --> |
| 779 | * <!-- end-user-doc --> |
| 780 | * @generated |
| 781 | */ |
| 782 | public EAttribute getTag_Name() { |
| 783 | return (EAttribute)tagEClass.getEStructuralFeatures().get(1); |
| 784 | } |
| 785 | |
| 786 | /** |
| 787 | * <!-- begin-user-doc --> |
| 788 | * <!-- end-user-doc --> |
| 789 | * @generated |
| 790 | */ |
| 791 | public EAttribute getTag_Value() { |
| 792 | return (EAttribute)tagEClass.getEStructuralFeatures().get(2); |
| 793 | } |
| 794 | |
| 795 | /** |
| 796 | * <!-- begin-user-doc --> |
| 797 | * <!-- end-user-doc --> |
| 798 | * @generated |
| 799 | */ |
| 800 | public EClass getType() { |
| 801 | return typeEClass; |
| 802 | } |
| 803 | |
| 804 | /** |
| 805 | * <!-- begin-user-doc --> |
| 806 | * <!-- end-user-doc --> |
| 807 | * @generated |
| 808 | */ |
| 809 | public EReference getType_Package() { |
| 810 | return (EReference)typeEClass.getEStructuralFeatures().get(0); |
| 811 | } |
| 812 | |
| 813 | /** |
| 814 | * <!-- begin-user-doc --> |
| 815 | * <!-- end-user-doc --> |
| 816 | * @generated |
| 817 | */ |
| 818 | public EClass getTypedElement() { |
| 819 | return typedElementEClass; |
| 820 | } |
| 821 | |
| 822 | /** |
| 823 | * <!-- begin-user-doc --> |
| 824 | * <!-- end-user-doc --> |
| 825 | * @generated |
| 826 | */ |
| 827 | public EReference getTypedElement_Type() { |
| 828 | return (EReference)typedElementEClass.getEStructuralFeatures().get(0); |
| 829 | } |
| 830 | |
| 831 | /** |
| 832 | * <!-- begin-user-doc --> |
| 833 | * <!-- end-user-doc --> |
| 834 | * @generated |
| 835 | */ |
| 836 | public EClass getURIExtent() { |
| 837 | return uriExtentEClass; |
| 838 | } |
| 839 | |
| 840 | /** |
| 841 | * <!-- begin-user-doc --> |
| 842 | * <!-- end-user-doc --> |
| 843 | * @generated |
| 844 | */ |
| 845 | public EDataType getBoolean() { |
| 846 | return booleanEDataType; |
| 847 | } |
| 848 | |
| 849 | /** |
| 850 | * <!-- begin-user-doc --> |
| 851 | * <!-- end-user-doc --> |
| 852 | * @generated |
| 853 | */ |
| 854 | public EDataType getInteger() { |
| 855 | return integerEDataType; |
| 856 | } |
| 857 | |
| 858 | /** |
| 859 | * <!-- begin-user-doc --> |
| 860 | * <!-- end-user-doc --> |
| 861 | * @generated |
| 862 | */ |
| 863 | public EDataType getReal() { |
| 864 | return realEDataType; |
| 865 | } |
| 866 | |
| 867 | /** |
| 868 | * <!-- begin-user-doc --> |
| 869 | * <!-- end-user-doc --> |
| 870 | * @generated |
| 871 | */ |
| 872 | public EDataType getString() { |
| 873 | return stringEDataType; |
| 874 | } |
| 875 | |
| 876 | /** |
| 877 | * <!-- begin-user-doc --> |
| 878 | * <!-- end-user-doc --> |
| 879 | * @generated |
| 880 | */ |
| 881 | public EDataType getUnlimitedNatural() { |
| 882 | return unlimitedNaturalEDataType; |
| 883 | } |
| 884 | |
| 885 | /** |
| 886 | * <!-- begin-user-doc --> |
| 887 | * <!-- end-user-doc --> |
| 888 | * @generated |
| 889 | */ |
| 890 | public EMOFFactory getEMOFFactory() { |
| 891 | return (EMOFFactory)getEFactoryInstance(); |
| 892 | } |
| 893 | |
| 894 | /** |
| 895 | * <!-- begin-user-doc --> |
| 896 | * <!-- end-user-doc --> |
| 897 | * @generated |
| 898 | */ |
| 899 | private boolean isCreated = false; |
| 900 | |
| 901 | /** |
| 902 | * Creates the meta-model objects for the package. This method is |
| 903 | * guarded to have no affect on any invocation but its first. |
| 904 | * <!-- begin-user-doc --> |
| 905 | * <!-- end-user-doc --> |
| 906 | * @generated |
| 907 | */ |
| 908 | public void createPackageContents() { |
| 909 | if (isCreated) return; |
| 910 | isCreated = true; |
| 911 | |
| 912 | // Create classes and their features |
| 913 | classEClass = createEClass(CLASS); |
| 914 | createEAttribute(classEClass, CLASS__IS_ABSTRACT); |
| 915 | createEReference(classEClass, CLASS__OWNED_ATTRIBUTE); |
| 916 | createEReference(classEClass, CLASS__OWNED_OPERATION); |
| 917 | createEReference(classEClass, CLASS__SUPER_CLASS); |
| 918 | |
| 919 | commentEClass = createEClass(COMMENT); |
| 920 | createEReference(commentEClass, COMMENT__ANNOTATED_ELEMENT); |
| 921 | createEAttribute(commentEClass, COMMENT__BODY); |
| 922 | |
| 923 | dataTypeEClass = createEClass(DATA_TYPE); |
| 924 | |
| 925 | elementEClass = createEClass(ELEMENT); |
| 926 | createEReference(elementEClass, ELEMENT__OWNED_COMMENT); |
| 927 | |
| 928 | enumerationEClass = createEClass(ENUMERATION); |
| 929 | createEReference(enumerationEClass, ENUMERATION__OWNED_LITERAL); |
| 930 | |
| 931 | enumerationLiteralEClass = createEClass(ENUMERATION_LITERAL); |
| 932 | createEReference(enumerationLiteralEClass, ENUMERATION_LITERAL__ENUMERATION); |
| 933 | |
| 934 | extentEClass = createEClass(EXTENT); |
| 935 | |
| 936 | factoryEClass = createEClass(FACTORY); |
| 937 | createEReference(factoryEClass, FACTORY__PACKAGE); |
| 938 | |
| 939 | multiplicityElementEClass = createEClass(MULTIPLICITY_ELEMENT); |
| 940 | createEAttribute(multiplicityElementEClass, MULTIPLICITY_ELEMENT__IS_ORDERED); |
| 941 | createEAttribute(multiplicityElementEClass, MULTIPLICITY_ELEMENT__IS_UNIQUE); |
| 942 | createEAttribute(multiplicityElementEClass, MULTIPLICITY_ELEMENT__LOWER); |
| 943 | createEAttribute(multiplicityElementEClass, MULTIPLICITY_ELEMENT__UPPER); |
| 944 | |
| 945 | namedElementEClass = createEClass(NAMED_ELEMENT); |
| 946 | createEAttribute(namedElementEClass, NAMED_ELEMENT__NAME); |
| 947 | |
| 948 | objectEClass = createEClass(OBJECT); |
| 949 | |
| 950 | operationEClass = createEClass(OPERATION); |
| 951 | createEReference(operationEClass, OPERATION__CLASS); |
| 952 | createEReference(operationEClass, OPERATION__OWNED_PARAMETER); |
| 953 | createEReference(operationEClass, OPERATION__RAISED_EXCEPTION); |
| 954 | |
| 955 | packageEClass = createEClass(PACKAGE); |
| 956 | createEReference(packageEClass, PACKAGE__NESTED_PACKAGE); |
| 957 | createEReference(packageEClass, PACKAGE__NESTING_PACKAGE); |
| 958 | createEReference(packageEClass, PACKAGE__OWNED_TYPE); |
| 959 | createEAttribute(packageEClass, PACKAGE__URI); |
| 960 | |
| 961 | parameterEClass = createEClass(PARAMETER); |
| 962 | createEReference(parameterEClass, PARAMETER__OPERATION); |
| 963 | |
| 964 | primitiveTypeEClass = createEClass(PRIMITIVE_TYPE); |
| 965 | |
| 966 | propertyEClass = createEClass(PROPERTY); |
| 967 | createEReference(propertyEClass, PROPERTY__CLASS); |
| 968 | createEAttribute(propertyEClass, PROPERTY__DEFAULT); |
| 969 | createEAttribute(propertyEClass, PROPERTY__IS_COMPOSITE); |
| 970 | createEAttribute(propertyEClass, PROPERTY__IS_DERIVED); |
| 971 | createEAttribute(propertyEClass, PROPERTY__IS_ID); |
| 972 | createEAttribute(propertyEClass, PROPERTY__IS_READ_ONLY); |
| 973 | createEReference(propertyEClass, PROPERTY__OPPOSITE); |
| 974 | |
| 975 | reflectiveCollectionEClass = createEClass(REFLECTIVE_COLLECTION); |
| 976 | |
| 977 | reflectiveSequenceEClass = createEClass(REFLECTIVE_SEQUENCE); |
| 978 | |
| 979 | tagEClass = createEClass(TAG); |
| 980 | createEReference(tagEClass, TAG__ELEMENT); |
| 981 | createEAttribute(tagEClass, TAG__NAME); |
| 982 | createEAttribute(tagEClass, TAG__VALUE); |
| 983 | |
| 984 | typeEClass = createEClass(TYPE); |
| 985 | createEReference(typeEClass, TYPE__PACKAGE); |
| 986 | |
| 987 | typedElementEClass = createEClass(TYPED_ELEMENT); |
| 988 | createEReference(typedElementEClass, TYPED_ELEMENT__TYPE); |
| 989 | |
| 990 | uriExtentEClass = createEClass(URI_EXTENT); |
| 991 | |
| 992 | // Create data types |
| 993 | booleanEDataType = createEDataType(BOOLEAN); |
| 994 | integerEDataType = createEDataType(INTEGER); |
| 995 | realEDataType = createEDataType(REAL); |
| 996 | stringEDataType = createEDataType(STRING); |
| 997 | unlimitedNaturalEDataType = createEDataType(UNLIMITED_NATURAL); |
| 998 | } |
| 999 | |
| 1000 | /** |
| 1001 | * <!-- begin-user-doc --> |
| 1002 | * <!-- end-user-doc --> |
| 1003 | * @generated |
| 1004 | */ |
| 1005 | private boolean isInitialized = false; |
| 1006 | |
| 1007 | /** |
| 1008 | * Complete the initialization of the package and its meta-model. This |
| 1009 | * method is guarded to have no affect on any invocation but its first. |
| 1010 | * <!-- begin-user-doc --> |
| 1011 | * <!-- end-user-doc --> |
| 1012 | * @generated |
| 1013 | */ |
| 1014 | public void initializePackageContents() { |
| 1015 | if (isInitialized) return; |
| 1016 | isInitialized = true; |
| 1017 | |
| 1018 | // Initialize package |
| 1019 | setName(eNAME); |
| 1020 | setNsPrefix(eNS_PREFIX); |
| 1021 | setNsURI(eNS_URI); |
| 1022 | |
| 1023 | // Create type parameters |
| 1024 | |
| 1025 | // Set bounds for type parameters |
| 1026 | |
| 1027 | // Add supertypes to classes |
| 1028 | classEClass.getESuperTypes().add(this.getType()); |
| 1029 | commentEClass.getESuperTypes().add(this.getElement()); |
| 1030 | dataTypeEClass.getESuperTypes().add(this.getType()); |
| 1031 | elementEClass.getESuperTypes().add(this.getObject()); |
| 1032 | enumerationEClass.getESuperTypes().add(this.getDataType()); |
| 1033 | enumerationLiteralEClass.getESuperTypes().add(this.getNamedElement()); |
| 1034 | extentEClass.getESuperTypes().add(this.getObject()); |
| 1035 | factoryEClass.getESuperTypes().add(this.getElement()); |
| 1036 | namedElementEClass.getESuperTypes().add(this.getElement()); |
| 1037 | operationEClass.getESuperTypes().add(this.getTypedElement()); |
| 1038 | operationEClass.getESuperTypes().add(this.getMultiplicityElement()); |
| 1039 | packageEClass.getESuperTypes().add(this.getNamedElement()); |
| 1040 | parameterEClass.getESuperTypes().add(this.getTypedElement()); |
| 1041 | parameterEClass.getESuperTypes().add(this.getMultiplicityElement()); |
| 1042 | primitiveTypeEClass.getESuperTypes().add(this.getDataType()); |
| 1043 | propertyEClass.getESuperTypes().add(this.getTypedElement()); |
| 1044 | propertyEClass.getESuperTypes().add(this.getMultiplicityElement()); |
| 1045 | reflectiveCollectionEClass.getESuperTypes().add(this.getObject()); |
| 1046 | reflectiveSequenceEClass.getESuperTypes().add(this.getReflectiveCollection()); |
| 1047 | tagEClass.getESuperTypes().add(this.getElement()); |
| 1048 | typeEClass.getESuperTypes().add(this.getNamedElement()); |
| 1049 | typedElementEClass.getESuperTypes().add(this.getNamedElement()); |
| 1050 | uriExtentEClass.getESuperTypes().add(this.getExtent()); |
| 1051 | |
| 1052 | // Initialize classes and features; add operations and parameters |
| 1053 | initEClass(classEClass, EMOF.Class.class, "Class", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1054 | initEAttribute(getClass_IsAbstract(), this.getBoolean(), "isAbstract", "false", 0, 1, EMOF.Class.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1055 | initEReference(getClass_OwnedAttribute(), this.getProperty(), this.getProperty_Class(), "ownedAttribute", null, 0, -1, EMOF.Class.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1056 | initEReference(getClass_OwnedOperation(), this.getOperation(), this.getOperation_Class(), "ownedOperation", null, 0, -1, EMOF.Class.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1057 | initEReference(getClass_SuperClass(), this.getClass_(), null, "superClass", null, 0, -1, EMOF.Class.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 1058 | |
| 1059 | initEClass(commentEClass, Comment.class, "Comment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1060 | initEReference(getComment_AnnotatedElement(), this.getNamedElement(), null, "annotatedElement", null, 0, -1, Comment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 1061 | initEAttribute(getComment_Body(), this.getString(), "body", null, 0, 1, Comment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1062 | |
| 1063 | initEClass(dataTypeEClass, DataType.class, "DataType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1064 | |
| 1065 | initEClass(elementEClass, Element.class, "Element", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1066 | initEReference(getElement_OwnedComment(), this.getComment(), null, "ownedComment", null, 0, -1, Element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 1067 | |
| 1068 | addEOperation(elementEClass, this.getElement(), "container", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1069 | |
| 1070 | EOperation op = addEOperation(elementEClass, this.getBoolean(), "equals", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1071 | addEParameter(op, this.getObject(), "object", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1072 | |
| 1073 | op = addEOperation(elementEClass, this.getObject(), "get", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1074 | addEParameter(op, this.getProperty(), "property", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1075 | |
| 1076 | addEOperation(elementEClass, this.getClass_(), "getMetaClass", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1077 | |
| 1078 | op = addEOperation(elementEClass, this.getBoolean(), "isSet", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1079 | addEParameter(op, this.getProperty(), "property", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1080 | |
| 1081 | op = addEOperation(elementEClass, null, "set", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1082 | addEParameter(op, this.getProperty(), "property", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1083 | addEParameter(op, this.getObject(), "object", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1084 | |
| 1085 | op = addEOperation(elementEClass, null, "unset", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1086 | addEParameter(op, this.getProperty(), "property", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1087 | |
| 1088 | initEClass(enumerationEClass, Enumeration.class, "Enumeration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1089 | initEReference(getEnumeration_OwnedLiteral(), this.getEnumerationLiteral(), this.getEnumerationLiteral_Enumeration(), "ownedLiteral", null, 0, -1, Enumeration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1090 | |
| 1091 | initEClass(enumerationLiteralEClass, EnumerationLiteral.class, "EnumerationLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1092 | initEReference(getEnumerationLiteral_Enumeration(), this.getEnumeration(), this.getEnumeration_OwnedLiteral(), "enumeration", null, 0, 1, EnumerationLiteral.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1093 | |
| 1094 | initEClass(extentEClass, Extent.class, "Extent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1095 | |
| 1096 | addEOperation(extentEClass, this.getReflectiveSequence(), "elements", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1097 | |
| 1098 | addEOperation(extentEClass, this.getBoolean(), "useContainment", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1099 | |
| 1100 | initEClass(factoryEClass, Factory.class, "Factory", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1101 | initEReference(getFactory_Package(), this.getPackage(), null, "package", null, 1, 1, Factory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1102 | |
| 1103 | op = addEOperation(factoryEClass, this.getString(), "convertToString", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1104 | addEParameter(op, this.getDataType(), "dataType", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1105 | addEParameter(op, this.getObject(), "object", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1106 | |
| 1107 | op = addEOperation(factoryEClass, this.getElement(), "create", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1108 | addEParameter(op, this.getClass_(), "metaClass", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1109 | |
| 1110 | op = addEOperation(factoryEClass, this.getObject(), "createFromString", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1111 | addEParameter(op, this.getDataType(), "dataType", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1112 | addEParameter(op, this.getString(), "string", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1113 | |
| 1114 | initEClass(multiplicityElementEClass, MultiplicityElement.class, "MultiplicityElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1115 | initEAttribute(getMultiplicityElement_IsOrdered(), this.getBoolean(), "isOrdered", "false", 0, 1, MultiplicityElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1116 | initEAttribute(getMultiplicityElement_IsUnique(), this.getBoolean(), "isUnique", "true", 0, 1, MultiplicityElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1117 | initEAttribute(getMultiplicityElement_Lower(), this.getInteger(), "lower", "1", 0, 1, MultiplicityElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1118 | initEAttribute(getMultiplicityElement_Upper(), this.getUnlimitedNatural(), "upper", "1", 0, 1, MultiplicityElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1119 | |
| 1120 | initEClass(namedElementEClass, NamedElement.class, "NamedElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1121 | initEAttribute(getNamedElement_Name(), this.getString(), "name", null, 0, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1122 | |
| 1123 | initEClass(objectEClass, EMOF.Object.class, "Object", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1124 | |
| 1125 | initEClass(operationEClass, Operation.class, "Operation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1126 | initEReference(getOperation_Class(), this.getClass_(), this.getClass_OwnedOperation(), "class", null, 0, 1, Operation.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1127 | initEReference(getOperation_OwnedParameter(), this.getParameter(), this.getParameter_Operation(), "ownedParameter", null, 0, -1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1128 | initEReference(getOperation_RaisedException(), this.getType(), null, "raisedException", null, 0, -1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 1129 | |
| 1130 | initEClass(packageEClass, EMOF.Package.class, "Package", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1131 | initEReference(getPackage_NestedPackage(), this.getPackage(), this.getPackage_NestingPackage(), "nestedPackage", null, 0, -1, EMOF.Package.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 1132 | initEReference(getPackage_NestingPackage(), this.getPackage(), this.getPackage_NestedPackage(), "nestingPackage", null, 0, 1, EMOF.Package.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1133 | initEReference(getPackage_OwnedType(), this.getType(), this.getType_Package(), "ownedType", null, 0, -1, EMOF.Package.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 1134 | initEAttribute(getPackage_Uri(), this.getString(), "uri", null, 0, 1, EMOF.Package.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1135 | |
| 1136 | initEClass(parameterEClass, Parameter.class, "Parameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1137 | initEReference(getParameter_Operation(), this.getOperation(), this.getOperation_OwnedParameter(), "operation", null, 0, 1, Parameter.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1138 | |
| 1139 | initEClass(primitiveTypeEClass, PrimitiveType.class, "PrimitiveType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1140 | |
| 1141 | initEClass(propertyEClass, Property.class, "Property", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1142 | initEReference(getProperty_Class(), this.getClass_(), this.getClass_OwnedAttribute(), "class", null, 0, 1, Property.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1143 | initEAttribute(getProperty_Default(), this.getString(), "default", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1144 | initEAttribute(getProperty_IsComposite(), this.getBoolean(), "isComposite", "false", 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1145 | initEAttribute(getProperty_IsDerived(), this.getBoolean(), "isDerived", "false", 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1146 | initEAttribute(getProperty_IsID(), this.getBoolean(), "isID", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1147 | initEAttribute(getProperty_IsReadOnly(), this.getBoolean(), "isReadOnly", "false", 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1148 | initEReference(getProperty_Opposite(), this.getProperty(), null, "opposite", null, 0, 1, Property.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1149 | |
| 1150 | initEClass(reflectiveCollectionEClass, ReflectiveCollection.class, "ReflectiveCollection", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1151 | |
| 1152 | op = addEOperation(reflectiveCollectionEClass, this.getBoolean(), "add", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1153 | addEParameter(op, this.getObject(), "object", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1154 | |
| 1155 | op = addEOperation(reflectiveCollectionEClass, this.getBoolean(), "addAll", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1156 | addEParameter(op, this.getReflectiveSequence(), "objects", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1157 | |
| 1158 | addEOperation(reflectiveCollectionEClass, null, "clear", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1159 | |
| 1160 | op = addEOperation(reflectiveCollectionEClass, this.getBoolean(), "remove", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1161 | addEParameter(op, this.getObject(), "object", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1162 | |
| 1163 | addEOperation(reflectiveCollectionEClass, this.getInteger(), "size", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1164 | |
| 1165 | initEClass(reflectiveSequenceEClass, ReflectiveSequence.class, "ReflectiveSequence", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1166 | |
| 1167 | op = addEOperation(reflectiveSequenceEClass, null, "add", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1168 | addEParameter(op, this.getInteger(), "index", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1169 | addEParameter(op, this.getObject(), "object", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1170 | |
| 1171 | op = addEOperation(reflectiveSequenceEClass, this.getObject(), "get", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1172 | addEParameter(op, this.getInteger(), "index", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1173 | |
| 1174 | op = addEOperation(reflectiveSequenceEClass, this.getObject(), "remove", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1175 | addEParameter(op, this.getInteger(), "index", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1176 | |
| 1177 | op = addEOperation(reflectiveSequenceEClass, this.getObject(), "set", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1178 | addEParameter(op, this.getInteger(), "index", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1179 | addEParameter(op, this.getObject(), "object", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1180 | |
| 1181 | initEClass(tagEClass, Tag.class, "Tag", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1182 | initEReference(getTag_Element(), this.getElement(), null, "element", null, 0, -1, Tag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 1183 | initEAttribute(getTag_Name(), this.getString(), "name", null, 0, 1, Tag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1184 | initEAttribute(getTag_Value(), this.getString(), "value", null, 0, 1, Tag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1185 | |
| 1186 | initEClass(typeEClass, Type.class, "Type", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1187 | initEReference(getType_Package(), this.getPackage(), this.getPackage_OwnedType(), "package", null, 0, 1, Type.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1188 | |
| 1189 | op = addEOperation(typeEClass, this.getBoolean(), "isInstance", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1190 | addEParameter(op, this.getObject(), "object", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1191 | |
| 1192 | initEClass(typedElementEClass, TypedElement.class, "TypedElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1193 | initEReference(getTypedElement_Type(), this.getType(), null, "type", null, 0, 1, TypedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
| 1194 | |
| 1195 | initEClass(uriExtentEClass, URIExtent.class, "URIExtent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 1196 | |
| 1197 | addEOperation(uriExtentEClass, this.getString(), "contextURI", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1198 | |
| 1199 | op = addEOperation(uriExtentEClass, this.getElement(), "element", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1200 | addEParameter(op, this.getString(), "uri", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1201 | |
| 1202 | op = addEOperation(uriExtentEClass, this.getString(), "uri", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1203 | addEParameter(op, this.getElement(), "element", 0, 1, IS_UNIQUE, IS_ORDERED); |
| 1204 | |
| 1205 | // Initialize data types |
| 1206 | initEDataType(booleanEDataType, Boolean.class, "Boolean", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); |
| 1207 | initEDataType(integerEDataType, Integer.class, "Integer", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); |
| 1208 | initEDataType(realEDataType, Float.class, "Real", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); |
| 1209 | initEDataType(stringEDataType, String.class, "String", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); |
| 1210 | initEDataType(unlimitedNaturalEDataType, Integer.class, "UnlimitedNatural", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); |
| 1211 | |
| 1212 | // Create resource |
| 1213 | createResource(eNS_URI); |
| 1214 | } |
| 1215 | |
| 1216 | } //EMOFPackageImpl |