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  @Deprecated
23  public abstract class DataDictionaryMapBase implements Map {
24  
25      public int size() {
26          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
27      }
28  
29      public boolean isEmpty() {
30          return false;
31      }
32  
33      public boolean containsKey(Object key) {
34          return get( key ) != null;
35      }
36  
37      public boolean containsValue(Object value) {
38          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
39      }
40  
41      public Object put(Object key, Object value) {
42          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
43      }
44  
45      public Object remove(Object key) {
46          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
47      }
48  
49      public void putAll(Map map) {
50          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
51      }
52  
53      public void clear() {
54          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
55      }
56  
57      public Set keySet() {
58          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
59      }
60  
61      public Collection values() {
62          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
63      }
64  
65      public Set entrySet() {
66          throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
67      }
68      
69  }