| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package de.fzi.se.quality.parameters.impl; |
| 8 | |
| 9 | import de.fzi.se.quality.QualityPackage; |
| 10 | |
| 11 | import de.fzi.se.quality.impl.QualityPackageImpl; |
| 12 | |
| 13 | import de.fzi.se.quality.parameters.BusinessOperationReference; |
| 14 | import de.fzi.se.quality.parameters.CallInstance; |
| 15 | import de.fzi.se.quality.parameters.ComponentInstance; |
| 16 | import de.fzi.se.quality.parameters.ComponentReference; |
| 17 | import de.fzi.se.quality.parameters.InfrastructureOperationReference; |
| 18 | import de.fzi.se.quality.parameters.OperationReference; |
| 19 | import de.fzi.se.quality.parameters.ParameterInstance; |
| 20 | import de.fzi.se.quality.parameters.ParameterPartition; |
| 21 | import de.fzi.se.quality.parameters.ParameterReference; |
| 22 | import de.fzi.se.quality.parameters.ParameterValue; |
| 23 | import de.fzi.se.quality.parameters.ParametersFactory; |
| 24 | import de.fzi.se.quality.parameters.ParametersPackage; |
| 25 | |
| 26 | import de.fzi.se.quality.parameters.pcm.PCMPackage; |
| 27 | |
| 28 | import de.fzi.se.quality.parameters.pcm.impl.PCMPackageImpl; |
| 29 | |
| 30 | import de.fzi.se.quality.qualityannotation.QualityAnnotationPackage; |
| 31 | |
| 32 | import de.fzi.se.quality.qualityannotation.impl.QualityAnnotationPackageImpl; |
| 33 | |
| 34 | import de.uka.ipd.sdq.identifier.IdentifierPackage; |
| 35 | |
| 36 | import de.uka.ipd.sdq.pcm.PcmPackage; |
| 37 | |
| 38 | import org.eclipse.emf.ecore.EAttribute; |
| 39 | import org.eclipse.emf.ecore.EClass; |
| 40 | import org.eclipse.emf.ecore.EPackage; |
| 41 | import org.eclipse.emf.ecore.EReference; |
| 42 | |
| 43 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
| 44 | |
| 45 | /** |
| 46 | * <!-- begin-user-doc --> |
| 47 | * An implementation of the model <b>Package</b>. |
| 48 | * <!-- end-user-doc --> |
| 49 | * @generated |
| 50 | */ |
| 51 | public class ParametersPackageImpl extends EPackageImpl implements ParametersPackage { |
| 52 | /** |
| 53 | * <!-- begin-user-doc --> |
| 54 | * <!-- end-user-doc --> |
| 55 | * @generated |
| 56 | */ |
| 57 | private EClass parameterPartitionEClass = null; |
| 58 | |
| 59 | /** |
| 60 | * <!-- begin-user-doc --> |
| 61 | * <!-- end-user-doc --> |
| 62 | * @generated |
| 63 | */ |
| 64 | private EClass parameterValueEClass = null; |
| 65 | |
| 66 | /** |
| 67 | * <!-- begin-user-doc --> |
| 68 | * <!-- end-user-doc --> |
| 69 | * @generated |
| 70 | */ |
| 71 | private EClass parameterInstanceEClass = null; |
| 72 | |
| 73 | /** |
| 74 | * <!-- begin-user-doc --> |
| 75 | * <!-- end-user-doc --> |
| 76 | * @generated |
| 77 | */ |
| 78 | private EClass callInstanceEClass = null; |
| 79 | |
| 80 | /** |
| 81 | * <!-- begin-user-doc --> |
| 82 | * <!-- end-user-doc --> |
| 83 | * @generated |
| 84 | */ |
| 85 | private EClass operationReferenceEClass = null; |
| 86 | |
| 87 | /** |
| 88 | * <!-- begin-user-doc --> |
| 89 | * <!-- end-user-doc --> |
| 90 | * @generated |
| 91 | */ |
| 92 | private EClass componentInstanceEClass = null; |
| 93 | |
| 94 | /** |
| 95 | * <!-- begin-user-doc --> |
| 96 | * <!-- end-user-doc --> |
| 97 | * @generated |
| 98 | */ |
| 99 | private EClass componentReferenceEClass = null; |
| 100 | |
| 101 | /** |
| 102 | * <!-- begin-user-doc --> |
| 103 | * <!-- end-user-doc --> |
| 104 | * @generated |
| 105 | */ |
| 106 | private EClass infrastructureOperationReferenceEClass = null; |
| 107 | |
| 108 | /** |
| 109 | * <!-- begin-user-doc --> |
| 110 | * <!-- end-user-doc --> |
| 111 | * @generated |
| 112 | */ |
| 113 | private EClass businessOperationReferenceEClass = null; |
| 114 | |
| 115 | /** |
| 116 | * <!-- begin-user-doc --> |
| 117 | * <!-- end-user-doc --> |
| 118 | * @generated |
| 119 | */ |
| 120 | private EClass parameterReferenceEClass = null; |
| 121 | |
| 122 | /** |
| 123 | * Creates an instance of the model <b>Package</b>, registered with |
| 124 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
| 125 | * package URI value. |
| 126 | * <p>Note: the correct way to create the package is via the static |
| 127 | * factory method {@link #init init()}, which also performs |
| 128 | * initialization of the package, or returns the registered package, |
| 129 | * if one already exists. |
| 130 | * <!-- begin-user-doc --> |
| 131 | * <!-- end-user-doc --> |
| 132 | * @see org.eclipse.emf.ecore.EPackage.Registry |
| 133 | * @see de.fzi.se.quality.parameters.ParametersPackage#eNS_URI |
| 134 | * @see #init() |
| 135 | * @generated |
| 136 | */ |
| 137 | private ParametersPackageImpl() { |
| 138 | super(eNS_URI, ParametersFactory.eINSTANCE); |
| 139 | } |
| 140 | |
| 141 | /** |
| 142 | * <!-- begin-user-doc --> |
| 143 | * <!-- end-user-doc --> |
| 144 | * @generated |
| 145 | */ |
| 146 | private static boolean isInited = false; |
| 147 | |
| 148 | /** |
| 149 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
| 150 | * |
| 151 | * <p>This method is used to initialize {@link ParametersPackage#eINSTANCE} when that field is accessed. |
| 152 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
| 153 | * <!-- begin-user-doc --> |
| 154 | * <!-- end-user-doc --> |
| 155 | * @see #eNS_URI |
| 156 | * @see #createPackageContents() |
| 157 | * @see #initializePackageContents() |
| 158 | * @generated |
| 159 | */ |
| 160 | public static ParametersPackage init() { |
| 161 | if (isInited) return (ParametersPackage)EPackage.Registry.INSTANCE.getEPackage(ParametersPackage.eNS_URI); |
| 162 | |
| 163 | // Obtain or create and register package |
| 164 | ParametersPackageImpl theParametersPackage = (ParametersPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ParametersPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ParametersPackageImpl()); |
| 165 | |
| 166 | isInited = true; |
| 167 | |
| 168 | // Initialize simple dependencies |
| 169 | PcmPackage.eINSTANCE.eClass(); |
| 170 | |
| 171 | // Obtain or create and register interdependencies |
| 172 | QualityPackageImpl theQualityPackage = (QualityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QualityPackage.eNS_URI) instanceof QualityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QualityPackage.eNS_URI) : QualityPackage.eINSTANCE); |
| 173 | QualityAnnotationPackageImpl theQualityAnnotationPackage = (QualityAnnotationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QualityAnnotationPackage.eNS_URI) instanceof QualityAnnotationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QualityAnnotationPackage.eNS_URI) : QualityAnnotationPackage.eINSTANCE); |
| 174 | PCMPackageImpl thePCMPackage = (PCMPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PCMPackage.eNS_URI) instanceof PCMPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PCMPackage.eNS_URI) : PCMPackage.eINSTANCE); |
| 175 | |
| 176 | // Create package meta-data objects |
| 177 | theParametersPackage.createPackageContents(); |
| 178 | theQualityPackage.createPackageContents(); |
| 179 | theQualityAnnotationPackage.createPackageContents(); |
| 180 | thePCMPackage.createPackageContents(); |
| 181 | |
| 182 | // Initialize created meta-data |
| 183 | theParametersPackage.initializePackageContents(); |
| 184 | theQualityPackage.initializePackageContents(); |
| 185 | theQualityAnnotationPackage.initializePackageContents(); |
| 186 | thePCMPackage.initializePackageContents(); |
| 187 | |
| 188 | // Mark meta-data to indicate it can't be changed |
| 189 | theParametersPackage.freeze(); |
| 190 | |
| 191 | |
| 192 | // Update the registry and return the package |
| 193 | EPackage.Registry.INSTANCE.put(ParametersPackage.eNS_URI, theParametersPackage); |
| 194 | return theParametersPackage; |
| 195 | } |
| 196 | |
| 197 | /** |
| 198 | * <!-- begin-user-doc --> |
| 199 | * <!-- end-user-doc --> |
| 200 | * @generated |
| 201 | */ |
| 202 | public EClass getParameterPartition() { |
| 203 | return parameterPartitionEClass; |
| 204 | } |
| 205 | |
| 206 | /** |
| 207 | * <!-- begin-user-doc --> |
| 208 | * <!-- end-user-doc --> |
| 209 | * @generated |
| 210 | */ |
| 211 | public EReference getParameterPartition_ValidatedSetting() { |
| 212 | return (EReference)parameterPartitionEClass.getEStructuralFeatures().get(0); |
| 213 | } |
| 214 | |
| 215 | /** |
| 216 | * <!-- begin-user-doc --> |
| 217 | * <!-- end-user-doc --> |
| 218 | * @generated |
| 219 | */ |
| 220 | public EClass getParameterValue() { |
| 221 | return parameterValueEClass; |
| 222 | } |
| 223 | |
| 224 | /** |
| 225 | * <!-- begin-user-doc --> |
| 226 | * <!-- end-user-doc --> |
| 227 | * @generated |
| 228 | */ |
| 229 | public EReference getParameterValue_ParameterInstance() { |
| 230 | return (EReference)parameterValueEClass.getEStructuralFeatures().get(0); |
| 231 | } |
| 232 | |
| 233 | /** |
| 234 | * <!-- begin-user-doc --> |
| 235 | * <!-- end-user-doc --> |
| 236 | * @generated |
| 237 | */ |
| 238 | public EClass getParameterInstance() { |
| 239 | return parameterInstanceEClass; |
| 240 | } |
| 241 | |
| 242 | /** |
| 243 | * <!-- begin-user-doc --> |
| 244 | * <!-- end-user-doc --> |
| 245 | * @generated |
| 246 | */ |
| 247 | public EReference getParameterInstance_ParameterReference() { |
| 248 | return (EReference)parameterInstanceEClass.getEStructuralFeatures().get(0); |
| 249 | } |
| 250 | |
| 251 | /** |
| 252 | * <!-- begin-user-doc --> |
| 253 | * <!-- end-user-doc --> |
| 254 | * @generated |
| 255 | */ |
| 256 | public EReference getParameterInstance_InputCallInstance() { |
| 257 | return (EReference)parameterInstanceEClass.getEStructuralFeatures().get(1); |
| 258 | } |
| 259 | |
| 260 | /** |
| 261 | * <!-- begin-user-doc --> |
| 262 | * <!-- end-user-doc --> |
| 263 | * @generated |
| 264 | */ |
| 265 | public EReference getParameterInstance_OutputCallInstance() { |
| 266 | return (EReference)parameterInstanceEClass.getEStructuralFeatures().get(2); |
| 267 | } |
| 268 | |
| 269 | /** |
| 270 | * <!-- begin-user-doc --> |
| 271 | * <!-- end-user-doc --> |
| 272 | * @generated |
| 273 | */ |
| 274 | public EReference getParameterInstance_ComponentInstance() { |
| 275 | return (EReference)parameterInstanceEClass.getEStructuralFeatures().get(3); |
| 276 | } |
| 277 | |
| 278 | /** |
| 279 | * <!-- begin-user-doc --> |
| 280 | * <!-- end-user-doc --> |
| 281 | * @generated |
| 282 | */ |
| 283 | public EReference getParameterInstance_ParameterValue() { |
| 284 | return (EReference)parameterInstanceEClass.getEStructuralFeatures().get(4); |
| 285 | } |
| 286 | |
| 287 | /** |
| 288 | * <!-- begin-user-doc --> |
| 289 | * <!-- end-user-doc --> |
| 290 | * @generated |
| 291 | */ |
| 292 | public EClass getCallInstance() { |
| 293 | return callInstanceEClass; |
| 294 | } |
| 295 | |
| 296 | /** |
| 297 | * <!-- begin-user-doc --> |
| 298 | * <!-- end-user-doc --> |
| 299 | * @generated |
| 300 | */ |
| 301 | public EReference getCallInstance_OperationReference() { |
| 302 | return (EReference)callInstanceEClass.getEStructuralFeatures().get(0); |
| 303 | } |
| 304 | |
| 305 | /** |
| 306 | * <!-- begin-user-doc --> |
| 307 | * <!-- end-user-doc --> |
| 308 | * @generated |
| 309 | */ |
| 310 | public EReference getCallInstance_OutputParameterInstances() { |
| 311 | return (EReference)callInstanceEClass.getEStructuralFeatures().get(1); |
| 312 | } |
| 313 | |
| 314 | /** |
| 315 | * <!-- begin-user-doc --> |
| 316 | * <!-- end-user-doc --> |
| 317 | * @generated |
| 318 | */ |
| 319 | public EAttribute getCallInstance_NumberOfCalls() { |
| 320 | return (EAttribute)callInstanceEClass.getEStructuralFeatures().get(2); |
| 321 | } |
| 322 | |
| 323 | /** |
| 324 | * <!-- begin-user-doc --> |
| 325 | * <!-- end-user-doc --> |
| 326 | * @generated |
| 327 | */ |
| 328 | public EReference getCallInstance_InputParameterInstances() { |
| 329 | return (EReference)callInstanceEClass.getEStructuralFeatures().get(3); |
| 330 | } |
| 331 | |
| 332 | /** |
| 333 | * <!-- begin-user-doc --> |
| 334 | * <!-- end-user-doc --> |
| 335 | * @generated |
| 336 | */ |
| 337 | public EClass getOperationReference() { |
| 338 | return operationReferenceEClass; |
| 339 | } |
| 340 | |
| 341 | /** |
| 342 | * <!-- begin-user-doc --> |
| 343 | * <!-- end-user-doc --> |
| 344 | * @generated |
| 345 | */ |
| 346 | public EReference getOperationReference_CallInstance() { |
| 347 | return (EReference)operationReferenceEClass.getEStructuralFeatures().get(0); |
| 348 | } |
| 349 | |
| 350 | /** |
| 351 | * <!-- begin-user-doc --> |
| 352 | * <!-- end-user-doc --> |
| 353 | * @generated |
| 354 | */ |
| 355 | public EClass getComponentInstance() { |
| 356 | return componentInstanceEClass; |
| 357 | } |
| 358 | |
| 359 | /** |
| 360 | * <!-- begin-user-doc --> |
| 361 | * <!-- end-user-doc --> |
| 362 | * @generated |
| 363 | */ |
| 364 | public EReference getComponentInstance_ComponentReference() { |
| 365 | return (EReference)componentInstanceEClass.getEStructuralFeatures().get(0); |
| 366 | } |
| 367 | |
| 368 | /** |
| 369 | * <!-- begin-user-doc --> |
| 370 | * <!-- end-user-doc --> |
| 371 | * @generated |
| 372 | */ |
| 373 | public EReference getComponentInstance_ParameterInstances() { |
| 374 | return (EReference)componentInstanceEClass.getEStructuralFeatures().get(1); |
| 375 | } |
| 376 | |
| 377 | /** |
| 378 | * <!-- begin-user-doc --> |
| 379 | * <!-- end-user-doc --> |
| 380 | * @generated |
| 381 | */ |
| 382 | public EClass getComponentReference() { |
| 383 | return componentReferenceEClass; |
| 384 | } |
| 385 | |
| 386 | /** |
| 387 | * <!-- begin-user-doc --> |
| 388 | * <!-- end-user-doc --> |
| 389 | * @generated |
| 390 | */ |
| 391 | public EReference getComponentReference_ComponentInstance() { |
| 392 | return (EReference)componentReferenceEClass.getEStructuralFeatures().get(0); |
| 393 | } |
| 394 | |
| 395 | /** |
| 396 | * <!-- begin-user-doc --> |
| 397 | * <!-- end-user-doc --> |
| 398 | * @generated |
| 399 | */ |
| 400 | public EClass getInfrastructureOperationReference() { |
| 401 | return infrastructureOperationReferenceEClass; |
| 402 | } |
| 403 | |
| 404 | /** |
| 405 | * <!-- begin-user-doc --> |
| 406 | * <!-- end-user-doc --> |
| 407 | * @generated |
| 408 | */ |
| 409 | public EClass getBusinessOperationReference() { |
| 410 | return businessOperationReferenceEClass; |
| 411 | } |
| 412 | |
| 413 | /** |
| 414 | * <!-- begin-user-doc --> |
| 415 | * <!-- end-user-doc --> |
| 416 | * @generated |
| 417 | */ |
| 418 | public EClass getParameterReference() { |
| 419 | return parameterReferenceEClass; |
| 420 | } |
| 421 | |
| 422 | /** |
| 423 | * <!-- begin-user-doc --> |
| 424 | * <!-- end-user-doc --> |
| 425 | * @generated |
| 426 | */ |
| 427 | public EReference getParameterReference_ParameterInstance() { |
| 428 | return (EReference)parameterReferenceEClass.getEStructuralFeatures().get(0); |
| 429 | } |
| 430 | |
| 431 | /** |
| 432 | * <!-- begin-user-doc --> |
| 433 | * <!-- end-user-doc --> |
| 434 | * @generated |
| 435 | */ |
| 436 | public EReference getParameterReference_CallParameterDeviation() { |
| 437 | return (EReference)parameterReferenceEClass.getEStructuralFeatures().get(1); |
| 438 | } |
| 439 | |
| 440 | /** |
| 441 | * <!-- begin-user-doc --> |
| 442 | * <!-- end-user-doc --> |
| 443 | * @generated |
| 444 | */ |
| 445 | public ParametersFactory getParametersFactory() { |
| 446 | return (ParametersFactory)getEFactoryInstance(); |
| 447 | } |
| 448 | |
| 449 | /** |
| 450 | * <!-- begin-user-doc --> |
| 451 | * <!-- end-user-doc --> |
| 452 | * @generated |
| 453 | */ |
| 454 | private boolean isCreated = false; |
| 455 | |
| 456 | /** |
| 457 | * Creates the meta-model objects for the package. This method is |
| 458 | * guarded to have no affect on any invocation but its first. |
| 459 | * <!-- begin-user-doc --> |
| 460 | * <!-- end-user-doc --> |
| 461 | * @generated |
| 462 | */ |
| 463 | public void createPackageContents() { |
| 464 | if (isCreated) return; |
| 465 | isCreated = true; |
| 466 | |
| 467 | // Create classes and their features |
| 468 | parameterPartitionEClass = createEClass(PARAMETER_PARTITION); |
| 469 | createEReference(parameterPartitionEClass, PARAMETER_PARTITION__VALIDATED_SETTING); |
| 470 | |
| 471 | parameterValueEClass = createEClass(PARAMETER_VALUE); |
| 472 | createEReference(parameterValueEClass, PARAMETER_VALUE__PARAMETER_INSTANCE); |
| 473 | |
| 474 | parameterInstanceEClass = createEClass(PARAMETER_INSTANCE); |
| 475 | createEReference(parameterInstanceEClass, PARAMETER_INSTANCE__PARAMETER_REFERENCE); |
| 476 | createEReference(parameterInstanceEClass, PARAMETER_INSTANCE__INPUT_CALL_INSTANCE); |
| 477 | createEReference(parameterInstanceEClass, PARAMETER_INSTANCE__OUTPUT_CALL_INSTANCE); |
| 478 | createEReference(parameterInstanceEClass, PARAMETER_INSTANCE__COMPONENT_INSTANCE); |
| 479 | createEReference(parameterInstanceEClass, PARAMETER_INSTANCE__PARAMETER_VALUE); |
| 480 | |
| 481 | callInstanceEClass = createEClass(CALL_INSTANCE); |
| 482 | createEReference(callInstanceEClass, CALL_INSTANCE__OPERATION_REFERENCE); |
| 483 | createEReference(callInstanceEClass, CALL_INSTANCE__OUTPUT_PARAMETER_INSTANCES); |
| 484 | createEAttribute(callInstanceEClass, CALL_INSTANCE__NUMBER_OF_CALLS); |
| 485 | createEReference(callInstanceEClass, CALL_INSTANCE__INPUT_PARAMETER_INSTANCES); |
| 486 | |
| 487 | operationReferenceEClass = createEClass(OPERATION_REFERENCE); |
| 488 | createEReference(operationReferenceEClass, OPERATION_REFERENCE__CALL_INSTANCE); |
| 489 | |
| 490 | componentInstanceEClass = createEClass(COMPONENT_INSTANCE); |
| 491 | createEReference(componentInstanceEClass, COMPONENT_INSTANCE__COMPONENT_REFERENCE); |
| 492 | createEReference(componentInstanceEClass, COMPONENT_INSTANCE__PARAMETER_INSTANCES); |
| 493 | |
| 494 | componentReferenceEClass = createEClass(COMPONENT_REFERENCE); |
| 495 | createEReference(componentReferenceEClass, COMPONENT_REFERENCE__COMPONENT_INSTANCE); |
| 496 | |
| 497 | infrastructureOperationReferenceEClass = createEClass(INFRASTRUCTURE_OPERATION_REFERENCE); |
| 498 | |
| 499 | businessOperationReferenceEClass = createEClass(BUSINESS_OPERATION_REFERENCE); |
| 500 | |
| 501 | parameterReferenceEClass = createEClass(PARAMETER_REFERENCE); |
| 502 | createEReference(parameterReferenceEClass, PARAMETER_REFERENCE__PARAMETER_INSTANCE); |
| 503 | createEReference(parameterReferenceEClass, PARAMETER_REFERENCE__CALL_PARAMETER_DEVIATION); |
| 504 | } |
| 505 | |
| 506 | /** |
| 507 | * <!-- begin-user-doc --> |
| 508 | * <!-- end-user-doc --> |
| 509 | * @generated |
| 510 | */ |
| 511 | private boolean isInitialized = false; |
| 512 | |
| 513 | /** |
| 514 | * Complete the initialization of the package and its meta-model. This |
| 515 | * method is guarded to have no affect on any invocation but its first. |
| 516 | * <!-- begin-user-doc --> |
| 517 | * <!-- end-user-doc --> |
| 518 | * @generated |
| 519 | */ |
| 520 | public void initializePackageContents() { |
| 521 | if (isInitialized) return; |
| 522 | isInitialized = true; |
| 523 | |
| 524 | // Initialize package |
| 525 | setName(eNAME); |
| 526 | setNsPrefix(eNS_PREFIX); |
| 527 | setNsURI(eNS_URI); |
| 528 | |
| 529 | // Obtain other dependent packages |
| 530 | PCMPackage thePCMPackage = (PCMPackage)EPackage.Registry.INSTANCE.getEPackage(PCMPackage.eNS_URI); |
| 531 | IdentifierPackage theIdentifierPackage = (IdentifierPackage)EPackage.Registry.INSTANCE.getEPackage(IdentifierPackage.eNS_URI); |
| 532 | QualityAnnotationPackage theQualityAnnotationPackage = (QualityAnnotationPackage)EPackage.Registry.INSTANCE.getEPackage(QualityAnnotationPackage.eNS_URI); |
| 533 | |
| 534 | // Add subpackages |
| 535 | getESubpackages().add(thePCMPackage); |
| 536 | |
| 537 | // Create type parameters |
| 538 | |
| 539 | // Set bounds for type parameters |
| 540 | |
| 541 | // Add supertypes to classes |
| 542 | parameterPartitionEClass.getESuperTypes().add(theIdentifierPackage.getIdentifier()); |
| 543 | parameterValueEClass.getESuperTypes().add(theIdentifierPackage.getIdentifier()); |
| 544 | callInstanceEClass.getESuperTypes().add(theIdentifierPackage.getIdentifier()); |
| 545 | componentInstanceEClass.getESuperTypes().add(theIdentifierPackage.getIdentifier()); |
| 546 | infrastructureOperationReferenceEClass.getESuperTypes().add(this.getOperationReference()); |
| 547 | businessOperationReferenceEClass.getESuperTypes().add(this.getOperationReference()); |
| 548 | parameterReferenceEClass.getESuperTypes().add(theIdentifierPackage.getIdentifier()); |
| 549 | |
| 550 | // Initialize classes and features; add operations and parameters |
| 551 | initEClass(parameterPartitionEClass, ParameterPartition.class, "ParameterPartition", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 552 | initEReference(getParameterPartition_ValidatedSetting(), theQualityAnnotationPackage.getQualityAnnotation(), theQualityAnnotationPackage.getQualityAnnotation_ValidForParameterPartitions(), "validatedSetting", null, 1, 1, ParameterPartition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 553 | |
| 554 | initEClass(parameterValueEClass, ParameterValue.class, "ParameterValue", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 555 | initEReference(getParameterValue_ParameterInstance(), this.getParameterInstance(), this.getParameterInstance_ParameterValue(), "parameterInstance", null, 0, 1, ParameterValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 556 | |
| 557 | initEClass(parameterInstanceEClass, ParameterInstance.class, "ParameterInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 558 | initEReference(getParameterInstance_ParameterReference(), this.getParameterReference(), this.getParameterReference_ParameterInstance(), "parameterReference", null, 0, 1, ParameterInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 559 | initEReference(getParameterInstance_InputCallInstance(), this.getCallInstance(), this.getCallInstance_InputParameterInstances(), "inputCallInstance", null, 0, 1, ParameterInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 560 | initEReference(getParameterInstance_OutputCallInstance(), this.getCallInstance(), this.getCallInstance_OutputParameterInstances(), "outputCallInstance", null, 0, 1, ParameterInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 561 | initEReference(getParameterInstance_ComponentInstance(), this.getComponentInstance(), this.getComponentInstance_ParameterInstances(), "componentInstance", null, 0, 1, ParameterInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 562 | initEReference(getParameterInstance_ParameterValue(), this.getParameterValue(), this.getParameterValue_ParameterInstance(), "parameterValue", null, 1, 1, ParameterInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 563 | |
| 564 | initEClass(callInstanceEClass, CallInstance.class, "CallInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 565 | initEReference(getCallInstance_OperationReference(), this.getOperationReference(), this.getOperationReference_CallInstance(), "operationReference", null, 1, 1, CallInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 566 | initEReference(getCallInstance_OutputParameterInstances(), this.getParameterInstance(), this.getParameterInstance_OutputCallInstance(), "outputParameterInstances", null, 0, -1, CallInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 567 | initEAttribute(getCallInstance_NumberOfCalls(), ecorePackage.getELong(), "numberOfCalls", "1", 1, 1, CallInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 568 | initEReference(getCallInstance_InputParameterInstances(), this.getParameterInstance(), this.getParameterInstance_InputCallInstance(), "inputParameterInstances", null, 0, -1, CallInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 569 | |
| 570 | initEClass(operationReferenceEClass, OperationReference.class, "OperationReference", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 571 | initEReference(getOperationReference_CallInstance(), this.getCallInstance(), this.getCallInstance_OperationReference(), "callInstance", null, 0, 1, OperationReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 572 | |
| 573 | initEClass(componentInstanceEClass, ComponentInstance.class, "ComponentInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 574 | initEReference(getComponentInstance_ComponentReference(), this.getComponentReference(), this.getComponentReference_ComponentInstance(), "componentReference", null, 0, -1, ComponentInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 575 | initEReference(getComponentInstance_ParameterInstances(), this.getParameterInstance(), this.getParameterInstance_ComponentInstance(), "parameterInstances", null, 0, -1, ComponentInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 576 | |
| 577 | initEClass(componentReferenceEClass, ComponentReference.class, "ComponentReference", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 578 | initEReference(getComponentReference_ComponentInstance(), this.getComponentInstance(), this.getComponentInstance_ComponentReference(), "componentInstance", null, 0, 1, ComponentReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 579 | |
| 580 | initEClass(infrastructureOperationReferenceEClass, InfrastructureOperationReference.class, "InfrastructureOperationReference", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 581 | |
| 582 | initEClass(businessOperationReferenceEClass, BusinessOperationReference.class, "BusinessOperationReference", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 583 | |
| 584 | initEClass(parameterReferenceEClass, ParameterReference.class, "ParameterReference", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
| 585 | initEReference(getParameterReference_ParameterInstance(), this.getParameterInstance(), this.getParameterInstance_ParameterReference(), "parameterInstance", null, 0, 1, ParameterReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 586 | initEReference(getParameterReference_CallParameterDeviation(), theQualityAnnotationPackage.getCallParameterDeviation(), theQualityAnnotationPackage.getCallParameterDeviation_ParameterReference(), "callParameterDeviation", null, 0, 1, ParameterReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
| 587 | } |
| 588 | |
| 589 | } //ParametersPackageImpl |