org.apache.myfaces.webapp.filter.servlet
Class AbstractAttributeMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by org.apache.myfaces.webapp.filter.servlet.AbstractAttributeMap
All Implemented Interfaces:
Map
Direct Known Subclasses:
CookieMap, RequestHeaderMap, RequestHeaderMap, RequestHeaderValuesMap, RequestHeaderValuesMap, RequestMap, RequestMap, RequestParameterMap, RequestParameterMap, RequestParameterValuesMap, RequestParameterValuesMap, SessionMap, SessionMap

public abstract class AbstractAttributeMap
extends AbstractMap

Helper Map implementation for use with different Attribute Maps.

NOTE: This class was copied from myfaces impl org.apache.myfaces.context.servlet and it is used by TomahawkFacesContextWrapper. By that reason, it could change in the future.

Since:
1.1.7
Version:
$Revision: 691871 $ $Date: 2008-09-03 23:32:08 -0500 (Wed, 03 Sep 2008) $
Author:
Anton Koinov (latest modification by $Author: lu4242 $)

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 entrySet()
           
 Object get(Object key)
           
protected abstract  Object getAttribute(String key)
           
protected abstract  Enumeration getAttributeNames()
           
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object key, Object value)
           
 void putAll(Map t)
           
 Object remove(Object key)
           
protected abstract  void removeAttribute(String key)
           
protected abstract  void setAttribute(String key, Object value)
           
 int size()
           
 Collection 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
Overrides:
clear in class AbstractMap

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map
Overrides:
containsKey in class AbstractMap

containsValue

public boolean containsValue(Object findValue)
Specified by:
containsValue in interface Map
Overrides:
containsValue in class AbstractMap

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map
Specified by:
entrySet in class AbstractMap

get

public Object get(Object key)
Specified by:
get in interface Map
Overrides:
get in class AbstractMap

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map
Overrides:
isEmpty in class AbstractMap

keySet

public Set keySet()
Specified by:
keySet in interface Map
Overrides:
keySet in class AbstractMap

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map
Overrides:
put in class AbstractMap

putAll

public void putAll(Map t)
Specified by:
putAll in interface Map
Overrides:
putAll in class AbstractMap

remove

public Object remove(Object key)
Specified by:
remove in interface Map
Overrides:
remove in class AbstractMap

size

public int size()
Specified by:
size in interface Map
Overrides:
size in class AbstractMap

values

public Collection values()
Specified by:
values in interface Map
Overrides:
values in class AbstractMap

getAttribute

protected abstract Object getAttribute(String key)

setAttribute

protected abstract void setAttribute(String key,
                                     Object value)

removeAttribute

protected abstract void removeAttribute(String key)

getAttributeNames

protected abstract Enumeration getAttributeNames()


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