Interface ILocalizationViewModelEntry

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultLocalizationViewModelEntry, EndUserStateLocalizationViewModelEntry, FcUserInvocationLocalizationEntry

public interface ILocalizationViewModelEntry extends Serializable
An entry with a map of messages for a given locale, used as part of ILocalizationViewModel. You can create custom subclasses with utility method for certain keys.
Since:
8.2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    The locale for which the localized messages are stored.
    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 Details

    • 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.
    • setMessages

      void setMessages(Map<String,String> localizations)
      Sets the map with the localized messages, a mapping from the message key to the localized message.
      Parameters:
      localizations - The map with the localized messages.