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

public Class XMLMessageFormatter_sv

extends Object
implements MessageFormatter
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.util.MessageFormatter
Imports
com.sun.org.apache.xerces.internal.util.MessageFormatter, java.util.Locale, .MissingResourceException, .PropertyResourceBundle, .ResourceBundle, jdk.xml.internal.SecuritySupport

XMLMessageFormatter provides error messages for the XML 1.0 Recommendation and for the Namespaces Recommendation
Author
Eric Ye, IBM

Field Summary

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

The domain of messages concerning the XML 1.0 specification.

public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

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
)

Implements com.sun.org.apache.xerces.internal.util.MessageFormatter.formatMessage.

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fLocaleback to summary
private Locale fLocale
fResourceBundleback to summary
private ResourceBundle fResourceBundle
XML_DOMAINback to summary
public static final String XML_DOMAIN

The domain of messages concerning the XML 1.0 specification.

XMLNS_DOMAINback to summary
public static final String XMLNS_DOMAIN

Constructor Detail

XMLMessageFormatter_svback to summary
public XMLMessageFormatter_sv()

Method Detail

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

Implements com.sun.org.apache.xerces.internal.util.MessageFormatter.formatMessage.

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

Returns the formatted message.

Exceptions
MissingResourceException:
Thrown if the message with the specified key cannot be found.