01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.core.datadictionary.exporter;
17:
18: import java.util.Collection;
19: import java.util.Map;
20: import java.util.Set;
21:
22: public abstract class DataDictionaryMapBase implements Map {
23:
24: public int size() {
25: throw new UnsupportedOperationException(
26: "This operation not supported on a "
27: + this .getClass().getName());
28: }
29:
30: public boolean isEmpty() {
31: return false;
32: }
33:
34: public boolean containsKey(Object key) {
35: return get(key) != null;
36: }
37:
38: public boolean containsValue(Object value) {
39: throw new UnsupportedOperationException(
40: "This operation not supported on a "
41: + this .getClass().getName());
42: }
43:
44: public Object put(Object key, Object value) {
45: throw new UnsupportedOperationException(
46: "This operation not supported on a "
47: + this .getClass().getName());
48: }
49:
50: public Object remove(Object key) {
51: throw new UnsupportedOperationException(
52: "This operation not supported on a "
53: + this .getClass().getName());
54: }
55:
56: public void putAll(Map map) {
57: throw new UnsupportedOperationException(
58: "This operation not supported on a "
59: + this .getClass().getName());
60: }
61:
62: public void clear() {
63: throw new UnsupportedOperationException(
64: "This operation not supported on a "
65: + this .getClass().getName());
66: }
67:
68: public Set keySet() {
69: throw new UnsupportedOperationException(
70: "This operation not supported on a "
71: + this .getClass().getName());
72: }
73:
74: public Collection values() {
75: throw new UnsupportedOperationException(
76: "This operation not supported on a "
77: + this .getClass().getName());
78: }
79:
80: public Set entrySet() {
81: throw new UnsupportedOperationException(
82: "This operation not supported on a "
83: + this.getClass().getName());
84: }
85:
86: }
|