Class TranslationType


  • public final class TranslationType
    extends java.lang.Object
    Stores information of an translated string used in Translation Map
    Version:
    1.0, 20.11.2007
    Author:
    Fiete
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int SOURCE_CR
      Source of this translation type is the CR
      static int SOURCE_MAGELLAN
      Source of this translation type are the default Translations of Magellan.
      static int SOURCE_UNKNWON
      Source of this translation type is unknown; should not stay after init.
      static int sourceCR
      Deprecated.
      SOURCE_CR
      static int sourceMagellan
      Deprecated.
      SOURCE_MAGELLAN
      static int sourceUnknown
      Deprecated.
      SOURCE_UNKNOWN
    • Constructor Summary

      Constructors 
      Constructor Description
      TranslationType​(java.lang.String text, int _source)
      Constructs new Translation Type
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getSource()
      Returns the value of source.
      java.lang.String getTranslation()
      Returns the value of translation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sourceUnknown

        @Deprecated
        public static final int sourceUnknown
        Deprecated.
        SOURCE_UNKNOWN
        Source of this translation type is unknown; should not stay after init.
        See Also:
        Constant Field Values
      • sourceCR

        @Deprecated
        public static final int sourceCR
        Deprecated.
        SOURCE_CR
        Source of this translation type is the CR
        See Also:
        Constant Field Values
      • sourceMagellan

        @Deprecated
        public static final int sourceMagellan
        Deprecated.
        SOURCE_MAGELLAN
        Source of this translation type are the default Translations of Magellan.
        See Also:
        Constant Field Values
      • SOURCE_UNKNWON

        public static final int SOURCE_UNKNWON
        Source of this translation type is unknown; should not stay after init.
        See Also:
        Constant Field Values
      • SOURCE_CR

        public static final int SOURCE_CR
        Source of this translation type is the CR
        See Also:
        Constant Field Values
      • SOURCE_MAGELLAN

        public static final int SOURCE_MAGELLAN
        Source of this translation type are the default Translations of Magellan.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TranslationType

        public TranslationType​(java.lang.String text,
                               int _source)
        Constructs new Translation Type
        Parameters:
        text - the Translation
        _source - the Source
    • Method Detail

      • getTranslation

        public final java.lang.String getTranslation()
        Returns the value of translation.
        Returns:
        Returns translation.
      • getSource

        public final int getSource()
        Returns the value of source.
        Returns:
        Returns source.