Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.util
Class LocaleUtil

java.lang.Object
  extended by com.liferay.portal.kernel.util.LocaleUtil

public class LocaleUtil
extends Object


Method Summary
static boolean equals(Locale locale1, Locale locale2)
           
static Locale fromLanguageId(String languageId)
           
static Locale fromLanguageId(String languageId, boolean validate)
           
static Locale[] fromLanguageIds(List<String> languageIds)
           
static Locale[] fromLanguageIds(String[] languageIds)
           
static Locale getDefault()
           
static LocaleUtil getInstance()
           
static Map<String,String> getISOLanguages(Locale locale)
           
static String getLongDisplayName(Locale locale, Set<String> duplicateLanguages)
           
static Locale getMostRelevantLocale()
           
static String getShortDisplayName(Locale locale, Set<String> duplicateLanguages)
           
static void setDefault(String userLanguage, String userCountry, String userVariant)
           
static String toLanguageId(Locale locale)
           
static String[] toLanguageIds(Locale[] locales)
           
static String toW3cLanguageId(Locale locale)
           
static String toW3cLanguageId(String languageId)
           
static String[] toW3cLanguageIds(Locale[] locales)
           
static String[] toW3cLanguageIds(String[] languageIds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equals

public static boolean equals(Locale locale1,
                             Locale locale2)

fromLanguageId

public static Locale fromLanguageId(String languageId)

fromLanguageId

public static Locale fromLanguageId(String languageId,
                                    boolean validate)

fromLanguageIds

public static Locale[] fromLanguageIds(List<String> languageIds)

fromLanguageIds

public static Locale[] fromLanguageIds(String[] languageIds)

getDefault

public static Locale getDefault()

getInstance

public static LocaleUtil getInstance()

getISOLanguages

public static Map<String,String> getISOLanguages(Locale locale)

getLongDisplayName

public static String getLongDisplayName(Locale locale,
                                        Set<String> duplicateLanguages)

getMostRelevantLocale

public static Locale getMostRelevantLocale()

getShortDisplayName

public static String getShortDisplayName(Locale locale,
                                         Set<String> duplicateLanguages)

setDefault

public static void setDefault(String userLanguage,
                              String userCountry,
                              String userVariant)

toLanguageId

public static String toLanguageId(Locale locale)

toLanguageIds

public static String[] toLanguageIds(Locale[] locales)

toW3cLanguageId

public static String toW3cLanguageId(Locale locale)

toW3cLanguageId

public static String toW3cLanguageId(String languageId)

toW3cLanguageIds

public static String[] toW3cLanguageIds(Locale[] locales)

toW3cLanguageIds

public static String[] toW3cLanguageIds(String[] languageIds)

Liferay 6.1.2-ce-ga3