public class

DOMMessageFormatter

extends Object
java.lang.Object
   ↳ org.apache.xerces.dom.DOMMessageFormatter

Class Overview

Used to format DOM error messages, using the system locale.@xerces.internal

Summary

Constants
String DOM_DOMAIN
String SERIALIZER_DOMAIN
String XML_DOMAIN
Public Methods
static String formatMessage(String domain, String key, Object[] arguments)
Formats a message with the specified arguments using the given locale information.
static void init()
Initialize Message Formatter.
static void setLocale(Locale dlocale)
Set Locale to be used by the formatter.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String DOM_DOMAIN

Constant Value: "http://www.w3.org/dom/DOMTR"

public static final String SERIALIZER_DOMAIN

Constant Value: "http://apache.org/xml/serializer"

public static final String XML_DOMAIN

Constant Value: "http://www.w3.org/TR/1998/REC-xml-19980210"

Public Methods

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.
key The message key.
arguments The message replacement text arguments. The order of the arguments must match that of the placeholders in the actual message.
Returns
  • the formatted message.
Throws
MissingResourceException Thrown if the message with the specified key cannot be found.

public static void init ()

Initialize Message Formatter.

public static void setLocale (Locale dlocale)

Set Locale to be used by the formatter.