| java.lang.Object org.jboss.portal.migration.model24.identity.LocaleInfo
LocaleInfo | final public class LocaleInfo (Code) | | Additional infos about a locale.
author: Julien Viet version: $Revision: 8784 $ |
decodeLocaleInfoFromRFC3066LanguageTag | public static LocaleInfo decodeLocaleInfoFromRFC3066LanguageTag(String languageIdentificationTag)(Code) | | 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. E.g. "en-US" for American
English, "en-GB" for British English, etc.
Parameters: languageIdentificationTag - the language tag to build the Locale from a LocaleInfo associated to the given compound language tag throws: IllegalArgumentException - if the given compound language is not a valid one or null since: 2.4 |
getAll | public static Collection getAll()(Code) | | Return a collection of all available locale info for the platform.
|
getRFC3066LanguageTag | public String getRFC3066LanguageTag()(Code) | | 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. E.g. "en-US" for American
English, "en-GB" for British English, etc.
a IETF RFC 3066-compatible language tag. throws: IllegalArgumentException - if the given locale is not valid since: 2.4 |
getRFC3066LanguageTagFor | public static String getRFC3066LanguageTagFor(Locale locale)(Code) | | 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. E.g. "en-US" for American
English, "en-GB" for British English, etc.
Parameters: locale - the locale which language tag is wanted a IETF RFC 3066-compatible language tag. throws: IllegalArgumentException - if the given locale is not valid since: 2.4 |
|
|