Package org.htmlunit.xpath.res
Class XPATHMessages
- java.lang.Object
-
- org.htmlunit.xpath.res.XPATHMessages
-
public class XPATHMessages extends java.lang.ObjectA utility class for issuing XPath error messages.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.ListResourceBundleXPATHBundleThe language specific resource object for XPath messages.
-
Constructor Summary
Constructors Constructor Description XPATHMessages()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringcreateXPATHMessage(java.lang.String msgKey, java.lang.Object[] args)Creates a message from the specified key and replacement arguments, localized to the given locale.private static java.lang.StringcreateXPATHMsg(java.util.ListResourceBundle fResourceBundle, java.lang.String msgKey, java.lang.Object[] args)Creates a message from the specified key and replacement arguments, localized to the given locale.
-
-
-
Method Detail
-
createXPATHMessage
public static java.lang.String createXPATHMessage(java.lang.String msgKey, java.lang.Object[] args)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.
-
createXPATHMsg
private static java.lang.String createXPATHMsg(java.util.ListResourceBundle fResourceBundle, java.lang.String msgKey, java.lang.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.
-
-