|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: REQUIRED | OPTIONAL | 详细信息: 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
@The above code maps to the following XML:XmlRootElement
class Foo { @XmlAttachmentRef
@XmlAttribute
DataHandler
data; @XmlAttachmentRef
@XmlElement
DataHandler
body; }
<xs:element name="foo" xmlns:ref="http://ws-i.org/profiles/basic/1.1/xsd"> <xs:complextype> <xs:sequence> </xs:sequence></xs:complextype></xs:element><xs:element name="body" type="ref:swaRef" minoccurs="0"> <xs:attribute name="data" type="ref:swaRef" use="optional"> </xs:attribute></xs:element>
The above binding supports WS-I AP 1.0 WS-I Attachments Profile Version 1.0.
- 从以下版本开始:
- JAXB2.0
- 作者:
- Kohsuke Kawaguchi
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: REQUIRED | OPTIONAL | 详细信息: ELEMENT |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.