Class LocaleMessage

java.lang.Object
com.vmware.vipclient.i18n.base.instances.LocaleMessage
All Implemented Interfaces:
I18n, Message

public class LocaleMessage extends Object implements Message
This class is to provide APIs related to locale of specific product supported by VIP, region list of one or multiple locales. On behind the APIs will fetch data from VIP service or local bundle and then wrapper the result as basic java util class to be called by prodcut's codes.
  • Constructor Details

    • LocaleMessage

      public LocaleMessage()
  • Method Details

    • getRegionList

      public Map<String,Map<String,String>> getRegionList(List<String> localeList)
      Get the region data from CLDR of supported languages of the configured product
      Parameters:
      localeList - a list contain all supported language tags of the configured product, it could be obtained by function com.vmware.vipclient.i18n.base.instances.LocaleMessage.getSupportedLanguageTagList
      Returns:
      map the key is the supported language tag, value is all region data mapped by language tag
    • getDisplayLanguagesList

      public Map<String,String> getDisplayLanguagesList(String displayLocale)
      Get the display language map of the configured product
      Parameters:
      displayLocale - the display name's localized language of returned result
      Returns:
      a map contains display name mapped by language tag, the names could be localized which determined by the displanLanguage parameter
    • getSupportedLanguageTagList

      public List<String> getSupportedLanguageTagList()
      Get the supported language tag list of the configured product
      Returns:
      a list contains the supported language tags
    • getSupportedDisplayNameList

      public List<String> getSupportedDisplayNameList(String displayLocale)
      Get supported display name list of the configured product
      Parameters:
      displayLocale - a language tag determines the display name's localization
      Returns:
      a list contains the display names
    • getCfg

      public VIPCfg getCfg()
    • setCfg

      public void setCfg(VIPCfg cfg)