public class IlrPreferences extends IlrPropertyManager
| 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. |
addPrefix, addSuffix, findPropertyBundle, findPropertyBundle, getClassLoader, getLocale, getMaximumDepth, getPrefixes, getPropertyBundle, getPropertyBundle, getSuffixes, getValue, getValue, getValue, getValue, insertPrefixAt, insertSuffixAt, removePrefixAt, removeSuffixAt, setClassLoader, setLocale, setMaximumDepth, setPrefixes, setSuffixespublic static IlrPreferences getPreferences()
IlrPreferences. The preference manager
organizes the preferences as a hierarchy of property bundles.IlrPropertyManagerprotected java.lang.String getBaseClassName()
getBaseClassName in class IlrPropertyManagerpublic static java.lang.String getString(java.lang.String key)
key - The key to search.public static java.lang.String getString(java.lang.String key,
java.lang.String defaultString)
key - The key to search.defaultString - The default value.public static java.lang.String getString(IlrPropertyBundle bundle, java.lang.String key)
bundle - The bundle to look into.key - The key to search.public static java.lang.String getString(IlrPropertyBundle bundle, java.lang.String key, java.lang.String defaultString)
bundle - The bundle to look into.key - The key to search.defaultString - The default value.public static java.lang.String[] getStringArray(java.lang.String key)
key
or null if the key is not found.key - The key to search.public static java.lang.String[] getStringArray(IlrPropertyBundle bundle, java.lang.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(java.lang.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, java.lang.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(java.lang.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, java.lang.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(java.lang.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, java.lang.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(java.lang.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, java.lang.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.© Copyright IBM Corp. 1987, 2024