|
JavaServer Pages(TM) Standard Tag Library 1.2 API 1.0.3.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.taglibs.standard.lang.jstl.EnumeratedMap
public abstract class EnumeratedMap
This is a Map implementation driven by a data source that only provides an enumeration of keys and a getValue(key) method. This class must be subclassed to implement those methods.
Some of the methods may incur a performance penalty that involves enumerating the entire data source. In these cases, the Map will try to save the results of that enumeration, but only if the underlying data source is immutable.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
EnumeratedMap()
|
Method Summary | |
---|---|
void |
clear()
|
boolean |
containsKey(Object pKey)
|
boolean |
containsValue(Object pValue)
|
Set |
entrySet()
|
abstract Enumeration |
enumerateKeys()
Returns an enumeration of the keys |
Object |
get(Object pKey)
|
Map |
getAsMap()
Converts the MapSource to a Map. |
abstract Object |
getValue(Object pKey)
Returns the value associated with the given key, or null if not found. |
boolean |
isEmpty()
|
abstract boolean |
isMutable()
Returns true if it is possible for this data source to change |
Set |
keySet()
|
Object |
put(Object pKey,
Object pValue)
|
void |
putAll(Map pMap)
|
Object |
remove(Object pKey)
|
int |
size()
|
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 |
---|
public EnumeratedMap()
Method Detail |
---|
public void clear()
clear
in interface Map
public boolean containsKey(Object pKey)
containsKey
in interface Map
public boolean containsValue(Object pValue)
containsValue
in interface Map
public Set entrySet()
entrySet
in interface Map
public Object get(Object pKey)
get
in interface Map
public boolean isEmpty()
isEmpty
in interface Map
public Set keySet()
keySet
in interface Map
public Object put(Object pKey, Object pValue)
put
in interface Map
public void putAll(Map pMap)
putAll
in interface Map
public Object remove(Object pKey)
remove
in interface Map
public int size()
size
in interface Map
public Collection values()
values
in interface Map
public abstract Enumeration enumerateKeys()
public abstract boolean isMutable()
public abstract Object getValue(Object pKey)
public Map getAsMap()
|
JavaServer Pages(TM) Standard Tag Library 1.2 API 1.0.3.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |