public abstract class MapXmlAdapter<M extends Map<K,V>,K,V> extends XmlAdapter<LinkedHashMap<?,?>,M>
| Constructor and Description |
|---|
MapXmlAdapter() |
| Modifier and Type | Method and Description |
|---|---|
abstract M |
getEmptyMap() |
abstract Class<K> |
getKeyClass() |
abstract Class<V> |
getValueClass() |
LinkedHashMap<?,?> |
marshal(M map) |
M |
unmarshal(LinkedHashMap<?,?> linkedHashMap) |
public abstract M getEmptyMap()
public M unmarshal(LinkedHashMap<?,?> linkedHashMap) throws Exception
unmarshal in class XmlAdapter<LinkedHashMap<?,?>,M extends Map<K,V>>Exceptionpublic LinkedHashMap<?,?> marshal(M map) throws Exception
marshal in class XmlAdapter<LinkedHashMap<?,?>,M extends Map<K,V>>ExceptionCopyright © 2016. All rights reserved.