uk.ac.ncl.cs.instantsoap.wsapi.jaxb
Class MapAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<JaxbFriendlyMap,Map<String,String>>
      extended by uk.ac.ncl.cs.instantsoap.wsapi.jaxb.MapAdapter

public class MapAdapter
extends XmlAdapter<JaxbFriendlyMap,Map<String,String>>

Convince jaxb that it wants to handle maps.

Author:
Matthew Pocock

Constructor Summary
MapAdapter()
           
 
Method Summary
 JaxbFriendlyMap marshal(Map<String,String> map)
           
 Map<String,String> unmarshal(JaxbFriendlyMap jf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapAdapter

public MapAdapter()
Method Detail

unmarshal

public Map<String,String> unmarshal(JaxbFriendlyMap jf)
Specified by:
unmarshal in class XmlAdapter<JaxbFriendlyMap,Map<String,String>>

marshal

public JaxbFriendlyMap marshal(Map<String,String> map)
Specified by:
marshal in class XmlAdapter<JaxbFriendlyMap,Map<String,String>>


Copyright © 2006-2008. All Rights Reserved.