FileDocCategorySizeDatePackage
XSLMessages.javaAPI DocJava SE 6 API2731Tue Jun 10 00:22:24 BST 2008com.sun.org.apache.xalan.internal.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.
xsl.usage
internal

Fields Summary
private static ListResourceBundle
XSLTBundle
The language specific resource object for Xalan messages.
private static final String
XSLT_ERROR_RESOURCES
The class name of the Xalan error message string table.
Constructors Summary
Methods Summary
public static final java.lang.StringcreateMessage(java.lang.String msgKey, java.lang.Object[] args)
Creates a message from the specified key and replacement arguments, localized to the given locale.

param
msgKey The key for the message text.
param
args The arguments to be used as replacement text in the message created.
return
The formatted message string.


                                                                        
           //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.StringcreateWarning(java.lang.String msgKey, java.lang.Object[] args)
Creates a message from the specified key and replacement arguments, localized to the given locale.

param
msgKey The key for the message text.
param
args The arguments to be used as replacement text in the message created.
return
The formatted warning string.

    if (XSLTBundle == null)
      XSLTBundle = loadResourceBundle(XSLT_ERROR_RESOURCES);

    if (XSLTBundle != null)
    {
      return createMsg(XSLTBundle, msgKey, args);
    }
    else
      return "Could not load any resource bundles.";