Lines Matching refs:locale

52  * locale sensitive service, such as {@link java.util.spi.LocaleNameProvider}.
59 * set of provider implementations of a particular locale sensitive service.
65 * A Set containing locale service providers that implement the
78 * Available locales for this locale sensitive service. This also contains
86 * different sets for each locale sensitive services.
91 * Provider locales for this locale sensitive service.
96 * Special locale for ja_JP with Japanese calendar
101 * Special locale for th_TH with Thai numbering system
125 * @param c class of the locale sensitive service
157 * Available locales for all locale sensitive services.
179 for (Locale locale : allLocales) {
180 all.add(getLookupLocale(locale));
236 for (Locale locale: locales) {
237 providerLocales.add(getLookupLocale(locale));
246 * Returns whether any provider for this locale sensitive
268 for (Locale locale : allLocales) {
269 tmpList.add(getLookupLocale(locale));
279 * Returns whether the given locale is supported by the JRE.
281 * @param locale the locale to test.
282 * @return true, if the locale is supported by the JRE. false
285 private boolean isJRESupported(Locale locale) {
287 return locales.contains(getLookupLocale(locale));
292 * locale.
296 * @param locale the given locale that is used as the starting one
301 Locale locale,
303 return getLocalizedObjectImpl(getter, locale, true, null, null, null, params);
308 * locale.
312 * @param locale the given locale that is used as the starting one
320 Locale locale,
324 return getLocalizedObjectImpl(getter, locale, false, null, bundle, key, params);
329 * locale.
333 * @param locale the given locale that is used as the starting one
343 Locale locale,
348 return getLocalizedObjectImpl(getter, locale, false, bundleKey, bundle, key, params);
352 Locale locale,
363 List<Locale> lookupLocales = getLookupLocales(locale);
367 // to the requested locale than the bundle we've found (for
368 // localized names), or Java runtime's supported locale
387 providersObj = getter.getObject(lsp, locale, key, params);
392 "A locale sensitive service provider returned null for a localized objects, which should not happen. provider: " + lsp + " locale: " + locale);
411 providersObj = getter.getObject(lsp, locale, key, params);
428 * Returns a locale service provider instance that supports
429 * the specified locale.
431 * @param locale the given locale
435 private LocaleServiceProvider findProvider(Locale locale) {
440 if (providersCache.containsKey(locale)) {
441 LocaleServiceProvider provider = providersCache.get(locale);
451 if (locale.equals(available)) {
453 providersCache.put(locale, lsp);
460 providersCache.put(locale, NullProvider.INSTANCE);
467 * @param locale the input locale
468 * @return the list of candiate locales for the given locale
470 private static List<Locale> getLookupLocales(Locale locale) {
475 List<Locale> lookupLocales = new Control(){}.getCandidateLocales("", locale);
484 * @param locale the locale
485 * @return the locale used for service look up
487 private static Locale getLookupLocale(Locale locale) {
488 Locale lookupLocale = locale;
489 Set<Character> extensions = locale.getExtensionKeys();
491 && !locale.equals(locale_ja_JP_JP)
492 && !locale.equals(locale_th_TH_TH)) {
496 locbld.setLocale(locale);
504 config("A locale(" + locale + ") has non-empty extensions, but has illformed fields.");
507 lookupLocale = new Locale(locale.getLanguage(), locale.getCountry(), locale.getVariant());
514 * A dummy locale service provider that indicates there is no
526 * An interface to get a localized object for each locale sensitve
534 * @param locale the locale
541 Locale locale,