Class LanguageSupport.Item
- java.lang.Object
-
- rocks.xmpp.extensions.langtrans.model.items.LanguageSupport.Item
-
- All Implemented Interfaces:
Addressable
- Enclosing class:
- LanguageSupport
public static final class LanguageSupport.Item extends Object implements Addressable
The implementation of the the<item/>element in theurn:xmpp:langtrans:itemsnamespace.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalegetDestinationLanguage()Gets the destination language.StringgetDictionary()In order to enhance the accuracy of translation engines most support the concept of mission specific dictionaries.StringgetEngine()Gets the translation engine.JidgetJid()Gets the JID of the translation service.LocalegetSourceLanguage()Gets the source language.booleanisPivotable()Pivoting is the process of using one or more intermediate languages to translate from a given source language to a specific destination language.
-
-
-
Method Detail
-
getSourceLanguage
public final Locale getSourceLanguage()
Gets the source language.- Returns:
- The source language.
-
getJid
public final Jid getJid()
Gets the JID of the translation service.- Specified by:
getJidin interfaceAddressable- Returns:
- The JID.
-
getDestinationLanguage
public final Locale getDestinationLanguage()
Gets the destination language.- Returns:
- The destination language.
-
getEngine
public final String getEngine()
Gets the translation engine.- Returns:
- The translation engine.
-
isPivotable
public final boolean isPivotable()
Pivoting is the process of using one or more intermediate languages to translate from a given source language to a specific destination language.- Returns:
- If a text is pivotable.
-
getDictionary
public final String getDictionary()
In order to enhance the accuracy of translation engines most support the concept of mission specific dictionaries.- Returns:
- The dictionary.
-
-