Bali Share 1.1.18

oracle.bali.share.nls
Class BundleAvailableLocaleMapper

java.lang.Object
  |
  +--oracle.bali.share.nls.LocaleMapper
        |
        +--oracle.bali.share.nls.AvailableLocaleMapper
              |
              +--oracle.bali.share.nls.BundleAvailableLocaleMapper

public class BundleAvailableLocaleMapper
extends oracle.bali.share.nls.AvailableLocaleMapper

Uses the Java ResourceBundle fallback rules to map an input Locale to its closest match from among the set of Locales supported by the ResourceBundle identified by the bundleName.


Fields inherited from class oracle.bali.share.nls.LocaleMapper
IAS_DESIGNERS_MAPPER
 
Constructor Summary
BundleAvailableLocaleMapper(java.lang.String bundleName)
          Creates a BundleAvailableLocaleMapper mapping to the closest match among the Locales supported by the bundleName ResourceBundle and using the US Locale as the Locale to return if no other match can be found.
BundleAvailableLocaleMapper(java.lang.String bundleName, java.util.Locale defaultLocale)
          Creates a BundleAvailableLocaleMapper mapping to the closest match among the Locales supported by the bundleName ResourceBundle and 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
 

Constructor Detail

BundleAvailableLocaleMapper

public BundleAvailableLocaleMapper(java.lang.String bundleName)
Creates a BundleAvailableLocaleMapper mapping to the closest match among the Locales supported by the bundleName ResourceBundle and using the US Locale as the Locale to return if no other match can be found.

BundleAvailableLocaleMapper

public BundleAvailableLocaleMapper(java.lang.String bundleName,
                                   java.util.Locale defaultLocale)
Creates a BundleAvailableLocaleMapper mapping to the closest match among the Locales supported by the bundleName ResourceBundle and using the defaultLocale as the Locale to return if no other match can be found.
Method Detail

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

Bali Share 1.1.18