org.apache.xalan.res
Class XSLMessages

java.lang.Object
  extended by org.apache.xml.res.XMLMessages
      extended by org.apache.xpath.res.XPATHMessages
          extended by 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
private static java.lang.String XSLT_ERROR_RESOURCES
          The class name of the Xalan error message string table.
private static java.util.ListResourceBundle XSLTBundle
          The language specific resource object for Xalan messages.
 
Fields inherited from class org.apache.xml.res.XMLMessages
BAD_CODE, fLocale, FORMAT_FAILED
 
Constructor Summary
XSLMessages()
           
 
Method Summary
static java.lang.String createMessage(java.lang.String msgKey, java.lang.Object[] args)
          Creates a message from the specified key and replacement arguments, localized to the given locale.
static java.lang.String createWarning(java.lang.String msgKey, java.lang.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, createXPATHWarning
 
Methods inherited from class org.apache.xml.res.XMLMessages
createMsg, createXMLMessage, getLocale, getResourceSuffix, loadResourceBundle, setLocale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSLTBundle

private static java.util.ListResourceBundle XSLTBundle
The language specific resource object for Xalan messages.


XSLT_ERROR_RESOURCES

private static final java.lang.String XSLT_ERROR_RESOURCES
The class name of the Xalan error message string table.

See Also:
Constant Field Values
Constructor Detail

XSLMessages

public XSLMessages()
Method Detail

createMessage

public static final java.lang.String createMessage(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.

createWarning

public static final java.lang.String createWarning(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 warning string.