Search in sources :

Example 1 with ExtensionUtilitiesPackage

use of org.obeonetwork.dsl.entity.extensionUtilities.ExtensionUtilitiesPackage in project InformationSystem by ObeoNetwork.

the class EntityPackageImpl 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
    ExtensionUtilitiesPackage theExtensionUtilitiesPackage = (ExtensionUtilitiesPackage) EPackage.Registry.INSTANCE.getEPackage(ExtensionUtilitiesPackage.eNS_URI);
    EnvironmentPackage theEnvironmentPackage = (EnvironmentPackage) EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI);
    // Add subpackages
    getESubpackages().add(theExtensionUtilitiesPackage);
    // Create type parameters
    // Set bounds for type parameters
    // Add supertypes to classes
    rootEClass.getESuperTypes().add(theEnvironmentPackage.getTypesDefinition());
    rootEClass.getESuperTypes().add(theEnvironmentPackage.getNamespacesContainer());
    entityEClass.getESuperTypes().add(theEnvironmentPackage.getStructuredType());
    finderEClass.getESuperTypes().add(theEnvironmentPackage.getObeoDSMObject());
    internalCriterionEClass.getESuperTypes().add(this.getCriterion());
    criterionEClass.getESuperTypes().add(theEnvironmentPackage.getObeoDSMObject());
    externalCriterionEClass.getESuperTypes().add(this.getCriterion());
    // Initialize classes and features; add operations and parameters
    initEClass(rootEClass, Root.class, "Root", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getRoot_Name(), ecorePackage.getEString(), "name", null, 0, 1, Root.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(entityEClass, Entity.class, "Entity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getEntity_EstimatedVolumetry(), ecorePackage.getEInt(), "estimatedVolumetry", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getEntity_EstimatedAccess(), ecorePackage.getEInt(), "estimatedAccess", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getEntity_Historized(), ecorePackage.getEBoolean(), "historized", null, 1, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getEntity_OwnedFinders(), this.getFinder(), this.getFinder_Entity(), "ownedFinders", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getEntity_InheritanceKind(), this.getInheritanceKind(), "inheritanceKind", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(finderEClass, Finder.class, "Finder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getFinder_Name(), ecorePackage.getEString(), "name", null, 1, 1, Finder.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
    initEReference(getFinder_Entity(), this.getEntity(), this.getEntity_OwnedFinders(), "entity", null, 1, 1, Finder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getFinder_CustomizedName(), ecorePackage.getEString(), "customizedName", null, 0, 1, Finder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getFinder_Criterions(), this.getCriterion(), null, "criterions", null, 0, -1, Finder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getFinder_Multiplicity(), theEnvironmentPackage.getMultiplicityKind(), "multiplicity", null, 1, 1, Finder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(internalCriterionEClass, InternalCriterion.class, "InternalCriterion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getInternalCriterion_Target(), theEnvironmentPackage.getAttribute(), null, "target", null, 1, 1, InternalCriterion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getInternalCriterion_Name(), ecorePackage.getEString(), "name", null, 1, 1, InternalCriterion.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
    initEClass(criterionEClass, Criterion.class, "Criterion", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEClass(externalCriterionEClass, ExternalCriterion.class, "ExternalCriterion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getExternalCriterion_Name(), ecorePackage.getEString(), "name", null, 1, 1, ExternalCriterion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getExternalCriterion_Type(), theEnvironmentPackage.getType(), null, "type", null, 1, 1, ExternalCriterion.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(inheritanceKindEEnum, InheritanceKind.class, "InheritanceKind");
    addEEnumLiteral(inheritanceKindEEnum, InheritanceKind.TABLE_PER_SUBCLASS_LITERAL);
    addEEnumLiteral(inheritanceKindEEnum, InheritanceKind.TABLE_PER_CLASS_HIERARCHY_LITERAL);
    // Create resource
    createResource(eNS_URI);
}
Also used : EnvironmentPackage(org.obeonetwork.dsl.environment.EnvironmentPackage) ExtensionUtilitiesPackage(org.obeonetwork.dsl.entity.extensionUtilities.ExtensionUtilitiesPackage)

Aggregations

ExtensionUtilitiesPackage (org.obeonetwork.dsl.entity.extensionUtilities.ExtensionUtilitiesPackage)1 EnvironmentPackage (org.obeonetwork.dsl.environment.EnvironmentPackage)1