public enum LanguageEnum extends java.lang.Enum<LanguageEnum>
EncodingEnum
class is the enumerated list of languages used in the
application.Modifier and Type | Method and Description |
---|---|
static java.util.Locale |
getDefaultLocale()
Gets the current value of the default locale for this instance of the Java Virtual Machine.
|
static LanguageEnum |
getLanguage(java.util.Locale loc)
Returns
LanguageEnum language for corresponding locale. |
java.util.Locale |
getLocale() |
static java.util.Locale |
parseLocale(java.lang.String language)
Parses input string containing language and returns corresponding
locale
language. |
java.lang.String |
toString()
Returns title of the language loaded from resources
ResourceController . |
static LanguageEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LanguageEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LanguageEnum EN
public static final LanguageEnum CS
public static LanguageEnum[] values()
for (LanguageEnum c : LanguageEnum.values()) System.out.println(c);
public static LanguageEnum valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
ResourceController
.toString
in class java.lang.Enum<LanguageEnum>
ResourceController
.public static LanguageEnum getLanguage(java.util.Locale loc)
LanguageEnum
language for corresponding locale.loc
- the locale of the language.public static java.util.Locale parseLocale(java.lang.String language)
locale
language.language
- the input text constant containing language.public java.util.Locale getLocale()
public static java.util.Locale getDefaultLocale()