Search in sources :

Example 6 with FormatFreqPieIndicator

use of org.talend.dataquality.indicators.FormatFreqPieIndicator in project tdq-studio-se by Talend.

the class IndicatorHelper method propagateCountyCodeInChildren.

/**
 * DOC qiongli Comment method "propagateCountyCodeInChildren".
 *
 * @param indicator
 * @param countryCode
 */
public static void propagateCountyCodeInChildren(Indicator indicator, String countryCode) {
    if (IndicatorsPackage.eINSTANCE.getPhoneNumbStatisticsIndicator().equals(indicator.eClass())) {
        PhoneNumbStatisticsIndicator phoneIndicator = (PhoneNumbStatisticsIndicator) indicator;
        WellFormE164PhoneCountIndicator wellFormE164Indi = phoneIndicator.getWellFormE164PhoneCountIndicator();
        WellFormIntePhoneCountIndicator wellFormInteIndi = phoneIndicator.getWellFormIntePhoneCountIndicator();
        WellFormNationalPhoneCountIndicator wellFormNatiIndi = phoneIndicator.getWellFormNationalPhoneCountIndicator();
        ValidPhoneCountIndicator validPhoneIndi = phoneIndicator.getValidPhoneCountIndicator();
        PossiblePhoneCountIndicator possiblePhoneIndi = phoneIndicator.getPossiblePhoneCountIndicator();
        FormatFreqPieIndicator formatFreqPieIndicator = phoneIndicator.getFormatFreqPieIndicator();
        setCountryCodeParameter(wellFormE164Indi, countryCode);
        setCountryCodeParameter(wellFormInteIndi, countryCode);
        setCountryCodeParameter(wellFormNatiIndi, countryCode);
        setCountryCodeParameter(validPhoneIndi, countryCode);
        setCountryCodeParameter(possiblePhoneIndi, countryCode);
        setCountryCodeParameter(formatFreqPieIndicator, countryCode);
    }
    setCountryCodeParameter(indicator, countryCode);
}
Also used : WellFormIntePhoneCountIndicator(org.talend.dataquality.indicators.WellFormIntePhoneCountIndicator) ValidPhoneCountIndicator(org.talend.dataquality.indicators.ValidPhoneCountIndicator) PhoneNumbStatisticsIndicator(org.talend.dataquality.indicators.PhoneNumbStatisticsIndicator) FormatFreqPieIndicator(org.talend.dataquality.indicators.FormatFreqPieIndicator) WellFormNationalPhoneCountIndicator(org.talend.dataquality.indicators.WellFormNationalPhoneCountIndicator) WellFormE164PhoneCountIndicator(org.talend.dataquality.indicators.WellFormE164PhoneCountIndicator) PossiblePhoneCountIndicator(org.talend.dataquality.indicators.PossiblePhoneCountIndicator)

Aggregations

FormatFreqPieIndicator (org.talend.dataquality.indicators.FormatFreqPieIndicator)6 Test (org.junit.Test)2 ArrayList (java.util.ArrayList)1 Iterator (java.util.Iterator)1 List (java.util.List)1 Entry (java.util.Map.Entry)1 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 AnalyzedDataSet (org.talend.dataquality.analysis.AnalyzedDataSet)1 FrequencyIndicator (org.talend.dataquality.indicators.FrequencyIndicator)1 MaxLengthIndicator (org.talend.dataquality.indicators.MaxLengthIndicator)1 MinLengthIndicator (org.talend.dataquality.indicators.MinLengthIndicator)1 PatternFreqIndicator (org.talend.dataquality.indicators.PatternFreqIndicator)1 PatternLowFreqIndicator (org.talend.dataquality.indicators.PatternLowFreqIndicator)1 PhoneNumbStatisticsIndicator (org.talend.dataquality.indicators.PhoneNumbStatisticsIndicator)1 PossiblePhoneCountIndicator (org.talend.dataquality.indicators.PossiblePhoneCountIndicator)1 ValidPhoneCountIndicator (org.talend.dataquality.indicators.ValidPhoneCountIndicator)1 WellFormE164PhoneCountIndicator (org.talend.dataquality.indicators.WellFormE164PhoneCountIndicator)1 WellFormIntePhoneCountIndicator (org.talend.dataquality.indicators.WellFormIntePhoneCountIndicator)1 WellFormNationalPhoneCountIndicator (org.talend.dataquality.indicators.WellFormNationalPhoneCountIndicator)1 FrequencyExt (org.talend.dq.indicators.ext.FrequencyExt)1