@Retention(value=RUNTIME) @Target(value={FIELD,METHOD,PARAMETER}) public @interface XmlAttachmentRef
DataHandlerクラスにマップされる必要があります。
@上記のコードは、次のXMLにマップされます。XmlRootElementclass Foo { @XmlAttachmentRef@XmlAttributeDataHandlerdata; @XmlAttachmentRef@XmlElementDataHandlerbody; }
<xs:element name="foo" xmlns:ref="http://ws-i.org/profiles/basic/1.1/xsd">
<xs:complexType>
<xs:sequence>
<xs:element name="body" type="ref:swaRef" minOccurs="0" />
</xs:sequence>
<xs:attribute name="data" type="ref:swaRef" use="optional" />
</xs:complexType>
</xs:element>
上記のバインディングは、WS-I AP 1.0 (WS-I Attachments Profile Version 1.0)をサポートしています。
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。