ilog.rules.util.prefs

Class IlrMessages


  • Deprecated. 
    As of IBM ODM 8.9, the Classic Rule Engine is deprecated.

    public class IlrMessages
    extends IlrPropertyManager
    A class to retrieve localized messages.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static java.lang.String format(java.lang.String key, java.lang.Object arg0)
      Deprecated. 
       
      static java.lang.String format(java.lang.String key, java.lang.Object[] args)
      Deprecated. 
       
      static java.lang.String format(java.lang.String key, java.lang.Object arg0, java.lang.Object arg1)
      Deprecated. 
       
      static java.lang.String format(java.lang.String key, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
      Deprecated. 
       
      protected java.lang.String getBaseClassName()
      Deprecated. 
      Returns the base class name for the messages, that is "messages".
      static char getChar(IlrPropertyBundle bundle, java.lang.String key, char defaultValue)
      Deprecated. 
      Returns the char associated to the key key or the given default value if the key is not found.
      static char getChar(java.lang.String key, char defaultValue)
      Deprecated. 
      Returns the char associated to the key key or the given default value if the key is not found.
      static int getInt(java.lang.String key, int defaultValue)
      Deprecated. 
      Returns the integer associated to the specified key, or the defaultValue if the key is not found or if the key can not be parsed as Integer.
      static java.lang.String getMessage(IlrPropertyBundle bundle, java.lang.String key)
      Deprecated. 
      Returns the string associated to the specified key or the key itself if the key is not found.
      static java.lang.String getMessage(IlrPropertyBundle bundle, java.lang.String key, java.lang.Object[] args)
      Deprecated. 
      Returns the formatted string associated to the specified key or the key itself if the key is not found.
      static java.lang.String getMessage(IlrPropertyBundle bundle, java.lang.String key, java.lang.String defaultValue)
      Deprecated. 
      Returns the string associated to the specified key or the given default value if the key is not found.
      static java.lang.String getMessage(IlrPropertyBundle bundle, java.lang.String key, java.lang.String defaultValue, java.lang.Object[] args)
      Deprecated. 
      Returns the formatted string associated to the specified key, or the defaultValue if the key is not found.
      static java.lang.String getMessage(java.lang.String key)
      Deprecated. 
      Returns the string associated to the specified key or the key itself if the key is not found.
      static java.lang.String getMessage(java.lang.String key, java.util.Locale locale)
      Deprecated. 
      Returns the string associated to the specified key or the key itself if the key is not found.
      static java.lang.String getMessage(java.lang.String key, java.lang.Object[] args)
      Deprecated. 
      Returns the formatted string associated to the specified key or the key itself if the key is not found.
      static java.lang.String getMessage(java.lang.String key, java.lang.Object[] args, java.util.Locale locale)
      Deprecated. 
      Returns the formatted string associated to the specified key or the key itself if the key is not found.
      static java.lang.String getMessage(java.lang.String key, java.lang.String defaultValue)
      Deprecated. 
      Returns the string associated to the specified key or the given default value if the key is not found.
      static java.lang.String getMessage(java.lang.String key, java.lang.String defaultValue, java.util.Locale locale)
      Deprecated. 
      Returns the string associated to the specified key or the given default value if the key is not found.
      static IlrMessages getMessages()
      Deprecated. 
      Return the only instance of IlrMessages.
      • Methods inherited from class java.lang.Object

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

      • getMessages

        public static IlrMessages getMessages()
        Deprecated. 
        Return the only instance of IlrMessages. The message manager organizes the messages as a hierarchy of property bundles.
        See Also:
        IlrPropertyManager
      • getBaseClassName

        protected java.lang.String getBaseClassName()
        Deprecated. 
        Returns the base class name for the messages, that is "messages".
        Specified by:
        getBaseClassName in class IlrPropertyManager
      • getChar

        public static char getChar(java.lang.String key,
                   char defaultValue)
        Deprecated. 
        Returns the char associated to the key key or the given default value if the key is not found.
        Parameters:
        key - The key to search.
        defaultValue - The default value.
      • getChar

        public static char getChar(IlrPropertyBundle bundle,
                   java.lang.String key,
                   char defaultValue)
        Deprecated. 
        Returns the char associated to the key key or the given default value if the key is not found. The search is limited to the specified property bundle.
        Parameters:
        bundle - The bundle to look into.
        key - The key to search.
        defaultValue - The default value.
      • getMessage

        public static java.lang.String getMessage(java.lang.String key)
        Deprecated. 
        Returns the string associated to the specified key or the key itself if the key is not found.
        Parameters:
        key - The key to search.
      • getMessage

        public static java.lang.String getMessage(java.lang.String key,
                                  java.util.Locale locale)
        Deprecated. 
        Returns the string associated to the specified key or the key itself if the key is not found.
        Parameters:
        key - The key to search.
        locale - The locale.
      • getMessage

        public static java.lang.String getMessage(IlrPropertyBundle bundle,
                                  java.lang.String key)
        Deprecated. 
        Returns the string associated to the specified key or the key itself if the key is not found. The search is limited to the specified property bundle.
        Parameters:
        bundle - The bundle to look into.
        key - The key to search.
      • getMessage

        public static java.lang.String getMessage(java.lang.String key,
                                  java.lang.String defaultValue)
        Deprecated. 
        Returns the string associated to the specified key or the given default value if the key is not found.
        Parameters:
        key - The key to search.
        defaultValue - The default value.
      • getMessage

        public static java.lang.String getMessage(java.lang.String key,
                                  java.lang.String defaultValue,
                                  java.util.Locale locale)
        Deprecated. 
        Returns the string associated to the specified key or the given default value if the key is not found.
        Parameters:
        key - The key to search.
        defaultValue - The default value.
        locale - The locale.
      • getMessage

        public static java.lang.String getMessage(IlrPropertyBundle bundle,
                                  java.lang.String key,
                                  java.lang.String defaultValue)
        Deprecated. 
        Returns the string associated to the specified key or the given default value if the key is not found. The search is limited to the specified property bundle.
        Parameters:
        bundle - The bundle to look into.
        key - The key to search.
        defaultValue - The default value.
      • getMessage

        public static java.lang.String getMessage(java.lang.String key,
                                  java.lang.Object[] args)
        Deprecated. 
        Returns the formatted string associated to the specified key or the key itself if the key is not found. If the key is found the associated String is is formatted using the java.text.MessageFormat.format(String pattern, Object[] arguments) method.
        Parameters:
        key - The key to search.
        args - An array of objects to be formatted and substituted.
      • getMessage

        public static java.lang.String getMessage(java.lang.String key,
                                  java.lang.Object[] args,
                                  java.util.Locale locale)
        Deprecated. 
        Returns the formatted string associated to the specified key or the key itself if the key is not found. If the key is found the associated String is is formatted using the java.text.MessageFormat.format(String pattern, Object[] arguments) method.
        Parameters:
        key - The key to search.
        args - An array of objects to be formatted and substituted.
        locale - The locale.
      • getMessage

        public static java.lang.String getMessage(IlrPropertyBundle bundle,
                                  java.lang.String key,
                                  java.lang.Object[] args)
        Deprecated. 
        Returns the formatted string associated to the specified key or the key itself if the key is not found. The search is limited to the specified property bundle.
        Parameters:
        bundle - The bundle to look into.
        key - The key to search.
        args - An array of objects to be formatted and substituted.
      • getMessage

        public static java.lang.String getMessage(IlrPropertyBundle bundle,
                                  java.lang.String key,
                                  java.lang.String defaultValue,
                                  java.lang.Object[] args)
        Deprecated. 
        Returns the formatted string associated to the specified key, or the defaultValue if the key is not found. The search is limited to the specified property bundle.
        Parameters:
        bundle - The bundle to look into.
        key - The key to search.
        defaultValue - The value to return if the key is not found.
        args - An array of objects to be formatted and substituted.
      • getInt

        public static int getInt(java.lang.String key,
                 int defaultValue)
        Deprecated. 
        Returns the integer associated to the specified key, or the defaultValue if the key is not found or if the key can not be parsed as Integer.
        Parameters:
        key - The key to search.
        defaultValue - The value to return if the key is not found.
      • format

        public static java.lang.String format(java.lang.String key,
                              java.lang.Object arg0)
        Deprecated. 
      • format

        public static java.lang.String format(java.lang.String key,
                              java.lang.Object arg0,
                              java.lang.Object arg1)
        Deprecated. 
      • format

        public static java.lang.String format(java.lang.String key,
                              java.lang.Object arg0,
                              java.lang.Object arg1,
                              java.lang.Object arg2)
        Deprecated. 
      • format

        public static java.lang.String format(java.lang.String key,
                              java.lang.Object[] args)
        Deprecated. 

© Copyright IBM Corp. 1987, 2017