Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.dom

public Class DOMMessageFormatter

extends Object
Class Inheritance
Imports
java.util.Locale, .MissingResourceException, .ResourceBundle, jdk.xml.internal.SecuritySupport

Used to format DOM error messages, using the system locale.
Author
Sandy Gao, IBM

Field Summary

Modifier and TypeField and Description
public static final String
private static ResourceBundle
private static Locale
public static final String
private static ResourceBundle
public static final String
private static ResourceBundle

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the formatted message.
formatMessage
(String
domain from which error string is to come.
domain
,
String
The message key.
key
,
Object[]
The message replacement text arguments. The order of the arguments must match that of the placeholders in the actual message.
arguments
)

Formats a message with the specified arguments using the given locale information.

pack-priv static ResourceBundle
public static void
init()

Initialize Message Formatter.

public static void
setLocale(Locale dlocale)

setLocale to be used by the formatter.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DOM_DOMAINback to summary
public static final String DOM_DOMAIN
domResourceBundleback to summary
private static ResourceBundle domResourceBundle
localeback to summary
private static Locale locale
SERIALIZER_DOMAINback to summary
public static final String SERIALIZER_DOMAIN
serResourceBundleback to summary
private static ResourceBundle serResourceBundle
XML_DOMAINback to summary
public static final String XML_DOMAIN
xmlResourceBundleback to summary
private static ResourceBundle xmlResourceBundle

Constructor Detail

DOMMessageFormatterback to summary
pack-priv DOMMessageFormatter()

Method Detail

formatMessageback to summary
public static String formatMessage(String domain, String key, Object[] arguments) throws MissingResourceException

Formats a message with the specified arguments using the given locale information.

Parameters
domain:String

domain from which error string is to come.

key:String

The message key.

arguments:Object[]

The message replacement text arguments. The order of the arguments must match that of the placeholders in the actual message.

Returns:String

the formatted message.

Exceptions
MissingResourceException:
Thrown if the message with the specified key cannot be found.
getResourceBundleback to summary
pack-priv static ResourceBundle getResourceBundle(String domain)
initback to summary
public static void init()

Initialize Message Formatter.

setLocaleback to summary
public static void setLocale(Locale dlocale)

setLocale to be used by the formatter.