public final class Messages extends Object
| Constructor and Description |
|---|
Messages() |
| Modifier and Type | Method and Description |
|---|---|
protected static ResourceBundle |
getBundle() |
static String |
getString(String id)
Get a localized string for the message id.
|
static String |
getString(String id,
Map<String,Object> parameters)
Get a localized string for a parameterized message.
|
static void |
setLocale(Locale locale) |
public static String getString(String id)
id - the id of the message.public static String getString(String id, Map<String,Object> parameters)
id - the id of the message.parameters - map that contains key/value pairs used to resolve the
tokens in the specified message.public static void setLocale(Locale locale)
protected static ResourceBundle getBundle()
Copyright © 2016 The Apache Software Foundation. All rights reserved.