use of org.talend.dq.nodes.indicator.impl.PatternNode 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;
}
Aggregations