1 |
|
//---PACKAGE DECLARATION--- |
2 |
< |
package uk.ac.ukc.iscream.xml; |
2 |
> |
package uk.ac.ukc.iscream.util; |
3 |
|
|
4 |
|
//---IMPORTS--- |
5 |
|
import java.util.HashMap; |
28 |
|
|
29 |
|
// Add a key and value pair to the HashMap. |
30 |
|
public synchronized void addParam (String key, String value) { |
31 |
< |
params.put(key, value); |
32 |
< |
// debug by println ;-) |
33 |
< |
// System.out.println("Adding to hash: " + key + " = " + value); |
34 |
< |
// end debug code |
31 |
> |
_params.put(key, value); |
32 |
|
} |
33 |
|
|
34 |
|
// Return the value associated with a particular key. |
36 |
|
// this should not necessarily indicate that the key |
37 |
|
// does not exist. |
38 |
|
public synchronized String getParam (String key) { |
39 |
< |
return (String)params.get(key); |
39 |
> |
return (String) _params.get(key); |
40 |
|
} |
41 |
|
|
42 |
|
// Print out the entire HashMap. |
43 |
|
// (Mainly for assisting debugging.) |
44 |
|
public synchronized String printAll () { |
45 |
< |
return params.toString(); |
45 |
> |
return _params.toString(); |
46 |
|
} |
47 |
|
|
48 |
|
/** |
61 |
|
|
62 |
|
//---ATTRIBUTES--- |
63 |
|
|
64 |
< |
private HashMap params = new HashMap(); |
64 |
> |
private HashMap _params = new HashMap(); |
65 |
|
|
66 |
|
//---STATIC ATTRIBUTES--- |
67 |
|
|
68 |
< |
} |
68 |
> |
} |