|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.javamud.data.PersistentProperties
Hierarchical Properties for independant storage and retrieval. A property is
a key-value pair. The keys are always String
s. The values
can be String
s, other PersistentProperties
, PersistentSet
s, or PersistentObject
s.
Field Summary | |
protected Map |
bag
Storage for the Properties |
Constructor Summary | |
PersistentProperties()
Constructor for the PersistentProperties object |
Method Summary | |
boolean |
contains(String key)
Returns true if the PersistentProperties contains key . |
PersistentProperties |
getPersistentProperties(String key)
Gets the mudProperties attribute of the PersistentProperties object |
Object |
getProperty(String key)
Gets the property attribute of the PersistentProperties object |
String |
getString(String key)
Gets the string attribute of the PersistentProperties object |
boolean |
isString(String key)
Returns TRUE if the value associated with key is a String. |
Iterator |
iterator()
Returns an Iterator for the key values. |
Object |
remove(String key)
Description of the Method |
void |
setProperty(String key,
PersistentObject value)
Sets the PersistentProperties property key to value |
void |
setProperty(String key,
PersistentProperties value)
Sets the PersistentProperties property key to value |
void |
setProperty(String key,
PersistentSet value)
Sets the PersistentProperties property key to value |
void |
setProperty(String key,
String value)
Sets the String property key to value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Map bag
Constructor Detail |
public PersistentProperties()
Method Detail |
public boolean contains(String key)
key
- Key to check for.
public PersistentProperties getPersistentProperties(String key)
key
- Description of the Parameter
public Object getProperty(String key)
key
- Description of the Parameter
public String getString(String key)
key
- Description of the Parameter
public boolean isString(String key)
key
- Key of value to test.
public Iterator iterator()
public Object remove(String key)
key
- Description of the Parameter
public void setProperty(String key, String value)
key
- The key to setvalue
- The value to setpublic void setProperty(String key, PersistentProperties value)
key
- The key to setvalue
- The value to setpublic void setProperty(String key, PersistentObject value)
key
- The key to setvalue
- The value to setpublic void setProperty(String key, PersistentSet value)
key
- The key to setvalue
- The value to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |