org.apache.cocoon.forms.util
Class CombiningMap

java.lang.Object
  extended byjava.util.AbstractMap
      extended byorg.apache.cocoon.forms.util.CombiningMap
All Implemented Interfaces:
Map

public class CombiningMap
extends AbstractMap

A read-only implementation of Map that combines several other maps.

Version:
$Id: CombiningMap.java 327577 2005-10-21 20:59:14Z sylvain $

Nested Class Summary
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Constructor Summary
CombiningMap()
           
 
Method Summary
 CombiningMap add(Map map)
          Adds a Map in the combined map, with the lowest lookup priority.
 boolean containsKey(Object key)
           
 Set entrySet()
           
 Object get(Object key)
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, 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

CombiningMap

public CombiningMap()
Method Detail

add

public CombiningMap add(Map map)
Adds a Map in the combined map, with the lowest lookup priority.

New maps cannot be added if this object was already iterated.

Parameters:
map - the new map
Returns:
this object, as a convenience to write combiner.add(map1).add(map2).add(map3)

get

public Object get(Object key)

containsKey

public boolean containsKey(Object key)

entrySet

public Set entrySet()


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.