public class MultiValuedObjectMapAdapter extends XmlAdapter<MultiValuedObjectMapAdapter.KeyValueListAdaptedMap,Map<String,Map<String,String>>>
Map<String, 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, Map<String, String>> value;
}
would have the following JSON representation
{
"value": {
"key1": {"subkey1": "value1", "subkey2": "value2"},
"key2": {"subkey3": "value3", "subkey4": "value4"}
}
}
| Modifier and Type | Class and Description |
|---|---|
static class |
MultiValuedObjectMapAdapter.KeyValueListAdaptedMap |
static class |
MultiValuedObjectMapAdapter.MultiValuedAdaptedEntry |
static class |
MultiValuedObjectMapAdapter.MultiValuedParentAdaptedEntry |
| Constructor and Description |
|---|
MultiValuedObjectMapAdapter() |
| Modifier and Type | Method and Description |
|---|---|
MultiValuedObjectMapAdapter.KeyValueListAdaptedMap |
marshal(Map<String,Map<String,String>> map) |
Map<String,Map<String,String>> |
unmarshal(MultiValuedObjectMapAdapter.KeyValueListAdaptedMap adaptedMap) |
Copyright © 2000-2016 SAP SE. All Rights Reserved.