public enum SpokenDialect extends java.lang.Enum<SpokenDialect>
Uses the AJAX Interface V2 - see: http://msdn.microsoft.com/en-us/library/ff512399.aspx
| Modifier and Type | Method and Description |
|---|---|
static void |
flushNameCache() |
static SpokenDialect |
fromString(java.lang.String pLanguage) |
java.lang.String |
getName(Language locale)
getName()
|
static void |
resetToken() |
static void |
setKey(java.lang.String pKey) |
static void |
setSubscriptionKey(java.lang.String pSubscriptionKey) |
java.lang.String |
toString()
Returns the String representation of this language.
|
static SpokenDialect |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SpokenDialect[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpokenDialect CATALAN_SPAIN
public static final SpokenDialect DANISH_DENMARK
public static final SpokenDialect GERMAN_GERMANY
public static final SpokenDialect ENGLISH_AUSTRALIA
public static final SpokenDialect ENGLISH_CANADA
public static final SpokenDialect ENGLISH_UNITED_KINGDOM
public static final SpokenDialect ENGLISH_INDIA
public static final SpokenDialect ENGLISH_UNITED_STATES
public static final SpokenDialect SPANISH_SPAIN
public static final SpokenDialect SPANISH_MEXICO
public static final SpokenDialect FINNISH_FINLAND
public static final SpokenDialect FRENCH_CANADA
public static final SpokenDialect FRENCH_FRANCE
public static final SpokenDialect ITALIAN_ITALY
public static final SpokenDialect JAPANESE_JAPAN
public static final SpokenDialect KOREAN_KOREA
public static final SpokenDialect NORWEGIAN_NORWAY
public static final SpokenDialect DUTCH_NETHERLANDS
public static final SpokenDialect POLISH_POLAND
public static final SpokenDialect PORTUGUESE_BRAZIL
public static final SpokenDialect PORTUGUESE_PORTUGAL
public static final SpokenDialect RUSSIAN_RUSSIA
public static final SpokenDialect SWEDISH_SWEDEN
public static final SpokenDialect CHINESE_SIMPLIFIED_PEOPLES_REPUBLIC_OF_CHINA
public static final SpokenDialect CHINESE_TRADITIONAL_HONG_KONG_SAR
public static final SpokenDialect CHINESE_TRADITIONAL_TAIWAN
public static SpokenDialect[] values()
for (SpokenDialect c : SpokenDialect.values()) System.out.println(c);
public static SpokenDialect 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 static SpokenDialect fromString(java.lang.String pLanguage)
public java.lang.String toString()
toString in class java.lang.Enum<SpokenDialect>public static void setKey(java.lang.String pKey)
public static void setSubscriptionKey(java.lang.String pSubscriptionKey)
public static void resetToken()
public java.lang.String getName(Language locale) throws java.lang.Exception
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. This is not bad behavior for 2 reasons:
1) We can make a reasonable assumption that the client will request the name of another language in the same locale 2) The GetLanguageNames service call expects an array and therefore we can retrieve ALL names in the same, single call anyway.
java.lang.Exceptionpublic static void flushNameCache()