com.bankframe.localization
Class LocaleUtils

java.lang.Object
  extended bycom.bankframe.localization.LocaleUtils

public class LocaleUtils
extends java.lang.Object


Field Summary
static java.lang.String DEFAULT_LOCALE
           
static java.lang.String DP_KEY
           
 
Method Summary
static java.util.Locale getLocale()
          This method attempts to determine the appropriate Locale object for the current user.
static java.util.Locale parseLocaleString(java.lang.String localeString)
          This method converts a String containing locale information to a Locale object.
static void setLocale(java.util.Locale locale)
          This method sets the Locale object for the current thread
static void setLocale(java.lang.String localeString)
          This method sets the Locale object for the current thread
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LOCALE

public static final java.lang.String DEFAULT_LOCALE
See Also:
Constant Field Values

DP_KEY

public static final java.lang.String DP_KEY
See Also:
Constant Field Values
Method Detail

parseLocaleString

public static java.util.Locale parseLocaleString(java.lang.String localeString)
This method converts a String containing locale information to a Locale object. The String will be of the format: xx_XX_variant, where:


getLocale

public static java.util.Locale getLocale()
This method attempts to determine the appropriate Locale object for the current user. This method first attempts to determine if a Locale object has been associated with the current thread, if it has this is returned otherwise it returns a Locale Object for the locale indicated by the locale.default key in BankframeResource.properties. Finally if this key is not present it returns the default system Locale


setLocale

public static void setLocale(java.util.Locale locale)
This method sets the Locale object for the current thread

Parameters:
locale - The Locale object

setLocale

public static void setLocale(java.lang.String localeString)
This method sets the Locale object for the current thread

Parameters:
localeString - A Locale string


Copyright © 2004 Siebel Systems, Inc. All rights reserved.