APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.util

public Class DatatypeMessageFormatter

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

Used to format JAXP 1.3 Datatype API error messages using a specified locale.

Author
Neeraj Bajaj, Sun Microsystems

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the formatted message.
formatMessage
(Locale
The locale of the message.
locale
,
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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BASE_NAMEback to summary
private static final String BASE_NAME

Constructor Detail

DatatypeMessageFormatterback to summary
public DatatypeMessageFormatter()

Method Detail

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

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

Parameters
locale:Locale

The locale of the message.

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.