Class StringEntry


  • public class StringEntry
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      StringEntry​(java.lang.String srcText)
      Creates a new string entry for a unique translatable string.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getSrcText()
      Returns the source string
      java.lang.String getTranslation()
      Returns the translation of the StringEntry.
      boolean isTranslated()
      Returns whether the given string entry is already translated.
      void setTranslation​(java.lang.String trans)
      Sets the translation of the StringEntry.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringEntry

        public StringEntry​(java.lang.String srcText)
        Creates a new string entry for a unique translatable string.
    • Method Detail

      • getSrcText

        public java.lang.String getSrcText()
        Returns the source string
      • getTranslation

        public java.lang.String getTranslation()
        Returns the translation of the StringEntry.
      • setTranslation

        public void setTranslation​(java.lang.String trans)
        Sets the translation of the StringEntry. If translation given is null or equal to the source, than the empty string is set as a translation to indicate that there's no translation.
      • isTranslated

        public boolean isTranslated()
        Returns whether the given string entry is already translated.