Search in sources :

Example 1 with CompositionPackage

use of org.palladiosimulator.pcm.core.composition.CompositionPackage in project iobserve-analysis by research-iobserve.

the class CorrespondencePackageImpl method initializePackageContents.

/**
 * Complete the initialization of the package and its meta-model.  This
 * method is guarded to have no affect on any invocation but its first.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void initializePackageContents() {
    if (isInitialized)
        return;
    isInitialized = true;
    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);
    // Obtain other dependent packages
    RepositoryPackage theRepositoryPackage = (RepositoryPackage) EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI);
    AllocationPackage theAllocationPackage = (AllocationPackage) EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI);
    CompositionPackage theCompositionPackage = (CompositionPackage) EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI);
    // Create type parameters
    // Set bounds for type parameters
    // Add supertypes to classes
    dataTypeEntryEClass.getESuperTypes().add(this.getAbstractEntry());
    componentEntryEClass.getESuperTypes().add(this.getAbstractEntry());
    allocationEntryEClass.getESuperTypes().add(this.getAbstractEntry());
    assemblyEntryEClass.getESuperTypes().add(this.getAbstractEntry());
    operationEntryEClass.getESuperTypes().add(this.getAbstractEntry());
    // Initialize classes, features, and operations; add parameters
    initEClass(correspondenceModelEClass, CorrespondenceModel.class, "CorrespondenceModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getCorrespondenceModel_Parts(), this.getPart(), null, "parts", null, 0, -1, CorrespondenceModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(dataTypeEntryEClass, DataTypeEntry.class, "DataTypeEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getDataTypeEntry_DataTypeEntry(), theRepositoryPackage.getDataType(), null, "dataTypeEntry", null, 1, 1, DataTypeEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(partEClass, Part.class, "Part", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getPart_ModelType(), ecorePackage.getEObject(), null, "modelType", null, 1, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getPart_Entries(), this.getAbstractEntry(), null, "entries", null, 0, -1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(abstractEntryEClass, AbstractEntry.class, "AbstractEntry", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getAbstractEntry_ImplementationId(), ecorePackage.getEString(), "implementationId", null, 0, 1, AbstractEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(componentEntryEClass, ComponentEntry.class, "ComponentEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getComponentEntry_Component(), theRepositoryPackage.getRepositoryComponent(), null, "component", null, 1, 1, ComponentEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(allocationEntryEClass, AllocationEntry.class, "AllocationEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getAllocationEntry_Allocation(), theAllocationPackage.getAllocationContext(), null, "allocation", null, 1, 1, AllocationEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getAllocationEntry_Technology(), this.getEServiceTechnology(), "technology", null, 1, 1, AllocationEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(assemblyEntryEClass, AssemblyEntry.class, "AssemblyEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getAssemblyEntry_Assembly(), theCompositionPackage.getAssemblyContext(), null, "assembly", null, 1, 1, AssemblyEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(operationEntryEClass, OperationEntry.class, "OperationEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getOperationEntry_Operation(), theRepositoryPackage.getOperationSignature(), null, "operation", null, 1, 1, OperationEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    // Initialize enums and add enum literals
    initEEnum(eServiceTechnologyEEnum, EServiceTechnology.class, "EServiceTechnology");
    addEEnumLiteral(eServiceTechnologyEEnum, EServiceTechnology.SERVLET);
    addEEnumLiteral(eServiceTechnologyEEnum, EServiceTechnology.EJB);
    addEEnumLiteral(eServiceTechnologyEEnum, EServiceTechnology.ASPECT_J);
    addEEnumLiteral(eServiceTechnologyEEnum, EServiceTechnology.DB);
    // Create resource
    createResource(eNS_URI);
}
Also used : CompositionPackage(org.palladiosimulator.pcm.core.composition.CompositionPackage) RepositoryPackage(org.palladiosimulator.pcm.repository.RepositoryPackage) AllocationPackage(org.palladiosimulator.pcm.allocation.AllocationPackage)

Aggregations

AllocationPackage (org.palladiosimulator.pcm.allocation.AllocationPackage)1 CompositionPackage (org.palladiosimulator.pcm.core.composition.CompositionPackage)1 RepositoryPackage (org.palladiosimulator.pcm.repository.RepositoryPackage)1