|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Dictionary java.util.Hashtable org.apache.axis.utils.LockableHashtable
This subclass of the java Hashtable allows individual entries to be "locked" so that their values cannot be overwritten or removed. Note, only the put() and remove() methods have been overridden. The clear() method still removes all entries whether they've been locked or not.
Constructor Summary | |
LockableHashtable()
|
|
LockableHashtable(int p1)
|
|
LockableHashtable(int p1,
float p2)
|
|
LockableHashtable(java.util.Map p1)
|
Method Summary | |
java.lang.Object |
get(java.lang.Object key)
Get an entry from this hashtable, and if we don't find anything, defer to our parent, if any. |
java.util.Set |
getAllKeys()
Returns the keys in this hashtable, and its parent chain |
java.util.Hashtable |
getParent()
Gets the parent Hashtable for this object (if any) |
boolean |
isKeyLocked(java.lang.Object key)
Returns true if a given key is in our locked list |
java.lang.Object |
put(java.lang.Object p1,
java.lang.Object p2)
Overrides the Hashtable.put() method to mark items as not being locked. |
java.lang.Object |
put(java.lang.Object p1,
java.lang.Object p2,
boolean locked)
New version of the put() method that allows for explicitly marking items added to the hashtable as locked. |
java.lang.Object |
remove(java.lang.Object p1)
Checks to see if an item is locked before it is removed. |
void |
setParent(java.util.Hashtable parent)
Set the parent Hashtable for this object |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, hashCode, isEmpty, keys, keySet, putAll, size, toString, values |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LockableHashtable()
public LockableHashtable(int p1, float p2)
public LockableHashtable(java.util.Map p1)
public LockableHashtable(int p1)
Method Detail |
public void setParent(java.util.Hashtable parent)
public java.util.Hashtable getParent()
public java.util.Set getAllKeys()
public java.lang.Object get(java.lang.Object key)
public java.lang.Object put(java.lang.Object p1, java.lang.Object p2, boolean locked)
public java.lang.Object put(java.lang.Object p1, java.lang.Object p2)
public java.lang.Object remove(java.lang.Object p1)
public boolean isKeyLocked(java.lang.Object key)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |