public class GlobalizationBridge extends BaseApplicationBridge implements IGlobalization, APIBridge
apiGroup| Constructor and Description |
|---|
GlobalizationBridge(IGlobalization delegate)
Constructor with delegate.
|
| Modifier and Type | Method and Description |
|---|---|
Locale |
getDefaultLocale()
Returns the default locale of the application defined in the configuration file
|
IGlobalization |
getDelegate()
Get the delegate implementation.
|
Locale[] |
getLocaleSupportedDescriptors()
List of supported locales for the application defined in the configuration file
|
java.lang.String |
getResourceLiteral(java.lang.String key,
Locale locale)
Gets the text/message corresponding to the given key and locale.
|
KeyPair[] |
getResourceLiterals(Locale locale)
Gets the full application configured literals (key/message pairs) corresponding to the given locale.
|
APIResponse |
invoke(APIRequest request)
Invokes the given method specified in the API request object.
|
void |
setDelegate(IGlobalization delegate)
Set the delegate implementation.
|
getAPIGroup, getAPIVersion, getJSONParserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAPIGroup, getAPIVersionpublic GlobalizationBridge(IGlobalization delegate)
delegate - The delegate implementing platform specific functions.public final IGlobalization getDelegate()
public final void setDelegate(IGlobalization delegate)
delegate - The delegate implementing platform specific functions.public Locale getDefaultLocale()
getDefaultLocale in interface IGlobalizationpublic Locale[] getLocaleSupportedDescriptors()
getLocaleSupportedDescriptors in interface IGlobalizationpublic java.lang.String getResourceLiteral(java.lang.String key,
Locale locale)
getResourceLiteral in interface IGlobalizationkey - to match textlocale - The locale object to get localized message, or the locale desciptor ("language" or "language-country" two-letters ISO codes.public KeyPair[] getResourceLiterals(Locale locale)
getResourceLiterals in interface IGlobalizationlocale - The locale object to get localized message, or the locale desciptor ("language" or "language-country" two-letters ISO codes.public APIResponse invoke(APIRequest request)
invoke in interface APIBridgeinvoke in class BaseApplicationBridgerequest - APIRequest object containing method name and parameters.