Top Description Constructors Methods
com.sun.org.apache.xerces.internal.jaxp.validation

pack-priv final Class JAXPValidationMessageFormatter

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

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

Author
Michael Glavassevich, IBM

Constructor Summary

AccessConstructor and Description
pack-priv

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

Constructor Detail

JAXPValidationMessageFormatterback to summary
pack-priv JAXPValidationMessageFormatter()

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.