org.rhq.enterprise.server.jaxb
Class WebServiceMapAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<Object[],Map<Integer,String>>
org.rhq.enterprise.server.jaxb.WebServiceMapAdapter
public class WebServiceMapAdapter
- extends XmlAdapter<Object[],Map<Integer,String>>
See the javadoc for the XmlAdapter itself for a more complete explanation, but simply
put the adapter maps types that JAXB has difficulty serializing(Ex. Map)
to java types that JAXB can actually serialize. From a JAXB perspective think of the
problematic types as opaque to JAXB and the map to type in a marshal as the serializable
type.
- Author:
- Simeon Pinder, Filip Drabek
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebServiceMapAdapter
public WebServiceMapAdapter()
marshal
public Object[] marshal(Map<Integer,String> opaque)
throws Exception
- Specified by:
marshal in class XmlAdapter<Object[],Map<Integer,String>>
- Throws:
Exception
unmarshal
public Map<Integer,String> unmarshal(Object[] marshallable)
throws Exception
- Specified by:
unmarshal in class XmlAdapter<Object[],Map<Integer,String>>
- Throws:
Exception
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.