Class KeyValueMapAdapter


  • public class KeyValueMapAdapter
    extends javax.xml.bind.annotation.adapters.XmlAdapter<KeyValueMapAdapter.KeyValueAdaptedMap,​java.util.Map<java.lang.String,​java.lang.String>>
    This Adapter is used to convert Map<String, String> into XML/JSON objects, and vice-versa, where the entries are represented as Key/Value pairs, as opposed to an array representation. Example: public class Container { private Map<String, String> value; } would have the following JSON representation { "value": { "key1": "value1", "key2": "value2" } }
    • Constructor Detail

      • KeyValueMapAdapter

        public KeyValueMapAdapter()