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:items
namespace.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Locale
getDestinationLanguage()
Gets the destination language.String
getDictionary()
In order to enhance the accuracy of translation engines most support the concept of mission specific dictionaries.String
getEngine()
Gets the translation engine.Jid
getJid()
Gets the JID of the translation service.Locale
getSourceLanguage()
Gets the source language.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.
-
-
-
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:
getJid
in 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.
-
-