org.apache.portals.bridges.jsf
Class AbstractAttributeMap

java.lang.Object
  extended by org.apache.portals.bridges.jsf.AbstractAttributeMap
All Implemented Interfaces:
java.util.Map
Direct Known Subclasses:
ApplicationMap, InitParameterMap, RequestHeaderMap, RequestHeaderValuesMap, RequestMap, RequestParameterMap, RequestParameterValuesMap, ServletCookieMap, ServletRequestHeaderMap, ServletRequestHeaderValuesMap, ServletRequestMap, SessionMap

public abstract class AbstractAttributeMap
extends java.lang.Object
implements java.util.Map

Helper Map implementation for use with different Attribute Maps.

See MyFaces project for servlet implementation.

Author:
David Le Strat

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

Constructor Detail

AbstractAttributeMap

public AbstractAttributeMap()
Method Detail

clear

public void clear()
Specified by:
clear in interface java.util.Map
See Also:
Map.clear()

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map
See Also:
Map.containsKey(java.lang.Object)

containsValue

public boolean containsValue(java.lang.Object findValue)
Specified by:
containsValue in interface java.util.Map
See Also:
Map.containsValue(java.lang.Object)

entrySet

public java.util.Set entrySet()
Specified by:
entrySet in interface java.util.Map
See Also:
Map.entrySet()

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map
See Also:
Map.get(java.lang.Object)

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map
See Also:
Map.isEmpty()

keySet

public java.util.Set keySet()
Specified by:
keySet in interface java.util.Map
See Also:
Map.keySet()

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map
See Also:
Map.put(java.lang.Object, java.lang.Object)

putAll

public void putAll(java.util.Map t)
Specified by:
putAll in interface java.util.Map
See Also:
Map.putAll(java.util.Map)

remove

public java.lang.Object remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map
See Also:
Map.remove(java.lang.Object)

size

public int size()
Specified by:
size in interface java.util.Map
See Also:
Map.size()

values

public java.util.Collection values()
Specified by:
values in interface java.util.Map
See Also:
Map.values()

getAttribute

protected abstract java.lang.Object getAttribute(java.lang.String key)

Gets an attribute given a key.

Parameters:
key - The key.
Returns:
The attribute.

setAttribute

protected abstract void setAttribute(java.lang.String key,
                                     java.lang.Object value)

Sets an attribute given a key/value.

Parameters:
key - The key.
value - The value.

removeAttribute

protected abstract void removeAttribute(java.lang.String key)

Removes an attribute.

Parameters:
key - The key.

getAttributeNames

protected abstract java.util.Enumeration getAttributeNames()

Gets the attributes names.

Returns:
An enumeration of attributes names.


Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.