Annotation Type XmlAttachmentRef

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.


 class Foo {
   DataHandler data;

   DataHandler body;
The above code maps to the following XML:

 <xs:element name="foo" xmlns:ref="">
       <xs:element name="body" type="ref:swaRef" minOccurs="0" />
     <xs:attribute name="data" type="ref:swaRef" use="optional" />

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

Kohsuke Kawaguchi

Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41

Scripting on this page tracks web page traffic, but does not change the content in any way.