List of utility methods to do Resource Message
String | getMessage(ResourceBundle messages, String msgKey, Object[] arguments) get Message return MessageFormat.format(messages.getString(msgKey), arguments);
|
String | getMessage(String bundleName, Locale locale, String key, String defaultMsg) Get a localized message from a bundle. return getMessage(bundleName, locale, key, defaultMsg, null);
|
String | getMessage(String key) get Message return getBundle().getString(key);
|
String | getMessage(String key) get Message return resource.getString(key);
|
String | getMessage(String key) get Message return fBundle.getString(key);
|
String | getMessage(String key, Object... contents) get Message try { String msg = bundle.getString(key); return MessageFormat.format(msg, contents); } catch (Exception e) { e.printStackTrace(); throw e; |
String | getMessage(String key, Object... values) get Message if (!MESSAGES.containsKey(key)) { return key; String value = MESSAGES.getString(key); return MessageFormat.format(value, values); |
String | getMessage(String key, String... fill) get Message String pattern = getResourceBundle().getString(key); MessageFormat mf = new MessageFormat(pattern); return mf.format(fill, new StringBuffer(), null).toString(); |
String | getMessage(String messageKey) Get message from registered resource bundle. return getMessage(messageKey, getLocale());
|
String | getMessage(String messageKey, Object[] params) get Message ResourceBundle bundle = ResourceBundle.getBundle(RESOURCE_BUNDLE_BASE_NAME, Locale.getDefault(),
Thread.currentThread().getContextClassLoader());
return MessageFormat.format(bundle.getString(messageKey), params);
|