public class GlobalizationDelegate extends BaseApplicationDelegate implements me.adaptive.arp.api.IGlobalization
| Constructor and Description |
|---|
GlobalizationDelegate()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
me.adaptive.arp.api.Locale |
getDefaultLocale()
Returns the default locale of the application defined in the configuration file
|
me.adaptive.arp.api.Locale[] |
getLocaleSupportedDescriptors()
List of supported locales for the application defined in the configuration file
|
java.lang.String |
getResourceLiteral(java.lang.String key,
me.adaptive.arp.api.Locale locale)
Gets the text/message corresponding to the given key and locale.
|
me.adaptive.arp.api.KeyPair[] |
getResourceLiterals(me.adaptive.arp.api.Locale locale)
Gets the full application configured literals (key/message pairs) corresponding to the given locale.
|
getAPIGroup, getAPIVersionpublic me.adaptive.arp.api.Locale getDefaultLocale()
getDefaultLocale in interface me.adaptive.arp.api.IGlobalizationpublic me.adaptive.arp.api.Locale[] getLocaleSupportedDescriptors()
getLocaleSupportedDescriptors in interface me.adaptive.arp.api.IGlobalizationpublic java.lang.String getResourceLiteral(java.lang.String key,
me.adaptive.arp.api.Locale locale)
getResourceLiteral in interface me.adaptive.arp.api.IGlobalizationkey - to match textlocale - The locale object to get localized message, or the locale desciptor ("language" or "language-country" two-letters ISO codes.public me.adaptive.arp.api.KeyPair[] getResourceLiterals(me.adaptive.arp.api.Locale locale)
getResourceLiterals in interface me.adaptive.arp.api.IGlobalizationlocale - The locale object to get localized message, or the locale desciptor ("language" or "language-country" two-letters ISO codes.