@Retention(value=RUNTIME) @Target(value=PACKAGE) public @interface XmlJavaTypeAdapters
多个@ XmlJavaTypeAdapter
注释的容器。
程序元素不允许使用相同类型的多个注释。 因此,此注释作为多个@XmlJavaTypeAdapter的容器注释,如下所示:
@XmlJavaTypeAdapters ({ @XmlJavaTypeAdapter(...),@XmlJavaTypeAdapter(...) })
@XmlJavaTypeAdapters注解对于在包级别定义不同类型的XmlJavaTypeAdapter
注释很有用。
有关其他常见信息,请参阅javax.xml.bind.package javadoc中的“Package Specification”。
XmlJavaTypeAdapter
Modifier and Type | Required Element and Description |
---|---|
XmlJavaTypeAdapter[] |
value
@ XmlJavaTypeAdapter 注释的集合
|
public abstract XmlJavaTypeAdapter[] value
XmlJavaTypeAdapter
注解的集合
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.