Class LanguageTranslation
- java.lang.Object
-
- rocks.xmpp.extensions.langtrans.model.LanguageTranslation
-
public final class LanguageTranslation extends Object
The implementation of the the<x/>
element in theurn:xmpp:langtrans
namespace.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LanguageTranslation.Translation
The translation element.
-
Constructor Summary
Constructors Constructor Description LanguageTranslation(String sourceText, Locale sourceLanguage, Collection<LanguageTranslation.Translation> translations)
LanguageTranslation(Collection<LanguageTranslation.Translation> translations)
LanguageTranslation(LanguageTranslation.Translation... translations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Locale
getSourceLanguage()
Gets the source language.String
getSourceText()
Gets the source text.List<LanguageTranslation.Translation>
getTranslations()
Gets the translations.
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
urn:xmpp:langtrans- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LanguageTranslation
public LanguageTranslation(LanguageTranslation.Translation... translations)
-
LanguageTranslation
public LanguageTranslation(Collection<LanguageTranslation.Translation> translations)
-
LanguageTranslation
public LanguageTranslation(String sourceText, Locale sourceLanguage, Collection<LanguageTranslation.Translation> translations)
-
-
Method Detail
-
getTranslations
public final List<LanguageTranslation.Translation> getTranslations()
Gets the translations.- Returns:
- The translations.
-
getSourceText
public final String getSourceText()
Gets the source text.- Returns:
- The source text.
-
getSourceLanguage
public final Locale getSourceLanguage()
Gets the source language.- Returns:
- The source language.
-
-