|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.util.prefs.IlrPropertyManager ilog.rules.util.prefs.IlrPreferences
public class IlrPreferences
A class to retrieve preferences.
Method Summary | |
---|---|
protected String |
getBaseClassName()
Returns the base class name for the preferences, that is "preferences". |
static boolean |
getBoolean(IlrPropertyBundle bundle,
String key,
boolean defaultValue)
Returns the boolean associated to the key key
or the given default value if the key is not found. |
static boolean |
getBoolean(String key,
boolean defaultValue)
Returns the boolean associated to the key key
or the given default value if the key is not found. |
static char |
getChar(IlrPropertyBundle bundle,
String key,
char defaultValue)
Returns the char associated to the key key
or the given default value if the key is not found. |
static char |
getChar(String key,
char defaultValue)
Returns the char associated to the key key
or the given default value if the key is not found. |
static float |
getFloat(IlrPropertyBundle bundle,
String key,
float defaultValue)
Returns the integer associated to the key key
or the given default value if the key is not found. |
static float |
getFloat(String key,
float defaultValue)
Returns the float associated to the key key
or the given default value if the key is not found. |
static int |
getInt(IlrPropertyBundle bundle,
String key,
int defaultValue)
Returns the integer associated to the key key
or the given default value if the key is not found. |
static int |
getInt(String key,
int defaultValue)
Returns the integer associated to the key key
or the given default value if the key is not found. |
static IlrPreferences |
getPreferences()
Return the only instance of IlrPreferences . |
static String |
getString(IlrPropertyBundle bundle,
String key)
Returns the string associated to the specified key. |
static String |
getString(IlrPropertyBundle bundle,
String key,
String defaultString)
Returns the string associated to the specified key or the given default value if the key is not found. |
static String |
getString(String key)
Returns the string associated to the specified key. |
static String |
getString(String key,
String defaultString)
Returns the string associated to the specified key or the given default value if the key is not found. |
static String[] |
getStringArray(IlrPropertyBundle bundle,
String key)
Returns the String array associated to the key key
or null if the key is not found. |
static String[] |
getStringArray(String key)
Returns the String array associated to the key key
or null if the key is not found. |
Methods inherited from class ilog.rules.util.prefs.IlrPropertyManager |
---|
addPrefix, addSuffix, findPropertyBundle, findPropertyBundle, getClassLoader, getLocale, getMaximumDepth, getPrefixes, getPropertyBundle, getPropertyBundle, getSuffixes, getValue, getValue, getValue, getValue, insertPrefixAt, insertSuffixAt, removePrefixAt, removeSuffixAt, setClassLoader, setLocale, setMaximumDepth, setPrefixes, setSuffixes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static IlrPreferences getPreferences()
IlrPreferences
. The preference manager
organizes the preferences as a hierarchy of property bundles.
IlrPropertyManager
protected String getBaseClassName()
getBaseClassName
in class IlrPropertyManager
public static String getString(String key)
key
- The key to search.public static String getString(String key, String defaultString)
key
- The key to search.defaultString
- The default value.public static String getString(IlrPropertyBundle bundle, String key)
bundle
- The bundle to look into.key
- The key to search.public static String getString(IlrPropertyBundle bundle, String key, String defaultString)
bundle
- The bundle to look into.key
- The key to search.defaultString
- The default value.public static String[] getStringArray(String key)
key
or null
if the key is not found.
key
- The key to search.public static String[] getStringArray(IlrPropertyBundle bundle, String key)
key
or null
if the key is not found. The search is limited to
the specified property bundle.
bundle
- The bundle to look into.key
- The key to search.public static boolean getBoolean(String key, boolean defaultValue)
key
or the given default value if the key is not found.
key
- The key to search.defaultValue
- The default value.public static boolean getBoolean(IlrPropertyBundle bundle, String key, boolean defaultValue)
key
or the given default value if the key is not found. The search is limited to
the specified property bundle.
bundle
- The bundle to look into.key
- The key to search.defaultValue
- The default value.public static char getChar(String key, char defaultValue)
key
or the given default value if the key is not found.
key
- The key to search.defaultValue
- The default value.public static char getChar(IlrPropertyBundle bundle, String key, char defaultValue)
key
or the given default value if the key is not found. The search is limited to
the specified property bundle.
bundle
- The bundle to look into.key
- The key to search.defaultValue
- The default valuepublic static int getInt(String key, int defaultValue)
key
or the given default value if the key is not found.
key
- The key to search.defaultValue
- The default value.public static int getInt(IlrPropertyBundle bundle, String key, int defaultValue)
key
or the given default value if the key is not found. The search is limited to
the specified property bundle.
bundle
- The bundle to look into.key
- The key to search.defaultValue
- The default value.public static float getFloat(String key, float defaultValue)
key
or the given default value if the key is not found.
key
- The key to search.defaultValue
- The default value.public static float getFloat(IlrPropertyBundle bundle, String key, float defaultValue)
key
or the given default value if the key is not found. The search is limited to
the specified property bundle.
bundle
- The bundle to look into.key
- The key to search.defaultValue
- The default value.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |