public final class SwaRefAdapter extends XmlAdapter<String,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 a XmlJavaTypeAdapter
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.
Constructor and Description |
---|
SwaRefAdapter() |
Modifier and Type | Method and Description |
---|---|
String |
marshal(DataHandler data)
Convert a bound type to a value type.
|
DataHandler |
unmarshal(String cid)
Convert a value type to a bound type.
|
public DataHandler unmarshal(String cid)
XmlAdapter
unmarshal
in class XmlAdapter<String,DataHandler>
cid
- The value to be converted. Can be null.public String marshal(DataHandler data)
XmlAdapter
marshal
in class XmlAdapter<String,DataHandler>
data
- The value to be convereted. Can be null.Copyright © 2017 JBoss by Red Hat. All rights reserved.