org.apache.tiles.request.locale
Class LocaleUtil

Package class diagram package LocaleUtil
java.lang.Object
  extended by org.apache.tiles.request.locale.LocaleUtil

public final class LocaleUtil
extends Object

Utilities for locale manipulation.

Version:
$Rev$ $Date$

Field Summary
static Locale NULL_LOCALE
          Deprecated. use Locale.ROOT instead.
 
Method Summary
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

NULL_LOCALE

@Deprecated
public static final Locale NULL_LOCALE
Deprecated. use Locale.ROOT instead.
The "null" Locale, i.e. a Locale that points to no real locale.

Method Detail

getParentLocale

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.

Parameters:
locale - The original locale.
Returns:
The parent locale.


Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.