|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
ides.api.core.PersistentProperties
public class PersistentProperties
A convenience wrapper of Properties. It provides methods to
get and set properties of types other than String. However, the underlying
implementation uses strings to store the actual properties.
| Field Summary |
|---|
| Fields inherited from class java.util.Properties |
|---|
defaults |
| Constructor Summary | |
|---|---|
PersistentProperties()
|
|
| Method Summary | |
|---|---|
boolean |
getBoolean(java.lang.String key)
Searches for the property with the specified key in this property list and parses the string value as a boolean. |
boolean |
getBoolean(java.lang.String key,
boolean defaultValue)
Searches for the property with the specified key in this property list and parses the string value as a boolean. |
int |
getInt(java.lang.String key)
Searches for the property with the specified key in this property list and parses the string value as an integer. |
int |
getInt(java.lang.String key,
int defaultValue)
Searches for the property with the specified key in this property list and parses the string value as an integer. |
java.lang.Object |
setBoolean(java.lang.String key,
boolean value)
Calls the Hashtable method put. |
java.lang.Object |
setInt(java.lang.String key,
int value)
Calls the Hashtable method put. |
| Methods inherited from class java.util.Properties |
|---|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
| Methods inherited from class java.util.Hashtable |
|---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PersistentProperties()
| Method Detail |
|---|
public boolean getBoolean(java.lang.String key)
false if the property
is not found.
key - the property key
getBoolean(String, boolean),
setBoolean(String, boolean)
public boolean getBoolean(java.lang.String key,
boolean defaultValue)
key - the property keydefaultValue - a default value
setBoolean(String, boolean)
public java.lang.Object setBoolean(java.lang.String key,
boolean value)
key - the key to be placed into this property listvalue - the value corresponding to key
null if it did not have one.getBoolean(String),
getBoolean(String, boolean)public int getInt(java.lang.String key)
0 if the
property is not found.
key - the property key
getInt(String, int),
setInt(String, int)
public int getInt(java.lang.String key,
int defaultValue)
key - the property keydefaultValue - a default value
setInt(String, int)
public java.lang.Object setInt(java.lang.String key,
int value)
key - the key to be placed into this property listvalue - the value corresponding to key
null if it did not have one.getInt(String),
getInt(String, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||