org.marketcetera.util.ws.wrappers
Class MapWrapper<K,V>

java.lang.Object
  extended by org.marketcetera.util.ws.wrappers.BaseWrapper<Map<K,V>>
      extended by org.marketcetera.util.ws.wrappers.MapWrapper<K,V>

public class MapWrapper<K,V>
extends BaseWrapper<Map<K,V>>

A wrapper for marshalling a map value via JAXB.

Since:
1.0.0
Version:
$Id: MapWrapper.java 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Constructor Summary
protected MapWrapper()
          Creates a new wrapper.
  MapWrapper(Map<K,V> map)
          Creates a new wrapper for the given map.
 
Method Summary
 Map<K,V> getMap()
          Returns the receiver's map.
 void setMap(Map<K,V> map)
          Sets the receiver's map to the given one.
 
Methods inherited from class org.marketcetera.util.ws.wrappers.BaseWrapper
equals, getValue, hashCode, setValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapWrapper

public MapWrapper(Map<K,V> map)
Creates a new wrapper for the given map.

Parameters:
map - The map, which may be null.

MapWrapper

protected MapWrapper()
Creates a new wrapper. This empty constructor is intended for use by JAXB.

Method Detail

setMap

public void setMap(Map<K,V> map)
Sets the receiver's map to the given one.

Parameters:
map - The map, which may be null.

getMap

public Map<K,V> getMap()
Returns the receiver's map.

Returns:
The map, which may be null.


Copyright © 2012. All Rights Reserved.