Top Description Constructors Methods
org.glassfish.jaxb.runtime.v2.runtime

public final Class SwaRefAdapter

extends XmlAdapter<String, DataHandler>
Class Inheritance
Imports
org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.UnmarshallingContext, jakarta.activation.DataHandler, jakarta.xml.bind.annotation.XmlAttachmentRef, jakarta.xml.bind.annotation.adapters.XmlAdapter, .XmlJavaTypeAdapter, jakarta.xml.bind.attachment.AttachmentMarshaller, .AttachmentUnmarshaller

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.

Author
Kohsuke Kawaguchi

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
marshal(DataHandler data)

Implements abstract jakarta.xml.bind.annotation.adapters.XmlAdapter.marshal.

Convert a bound type to a value type.

public DataHandler
unmarshal(String cid)

Implements abstract jakarta.xml.bind.annotation.adapters.XmlAdapter.unmarshal.

Convert a value type to a bound type.

Constructor Detail

SwaRefAdapterback to summary
public SwaRefAdapter()

Method Detail

marshalback to summary
public String marshal(DataHandler data)

Implements abstract jakarta.xml.bind.annotation.adapters.XmlAdapter.marshal.

Doc from jakarta.xml.bind.annotation.adapters.XmlAdapter.marshal.

Convert a bound type to a value type.

Annotations
@Override
unmarshalback to summary
public DataHandler unmarshal(String cid)

Implements abstract jakarta.xml.bind.annotation.adapters.XmlAdapter.unmarshal.

Doc from jakarta.xml.bind.annotation.adapters.XmlAdapter.unmarshal.

Convert a value type to a bound type.

Annotations
@Override