|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<TranslateMode>
net.spy.translate.TranslateMode
public enum TranslateMode
This is the enumerated type that you must use to set the translation mode for the GoogleTranslateScraper.
GoogleTranslateScraper| Method Summary | |
|---|---|
static java.util.Collection<java.lang.String> |
getAllModes()
Get a collection of all language pair names. |
static TranslateMode |
getByLangPair(java.lang.String langPair)
Get the TranslateMode by lang pair. |
java.lang.String |
getLangPair()
|
java.lang.String |
getSourceLang()
|
static TranslateMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TranslateMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final TranslateMode ENGLISH_TO_RUSSIAN
public static final TranslateMode ENGLISH_TO_FRENCH
public static final TranslateMode CHINESE_TO_ENGLISH
public static final TranslateMode CHINESE_SIMPLE_TO_TRADITIONAL
public static final TranslateMode CHINESE_TRADITIONAL_TO_SIMPLE
public static final TranslateMode ENGLISH_TO_CHINESE_SIMPLE
public static final TranslateMode ENGLISH_TO_CHINESE_TRADITIONAL
public static final TranslateMode ARABIC_TO_ENGLISH
public static final TranslateMode ENGLISH_TO_ITALIAN
public static final TranslateMode ENGLISH_T0_JAPANESE
public static final TranslateMode ENGLISH_TO_GERMAN
public static final TranslateMode ENGLISH_TO_KOREAN
public static final TranslateMode ENGLISH_TO_PORTUGUESE
public static final TranslateMode ENGLISH_TO_SPANISH
public static final TranslateMode FRENCH_TO_ENGLISH
public static final TranslateMode FRENCH_TO_GERMAN
public static final TranslateMode GERMAN_TO_ENGLISH
public static final TranslateMode GERMAN_TO_FRENCH
public static final TranslateMode ITALIAN_TO_ENGLISH
public static final TranslateMode JAPANESE_TO_ENGLISH
public static final TranslateMode KOREAN_TO_ENGLISH
public static final TranslateMode PORTUGUESE_TO_ENGLISH
public static final TranslateMode RUSSIAN_TO_ENGLISH
public static final TranslateMode SPANISH_TO_ENGLISH
public static final TranslateMode ENGLISH_TO_ARABIC
| Method Detail |
|---|
public static TranslateMode[] values()
for (TranslateMode c : TranslateMode.values()) System.out.println(c);
public static TranslateMode 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 name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String getLangPair()
public java.lang.String getSourceLang()
public static java.util.Collection<java.lang.String> getAllModes()
public static TranslateMode getByLangPair(java.lang.String langPair)
s - the lang pair argument (e.g. en|fr)
java.lang.IllegalArgumentException - if the given langPair doesn't
correspond to a lang pair this TranslateMode supports
java.lang.NullPointerException - if langPair is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||