org.zkoss.web.servlet.xel
Class StringKeysMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by org.zkoss.web.servlet.xel.StringKeysMap
All Implemented Interfaces:
java.util.Map
Direct Known Subclasses:
AttributesMap, ParameterMap

public abstract class StringKeysMap
extends java.util.AbstractMap

A sketetal implementation for Map to wrap something with enumeration of keys, which must be String.

Since:
3.0.0
Author:
tomyeh

Nested Class Summary
 class StringKeysMap.EntryIter
          The iterator class used to iterator the entries in this map.
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry, java.util.AbstractMap.SimpleImmutableEntry
 
Constructor Summary
StringKeysMap()
           
 
Method Summary
 boolean containsKey(java.lang.Object key)
           
 java.lang.Object get(java.lang.Object key)
           
protected abstract  java.util.Enumeration getKeys()
          Returns an enumeration of keys.
protected abstract  java.lang.Object getValue(java.lang.String key)
          Returns the value associated with the specified key.
protected abstract  void removeValue(java.lang.String key)
          Removes the specified key.
protected abstract  void setValue(java.lang.String key, java.lang.Object value)
          Sets the value associated with the specified key.
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringKeysMap

public StringKeysMap()
Method Detail

containsKey

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

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map
Overrides:
get in class java.util.AbstractMap

getValue

protected abstract java.lang.Object getValue(java.lang.String key)
Returns the value associated with the specified key.


getKeys

protected abstract java.util.Enumeration getKeys()
Returns an enumeration of keys.


setValue

protected abstract void setValue(java.lang.String key,
                                 java.lang.Object value)
Sets the value associated with the specified key.


removeValue

protected abstract void removeValue(java.lang.String key)
Removes the specified key.



Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo