Interface IMultilingualText
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CompositeMultilingualText
,DialectFallbackText
,MultilingualText
,ParameterizedMultilingualText
This interface is used for objects containing texts for multiple languages.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptionReturns the default text.String[]
Retrieves the language codes.Retrieves the text for the specified language code.Retrieves the text for the specified language code.
-
Method Details
-
getValue
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
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 nullfallbackLanguageCode
- 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.
-