Package com.sun.xml.bind.v2.runtime
Class SwaRefAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,javax.activation.DataHandler>
-
- com.sun.xml.bind.v2.runtime.SwaRefAdapter
-
public final class SwaRefAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,javax.activation.DataHandler>
XmlAdapter
that binds the value as a SOAP attachment.On the user classes the SwA handling is done by using the
XmlAttachmentRef
annotation, but internally we treat it as aXmlJavaTypeAdapter
with this adapter class. This is true with both XJC and the runtime.the model builder code and the code generator does the conversion and shield the rest of the RI from this mess. Also see @see http://webservices.xml.com/pub/a/ws/2003/09/16/wsbp.html?page=2.
- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description SwaRefAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
marshal(javax.activation.DataHandler data)
javax.activation.DataHandler
unmarshal(java.lang.String cid)
-
-
-
Method Detail
-
unmarshal
public javax.activation.DataHandler unmarshal(java.lang.String cid)
- Specified by:
unmarshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,javax.activation.DataHandler>
-
marshal
public java.lang.String marshal(javax.activation.DataHandler data)
- Specified by:
marshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,javax.activation.DataHandler>
-
-