|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Language>
com.memetix.mst.language.Language
public enum Language
Language - an enum of all language codes supported by the Microsoft Translator API Uses the AJAX Interface V2 - see: http://msdn.microsoft.com/en-us/library/ff512399.aspx
| Method Summary | |
|---|---|
static void |
flushNameCache()
|
static Language |
fromString(String pLanguage)
|
static List<String> |
getLanguageCodesForTranslation()
|
String |
getName(Language locale)
getName() Returns the name for this language in the tongue of the specified locale If the name is not cached, then it retrieves the name of ALL languages in this locale. |
static void |
setClientId(String pId)
|
static void |
setClientSecret(String pSecret)
|
static void |
setKey(String pKey)
|
String |
toString()
Returns the String representation of this language. |
static Language |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Language[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
static Map<String,Language> |
values(Language locale)
values(Language locale) Returns a map of all languages, keyed and sorted by the localized name in the tongue of the specified locale It returns a map, sorted alphanumerically by the keys() Key: The localized language name Value: The Language instance |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Language AUTO_DETECT
public static final Language ARABIC
public static final Language BULGARIAN
public static final Language CATALAN
public static final Language CHINESE_SIMPLIFIED
public static final Language CHINESE_TRADITIONAL
public static final Language CZECH
public static final Language DANISH
public static final Language DUTCH
public static final Language ENGLISH
public static final Language ESTONIAN
public static final Language FINNISH
public static final Language FRENCH
public static final Language GERMAN
public static final Language GREEK
public static final Language HAITIAN_CREOLE
public static final Language HEBREW
public static final Language HINDI
public static final Language HMONG_DAW
public static final Language HUNGARIAN
public static final Language INDONESIAN
public static final Language ITALIAN
public static final Language JAPANESE
public static final Language KOREAN
public static final Language LATVIAN
public static final Language LITHUANIAN
public static final Language NORWEGIAN
public static final Language POLISH
public static final Language PORTUGUESE
public static final Language ROMANIAN
public static final Language RUSSIAN
public static final Language SLOVAK
public static final Language SLOVENIAN
public static final Language SPANISH
public static final Language SWEDISH
public static final Language THAI
public static final Language TURKISH
public static final Language UKRAINIAN
public static final Language VIETNAMESE
| Method Detail |
|---|
public static Language[] values()
for (Language c : Language.values()) System.out.println(c);
public static Language valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static Language fromString(String pLanguage)
public String toString()
toString in class Enum<Language>public static void setKey(String pKey)
public static void setClientId(String pId)
public static void setClientSecret(String pSecret)
public String getName(Language locale)
throws Exception
Exception
public static List<String> getLanguageCodesForTranslation()
throws Exception
Exception
public static Map<String,Language> values(Language locale)
throws Exception
locale - The Language we should localize the Language names with
Exceptionpublic static void flushNameCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||