01: package simpleorm.simplewebapp.ute;
02:
03: import java.util.Map;
04: import java.util.Set;
05: import java.util.Collection;
06:
07: /**
08: * Easy way to make a map out of a get() method.
09: * Need to do this because in .jsps ${foo[bar]} is the only way to
10: * pass a parameter to a get method, provided the get method is
11: * disguized as a map.
12: */
13: abstract public class WDummyMap implements Map {
14: public int size() {
15: throw new UnsupportedOperationException();
16: }
17:
18: public boolean containsKey(Object key) {
19: throw new UnsupportedOperationException();
20: }
21:
22: public boolean isEmpty() {
23: throw new UnsupportedOperationException();
24: }
25:
26: public boolean containsValue(Object value) {
27: throw new UnsupportedOperationException();
28: }
29:
30: public Object put(Object key, Object value) {
31: throw new UnsupportedOperationException();
32: }
33:
34: public Object remove(Object key) {
35: throw new UnsupportedOperationException();
36: }
37:
38: public void putAll(Map t) {
39: throw new UnsupportedOperationException();
40: }
41:
42: public void clear() {
43: throw new UnsupportedOperationException();
44: }
45:
46: public Set keySet() {
47: throw new UnsupportedOperationException();
48: }
49:
50: public Collection values() {
51: throw new UnsupportedOperationException();
52: }
53:
54: public Set entrySet() {
55: throw new UnsupportedOperationException();
56: }
57: }
|