View Javadoc
1   /**
2    * Copyright 2005-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
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.rice.kns.datadictionary.exporter;
17  
18  import java.util.Collection;
19  import java.util.Map;
20  import java.util.Set;
21  
22  /**
23   * @deprecated Only used by KNS classes, no replacement.
24   */
25  @Deprecated
26  public abstract class DataDictionaryMapBase implements Map {
27  
28      public int size() {
29          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
30      }
31  
32      public boolean isEmpty() {
33          return false;
34      }
35  
36      public boolean containsKey(Object key) {
37          return get( key ) != null;
38      }
39  
40      public boolean containsValue(Object value) {
41          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
42      }
43  
44      public Object put(Object key, Object value) {
45          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
46      }
47  
48      public Object remove(Object key) {
49          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
50      }
51  
52      public void putAll(Map map) {
53          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
54      }
55  
56      public void clear() {
57          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
58      }
59  
60      public Set keySet() {
61          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
62      }
63  
64      public Collection values() {
65          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
66      }
67  
68      public Set entrySet() {
69          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
70      }
71      
72  }