Interface DictionaryEntry
-
public interface DictionaryEntrySingle-language entry within multi-lingual system dictionary.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DictionaryEntrychangeKey(java.lang.String newKey)Create new instance as a copy of entry object with changed entry key.DictionaryEntrychangeLanguageIndex(int newLanguageIndex)Create new instance as a copy of entry object with changed language index.longgetCreateTimeMiliseconds()Get unix time in milliseconds, when the entry has been created.java.lang.StringgetCreatorUserName()Get name of user that created the entry.java.lang.StringgetKey()Get key which is to be translatedintgetLanguageIndex()Get index of language within multi-lingual dictionary.longgetModifyTimeMiliseconds()Get unix time in miliseconds of the last update of the entry.java.lang.StringgetText()Get translation of key (getKey()) in language (getLanguageIndex()).
-
-
-
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 ofD2Time.d2TimeEpochindicates 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
-
-