|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.Dictionary
|
+--com.ibm.wbi.persistent.SectionDictionary
Wrapper to use a Section where a Dictionary is needed. Keys must be strings and values must be serializeable otherwise you'll get runtime exceptions.
| Constructor Summary | |
SectionDictionary(Section section)
Creates a new SectionDictionary instance. |
|
| Method Summary | |
java.util.Enumeration |
elements()
Return an enumeration of values from the underlying Section |
java.lang.Object |
get(java.lang.Object key)
Get the named key from the underlying Section. |
boolean |
isEmpty()
Whether there are any keys in the underlying Section. |
java.util.Enumeration |
keys()
Return an enumeration of keys from the underlying Section |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Add a new key/value binding. |
java.lang.Object |
remove(java.lang.Object key)
Remove the named binding. |
int |
size()
Returns the number of keys in the underlying section |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SectionDictionary(Section section)
SectionDictionary instance.section - The wrapped Section value| Method Detail |
public int size()
size in class java.util.Dictionarypublic boolean isEmpty()
isEmpty in class java.util.Dictionaryboolean valuepublic java.util.Enumeration keys()
keys in class java.util.DictionaryEnumeration valuepublic java.util.Enumeration elements()
elements in class java.util.DictionaryEnumeration valuepublic java.lang.Object get(java.lang.Object key)
get in class java.util.Dictionarykey - The key of the value to retrieve (use String only)
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in class java.util.Dictionarykey - The key to bind a value to (use String)value - The value (use Serializable)public java.lang.Object remove(java.lang.Object key)
remove in class java.util.Dictionarykey - The key for the binding to remove
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||