Package org.alfresco.service.cmr.i18n
Interface MessageLookup
- All Known Subinterfaces:
DictionaryService
- All Known Implementing Classes:
DictionaryComponent
,FilteredDictionaryComponent
,StaticMessageLookup
An object providing basic message lookup facilities. May (or may not) be directly conntect to resource bundles.
-
Method Summary
Modifier and TypeMethodDescriptiongetMessage
(String messageKey) Get message from registered resource bundle.getMessage
(String messageKey, Object... params) Get a localised message string, parameterized using standard MessageFormatter.getMessage
(String messageKey, Locale locale) Get a localised message stringgetMessage
(String messageKey, Locale locale, Object... params) Get a localised message string, parameterized using standard MessageFormatter.
-
Method Details
-
getMessage
Get message from registered resource bundle.- Parameters:
messageKey
- message key- Returns:
- localised message string, null if not found
-
getMessage
Get a localised message string- Parameters:
messageKey
- the message keylocale
- override the current locale- Returns:
- the localised message string, null if not found
-
getMessage
Get a localised message string, parameterized using standard MessageFormatter.- Parameters:
messageKey
- message keyparams
- format parameters- Returns:
- the localised string, null if not found
-
getMessage
Get a localised message string, parameterized using standard MessageFormatter.- Parameters:
messageKey
- the message keylocale
- override current localeparams
- the localised message string- Returns:
- the localised string, null if not found
-