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
@
XmlRootElement class Foo {
@
XmlAttachmentRef @
XmlAttributeDataHandler data;
@
XmlAttachmentRef @
XmlElementDataHandler body;
}
The above code maps to the following XML:
The above binding supports WS-I AP 1.0 WS-I Attachments Profile Version 1.0.
author: Kohsuke Kawaguchi since: JAXB2.0 |