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 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 and Description
    `StringKeyStringValueMapXmlAdapter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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 Detail

    - #### StringKeyStringValueMapXmlAdapter

          public StringKeyStringValueMapXmlAdapter()

  - ### Method Detail

    - #### marshal

          public StringKeyStringValueMap marshal(Map<String,String> map)
                                          throws Exception

      Specified by:
        `marshal` in class `XmlAdapter<StringKeyStringValueMap,Map<String,String>>`
      Throws:
        `Exception`

    - #### unmarshal

          public Map<String,String> unmarshal(StringKeyStringValueMap xmlMap)

      Specified by:
        `unmarshal` in class `XmlAdapter<StringKeyStringValueMap,Map<String,String>>`

Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.