| java.lang.Object org.apache.xerces.dom.DOMMessageFormatter
DOMMessageFormatter | public class DOMMessageFormatter (Code) | | Used to format DOM error messages, using the system locale.
author: Sandy Gao, IBM version: $Id: DOMMessageFormatter.java 449328 2006-09-23 22:58:23Z mrglavas $ |
Method Summary | |
public static String | formatMessage(String domain, String key, Object[] arguments) Formats a message with the specified arguments using the given
locale information.
Parameters: domain - domain from which error string is to come. Parameters: key - The message key. Parameters: arguments - The message replacement text arguments. | static ResourceBundle | getResourceBundle(String domain) | public static void | init() Initialize Message Formatter. | public static void | setLocale(Locale dlocale) Set Locale to be used by the formatter. |
SERIALIZER_DOMAIN | final public static String SERIALIZER_DOMAIN(Code) | | |
DOMMessageFormatter | DOMMessageFormatter()(Code) | | |
formatMessage | public static String formatMessage(String domain, String key, Object[] arguments) throws MissingResourceException(Code) | | Formats a message with the specified arguments using the given
locale information.
Parameters: domain - domain from which error string is to come. Parameters: key - The message key. Parameters: arguments - The message replacement text arguments. The orderof the arguments must match that of the placeholdersin the actual message. the formatted message. throws: MissingResourceException - Thrown if the message with thespecified key cannot be found. |
init | public static void init()(Code) | | Initialize Message Formatter.
|
setLocale | public static void setLocale(Locale dlocale)(Code) | | Set Locale to be used by the formatter.
Parameters: dlocale - |
|
|