org.zkoss.web.servlet.xel
Class AttributesMap

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

public abstract class AttributesMap
extends StringKeysMap<Object>

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

It is mainly used to implement sessionScope and requestScope in EL.

Since:
3.0.0
Author:
tomyeh

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.web.servlet.xel.StringKeysMap
StringKeysMap.EntryIter
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
AttributesMap()
           
 
Method Summary
 Set<Map.Entry<String,Object>> entrySet()
           
 boolean isEmpty()
           
 Object put(String key, Object val)
           
 Object remove(Object key)
           
 int size()
           
 
Methods inherited from class org.zkoss.web.servlet.xel.StringKeysMap
containsKey, get, getKeys, getValue, removeValue, setValue
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, keySet, putAll, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributesMap

public AttributesMap()
Method Detail

entrySet

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

size

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

isEmpty

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

put

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

remove

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


Copyright © 2015. All rights reserved.