Class DialectFallbackText
java.lang.Object
com.aquima.interactions.portal.ds.sys.dialects.DialectFallbackText
- All Implemented Interfaces:
IMultilingualText
,Serializable
Internal class to wrap a multilingual text to add dialect fallback behaviour for multilingual elements.
- Since:
- 8.4
- Author:
- Jon van Leuven
- See Also:
-
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.protected static IMultilingualText
valueOf
(IMultilingualText text, FallbackLanguages fallbackLanguages)
-
Method Details
-
valueOf
protected static IMultilingualText valueOf(IMultilingualText text, FallbackLanguages fallbackLanguages) -
getValue
Description copied from interface:IMultilingualText
Retrieves the text for the specified language code. If desired one can return a constant text independent of language code.- Specified by:
getValue
in interfaceIMultilingualText
- Parameters:
languageCode
- never null- Returns:
- The text, can return a null pointer.
-
getValue
Description copied from interface:IMultilingualText
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.- Specified by:
getValue
in interfaceIMultilingualText
- Parameters:
firstLanguageCode
- never nullsecondLanguageCode
- never null- Returns:
- The text, can return a null pointer.
-
getLanguageCodes
Description copied from interface:IMultilingualText
Retrieves the language codes.- Specified by:
getLanguageCodes
in interfaceIMultilingualText
- Returns:
- The text, can't return null.
-
getDefaultText
Description copied from interface:IMultilingualText
Returns the default text.- Specified by:
getDefaultText
in interfaceIMultilingualText
- Returns:
- The default text, can be null.
-