Search in sources :

Example 1 with PatternPackage

use of org.talend.dataquality.domain.pattern.PatternPackage in project tdq-studio-se by Talend.

the class DomainPackageImpl 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
    PatternPackage thePatternPackage = (PatternPackage) EPackage.Registry.INSTANCE.getEPackage(PatternPackage.eNS_URI);
    SQLPackage theSQLPackage = (SQLPackage) EPackage.Registry.INSTANCE.getEPackage(SQLPackage.eNS_URI);
    CorePackage theCorePackage = (CorePackage) EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI);
    DatatypesPackage theDatatypesPackage = (DatatypesPackage) EPackage.Registry.INSTANCE.getEPackage(DatatypesPackage.eNS_URI);
    ExpressionsPackage theExpressionsPackage = (ExpressionsPackage) EPackage.Registry.INSTANCE.getEPackage(ExpressionsPackage.eNS_URI);
    ModelPackage theModelPackage = (ModelPackage) EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI);
    // Add subpackages
    getESubpackages().add(thePatternPackage);
    getESubpackages().add(theSQLPackage);
    // Create type parameters
    // Set bounds for type parameters
    // Add supertypes to classes
    domainEClass.getESuperTypes().add(theCorePackage.getNamespace());
    rangeRestrictionEClass.getESuperTypes().add(theCorePackage.getModelElement());
    numericValueEClass.getESuperTypes().add(this.getLiteralValue());
    textValueEClass.getESuperTypes().add(this.getLiteralValue());
    integerValueEClass.getESuperTypes().add(this.getNumericValue());
    realNumberValueEClass.getESuperTypes().add(this.getNumericValue());
    dateValueEClass.getESuperTypes().add(this.getNumericValue());
    javaUDIIndicatorParameterEClass.getESuperTypes().add(theModelPackage.getModelElement());
    // Initialize classes and features; add operations and parameters
    initEClass(domainEClass, Domain.class, "Domain", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getDomain_DataType(), theCorePackage.getDataType(), null, "dataType", null, 0, 1, Domain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getDomain_LengthRestriction(), this.getLengthRestriction(), null, "lengthRestriction", null, 0, -1, Domain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getDomain_Ranges(), this.getRangeRestriction(), null, "ranges", null, 0, -1, Domain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getDomain_Patterns(), thePatternPackage.getPattern(), null, "patterns", null, 0, -1, Domain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getDomain_JavaUDIIndicatorParameter(), this.getJavaUDIIndicatorParameter(), null, "javaUDIIndicatorParameter", null, 0, -1, Domain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getDomain_BuiltInPatterns(), thePatternPackage.getPattern(), null, "builtInPatterns", null, 0, -1, Domain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(enumerationRuleEClass, EnumerationRule.class, "EnumerationRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getEnumerationRule_Domain(), this.getDomain(), null, "domain", null, 0, -1, EnumerationRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getEnumerationRule_Enumeration(), theDatatypesPackage.getEnumeration(), null, "enumeration", null, 0, 1, EnumerationRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(rangeRestrictionEClass, RangeRestriction.class, "RangeRestriction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getRangeRestriction_LowerValue(), this.getLiteralValue(), null, "lowerValue", null, 0, 1, RangeRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getRangeRestriction_UpperValue(), this.getLiteralValue(), null, "upperValue", null, 0, 1, RangeRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getRangeRestriction_Expressions(), theExpressionsPackage.getBooleanExpressionNode(), null, "expressions", null, 0, 1, RangeRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(literalValueEClass, LiteralValue.class, "LiteralValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getLiteralValue_EncodeValueMeaning(), ecorePackage.getEString(), "encodeValueMeaning", null, 0, 1, LiteralValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(lengthRestrictionEClass, LengthRestriction.class, "LengthRestriction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getLengthRestriction_Maximum(), ecorePackage.getEInt(), "maximum", null, 0, 1, LengthRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getLengthRestriction_Minimum(), ecorePackage.getEInt(), "minimum", null, 0, 1, LengthRestriction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(numericValueEClass, NumericValue.class, "NumericValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEClass(textValueEClass, TextValue.class, "TextValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getTextValue_Value(), ecorePackage.getEString(), "value", null, 0, 1, TextValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(integerValueEClass, IntegerValue.class, "IntegerValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getIntegerValue_Value(), ecorePackage.getEInt(), "value", null, 0, 1, IntegerValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(realNumberValueEClass, RealNumberValue.class, "RealNumberValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getRealNumberValue_Value(), ecorePackage.getEDouble(), "value", null, 0, 1, RealNumberValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(dateValueEClass, DateValue.class, "DateValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getDateValue_Value(), ecorePackage.getEDate(), "value", null, 0, 1, DateValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(javaUDIIndicatorParameterEClass, JavaUDIIndicatorParameter.class, "JavaUDIIndicatorParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getJavaUDIIndicatorParameter_Key(), ecorePackage.getEString(), "key", "", 0, 1, JavaUDIIndicatorParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getJavaUDIIndicatorParameter_Value(), ecorePackage.getEString(), "value", "", 0, 1, JavaUDIIndicatorParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    // Create resource
    createResource(eNS_URI);
}
Also used : PatternPackage(org.talend.dataquality.domain.pattern.PatternPackage) DatatypesPackage(orgomg.cwm.foundation.datatypes.DatatypesPackage) SQLPackage(org.talend.dataquality.domain.sql.SQLPackage) CorePackage(orgomg.cwm.objectmodel.core.CorePackage) ModelPackage(orgomg.mof.model.ModelPackage) ExpressionsPackage(org.talend.dataquality.expressions.ExpressionsPackage)

Example 2 with PatternPackage

use of org.talend.dataquality.domain.pattern.PatternPackage in project tdq-studio-se by Talend.

the class PropertiesPackageImpl 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
    org.talend.core.model.properties.PropertiesPackage thePropertiesPackage_1 = (org.talend.core.model.properties.PropertiesPackage) EPackage.Registry.INSTANCE.getEPackage(org.talend.core.model.properties.PropertiesPackage.eNS_URI);
    AnalysisPackage theAnalysisPackage = (AnalysisPackage) EPackage.Registry.INSTANCE.getEPackage(AnalysisPackage.eNS_URI);
    InformationreportingPackage theInformationreportingPackage = (InformationreportingPackage) EPackage.Registry.INSTANCE.getEPackage(InformationreportingPackage.eNS_URI);
    DefinitionPackage theDefinitionPackage = (DefinitionPackage) EPackage.Registry.INSTANCE.getEPackage(DefinitionPackage.eNS_URI);
    RulesPackage theRulesPackage = (RulesPackage) EPackage.Registry.INSTANCE.getEPackage(RulesPackage.eNS_URI);
    PatternPackage thePatternPackage = (PatternPackage) EPackage.Registry.INSTANCE.getEPackage(PatternPackage.eNS_URI);
    // Create type parameters
    // Set bounds for type parameters
    // Add supertypes to classes
    tdqAnalysisItemEClass.getESuperTypes().add(thePropertiesPackage_1.getTDQItem());
    tdqReportItemEClass.getESuperTypes().add(thePropertiesPackage_1.getTDQItem());
    tdqIndicatorDefinitionItemEClass.getESuperTypes().add(thePropertiesPackage_1.getTDQItem());
    tdqBusinessRuleItemEClass.getESuperTypes().add(thePropertiesPackage_1.getTDQItem());
    tdqPatternItemEClass.getESuperTypes().add(thePropertiesPackage_1.getTDQItem());
    tdqFileItemEClass.getESuperTypes().add(thePropertiesPackage_1.getTDQItem());
    tdqFileItemEClass.getESuperTypes().add(thePropertiesPackage_1.getFileItem());
    tdqJrxmlItemEClass.getESuperTypes().add(this.getTDQFileItem());
    tdqSourceFileItemEClass.getESuperTypes().add(this.getTDQFileItem());
    tdqMatchRuleItemEClass.getESuperTypes().add(thePropertiesPackage_1.getTDQItem());
    // Initialize classes and features; add operations and parameters
    initEClass(tdqAnalysisItemEClass, TDQAnalysisItem.class, "TDQAnalysisItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getTDQAnalysisItem_Analysis(), theAnalysisPackage.getAnalysis(), null, "analysis", null, 0, 1, TDQAnalysisItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(tdqReportItemEClass, TDQReportItem.class, "TDQReportItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getTDQReportItem_Report(), theInformationreportingPackage.getReport(), null, "report", null, 0, 1, TDQReportItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(tdqIndicatorDefinitionItemEClass, TDQIndicatorDefinitionItem.class, "TDQIndicatorDefinitionItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getTDQIndicatorDefinitionItem_IndicatorDefinition(), theDefinitionPackage.getIndicatorDefinition(), null, "indicatorDefinition", null, 0, 1, TDQIndicatorDefinitionItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(tdqBusinessRuleItemEClass, TDQBusinessRuleItem.class, "TDQBusinessRuleItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getTDQBusinessRuleItem_Dqrule(), theRulesPackage.getDQRule(), null, "dqrule", null, 0, 1, TDQBusinessRuleItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(tdqPatternItemEClass, TDQPatternItem.class, "TDQPatternItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getTDQPatternItem_Pattern(), thePatternPackage.getPattern(), null, "pattern", null, 0, 1, TDQPatternItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEClass(tdqFileItemEClass, TDQFileItem.class, "TDQFileItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEClass(tdqJrxmlItemEClass, TDQJrxmlItem.class, "TDQJrxmlItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEClass(tdqSourceFileItemEClass, TDQSourceFileItem.class, "TDQSourceFileItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEClass(tdqMatchRuleItemEClass, TDQMatchRuleItem.class, "TDQMatchRuleItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getTDQMatchRuleItem_MatchRule(), theRulesPackage.getMatchRuleDefinition(), null, "matchRule", null, 0, 1, TDQMatchRuleItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    // Create resource
    createResource(eNS_URI);
}
Also used : InformationreportingPackage(orgomg.cwmx.analysis.informationreporting.InformationreportingPackage) PatternPackage(org.talend.dataquality.domain.pattern.PatternPackage) RulesPackage(org.talend.dataquality.rules.RulesPackage) PropertiesPackage(org.talend.dataquality.properties.PropertiesPackage) DefinitionPackage(org.talend.dataquality.indicators.definition.DefinitionPackage) AnalysisPackage(org.talend.dataquality.analysis.AnalysisPackage)

Aggregations

PatternPackage (org.talend.dataquality.domain.pattern.PatternPackage)2 AnalysisPackage (org.talend.dataquality.analysis.AnalysisPackage)1 SQLPackage (org.talend.dataquality.domain.sql.SQLPackage)1 ExpressionsPackage (org.talend.dataquality.expressions.ExpressionsPackage)1 DefinitionPackage (org.talend.dataquality.indicators.definition.DefinitionPackage)1 PropertiesPackage (org.talend.dataquality.properties.PropertiesPackage)1 RulesPackage (org.talend.dataquality.rules.RulesPackage)1 DatatypesPackage (orgomg.cwm.foundation.datatypes.DatatypesPackage)1 CorePackage (orgomg.cwm.objectmodel.core.CorePackage)1 InformationreportingPackage (orgomg.cwmx.analysis.informationreporting.InformationreportingPackage)1 ModelPackage (orgomg.mof.model.ModelPackage)1