-
@Retention(RUNTIME) @Target({FIELD,METHOD,PARAMETER}) public @interface XmlAttachmentRef
XML形式がMIMEコンテンツへのURI参照であるフィールド/プロパティをマークします。 MIMEコンテンツは、添付として行外に最適に保存されます。 フィールド/プロパティは、常に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)をサポートしています。
- 導入されたバージョン:
- 1.6, JAXB 2.0