Package org.opennms.netmgt.poller
Class PollStatusPropertyXmlAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<PollStatusProperties,Map<String,Number>>
-
- org.opennms.netmgt.poller.PollStatusPropertyXmlAdapter
-
public class PollStatusPropertyXmlAdapter extends XmlAdapter<PollStatusProperties,Map<String,Number>>
Used to marshal/unmarshal the property map while preserving the ordering.- Author:
- jwhite
-
-
Constructor Summary
Constructors Constructor Description PollStatusPropertyXmlAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PollStatusProperties
marshal(Map<String,Number> map)
Map<String,Number>
unmarshal(PollStatusProperties props)
-
-
-
Method Detail
-
unmarshal
public Map<String,Number> unmarshal(PollStatusProperties props) throws Exception
- Specified by:
unmarshal
in classXmlAdapter<PollStatusProperties,Map<String,Number>>
- Throws:
Exception
-
marshal
public PollStatusProperties marshal(Map<String,Number> map) throws Exception
- Specified by:
marshal
in classXmlAdapter<PollStatusProperties,Map<String,Number>>
- Throws:
Exception
-
-