org.apache.myfaces.shared_tomahawk.util
Class LocaleUtils
java.lang.Object
org.apache.myfaces.shared_tomahawk.util.LocaleUtils
public final class LocaleUtils
- extends Object
- Version:
- $Revision: 1305679 $ $Date: 2012-03-26 18:42:04 -0500 (Mon, 26 Mar 2012) $
- Author:
- Anton Koinov (latest modification by $Author: lu4242 $)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toLocale
public static Locale toLocale(String localeString)
- Converts a locale string to
Locale
class. Accepts both
'_' and '-' as separators for locale components.
- Parameters:
localeString
- string representation of a locale
- Returns:
- Locale instance, compatible with the string representation
converterTagLocaleFromString
public static Locale converterTagLocaleFromString(String name)
- Convert locale string used by converter tags to locale.
- Parameters:
name
- name of the locale
- Returns:
- locale specified by the given String
- See Also:
org.apache.myfaces.taglib.core.ConvertDateTimeTag#setConverterLocale
,
org.apache.myfaces.taglib.core.ConvertNumberTag#setConverterLocale
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.