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

LocaleInfo - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.migration.model22.other
Class LocaleInfo

java.lang.Object
  extended byorg.jboss.portal.migration.model22.other.LocaleInfo

public final class LocaleInfo
extends java.lang.Object

Additional infos about a locale.

Version:
$Revision: 5449 $
Author:
Julien Viet

Field Summary
private static java.util.Collection all
          The locale info objects.
private static java.util.Map infos
          The locale info map.
private  java.util.Locale locale
          The relaled locale.
private static org.apache.log4j.Logger log
           
private  LocaleInfo parent
          The parent locale info or null if no parent.
private  java.lang.String trailingName
          The trailing name used to compute resource bundle name.
 
Constructor Summary
private LocaleInfo(java.util.Locale 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()
           
private static java.util.Collection initializeAll()
           
private static java.util.Map initializeInfos()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log

infos

private static final java.util.Map infos
The locale info map.


all

private static final java.util.Collection all
The locale info objects.


parent

private LocaleInfo parent
The parent locale info or null if no parent.


locale

private java.util.Locale locale
The relaled locale.


trailingName

private java.lang.String trailingName
The trailing name used to compute resource bundle name.

Constructor Detail

LocaleInfo

private LocaleInfo(java.util.Locale locale)
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

initializeInfos

private static final java.util.Map initializeInfos()

initializeAll

private static java.util.Collection initializeAll()

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)