|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.xdoc.util.LocaleUtil
Utility class to handle the java.util.Locale
object.
Constructor Summary | |
LocaleUtil()
|
Method Summary | |
static Locale[] |
codesToLocales(String localeCodes)
Parse a comma separated list of locale codes and converts to an array of java.util.Locale object. |
static Locale |
codeToLocale(String localeCode)
Converts a locale code like "en", "en_US" or "en_US_win" to a java.util.Locale
object. |
static String |
displayName(Locale locale)
Returns the name for the locale . |
static String |
displayName(Locale locale,
Locale localeWanted)
Returns the name for the locale . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LocaleUtil()
Method Detail |
public static Locale codeToLocale(String localeCode)
java.util.Locale
object.
localeCode
- the locale code string.
public static Locale[] codesToLocales(String localeCodes)
java.util.Locale
object.
localeCodes
- a comma separated list of locale codes.
public static String displayName(Locale locale)
locale
. This will be the values returned by
java.util.Locale.getDisplayName()
, but the first character will be in upper
case.
locale
- The locale to display
public static String displayName(Locale locale, Locale localeWanted)
locale
. This will be the values returned by
java.util.Locale.getDisplayName()
, but the first character will be in upper
case. The display name can be in a locale wanted.
locale
- The locale to displaylocaleWanted
- The locale wanted to display the locale
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |