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