001/** 002 * Copyright 2005-2017 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.rice.kns.datadictionary.exporter; 017 018import java.util.Collection; 019import java.util.Map; 020import java.util.Set; 021 022/** 023 * @deprecated Only used by KNS classes, no replacement. 024 */ 025@Deprecated 026public abstract class DataDictionaryMapBase implements Map { 027 028 public int size() { 029 throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() ); 030 } 031 032 public boolean isEmpty() { 033 return false; 034 } 035 036 public boolean containsKey(Object key) { 037 return get( key ) != null; 038 } 039 040 public boolean containsValue(Object value) { 041 throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() ); 042 } 043 044 public Object put(Object key, Object value) { 045 throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() ); 046 } 047 048 public Object remove(Object key) { 049 throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() ); 050 } 051 052 public void putAll(Map map) { 053 throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() ); 054 } 055 056 public void clear() { 057 throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() ); 058 } 059 060 public Set keySet() { 061 throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() ); 062 } 063 064 public Collection values() { 065 throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() ); 066 } 067 068 public Set entrySet() { 069 throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() ); 070 } 071 072}