当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
LocaleInfo - JBOSS Portal 2.4 API 英文版文档
org.jboss.portal.migration.model22.other
Class LocaleInfo
java.lang.Object
org.jboss.portal.migration.model22.other.LocaleInfo
- public final class LocaleInfo
- extends java.lang.Object
Additional infos about a locale.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)