Annotation Interface XmlAttachmentRef


@Retention(RUNTIME) @Target({FIELD,METHOD,PARAMETER}) public @interface XmlAttachmentRef
Marks a field/property that its XML form is a URI reference to mime content. The mime content is optimally stored out-of-line as an attachment.

A field/property must always map to the DataHandler class.

Usage

The above code maps to the following XML:

The above binding supports WS-I AP 1.0 WS-I Attachments Profile Version 1.0.

Since:
1.6, JAXB 2.0
Author:
Kohsuke Kawaguchi