Search in sources :

Example 1 with IndicatorsFactory

use of org.talend.dataquality.indicators.IndicatorsFactory in project tdq-studio-se by Talend.

the class TableIndicator method createIndicatorUnit.

private TableIndicatorUnit createIndicatorUnit(IFile fe, IndicatorEnum indicatorEnum, Indicator indicator) {
    Indicator indicatorNew = indicator;
    if (indicator == null) {
        IndicatorsFactory factory = IndicatorsFactory.eINSTANCE;
        indicatorNew = (Indicator) factory.create(indicatorEnum.getIndicatorType());
        indicatorNew.setAnalyzedElement(getColumnSet());
    }
    if (!DefinitionHandler.getInstance().setDefaultIndicatorDefinition(indicator)) {
        // $NON-NLS-1$
        log.error(DefaultMessagesImpl.getString("TableIndicator.couldnotSetDef") + indicatorNew.getName());
    }
    TableIndicatorUnit indicatorUnit = new TableIndicatorUnit(indicatorEnum, indicatorNew, this);
    this.indicatorUnitMap.put(indicatorEnum, indicatorUnit);
    return indicatorUnit;
}
Also used : IndicatorsFactory(org.talend.dataquality.indicators.IndicatorsFactory) TableIndicatorUnit(org.talend.dataprofiler.core.ui.editor.preview.TableIndicatorUnit) Indicator(org.talend.dataquality.indicators.Indicator) RowCountIndicator(org.talend.dataquality.indicators.RowCountIndicator) WhereRuleIndicator(org.talend.dataquality.indicators.sql.WhereRuleIndicator)

Aggregations

TableIndicatorUnit (org.talend.dataprofiler.core.ui.editor.preview.TableIndicatorUnit)1 Indicator (org.talend.dataquality.indicators.Indicator)1 IndicatorsFactory (org.talend.dataquality.indicators.IndicatorsFactory)1 RowCountIndicator (org.talend.dataquality.indicators.RowCountIndicator)1 WhereRuleIndicator (org.talend.dataquality.indicators.sql.WhereRuleIndicator)1