org.kuali.rice.core.util.jaxb
Class MapStringStringAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<StringMapEntryList,Map<String,String>>
      extended by org.kuali.rice.core.util.jaxb.MapStringStringAdapter

public class MapStringStringAdapter
extends XmlAdapter<StringMapEntryList,Map<String,String>>

Do JAXB mapping of Map to a format like the following for a map containing { key1:value1, key2:value2 }:

 <...>
   <entry key="key1">value1</entry>
   <entry key="key2">value2</entry>
 </...>
 

Author:
Kuali Rice Team (rice.collab@kuali.org)

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

Constructor Detail

MapStringStringAdapter

public MapStringStringAdapter()
Method Detail

marshal

public StringMapEntryList marshal(Map<String,String> map)
                           throws Exception
Specified by:
marshal in class XmlAdapter<StringMapEntryList,Map<String,String>>
Throws:
Exception

unmarshal

public Map<String,String> unmarshal(StringMapEntryList entryList)
                             throws Exception
Specified by:
unmarshal in class XmlAdapter<StringMapEntryList,Map<String,String>>
Throws:
Exception


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.