001    /**
002     * Copyright 2005-2012 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     */
016    package org.kuali.rice.kns.datadictionary.exporter;
017    
018    import java.util.Collection;
019    import java.util.Map;
020    import java.util.Set;
021    
022    @Deprecated
023    public abstract class DataDictionaryMapBase implements Map {
024    
025        public int size() {
026            throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
027        }
028    
029        public boolean isEmpty() {
030            return false;
031        }
032    
033        public boolean containsKey(Object key) {
034            return get( key ) != null;
035        }
036    
037        public boolean containsValue(Object value) {
038            throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
039        }
040    
041        public Object put(Object key, Object value) {
042            throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
043        }
044    
045        public Object remove(Object key) {
046            throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
047        }
048    
049        public void putAll(Map map) {
050            throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
051        }
052    
053        public void clear() {
054            throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
055        }
056    
057        public Set keySet() {
058            throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
059        }
060    
061        public Collection values() {
062            throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
063        }
064    
065        public Set entrySet() {
066            throw new UnsupportedOperationException( "This operation not supported on a " + this.getClass().getName() );
067        }
068        
069    }