org.apache.jetspeed.util
Class JetspeedLocale

java.lang.Object
  extended by org.apache.jetspeed.util.JetspeedLocale

public class JetspeedLocale
extends java.lang.Object

Class to set and get Locale settings for Jetspeed.

Version:
$Id: JetspeedLocale.java 763673 2009-04-09 14:54:50Z ate $
Author:
Roger Ruttimann, Shinsuke Sugaya

Constructor Summary
JetspeedLocale()
           
 
Method Summary
static java.lang.String convertLocaleToString(java.util.Locale locale)
          Converts Locale to String.
static java.util.Locale convertStringToLocale(java.lang.String lang)
          Converts String to Locale.
static LocalizedObject getBestLocalizedObject(java.util.List<? extends LocalizedObject> list, java.util.Locale locale)
           
static java.util.Locale getDefaultLocale()
          According to PLT.21.8.1, the default locale should be English.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JetspeedLocale

public JetspeedLocale()
Method Detail

getDefaultLocale

public static java.util.Locale getDefaultLocale()
According to PLT.21.8.1, the default locale should be English.


convertLocaleToString

public static java.lang.String convertLocaleToString(java.util.Locale locale)
Converts Locale to String.

Parameters:
locale -
Returns:

convertStringToLocale

public static java.util.Locale convertStringToLocale(java.lang.String lang)
Converts String to Locale.

Parameters:
localeString -
Returns:

getBestLocalizedObject

public static LocalizedObject getBestLocalizedObject(java.util.List<? extends LocalizedObject> list,
                                                     java.util.Locale locale)


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.