站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

LocaleInfo - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.common.util
Class LocaleInfo

java.lang.Object
  extended byorg.jboss.portal.common.util.LocaleInfo

public final class LocaleInfo
extends java.lang.Object

Additional infos about a locale.


Method Summary
static java.lang.String computeTrailingName(java.util.Locale locale)
          Compute the trainling name for a given locale.
static LocaleInfo decodeLocaleInfo(java.util.Locale locale)
           
static LocaleInfo decodeLocaleInfo(java.lang.String code)
           
static java.util.Collection getAll()
           
 java.util.Locale getLocale()
           
 LocaleInfo getParent()
           
 java.lang.String getTrailingName()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getParent

public LocaleInfo getParent()

getLocale

public java.util.Locale getLocale()

getTrailingName

public java.lang.String getTrailingName()

toString

public java.lang.String toString()

computeTrailingName

public static java.lang.String computeTrailingName(java.util.Locale locale)
                                            throws java.lang.IllegalArgumentException
Compute the trainling name for a given locale.

Parameters:
locale - the locale
Returns:
the trailing name
Throws:
java.lang.IllegalArgumentException - if locale is null

getAll

public static java.util.Collection getAll()

decodeLocaleInfo

public static LocaleInfo decodeLocaleInfo(java.lang.String code)

decodeLocaleInfo

public static LocaleInfo decodeLocaleInfo(java.util.Locale locale)