org.kuali.rice.core.util.jaxb
Class MapStringStringAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<StringMapEntryList,Map<String,String>>
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapStringStringAdapter
public MapStringStringAdapter()
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.