Interface IMultilingualText

All Superinterfaces:
Serializable
All Known Implementing Classes:
CompositeMultilingualText, DialectFallbackText, MultilingualText, ParameterizedMultilingualText

public interface IMultilingualText extends Serializable
This interface is used for objects containing texts for multiple languages.
Since:
5.0
Author:
O. Kerpershoek
  • Method Details

    • getValue

      String getValue(String languageCode)
      Retrieves the text for the specified language code. If desired one can return a constant text independent of language code.
      Parameters:
      languageCode - never null
      Returns:
      The text, can return a null pointer.
    • getValue

      String getValue(String languageCode, String fallbackLanguageCode)
      Retrieves the text for the specified language code. If this text does not exist, the text of the fallback language code is being retrieved. If desired one can return a constant text independent of language code.
      Parameters:
      languageCode - never null
      fallbackLanguageCode - never null
      Returns:
      The text, can return a null pointer.
    • getLanguageCodes

      String[] getLanguageCodes()
      Retrieves the language codes.
      Returns:
      The text, can't return null.
    • getDefaultText

      String getDefaultText()
      Returns the default text.
      Returns:
      The default text, can be null.