Package org.kie.internal.jaxb

# Class StringKeyStringValueMapXmlAdapter

java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<StringKeyStringValueMap,Map<String,String>>
org.kie.internal.jaxb.StringKeyStringValueMapXmlAdapter

public class StringKeyStringValueMapXmlAdapter extends jakarta.xml.bind.annotation.adapters.XmlAdapter<StringKeyStringValueMap,Map<String,String>>
This is a `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 Summary

  Constructors
  Constructor
  Description
  `StringKeyStringValueMapXmlAdapter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `StringKeyStringValueMap`
  `marshal(Map<String,String> map)`
  `Map<String,String>`
  `unmarshal(StringKeyStringValueMap xmlMap)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### StringKeyStringValueMapXmlAdapter

    public StringKeyStringValueMapXmlAdapter()

- ## Method Details

  - ### marshal

    public StringKeyStringValueMap marshal(Map<String,String> map) throws Exception
    Specified by:
      `marshal` in class `jakarta.xml.bind.annotation.adapters.XmlAdapter<StringKeyStringValueMap,Map<String,String>>`
    Throws:
      `Exception`

  - ### unmarshal

    public Map<String,String> unmarshal(StringKeyStringValueMap xmlMap)
    Specified by:
      `unmarshal` in class `jakarta.xml.bind.annotation.adapters.XmlAdapter<StringKeyStringValueMap,Map<String,String>>`