use of org.talend.dq.dqrule.MatchRuleBuilder in project tdq-studio-se by Talend.
the class NewMatchRuleWizard method initCWMResourceBuilder.
/*
* (non-Javadoc)
*
* @see org.talend.dataprofiler.core.ui.wizard.ICWMResouceAdapter#initCWMResourceBuilder()
*/
public ModelElement initCWMResourceBuilder() {
if (matchRule != null) {
MatchRuleDefinition copiedMatchRuleDefinition = EcoreUtil.copy(matchRule);
copiedMatchRuleDefinition.setName(parameter.getName());
return copiedMatchRuleDefinition;
}
MatchRuleBuilder ruleBuilder = new MatchRuleBuilder();
boolean ruleInitialized = ruleBuilder.initializeDqRuleBuilder(parameter);
if (ruleInitialized) {
return ruleBuilder.getMatchRule();
}
return null;
}
Aggregations