Package org.kie.internal.jaxb
Class StringKeyStringValueMapXmlAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<StringKeyStringValueMap,Map<String,String>>
-
- org.kie.internal.jaxb.StringKeyStringValueMapXmlAdapter
-
public class StringKeyStringValueMapXmlAdapter extends XmlAdapter<StringKeyStringValueMap,Map<String,String>>
This is aXmlAdapter
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 Summary
Constructors Constructor Description StringKeyStringValueMapXmlAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringKeyStringValueMap
marshal(Map<String,String> map)
Map<String,String>
unmarshal(StringKeyStringValueMap xmlMap)
-
-
-
Method Detail
-
marshal
public StringKeyStringValueMap marshal(Map<String,String> map) throws Exception
- Specified by:
marshal
in classXmlAdapter<StringKeyStringValueMap,Map<String,String>>
- Throws:
Exception
-
unmarshal
public Map<String,String> unmarshal(StringKeyStringValueMap xmlMap)
- Specified by:
unmarshal
in classXmlAdapter<StringKeyStringValueMap,Map<String,String>>
-
-