Package cz.cvut.kbss.ontodriver.model
Class Translations
java.lang.Object
cz.cvut.kbss.ontodriver.model.Translations
- All Implemented Interfaces:
Serializable
Value object representing the same string in multiple languages.
This is not a general-purpose type, it should be used only in instances where multiple translations of the same
string need to be treated as a single value. Its main purpose is to allow support for multilingual strings in
referenced lists (e.g., Lists.loadReferencedList(ReferencedListDescriptor)
).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Translations
public Translations() -
Translations
-
-
Method Details
-
set
Sets translation in the specified language.- Parameters:
language
- Language tag valuevalue
- Translation in the specified language
-
get
Gets translation in the specified language (if present).- Parameters:
language
- Language tag- Returns:
- Translation in the specified language,
null
if it is not available
-
getValue
Gets an unmodifiable view of the internal representation of this multilingual string.- Returns:
- Unmodifiable map
-
equals
-
hashCode
public int hashCode() -
toString
-