@Retention(value=RUNTIME) @Target(value={FIELD,METHOD,PARAMETER}) public @interface XmlAttachmentRef
DataHandler
类。
“上面的代码映射到下面的XML:XmlRootElement
类Foo {“XmlAttachmentRef
“XmlAttribute
DataHandler
数据;“XmlAttachmentRef
“XmlElement
DataHandler
体;}
< xs:元名称=“foo”xmlns:ref=“HTTP:/ / /结构/基本WS-I.org / 1.1 / XSD”>< xs:名称>< xs:序列>< xs:元名称=“身体”type=“编号:swaRef“minOccurs =“0”/>< / xs:序列>< xs:属性名=“数据”type=“编号:使用swaRef”=“可选”/>< / xs:名称>< / xs:元>
以上结合支持WS-I AP 1 WS-I Attachments Profile Version 1.0.
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.