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;
}
Aggregations