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); |
31 |
> |
_params.put(key, value); |
32 |
|
// debug by println ;-) |
33 |
|
// System.out.println("Adding to hash: " + key + " = " + value); |
34 |
|
// end debug code |
39 |
|
// this should not necessarily indicate that the key |
40 |
|
// does not exist. |
41 |
|
public synchronized String getParam (String key) { |
42 |
< |
return (String)params.get(key); |
42 |
> |
return (String) _params.get(key); |
43 |
|
} |
44 |
|
|
45 |
|
// Print out the entire HashMap. |
46 |
|
// (Mainly for assisting debugging.) |
47 |
|
public synchronized String printAll () { |
48 |
< |
return params.toString(); |
48 |
> |
return _params.toString(); |
49 |
|
} |
50 |
|
|
51 |
|
/** |
64 |
|
|
65 |
|
//---ATTRIBUTES--- |
66 |
|
|
67 |
< |
private HashMap params = new HashMap(); |
67 |
> |
private HashMap _params = new HashMap(); |
68 |
|
|
69 |
|
//---STATIC ATTRIBUTES--- |
70 |
|
|