Search in sources :

Example 1 with CheckPackage

use of com.avaloq.tools.ddk.check.check.CheckPackage in project dsl-devkit by dsldevkit.

the class CheckcfgPackageImpl 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
    EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
    CheckPackage theCheckPackage = (CheckPackage) EPackage.Registry.INSTANCE.getEPackage(CheckPackage.eNS_URI);
    XbasePackage theXbasePackage = (XbasePackage) EPackage.Registry.INSTANCE.getEPackage(XbasePackage.eNS_URI);
    // Create type parameters
    // Set bounds for type parameters
    // Add supertypes to classes
    checkConfigurationEClass.getESuperTypes().add(this.getConfigurableSection());
    configuredLanguageValidatorEClass.getESuperTypes().add(this.getConfigurableSection());
    configuredCatalogEClass.getESuperTypes().add(this.getConfigurableSection());
    configuredCheckEClass.getESuperTypes().add(this.getConfigurableSection());
    // Initialize classes and features; add operations and parameters
    initEClass(checkConfigurationEClass, CheckConfiguration.class, "CheckConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getCheckConfiguration_Name(), theEcorePackage.getEString(), "name", null, 0, 1, CheckConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getCheckConfiguration_LanguageValidatorConfigurations(), this.getConfiguredLanguageValidator(), null, "languageValidatorConfigurations", null, 0, -1, CheckConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getCheckConfiguration_LegacyCatalogConfigurations(), this.getConfiguredCatalog(), null, "legacyCatalogConfigurations", null, 0, -1, CheckConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getCheckConfiguration_Properties(), theCheckPackage.getFormalParameter(), null, "properties", null, 0, -1, CheckConfiguration.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
    addEOperation(checkConfigurationEClass, this.getConfigurableSection(), "getConfigurableSections", 0, -1, IS_UNIQUE, IS_ORDERED);
    initEClass(configuredLanguageValidatorEClass, ConfiguredLanguageValidator.class, "ConfiguredLanguageValidator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getConfiguredLanguageValidator_Language(), theEcorePackage.getEString(), "language", null, 0, 1, ConfiguredLanguageValidator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getConfiguredLanguageValidator_CatalogConfigurations(), this.getConfiguredCatalog(), null, "catalogConfigurations", null, 0, -1, ConfiguredLanguageValidator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(configuredCatalogEClass, ConfiguredCatalog.class, "ConfiguredCatalog", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getConfiguredCatalog_Catalog(), theCheckPackage.getCheckCatalog(), null, "catalog", null, 0, 1, ConfiguredCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getConfiguredCatalog_CheckConfigurations(), this.getConfiguredCheck(), null, "checkConfigurations", null, 0, -1, ConfiguredCatalog.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(configuredCheckEClass, ConfiguredCheck.class, "ConfiguredCheck", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getConfiguredCheck_Severity(), this.getSeverityKind(), "severity", null, 0, 1, ConfiguredCheck.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getConfiguredCheck_Check(), theCheckPackage.getCheck(), null, "check", null, 0, 1, ConfiguredCheck.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(configuredParameterEClass, ConfiguredParameter.class, "ConfiguredParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getConfiguredParameter_Parameter(), theCheckPackage.getFormalParameter(), null, "parameter", null, 0, 1, ConfiguredParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getConfiguredParameter_NewValue(), theXbasePackage.getXExpression(), null, "newValue", null, 0, 1, ConfiguredParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(configurableSectionEClass, ConfigurableSection.class, "ConfigurableSection", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getConfigurableSection_ParameterConfigurations(), this.getConfiguredParameter(), null, "parameterConfigurations", null, 0, -1, ConfigurableSection.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(severityKindEEnum, SeverityKind.class, "SeverityKind");
    addEEnumLiteral(severityKindEEnum, SeverityKind.DEFAULT);
    addEEnumLiteral(severityKindEEnum, SeverityKind.ERROR);
    addEEnumLiteral(severityKindEEnum, SeverityKind.WARNING);
    addEEnumLiteral(severityKindEEnum, SeverityKind.INFO);
    addEEnumLiteral(severityKindEEnum, SeverityKind.IGNORE);
    // Create resource
    createResource(eNS_URI);
}
Also used : EcorePackage(org.eclipse.emf.ecore.EcorePackage) CheckPackage(com.avaloq.tools.ddk.check.check.CheckPackage) XbasePackage(org.eclipse.xtext.xbase.XbasePackage)

Aggregations

CheckPackage (com.avaloq.tools.ddk.check.check.CheckPackage)1 EcorePackage (org.eclipse.emf.ecore.EcorePackage)1 XbasePackage (org.eclipse.xtext.xbase.XbasePackage)1