|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.util.LocaleUtil
public final class LocaleUtil
Utilities for locale manipulation.
Field Summary | |
---|---|
static java.util.Locale |
NULL_LOCALE
The "null" Locale, i.e. |
Method Summary | |
---|---|
static java.lang.String |
calculatePostfix(java.util.Locale locale)
Calculate the postfix to append to a filename to load the correct single filename for that Locale. |
static java.util.List<java.lang.String> |
calculatePostfixes(java.util.Locale locale)
Calculate the postfixes along the search path from the base bundle to the bundle specified by baseName and locale. |
static java.lang.String |
concatPostfix(java.lang.String name,
java.lang.String postfix)
Concat postfix to the name. |
static java.util.Locale |
getParentLocale(java.util.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 java.util.Locale NULL_LOCALE
Method Detail |
---|
public static java.util.List<java.lang.String> calculatePostfixes(java.util.Locale locale)
locale
- The locale.
public static java.lang.String calculatePostfix(java.util.Locale locale)
locale
- The locale.
public static java.lang.String concatPostfix(java.lang.String name, java.lang.String postfix)
name
- Filename.postfix
- Postfix to add.
public static java.util.Locale getParentLocale(java.util.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 |