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