@Retention(value=RUNTIME) @Target(value={FIELD,METHOD,PARAMETER}) public @interface XmlList
使用
的@XmlList注释可以用下面的程序元素:
当一个集合属性注释只是@ XmlElement,集合中的每个项目将由单元包。例如,
“xmlrootelement类Foo {@ xmlelement列表 <字符串> 数据;} 字符串>会产生XML这样的:
<和> <数据> 美国广播公司 <数据> DEF< / foo > 数据> 数据> 和>@ xmllist注释,另一方面,允许多个值被表示为空格分隔的标记在一个单一的元素。例如,
“xmlrootelement类Foo {@ xmlelement“xmllist列表 <字符串> 数据;} 字符串>上面的代码会产生XML这样的:
<和> <数据> ABC DEF< / foo > 数据> 和>
这个注释可以用下面的注释:XmlElement
,XmlAttribute
,XmlValue
,XmlIDREF
。
XmlValue
@XmlList而允许使用,是多余的自XmlList
映射集合类型的一个简单的架构类型派生列表就像XmlValue
会。XmlAttribute
@XmlList而允许使用,是多余的自XmlList
映射集合类型的一个简单的架构类型派生列表就像XmlAttribute
会。 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.