文档库 最新最全的文档下载
当前位置:文档库 › XmlAttachmentRef

XmlAttachmentRef

XmlAttachmentRef (Java Platform SE 6)
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="XmlAttachmentRef (Java Platform SE 6)";
}
}

Overview 
Package 
 Class 
Use 
Tree 
Deprecated 
Index 
Help 

Java™ PlatformStandard Ed. 6
 PREV CLASS 
 NEXT CLASS
FRAMES  
 NO FRAMES  
 
!--
if(window==top) {
document.writeln('All Classes');
}
//--
All Classes
SUMMARY: REQUIRED | OPTIONAL
DETAIL: ELEMENT
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

Overview 
Package 
 Class 
Use 
Tree 
Deprecated 
Index 
Help 

Java™ PlatformStandard Ed. 6
 PREV CLASS 
 NEXT CLASS
FRAMES  
 NO FRAMES  
 
!--
if(window==top) {
document.writeln('All Classes');
}
//--
All Classes
SUMMARY: REQUIRED | OPTIONAL
DETAIL: ELEMENT
Submit a bug or featureFor further API reference and developer documentation, see Java SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.


相关文档