Package org.kie.internal.jaxb
Class StringKeyObjectValueMapXmlAdapter
java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<StringKeyObjectValueMap,Map<String,Object>>
org.kie.internal.jaxb.StringKeyObjectValueMapXmlAdapter
public class StringKeyObjectValueMapXmlAdapter
extends jakarta.xml.bind.annotation.adapters.XmlAdapter<StringKeyObjectValueMap,Map<String,Object>>
This is a
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectdeserializeObject(byte[] objBytes, String className, String key) static byte[]serializeObject(Object obj, String key) unmarshal(StringKeyObjectValueMap xmlMap)
-
Constructor Details
-
StringKeyObjectValueMapXmlAdapter
public StringKeyObjectValueMapXmlAdapter()
-
-
Method Details
-
marshal
- Specified by:
marshalin classjakarta.xml.bind.annotation.adapters.XmlAdapter<StringKeyObjectValueMap,Map<String, Object>> - Throws:
Exception
-
serializeObject
-
unmarshal
- Specified by:
unmarshalin classjakarta.xml.bind.annotation.adapters.XmlAdapter<StringKeyObjectValueMap,Map<String, Object>>
-
deserializeObject
-