XmlJavaTypeAdapters (Java EE 5)

Java EE API


javax.xml.bind.annotation.adapters Annotation Type XmlJavaTypeAdapters


@Retention(value=RUNTIME)
@Target(value=PACKAGE)
public @interface XmlJavaTypeAdapters

Implements: Annotation
@Retention(value=RUNTIME)
@Target(value=PACKAGE)

多个 @XmlJavaTypeAdapter 注释的容器。

一个编程元素上不允许使用多个相同类型的注释。因此,此注释充当多个 @XmlJavaTypeAdapter 的容器注释,如下所示:

 @XmlJavaTypeAdapters ({ @XmlJavaTypeAdapter(...),@XmlJavaTypeAdapter(...) })
 

@XmlJavaTypeAdapters 注释对于定义包级别上不同类型的 XmlJavaTypeAdapter 注释很有用。

有关附加的公共信息,请参阅 javax.xml.bind.package javadoc 中的“包规范”。

英文文档:

A container for multiple @XmlJavaTypeAdapter annotations.

Multiple annotations of the same type are not allowed on a program element. This annotation therefore serves as a container annotation for multiple @XmlJavaTypeAdapter as follows:

 @XmlJavaTypeAdapters ({ @XmlJavaTypeAdapter(...),@XmlJavaTypeAdapter(...) })
 

The @XmlJavaTypeAdapters annnotation is useful for defining XmlJavaTypeAdapter annotations for different types at the package level.

See "Package Specification" in javax.xml.bind.package javadoc for additional common information.

Since:
JAXB2.0
Author:
  • Sekhar Vajjhala, Sun Microsystems, Inc.
See Also:
XmlJavaTypeAdapter

Required Element Summary
 XmlJavaTypeAdapter[]
 

Element Detail

abstract public XmlJavaTypeAdapter[] value()
@XmlJavaTypeAdapter 注释的集合。
英文文档:

value

public abstract XmlJavaTypeAdapter[] value
Collection of @XmlJavaTypeAdapter annotations



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!