org.apache.myfaces.util
Class AbstractAttributeMap<V>

java.lang.Object
  extended by java.util.AbstractMap<String,V>
      extended by org.apache.myfaces.util.AbstractAttributeMap<V>
All Implemented Interfaces:
Map<String,V>
Direct Known Subclasses:
CookieMap, InitParameterMap, RequestHeaderMap, RequestHeaderValuesMap, RequestMap, RequestParameterMap, RequestParameterValuesMap

public abstract class AbstractAttributeMap<V>
extends AbstractMap<String,V>

Helper Map implementation for use with different Attribute Maps.

Version:
$Revision: 1190015 $ $Date: 2011-10-27 15:45:37 -0500 (Thu, 27 Oct 2011) $
Author:
Anton Koinov (latest modification by $Author: struberg $)

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
AbstractAttributeMap()
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object findValue)
           
 Set<Map.Entry<String,V>> entrySet()
           
 V get(Object key)
           
protected abstract  V getAttribute(String key)
           
protected abstract  Enumeration<String> getAttributeNames()
           
 boolean isEmpty()
           
 Set<String> keySet()
           
 V put(String key, V value)
           
 void putAll(Map<? extends String,? extends V> t)
           
 V remove(Object key)
           
protected abstract  void removeAttribute(String key)
           
protected abstract  void setAttribute(String key, V value)
           
 int size()
           
 Collection<V> values()
           
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractAttributeMap

public AbstractAttributeMap()
Method Detail

clear

public void clear()
Specified by:
clear in interface Map<String,V>
Overrides:
clear in class AbstractMap<String,V>

containsKey

public final boolean containsKey(Object key)
Specified by:
containsKey in interface Map<String,V>
Overrides:
containsKey in class AbstractMap<String,V>

containsValue

public boolean containsValue(Object findValue)
Specified by:
containsValue in interface Map<String,V>
Overrides:
containsValue in class AbstractMap<String,V>

entrySet

public Set<Map.Entry<String,V>> entrySet()
Specified by:
entrySet in interface Map<String,V>
Specified by:
entrySet in class AbstractMap<String,V>

get

public V get(Object key)
Specified by:
get in interface Map<String,V>
Overrides:
get in class AbstractMap<String,V>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<String,V>
Overrides:
isEmpty in class AbstractMap<String,V>

keySet

public Set<String> keySet()
Specified by:
keySet in interface Map<String,V>
Overrides:
keySet in class AbstractMap<String,V>

put

public final V put(String key,
                   V value)
Specified by:
put in interface Map<String,V>
Overrides:
put in class AbstractMap<String,V>

putAll

public void putAll(Map<? extends String,? extends V> t)
Specified by:
putAll in interface Map<String,V>
Overrides:
putAll in class AbstractMap<String,V>

remove

public final V remove(Object key)
Specified by:
remove in interface Map<String,V>
Overrides:
remove in class AbstractMap<String,V>

size

public int size()
Specified by:
size in interface Map<String,V>
Overrides:
size in class AbstractMap<String,V>

values

public Collection<V> values()
Specified by:
values in interface Map<String,V>
Overrides:
values in class AbstractMap<String,V>

getAttribute

protected abstract V getAttribute(String key)

setAttribute

protected abstract void setAttribute(String key,
                                     V value)

removeAttribute

protected abstract void removeAttribute(String key)

getAttributeNames

protected abstract Enumeration<String> getAttributeNames()


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.