Class XmlMapAdapter

  • Type Parameters:
    K - key
    V - value

    public class XmlMapAdapter
    extends javax.xml.bind.annotation.adapters.XmlAdapter<XmlMapAdapter.NameValuePairList,​java.util.Map<?,​?>>
    XmlMapAdapter is a JAXB extension to handle XML serialization of the Map.
    See Also:
    XmlAdapter
    • Constructor Detail

      • XmlMapAdapter

        public XmlMapAdapter()
    • Method Detail

      • marshal

        public XmlMapAdapter.NameValuePairList marshal​(java.util.Map<?,​?> v)
        handle conversion from a Map to a HashMap.
        Specified by:
        marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<XmlMapAdapter.NameValuePairList,​java.util.Map<?,​?>>
        Parameters:
        v - convert from
        Returns:
        convert to
      • unmarshal

        public java.util.Map<?,​?> unmarshal​(XmlMapAdapter.NameValuePairList v)
        handle from a HashMap back into a map
        Specified by:
        unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<XmlMapAdapter.NameValuePairList,​java.util.Map<?,​?>>
        Parameters:
        v - convert from
        Returns:
        converts to