Search in sources :

Example 1 with UDINode

use of org.talend.dq.nodes.indicator.impl.UDINode in project tdq-studio-se by Talend.

the class IndicatorTreeModelBuilder method createLeafNode.

/**
 * Create leafNode by the type of indiEnum
 *
 * @param label
 * @param indiEnum
 * @return
 */
private static IIndicatorNode createLeafNode(String label, IndicatorEnum indiEnum, ModelElement modelElement) {
    IIndicatorNode indicatorNode = null;
    if (IndicatorEnum.RegexpMatchingIndicatorEnum == indiEnum || IndicatorEnum.SqlPatternMatchingIndicatorEnum == indiEnum) {
        indicatorNode = new PatternNode(label, (Pattern) modelElement);
    } else if (IndicatorEnum.UserDefinedIndicatorEnum == indiEnum) {
        indicatorNode = new UDINode(label);
    } else {
        return indicatorNode;
    }
    indicatorNode.setIndicatorEnum(indiEnum);
    return indicatorNode;
}
Also used : Pattern(org.talend.dataquality.domain.pattern.Pattern) PatternNode(org.talend.dq.nodes.indicator.impl.PatternNode) UDINode(org.talend.dq.nodes.indicator.impl.UDINode)

Aggregations

Pattern (org.talend.dataquality.domain.pattern.Pattern)1 PatternNode (org.talend.dq.nodes.indicator.impl.PatternNode)1 UDINode (org.talend.dq.nodes.indicator.impl.UDINode)1