| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.common.i18n.I18NTools
public class I18NTools
| Constructor Summary | |
|---|---|
| I18NTools() | |
| Method Summary | |
|---|---|
| static java.lang.String | computeTrailingName(java.util.Locale locale)Compute the trailing name for a given locale. | 
| 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. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public I18NTools()
| Method Detail | 
|---|
public 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 valid
public static java.lang.String computeTrailingName(java.util.Locale locale)
                                            throws java.lang.IllegalArgumentException
locale - the locale
java.lang.IllegalArgumentException - if locale is null| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||