Search in sources :

Example 1 with MatchRuleBuilder

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;
}
Also used : MatchRuleBuilder(org.talend.dq.dqrule.MatchRuleBuilder) MatchRuleDefinition(org.talend.dataquality.rules.MatchRuleDefinition)

Aggregations

MatchRuleDefinition (org.talend.dataquality.rules.MatchRuleDefinition)1 MatchRuleBuilder (org.talend.dq.dqrule.MatchRuleBuilder)1