Package org.htmlunit.xpath.res
Class XPATHMessages
java.lang.Object
org.htmlunit.xpath.res.XPATHMessages
A utility class for issuing XPath error messages.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static ListResourceBundle
The language specific resource object for XPath messages. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
createXPATHMessage
(String msgKey, Object[] args) Creates a message from the specified key and replacement arguments, localized to the given locale.private static String
createXPATHMsg
(ListResourceBundle fResourceBundle, String msgKey, Object[] args) Creates a message from the specified key and replacement arguments, localized to the given locale.
-
Field Details
-
XPATHBundle
The language specific resource object for XPath messages.
-
-
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.
-
createXPATHMsg
private static 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.
-