Package com.sun.xml.bind.v2.runtime
Class SwaRefAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<String,DataHandler>
-
- com.sun.xml.bind.v2.runtime.SwaRefAdapter
-
public final class SwaRefAdapter extends XmlAdapter<String,DataHandler>
XmlAdapterthat binds the value as a SOAP attachment.On the user classes the SwA handling is done by using the
XmlAttachmentRefannotation, but internally we treat it as aXmlJavaTypeAdapterwith 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 Stringmarshal(DataHandler data)Convert a bound type to a value type.DataHandlerunmarshal(String cid)Convert a value type to a bound type.
-
-
-
Method Detail
-
unmarshal
public DataHandler unmarshal(String cid)
Description copied from class:XmlAdapterConvert a value type to a bound type.- Specified by:
unmarshalin classXmlAdapter<String,DataHandler>- Parameters:
cid- The value to be converted. Can be null.
-
marshal
public String marshal(DataHandler data)
Description copied from class:XmlAdapterConvert a bound type to a value type.- Specified by:
marshalin classXmlAdapter<String,DataHandler>- Parameters:
data- The value to be convereted. Can be null.
-
-