Class XmlMapAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<XmlMapAdapter.NameValuePairList,java.util.Map<?,?>>
-
- com.attivio.util.serialization.jaxb.XmlMapAdapter
-
- Type Parameters:
K
- keyV
- value
public class XmlMapAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<XmlMapAdapter.NameValuePairList,java.util.Map<?,?>>
XmlMapAdapter
is a JAXB extension to handle XML serialization of theMap
.- See Also:
XmlAdapter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XmlMapAdapter.NameValuePair
static class
XmlMapAdapter.NameValuePairList
-
Constructor Summary
Constructors Constructor Description XmlMapAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlMapAdapter.NameValuePairList
marshal(java.util.Map<?,?> v)
handle conversion from a Map to a HashMap.java.util.Map<?,?>
unmarshal(XmlMapAdapter.NameValuePairList v)
handle from a HashMap back into a map
-
-
-
Method Detail
-
marshal
public XmlMapAdapter.NameValuePairList marshal(java.util.Map<?,?> v)
handle conversion from a Map to a HashMap.- Specified by:
marshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<XmlMapAdapter.NameValuePairList,java.util.Map<?,?>>
- Parameters:
v
- convert from- Returns:
- convert to
-
unmarshal
public java.util.Map<?,?> unmarshal(XmlMapAdapter.NameValuePairList v)
handle from a HashMap back into a map- Specified by:
unmarshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<XmlMapAdapter.NameValuePairList,java.util.Map<?,?>>
- Parameters:
v
- convert from- Returns:
- converts to
-
-