org.openmdx.base.collection
Class MarshallingMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by org.openmdx.base.collection.MarshallingMap
All Implemented Interfaces:
Serializable, Map
Direct Known Subclasses:
MarshallingFilterableMap, MarshallingSortedMap

public class MarshallingMap
extends AbstractMap
implements Serializable

A Marshalling Map

The marshaller is applied to the delegate's values, but not to its keys.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  Map map
           
protected  CollectionMarshaller marshaller
           
 
Constructor Summary
MarshallingMap(CollectionMarshaller marshaller, Map map)
          Constructor
MarshallingMap(Marshaller marshaller, Map map)
          Constructor
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set entrySet()
           
 Object get(Object key)
           
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object key, Object value)
           
 Object remove(Object key)
           
 int size()
           
 Collection values()
           
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, putAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

map

protected final Map map

marshaller

protected final CollectionMarshaller marshaller
Constructor Detail

MarshallingMap

public MarshallingMap(CollectionMarshaller marshaller,
                      Map map)
Constructor

Parameters:
marshaller -
map -

MarshallingMap

public MarshallingMap(Marshaller marshaller,
                      Map map)
Constructor

Parameters:
marshaller -
map -
Method Detail

clear

public void clear()
Specified by:
clear in interface Map
Overrides:
clear in class AbstractMap

containsKey

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

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map
Overrides:
containsValue in class AbstractMap

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map
Specified by:
entrySet in class AbstractMap

get

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

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map
Overrides:
isEmpty in class AbstractMap

keySet

public Set keySet()
Specified by:
keySet in interface Map
Overrides:
keySet in class AbstractMap

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map
Overrides:
put in class AbstractMap

remove

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

size

public int size()
Specified by:
size in interface Map
Overrides:
size in class AbstractMap

values

public Collection values()
Specified by:
values in interface Map
Overrides:
values in class AbstractMap


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.