public static final class LanguageTranslation.Translation extends Object
| Modifier and Type | Method and Description |
|---|---|
static LanguageTranslation.Translation |
forDestinationLanguage(Locale destinationLanguage)
Creates a translation element for a destination language.
|
Locale |
getDestinationLanguage()
Gets the destination language.
|
String |
getDictionary()
Gets the dictionary.
|
String |
getEngine()
Gets the engine.
|
Locale |
getSourceLanguage()
Gets the source language.
|
String |
getTranslatedText()
Gets the translated text.
|
boolean |
isReviewed()
Indicates whether the translation has been reviewed.
|
LanguageTranslation.Translation |
withDictionary(String dictionary)
Sets the dictionary.
|
LanguageTranslation.Translation |
withEngine(String engine)
Sets the engine.
|
LanguageTranslation.Translation |
withReviewed(boolean reviewed)
Indicates that the translation has been reviewed by a human.
|
LanguageTranslation.Translation |
withSourceLanguage(Locale sourceLanguage)
Sets the source language.
|
LanguageTranslation.Translation |
withTranslatedText(String text)
Sets the translated text.
|
public static LanguageTranslation.Translation forDestinationLanguage(Locale destinationLanguage)
destinationLanguage - The destination language.public LanguageTranslation.Translation withSourceLanguage(Locale sourceLanguage)
sourceLanguage - The source language.public LanguageTranslation.Translation withEngine(String engine)
engine - The engine.public LanguageTranslation.Translation withDictionary(String dictionary)
dictionary - The dictionary.public LanguageTranslation.Translation withReviewed(boolean reviewed)
reviewed - If the translation has been reviewed.public LanguageTranslation.Translation withTranslatedText(String text)
text - The text.public final Locale getDestinationLanguage()
public final Locale getSourceLanguage()
public final String getEngine()
public final String getTranslatedText()
public final String getDictionary()
public final boolean isReviewed()
Copyright © 2014–2017 XMPP.rocks. All rights reserved.