Class LocaleMessage
java.lang.Object
com.vmware.vipclient.i18n.base.instances.LocaleMessage
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCfg()getDisplayLanguagesList(String displayLocale) Get the display language map of the configured productgetRegionList(List<String> localeList) Get the region data from CLDR of supported languages of the configured productgetSupportedDisplayNameList(String displayLocale) Get supported display name list of the configured productGet the supported language tag list of the configured productvoid
-
Constructor Details
-
LocaleMessage
public LocaleMessage()
-
-
Method Details
-
getRegionList
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 functioncom.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
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
Get the supported language tag list of the configured product- Returns:
- a list contains the supported language tags
-
getSupportedDisplayNameList
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
-
setCfg
-