|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.migration.model24.identity.LocaleInfo
Additional infos about a locale.
Method Summary | |
static java.lang.String |
computeTrailingName(java.util.Locale locale)
Compute the trailing name for a given locale. |
static LocaleInfo |
decodeLocaleInfo(java.util.Locale locale)
Return the locale info for a specific locale. |
static LocaleInfo |
decodeLocaleInfo(java.lang.String code)
Return the locale info for a specific code. |
static LocaleInfo |
decodeLocaleInfoFromRFC3066LanguageTag(java.lang.String languageIdentificationTag)
Returns an info object based on the given language identification tag as defined by IETF RFC 3066 limited to 2-letter language code per ISO standard 639, a "-" (dash) and a 2-letter country code per ISO 3166 alpha-2 country codes. |
static java.util.Collection |
getAll()
Return a collection of all available locale info for the platform. |
java.util.Locale |
getLocale()
|
LocaleInfo |
getParent()
|
java.lang.String |
getRFC3066LanguageTag()
Retrieves the language identification tag associated to this LocaleInfo as defined by IETF RFC 3066 limited to 2-letter language code per ISO standard 639, a "-" (dash) and a 2-letter country code per ISO 3166 alpha-2 country codes. |
static java.lang.String |
getRFC3066LanguageTagFor(java.util.Locale locale)
Retrieves the language identification tag associated to the specified Locale as defined by IETF RFC 3066 limited to 2-letter language code per ISO standard 639, a "-" (dash) and a 2-letter country code per ISO 3166 alpha-2 country codes. |
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 |
public LocaleInfo getParent()
public java.util.Locale getLocale()
public java.lang.String getTrailingName()
public java.lang.String getRFC3066LanguageTag()
java.lang.IllegalArgumentException
- if the given locale is not validpublic static java.lang.String getRFC3066LanguageTagFor(java.util.Locale locale)
locale
- the locale which language tag is wanted
java.lang.IllegalArgumentException
- if the given locale is not validpublic java.lang.String toString()
public static java.lang.String computeTrailingName(java.util.Locale locale) throws java.lang.IllegalArgumentException
locale
- the locale
java.lang.IllegalArgumentException
- if locale is nullpublic static java.util.Collection getAll()
public static LocaleInfo decodeLocaleInfo(java.lang.String code) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if the locale info is not found for the codepublic static LocaleInfo decodeLocaleInfo(java.util.Locale locale)
java.lang.IllegalArgumentException
- if the locale is not found for the codepublic static LocaleInfo decodeLocaleInfoFromRFC3066LanguageTag(java.lang.String languageIdentificationTag)
languageIdentificationTag
- the language tag to build the Locale from
java.lang.IllegalArgumentException
- if the given compound language is not a valid one or null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |