|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tiles.util.LocaleUtil
public final class LocaleUtil
Utilities for locale manipulation.
Field Summary | |
---|---|
static Locale |
NULL_LOCALE
The "null" Locale, i.e. a Locale that points to no real locale. |
Method Summary | |
---|---|
static String |
calculatePostfix(Locale locale)
Calculate the postfix to append to a filename to load the correct single filename for that Locale. |
static List<String> |
calculatePostfixes(Locale locale)
Calculate the postfixes along the search path from the base bundle to the bundle specified by baseName and locale. |
static String |
concatPostfix(String name,
String postfix)
Concat postfix to the name. |
static Locale |
getParentLocale(Locale locale)
Returns the "parent" locale of a given locale. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Locale NULL_LOCALE
Method Detail |
---|
public static List<String> calculatePostfixes(Locale locale)
locale
- The locale.
public static String calculatePostfix(Locale locale)
locale
- The locale.
public static String concatPostfix(String name, String postfix)
name
- Filename.postfix
- Postfix to add.
public static Locale getParentLocale(Locale locale)
Returns the "parent" locale of a given locale.
If the original locale is only language-based, the NULL_LOCALE
object is returned.
If the original locale is NULL_LOCALE
, then null
is returned.
locale
- The original locale.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |