@Test public void marshalNull() throws Exception { assertNull(new MapAdapter().marshal(null)); }
@Override public Map marshal(java.util.Map<String, java.lang.Object> input) throws Exception { if (input == null) { return null; } else { Map output = new Map(); for (java.util.Map.Entry<String, java.lang.Object> entry : input.entrySet()) { String key = entry.getKey(); java.lang.Object value = entry.getValue(); if (value instanceof java.util.Map) { java.util.Map<String, java.lang.Object> nestedMap = new HashMap<>(); ((java.util.Map<?, ?>) value).forEach((k, v) -> nestedMap.put(k.toString(), v)); value = marshal(nestedMap); } output.getEntries().add(new MapEntry().withKey(key).withValue(value)); } return output; } }
MapAdapter extends XmlAdapter<Map, java.util.Map<String, java.lang.Object>> { @Override public Map marshal(java.util.Map<String, java.lang.Object> input) throws Exception { if (input == null) { return null; } else { Map output = new Map(); for (java.util.Map.Entry<String, java.lang.Object> entry : input.entrySet()) { String key = entry.getKey(); java.lang.Object value = entry.getValue(); if (value instanceof java.util.Map) { java.util.Map<String, java.lang.Object> nestedMap = new HashMap<>(); ((java.util.Map<?, ?>) value).forEach((k, v) -> nestedMap.put(k.toString(), v)); value = marshal(nestedMap); } output.getEntries().add(new MapEntry().withKey(key).withValue(value)); } return output; } } }
MapAdapter extends XmlAdapter<Map, java.util.Map<String, java.lang.Object>> { @Override public Map marshal(java.util.Map<String, java.lang.Object> input) throws Exception { if (input == null) { return null; } else { Map output = new Map(); for (java.util.Map.Entry<String, java.lang.Object> entry : input.entrySet()) { String key = entry.getKey(); java.lang.Object value = entry.getValue(); if (value instanceof java.util.Map) { java.util.Map<String, java.lang.Object> nestedMap = new HashMap<>(); ((java.util.Map<?, ?>) value).forEach((k, v) -> nestedMap.put(k.toString(), v)); value = marshal(nestedMap); } output.getEntries().add(new MapEntry().withKey(key).withValue(value)); } return output; } }  }
MapAdapter extends XmlAdapter<Map, java.util.Map<String, java.lang.Object>> { @Override public Map marshal(java.util.Map<String, java.lang.Object> input) throws Exception { if (input == null) { return null; } else { Map output = new Map(); for (java.util.Map.Entry<String, java.lang.Object> entry : input.entrySet()) { String key = entry.getKey(); java.lang.Object value = entry.getValue(); if (value instanceof java.util.Map) { java.util.Map<String, java.lang.Object> nestedMap = new HashMap<>(); ((java.util.Map<?, ?>) value).forEach((k, v) -> nestedMap.put(k.toString(), v)); value = marshal(nestedMap); } output.getEntries().add(new MapEntry().withKey(key).withValue(value)); } return output; } }  @Override Map marshal(java.util.Map<String, java.lang.Object> input); @Override java.util.Map<String, java.lang.Object> unmarshal(Map input); }
MapAdapter extends XmlAdapter<Map, java.util.Map<String, java.lang.Object>> { @Override public Map marshal(java.util.Map<String, java.lang.Object> input) throws Exception { if (input == null) { return null; } else { Map output = new Map(); for (java.util.Map.Entry<String, java.lang.Object> entry : input.entrySet()) { String key = entry.getKey(); java.lang.Object value = entry.getValue(); if (value instanceof java.util.Map) { java.util.Map<String, java.lang.Object> nestedMap = new HashMap<>(); ((java.util.Map<?, ?>) value).forEach((k, v) -> nestedMap.put(k.toString(), v)); value = marshal(nestedMap); } output.getEntries().add(new MapEntry().withKey(key).withValue(value)); } return output; } }  @Override Map marshal(java.util.Map<String, java.lang.Object> input); @Override java.util.Map<String, java.lang.Object> unmarshal(Map input);  }