Package org.apache.xpath.res
Class XPATHMessages
java.lang.Object
org.apache.xml.res.XMLMessages
org.apache.xpath.res.XPATHMessages
- Direct Known Subclasses:
XSLMessages
public class XPATHMessages extends XMLMessages
A utility class for issuing XPath error messages.
-
Field Summary
Fields inherited from class org.apache.xml.res.XMLMessages
BAD_CODE, fLocale, FORMAT_FAILED -
Constructor Summary
Constructors Constructor Description XPATHMessages() -
Method Summary
Modifier and Type Method Description static StringcreateXPATHMessage(String msgKey, Object[] args)Creates a message from the specified key and replacement arguments, localized to the given locale.static StringcreateXPATHMsg(ListResourceBundle fResourceBundle, String msgKey, Object[] args)Creates a message from the specified key and replacement arguments, localized to the given locale.static StringcreateXPATHWarning(String msgKey, Object[] 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, setLocale
-
Constructor Details
-
XPATHMessages
public XPATHMessages()
-
-
Method Details
-
createXPATHMessage
Creates a message from the specified key and replacement arguments, localized to the given locale.- Parameters:
msgKey- The key for the message text.args- The arguments to be used as replacement text in the message created.- Returns:
- The formatted message string.
-
createXPATHWarning
Creates a message from the specified key and replacement arguments, localized to the given locale.- Parameters:
msgKey- The key for the message text.args- The arguments to be used as replacement text in the message created.- Returns:
- The formatted warning string.
-
createXPATHMsg
public static final String createXPATHMsg(ListResourceBundle fResourceBundle, String msgKey, Object[] 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.args- The arguments to be used as replacement text in the message created.- Returns:
- The formatted message string.
-