public class StringKeyObjectValueMapXmlAdapter extends XmlAdapter<StringKeyObjectValueMap,Map<String,Object>>
XmlAdapter
for mapping Map<String, Object> instances
to classes/instances that both JAXB/XML and JSON can deal with.
The most important reason for the existence of this class is that it works well with jackson JSON! JaxbMapAdapter, on the other hand, does not!
Constructor and Description |
---|
StringKeyObjectValueMapXmlAdapter() |
Modifier and Type | Method and Description |
---|---|
static Object |
deserializeObject(byte[] objBytes,
String className,
String key) |
StringKeyObjectValueMap |
marshal(Map<String,Object> map) |
static byte[] |
serializeObject(Object obj,
String key) |
Map<String,Object> |
unmarshal(StringKeyObjectValueMap xmlMap) |
public StringKeyObjectValueMap marshal(Map<String,Object> map) throws Exception
marshal
in class XmlAdapter<StringKeyObjectValueMap,Map<String,Object>>
Exception
public Map<String,Object> unmarshal(StringKeyObjectValueMap xmlMap)
unmarshal
in class XmlAdapter<StringKeyObjectValueMap,Map<String,Object>>
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.