2 |
|
package uk.ac.ukc.iscream.util; |
3 |
|
|
4 |
|
//---IMPORTS--- |
5 |
< |
import java.util.HashMap; |
5 |
> |
import java.util.*; |
6 |
|
|
7 |
|
/** |
8 |
|
* Object in which to store incoming XML data |
39 |
|
return (String) _params.get(key); |
40 |
|
} |
41 |
|
|
42 |
+ |
// Return a Set of the keys in the HashMap. |
43 |
+ |
public synchronized Set getSet () { |
44 |
+ |
return _params.keySet(); |
45 |
+ |
} |
46 |
+ |
|
47 |
+ |
// Find if a particular key exists in the HashMap. |
48 |
+ |
public synchronized boolean containsKey(String key){ |
49 |
+ |
return _params.containsKey(key); |
50 |
+ |
} |
51 |
+ |
|
52 |
|
// Print out the entire HashMap. |
53 |
|
// (Mainly for assisting debugging.) |
54 |
|
public synchronized String printAll () { |
61 |
|
* |
62 |
|
* @return the name of this class and its CVS revision |
63 |
|
*/ |
64 |
< |
public String toString() { |
64 |
> |
public String toString () { |
65 |
|
return this.getClass().getName() + "(" + REVISION.substring(11, REVISION.length() - 2) + ")"; |
66 |
|
} |
67 |
|
|