Class 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 the urn:xmpp:langtrans:items namespace.
    • 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 interface Addressable
        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.