| java.lang.Object org.pentaho.messages.MessageUtil
MessageUtil | public class MessageUtil (Code) | | |
Method Summary | |
public static String | formatErrorMessage(String key, String msg) Get a formatted error message. | public static String | formatMessage(String pattern, String param1) | public static String | formatMessage(String pattern, String param1, String param2) | public static String | formatMessage(String pattern, String param1, String param2, String param3) | public static String | formatMessage(String pattern, String param1, String param2, String param3, String param4) | public static String | getErrorString(ResourceBundle bundle, String key) Get a message from the specified resource bundle using the specified key,
and format it. | public static String | getErrorString(ResourceBundle bundle, String key, String param1) | public static String | getErrorString(ResourceBundle bundle, String key, String param1, String param2) | public static String | getErrorString(ResourceBundle bundle, String key, String param1, String param2, String param3) | public static String | getErrorString(ResourceBundle bundle, String key, String param1, String param2, String param3, String param4) | public static String | getString(ResourceBundle bundle, String key) Get the message from the specified resource bundle using the specified key.
Parameters: bundle - ResourceBundle containing the desired String Parameters: key - String containing the key to locate the desired String in the ResourceBundle. | public static String | getString(ResourceBundle bundle, String key, String param1) | public static String | getString(ResourceBundle bundle, String key, String param1, String param2) | public static String | getString(ResourceBundle bundle, String key, String param1, String param2, String param3) | public static String | getString(ResourceBundle bundle, String key, String param1, String param2, String param3, String param4) |
formatErrorMessage | public static String formatErrorMessage(String key, String msg)(Code) | | Get a formatted error message. The message consists of two parts. The first part is the
error numeric Id associated with the key used to identify the message in the resource file.
For instance, suppose the error key is MyClass.ERROR_0068_TEST_ERROR. The first
part of the error msg would be "0068". The second part of the returned string
is simply the msg parameter.
Currently the format is:
error key - error msg
For instance:
"0068 - A test error message."
Parameters: key - String containing the key that was used to obtain the msg parameterfrom the resource file. Parameters: msg - String containing the message that was obtained from the resource file usingthe key parameter. String containing the formatted error message. |
getErrorString | public static String getErrorString(ResourceBundle bundle, String key)(Code) | | Get a message from the specified resource bundle using the specified key,
and format it. see formatErrorMessage for details on how the
message is formatted.
Parameters: bundle - ResourceBundle containing the desired String Parameters: key - String containing the key to locate the desired String in the ResourceBundle. String containing the formatted message. |
getString | public static String getString(ResourceBundle bundle, String key)(Code) | | Get the message from the specified resource bundle using the specified key.
Parameters: bundle - ResourceBundle containing the desired String Parameters: key - String containing the key to locate the desired String in the ResourceBundle. String containing the message from the specified resource bundle accessedusing the specified key |
|
|