Enum Class Language
- All Implemented Interfaces:
Serializable
,Comparable<Language>
,Constable
Languages which are offered by the plugin
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
Get an array of all languages (in their country codes)Get the language codeGet the language namestatic boolean
isSupported(String languageCode)
Check whether the language is supportedstatic Language
Returns the enum constant of this class with the specified name.static Language[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EN
English -
NL
Dutch -
ES
Spanish -
CS
Czech -
DE
German -
CN
Chinese -
TR
Turkish -
JA
Japanese -
HE
Hebrew -
RU
Russian -
FR
French -
TH
Thai -
GR
Greek -
CUSTOM
Custom language one can create and use
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getLanguageName
Get the language name- Returns:
- Language name (in its own language)
-
getLanguageCode
Get the language code- Returns:
- Language code (e.g. "en")
-
getAllLanguages
Get an array of all languages (in their country codes)- Returns:
- Array of all supported languages
-
isSupported
Check whether the language is supported- Parameters:
languageCode
- Language code (e.g. "en")- Returns:
- Whether the language is supported
-