Interface DictionaryEntry



  • public interface DictionaryEntry
    Single-language entry within multi-lingual system dictionary.
    • Method Detail

      • changeKey

        DictionaryEntry changeKey​(java.lang.String newKey)
        Create new instance as a copy of entry object with changed entry key. Original object is unchanged.
        Parameters:
        newKey - new entry key
        Returns:
        new instance with changed entry key
      • changeLanguageIndex

        DictionaryEntry changeLanguageIndex​(int newLanguageIndex)
        Create new instance as a copy of entry object with changed language index. Original object is unchanged.
        Parameters:
        newLanguageIndex - new language index
        Returns:
        new instance with changed language index
      • getCreateTimeMiliseconds

        long getCreateTimeMiliseconds​()
        Get unix time in milliseconds, when the entry has been created. Value of D2Time.d2TimeEpoch indicates non-specified.
        Returns:
        create time in milliseconds since Unix epoch
      • getCreatorUserName

        java.lang.String getCreatorUserName​()
        Get name of user that created the entry.
        Returns:
        creator user name
      • getKey

        java.lang.String getKey​()
        Get key which is to be translated
        Returns:
        key of the entry
      • getLanguageIndex

        int getLanguageIndex​()
        Get index of language within multi-lingual dictionary.
        Returns:
        index of language
      • getModifyTimeMiliseconds

        long getModifyTimeMiliseconds​()
        Get unix time in miliseconds of the last update of the entry.
        Returns:
        last modify time in miliseconds since Unix epoch
      • getText

        java.lang.String getText​()
        Get translation of key (getKey()) in language (getLanguageIndex()).
        Returns:
        translation of key in language