public class StringKeyStringValueMapXmlAdapter extends XmlAdapter<StringKeyStringValueMap,Map<String,String>>
XmlAdapter
for mapping Map<String, String> 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 |
---|
StringKeyStringValueMapXmlAdapter() |
Modifier and Type | Method and Description |
---|---|
StringKeyStringValueMap |
marshal(Map<String,String> map) |
Map<String,String> |
unmarshal(StringKeyStringValueMap xmlMap) |
public StringKeyStringValueMap marshal(Map<String,String> map) throws Exception
marshal
in class XmlAdapter<StringKeyStringValueMap,Map<String,String>>
Exception
public Map<String,String> unmarshal(StringKeyStringValueMap xmlMap)
unmarshal
in class XmlAdapter<StringKeyStringValueMap,Map<String,String>>
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.