ilog.rules.util.prefs

Class IlrPreferences


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

    public class IlrPreferences
    extends IlrPropertyManager
    A class to retrieve preferences.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      protected java.lang.String getBaseClassName()
      Deprecated. 
      Returns the base class name for the preferences, that is "preferences".
      static boolean getBoolean(IlrPropertyBundle bundle, java.lang.String key, boolean defaultValue)
      Deprecated. 
      Returns the boolean associated to the key key or the given default value if the key is not found.
      static boolean getBoolean(java.lang.String key, boolean defaultValue)
      Deprecated. 
      Returns the boolean associated to the key key or the given default value if the key is not found.
      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 float getFloat(IlrPropertyBundle bundle, java.lang.String key, float defaultValue)
      Deprecated. 
      Returns the integer associated to the key key or the given default value if the key is not found.
      static float getFloat(java.lang.String key, float defaultValue)
      Deprecated. 
      Returns the float associated to the key key or the given default value if the key is not found.
      static int getInt(IlrPropertyBundle bundle, java.lang.String key, int defaultValue)
      Deprecated. 
      Returns the integer 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 key key or the given default value if the key is not found.
      static IlrPreferences getPreferences()
      Deprecated. 
      Return the only instance of IlrPreferences.
      static java.lang.String getString(IlrPropertyBundle bundle, java.lang.String key)
      Deprecated. 
      Returns the string associated to the specified key.
      static java.lang.String getString(IlrPropertyBundle bundle, java.lang.String key, java.lang.String defaultString)
      Deprecated. 
      Returns the string associated to the specified key or the given default value if the key is not found.
      static java.lang.String getString(java.lang.String key)
      Deprecated. 
      Returns the string associated to the specified key.
      static java.lang.String getString(java.lang.String key, java.lang.String defaultString)
      Deprecated. 
      Returns the string associated to the specified key or the given default value if the key is not found.
      static java.lang.String[] getStringArray(IlrPropertyBundle bundle, java.lang.String key)
      Deprecated. 
      Returns the String array associated to the key key or null if the key is not found.
      static java.lang.String[] getStringArray(java.lang.String key)
      Deprecated. 
      Returns the String array associated to the key key or null if the key is not found.
      • Methods inherited from class java.lang.Object

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

      • getPreferences

        public static IlrPreferences getPreferences()
        Deprecated. 
        Return the only instance of IlrPreferences. The preference manager organizes the preferences as a hierarchy of property bundles.
        See Also:
        IlrPropertyManager
      • getBaseClassName

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

        public static java.lang.String getString(java.lang.String key)
        Deprecated. 
        Returns the string associated to the specified key.
        Parameters:
        key - The key to search.
      • getString

        public static java.lang.String getString(java.lang.String key,
                                 java.lang.String defaultString)
        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.
        defaultString - The default value.
      • getString

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

        public static java.lang.String getString(IlrPropertyBundle bundle,
                                 java.lang.String key,
                                 java.lang.String defaultString)
        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.
        defaultString - The default value.
      • getStringArray

        public static java.lang.String[] getStringArray(java.lang.String key)
        Deprecated. 
        Returns the String array associated to the key key or null if the key is not found.
        Parameters:
        key - The key to search.
      • getStringArray

        public static java.lang.String[] getStringArray(IlrPropertyBundle bundle,
                                        java.lang.String key)
        Deprecated. 
        Returns the String array associated to the key key or null 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.
      • getBoolean

        public static boolean getBoolean(java.lang.String key,
                         boolean defaultValue)
        Deprecated. 
        Returns the boolean 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.
      • getBoolean

        public static boolean getBoolean(IlrPropertyBundle bundle,
                         java.lang.String key,
                         boolean defaultValue)
        Deprecated. 
        Returns the boolean 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.
      • 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
      • getInt

        public static int getInt(java.lang.String key,
                 int defaultValue)
        Deprecated. 
        Returns the integer 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.
      • getInt

        public static int getInt(IlrPropertyBundle bundle,
                 java.lang.String key,
                 int defaultValue)
        Deprecated. 
        Returns the integer 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.
      • getFloat

        public static float getFloat(java.lang.String key,
                     float defaultValue)
        Deprecated. 
        Returns the float 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.
      • getFloat

        public static float getFloat(IlrPropertyBundle bundle,
                     java.lang.String key,
                     float defaultValue)
        Deprecated. 
        Returns the integer 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.

© Copyright IBM Corp. 1987, 2017