eu.etaxonomy.cdm.model.common
Interface IMultiLanguageText
- All Known Implementing Classes:
- MultilanguageText, PersistentMultiLanguageText
public interface IMultiLanguageText
getText
String getText(Language language)
- Parameters:
language -
- Returns:
put
LanguageString put(LanguageString languageString)
- Parameters:
languageString -
- Returns:
- String the previous text in the MultilanguageSet that was associated with the language
defined in languageString, or null if there was no such text before. (A null return can also indicate that the text was previously null.)
add
@Deprecated
LanguageString add(LanguageString languageString)
- Deprecated. should follow the put semantic of maps, this method will be removed in v4.0
Use the
put method instead
- Parameters:
languageString -
- Returns:
- String the previous text in the MultilanguageSet that was associated with the language
defined in languageString, or null if there was no such text before. (A null return can also indicate that the text was previously null.)
getPreferredLanguageString
LanguageString getPreferredLanguageString(List<Language> languages)
- Iterates on the languages. As soon as there exists a language string for this language in
this multilanguage text
it is returned.
- Parameters:
languages -
- Returns:
Copyright © 2007-2013 EDIT. All Rights Reserved.