|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--superwaba.ext.xplat.util.props.Properties
Class used to store properties pairs (key,value). A hashtable is used to store them. Currently, the key must be a String and the value must be a Value (Properties.Str, Properties.Int, Properties.Double, Properties.Long, Properties.Boolean. The properties can be saved and loaded to/from a DataStream.
Inner Class Summary | |
static class |
Properties.Boolean
Implements a value of type boolean |
static class |
Properties.Double
Implements a value of type double |
static class |
Properties.Int
Implements a value of type int |
static class |
Properties.Long
Implements a value of type long |
static class |
Properties.Str
Implements a value of type String |
static class |
Properties.Value
Represents a generic value that can be stored here. |
Constructor Summary | |
Properties()
|
|
Properties(String[] keys,
Properties.Value[] values)
Stores the given keys/values pairs in a new Properties. |
Method Summary | |
void |
clear()
Clears this property |
Properties.Value |
get(String key)
Get the value given the key from the hashtable that stores the properties. |
Vector |
getKeys()
Returns a Vector with the current keys |
void |
load(DataStream ds)
Load all properties from the given DataStream. |
void |
put(String key,
Properties.Value v)
Put the given key/value pair in the hashtable that stores the properties. |
void |
remove(String key)
Remove a value from the property |
void |
save(DataStream ds)
Save all properties in the given DataStream |
int |
size()
Returns the number of properties |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
toString,
wait,
wait |
Constructor Detail |
public Properties()
public Properties(String[] keys, Properties.Value[] values)
Method Detail |
public void put(String key, Properties.Value v)
public Properties.Value get(String key)
public int size()
public Vector getKeys()
public void clear()
public void remove(String key)
public void save(DataStream ds)
public void load(DataStream ds)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |