Package de.xima.fc.common.bean_models
Interface ILocalizationViewModelEntry
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultLocalizationViewModelEntry
,FcUserInvocationLocalizationEntry
,UserPortalStateLocalizationViewModelEntry
public interface ILocalizationViewModelEntry extends Serializable
An entry with a map of messages for a given locale, used as part ofILocalizationViewModel
. You can create custom subclasses with utility method for certain keys.- Since:
- 8.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Locale
getLocale()
The locale for which the localized messages are stored.Map<String,String>
getMessages()
Gets the map with the localized messages, a mapping from the message key to the localized message.void
setLocale(Locale locale)
Sets the locale for which the localized messages are stored.void
setMessages(Map<String,String> localizations)
Sets the map with the localized messages, a mapping from the message key to the localized message.
-
-
-
Method Detail
-
getLocale
Locale getLocale()
The locale for which the localized messages are stored.- Returns:
- The locale.
-
setLocale
void setLocale(Locale locale)
Sets the locale for which the localized messages are stored.- Parameters:
locale
- The locale.
-
getMessages
Map<String,String> getMessages()
Gets the map with the localized messages, a mapping from the message key to the localized message.- Returns:
- The map with the localized messages.
-
-