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:
Map
Direct Known Subclasses:
AttributesMap, ParameterMap

public abstract class StringKeysMap
extends 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
AbstractMap.SimpleEntry, AbstractMap.SimpleImmutableEntry
 
Constructor Summary
StringKeysMap()
           
 
Method Summary
 boolean containsKey(Object key)
           
 Object get(Object key)
           
protected abstract  Enumeration getKeys()
          Returns an enumeration of keys.
protected abstract  Object getValue(String key)
          Returns the value associated with the specified key.
protected abstract  void removeValue(String key)
          Removes the specified key.
protected abstract  void setValue(String key, 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(Object key)
Specified by:
containsKey in interface Map
Overrides:
containsKey in class AbstractMap

get

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

getValue

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


getKeys

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


setValue

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


removeValue

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



Copyright © 2012. All Rights Reserved.