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);
}
Aggregations