Package org.apache.xalan.res
Class XSLMessages
java.lang.Object
org.apache.xml.res.XMLMessages
org.apache.xpath.res.XPATHMessages
org.apache.xalan.res.XSLMessages
public class XSLMessages extends XPATHMessages
Sets things up for issuing error messages. This class is misnamed, and
should be called XalanMessages, or some such.
-
Field Summary
Fields inherited from class org.apache.xml.res.XMLMessages
BAD_CODE, fLocale, FORMAT_FAILED -
Constructor Summary
Constructors Constructor Description XSLMessages() -
Method Summary
Modifier and Type Method Description static StringcreateMessage(String msgKey, Object[] args)Creates a message from the specified key and replacement arguments, localized to the given locale.static StringcreateWarning(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.xpath.res.XPATHMessages
createXPATHMessage, createXPATHMsg, createXPATHWarningMethods inherited from class org.apache.xml.res.XMLMessages
createMsg, createXMLMessage, getLocale, setLocale
-
Constructor Details
-
XSLMessages
public XSLMessages()
-
-
Method Details
-
createMessage
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.
-
createWarning
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.
-