public static enum REpiceaTranslator.Language extends java.lang.Enum<REpiceaTranslator.Language>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode()
This method returns the two-character code associated with the Language instance.
|
static REpiceaTranslator.Language |
getLanguage(java.lang.String code)
This method returns the Language enum that corresponds to
a particular code.
|
java.util.Locale |
getLocale()
Returns the locale associated with the language.
|
java.lang.String |
toString() |
static REpiceaTranslator.Language |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static REpiceaTranslator.Language[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final REpiceaTranslator.Language English
public static final REpiceaTranslator.Language French
public static REpiceaTranslator.Language[] values()
for (REpiceaTranslator.Language c : REpiceaTranslator.Language.values()) System.out.println(c);
public static REpiceaTranslator.Language 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()
toString
in class java.lang.Enum<REpiceaTranslator.Language>
public java.util.Locale getLocale()
public java.lang.String getCode()
public static REpiceaTranslator.Language getLanguage(java.lang.String code)
code
- a String