public List<String> typeIsolatedVerify(Locale locale) { List<Cal10nError> errorList = verify(locale); List<String> strList = new ArrayList<String>(); for (Cal10nError error : errorList) { strList.add(error.toString()); } return strList; }
/** * Verify all declared locales in one step. */ public List<Cal10nError> verifyAllLocales() { List<Cal10nError> errorList = new ArrayList<Cal10nError>(); String[] localeNameArray = getLocaleNames(); ErrorFactory errorFactory = new ErrorFactory(enumTypeAsStr, null, getBaseName()); if (localeNameArray == null || localeNameArray.length == 0) { errorList.add(errorFactory.buildError(MISSING_LOCALE_DATA_ANNOTATION, "*")); return errorList; } for (String localeName : localeNameArray) { Locale locale = MiscUtil.toLocale(localeName); List<Cal10nError> tmpList = verify(locale); errorList.addAll(tmpList); } return errorList; }