JavaTM 2 Platform Std. Ed. v1.6.0
javax.xml.bind.annotation
Annotation Type XmlAttachmentRef
@Retention(value=RUNTIME)
@Target(value={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
@XmlRootElement
class Foo {
@XmlAttachmentRef
@XmlAttribute
DataHandler data;
@XmlAttachmentRef
@XmlElement
DataHandler 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.
- Since:
- JAXB2.0
Copyright 2003 Sun Microsystems, Inc. All rights reserved
|