XSLMessagespublic class XSLMessages extends XPATHMessages Sets things up for issuing error messages. This class is misnamed, and
should be called XalanMessages, or some such. |
Fields Summary |
---|
private static ListResourceBundle | XSLTBundleThe language specific resource object for Xalan messages. | private static final String | XSLT_ERROR_RESOURCESThe class name of the Xalan error message string table. |
Methods Summary |
---|
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.
//throws Exception
if (XSLTBundle == null)
XSLTBundle = loadResourceBundle(XSLT_ERROR_RESOURCES);
if (XSLTBundle != null)
{
return createMsg(XSLTBundle, msgKey, args);
}
else
return "Could not load any resource bundles.";
| 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.
if (XSLTBundle == null)
XSLTBundle = loadResourceBundle(XSLT_ERROR_RESOURCES);
if (XSLTBundle != null)
{
return createMsg(XSLTBundle, msgKey, args);
}
else
return "Could not load any resource bundles.";
|
|