public class InternalLanguageModel extends Object
Constructor and Description |
---|
InternalLanguageModel() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containCode(String code) |
static boolean |
containName(String name,
Locale locale) |
static Language |
getByName(String name,
Locale locale) |
static String |
getCodeByName(String name,
Locale locale) |
static List<String> |
getCodeList() |
static String |
getDisplayString(String code,
Locale locale) |
static List<Language> |
getLanguageList() |
static String |
getNameByCode(String code,
Locale locale) |
static List<String> |
getNameList(Locale locale) |
static List<String> |
getNameListWithCode(Locale locale) |
static Language |
getWildcard() |
public static Language getByName(String name, Locale locale) throws InvalidLanguageTagException
InvalidLanguageTagException
public static boolean containCode(String code)
public static String getDisplayString(String code, Locale locale) throws InvalidLanguageTagException
InvalidLanguageTagException
public static Language getWildcard()