org.apache.xpath.res

Class XPATHMessages

Known Direct Subclasses:
XSLMessages

public class XPATHMessages
extends XMLMessages

A utility class for issuing XPath error messages.

Method Summary

static String
createXPATHMessage(String msgKey, args[] )
Creates a message from the specified key and replacement arguments, localized to the given locale.
static String
createXPATHMsg(ListResourceBundle fResourceBundle, String msgKey, args[] )
Creates a message from the specified key and replacement arguments, localized to the given locale.
static String
createXPATHWarning(String msgKey, args[] )
Creates a message from the specified key and replacement arguments, localized to the given locale.

Methods inherited from class org.apache.xml.res.XMLMessages

createMsg, createXMLMessage, getLocale, loadResourceBundle, setLocale

Method Details

createXPATHMessage

public static final String createXPATHMessage(String msgKey,
                                              args[] )
Creates a message from the specified key and replacement arguments, localized to the given locale.
Parameters:
Returns:
The formatted message string.

createXPATHMsg

public static final String createXPATHMsg(ListResourceBundle fResourceBundle,
                                          String msgKey,
                                          args[] )
Creates a message from the specified key and replacement arguments, localized to the given locale.
Parameters:
fResourceBundle - The resource bundle to use.
msgKey - The message key to use.
Returns:
The formatted message string.

createXPATHWarning

public static final String createXPATHWarning(String msgKey,
                                              args[] )
Creates a message from the specified key and replacement arguments, localized to the given locale.
Parameters:
msgKey - The key for the message text.
Returns:
The formatted warning string.

Copyright B) 2004 Apache XML Project. All Rights Reserved.