public class

XMLMessageFormatter

extends Object
implements MessageFormatter
java.lang.Object
   ↳ org.apache.xerces.impl.msg.XMLMessageFormatter

Class Overview

XMLMessageFormatter provides error messages for the XML 1.0 Recommendation and for the Namespaces Recommendation@xerces.internal

Summary

Constants
String XMLNS_DOMAIN
String XML_DOMAIN The domain of messages concerning the XML 1.0 specification.
Public Constructors
XMLMessageFormatter()
Public Methods
String formatMessage(Locale locale, String key, Object[] arguments)
Formats a message with the specified arguments using the given locale information.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.xerces.util.MessageFormatter

Constants

public static final String XMLNS_DOMAIN

Constant Value: "http://www.w3.org/TR/1999/REC-xml-names-19990114"

public static final String XML_DOMAIN

The domain of messages concerning the XML 1.0 specification.

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

Public Constructors

public XMLMessageFormatter ()

Public Methods

public String formatMessage (Locale locale, String key, Object[] arguments)

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

Parameters
locale The locale of the message.
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
  • Returns the formatted message.
Throws
MissingResourceException Thrown if the message with the specified key cannot be found.