KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > bind > annotation > adapters > XmlJavaTypeAdapters


1 /*
2  * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4  */

5
6 package javax.xml.bind.annotation.adapters;
7
8 import static java.lang.annotation.ElementType.PACKAGE JavaDoc;
9 import java.lang.annotation.Retention JavaDoc;
10 import static java.lang.annotation.RetentionPolicy.RUNTIME JavaDoc;
11 import java.lang.annotation.Target JavaDoc;
12
13 /**
14  * <p>
15  * A container for multiple @{@link XmlJavaTypeAdapter} annotations.
16  *
17  * <p> Multiple annotations of the same type are not allowed on a program
18  * element. This annotation therefore serves as a container annotation
19  * for multiple &#64;XmlJavaTypeAdapter as follows:
20  *
21  * <pre>
22  * &#64;XmlJavaTypeAdapters ({ @XmlJavaTypeAdapter(...),@XmlJavaTypeAdapter(...) })
23  * </pre>
24  *
25  * <p>The <tt>@XmlJavaTypeAdapters</tt> annnotation is useful for
26  * defining {@link XmlJavaTypeAdapter} annotations for different types
27  * at the package level.
28  *
29  * <p>See "Package Specification" in javax.xml.bind.package javadoc for
30  * additional common information.</p>
31  *
32  * @author <ul><li>Sekhar Vajjhala, Sun Microsystems, Inc.</li></ul>
33  * @see XmlJavaTypeAdapter
34  * @since JAXB2.0
35  */

36 @Retention JavaDoc(RUNTIME) @Target JavaDoc({PACKAGE})
37 public @interface XmlJavaTypeAdapters {
38     /**
39      * Collection of @{@link XmlJavaTypeAdapter} annotations
40      */

41     XmlJavaTypeAdapter[] value();
42 }
43
Popular Tags