@Retention(value=RUNTIME) @Target(value={字段,METHOD,PARAMETER}) public @interface XmlList
用法
@XmlList注释可以与以下程序元素一起使用:
当一个collection属性只用@XmlElement进行注释时,集合中的每个项目都将被元素包裹。 例如,
  @XmlRootElement
 class Foo {
     @XmlElement
     List<String> data;
 }  
       会产生这样的XML: 
         <foo>
   <data>abc
   <data>def
 </foo>  
       另一方面,@XmlList注释允许在单个元素中将多个值表示为空格分隔的令牌。 
       例如, 
         @XmlRootElement
 class Foo {
     @XmlElement
     @XmlList
     List<String> data;
 }  
       上面的代码将会产生这样的XML: 
         <foo>
   <data>abc def
 </foo>  
        此注释可与以下注释一起使用: XmlElement , XmlAttribute , XmlValue , XmlIDREF 。 
XmlValue同时允许,是多余的,因为XmlList将集合类型映射到按列表派生的简单模式类型,就像XmlValue那样。 XmlAttribute同时允许,是多余的,因为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.