Class XPATHMessages


  • public class XPATHMessages
    extends java.lang.Object
    A utility class for issuing XPath error messages.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.ListResourceBundle XPATHBundle
      The language specific resource object for XPath messages.
    • Constructor Summary

      Constructors 
      Constructor Description
      XPATHMessages()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String createXPATHMessage​(java.lang.String msgKey, java.lang.Object[] args)
      Creates a message from the specified key and replacement arguments, localized to the given locale.
      private static java.lang.String createXPATHMsg​(java.util.ListResourceBundle fResourceBundle, 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • XPATHBundle

        private static java.util.ListResourceBundle XPATHBundle
        The language specific resource object for XPath messages.
    • Constructor Detail

      • XPATHMessages

        public XPATHMessages()
    • Method Detail

      • createXPATHMessage

        public static java.lang.String createXPATHMessage​(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.
      • createXPATHMsg

        private static java.lang.String createXPATHMsg​(java.util.ListResourceBundle fResourceBundle,
                                                       java.lang.String msgKey,
                                                       java.lang.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.