oracle.bali.share.nls
Class ArrayAvailableLocaleMapper
java.lang.Object
|
+--oracle.bali.share.nls.LocaleMapper
|
+--oracle.bali.share.nls.AvailableLocaleMapper
|
+--oracle.bali.share.nls.ArrayAvailableLocaleMapper
- public class ArrayAvailableLocaleMapper
- extends oracle.bali.share.nls.AvailableLocaleMapper
Uses the Java ResourceBundle fallback rules to map an input Locale
to its closest match from an array of supported Locales.
Constructor Summary |
ArrayAvailableLocaleMapper(java.util.Locale[] supportedLocales)
Creates an ArraySupportedLocalesMapper mapping to the closest match
among the list of Locales and using the US Locale
as the Locale to return if no other match can be found. |
ArrayAvailableLocaleMapper(java.util.Locale[] supportedLocales,
java.util.Locale defaultLocale)
Creates an ArrayAvailableLocaleMapper mapping to the closest match
among the list of Locales and using
using the defaultLocale
as the Locale to return if no other match can be found. |
Method Summary |
protected boolean |
isSupportedLocale(java.util.Locale inLocale)
Returns true if the inLocale is a Locale that
can be mapped to. |
java.util.Locale |
mapLocale(java.util.Locale inLocale)
Maps the inLocale to a new Locale. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayAvailableLocaleMapper
public ArrayAvailableLocaleMapper(java.util.Locale[] supportedLocales)
- Creates an ArraySupportedLocalesMapper mapping to the closest match
among the list of Locales and using the US Locale
as the Locale to return if no other match can be found.
ArrayAvailableLocaleMapper
public ArrayAvailableLocaleMapper(java.util.Locale[] supportedLocales,
java.util.Locale defaultLocale)
- Creates an ArrayAvailableLocaleMapper mapping to the closest match
among the list of Locales and using
using the
defaultLocale
as the Locale to return if no other match can be found.
isSupportedLocale
protected boolean isSupportedLocale(java.util.Locale inLocale)
- Returns true if the
inLocale
is a Locale that
can be mapped to.
- Overrides:
isSupportedLocale
in class oracle.bali.share.nls.AvailableLocaleMapper
mapLocale
public java.util.Locale mapLocale(java.util.Locale inLocale)
- Description copied from class:
LocaleMapper
- Maps the
inLocale
to a new Locale.
- Overrides:
mapLocale
in class LocaleMapper