25
26 package javax.xml.bind.annotation.adapters;
27
28 import static java.lang.annotation.ElementType.PACKAGE;
29 import java.lang.annotation.Retention;
30 import static java.lang.annotation.RetentionPolicy.RUNTIME;
31 import java.lang.annotation.Target;
32
33 /**
34 * <p>
35 * A container for multiple @{@link XmlJavaTypeAdapter} annotations.
36 *
37 * <p> Multiple annotations of the same type are not allowed on a program
38 * element. This annotation therefore serves as a container annotation
39 * for multiple @XmlJavaTypeAdapter as follows:
40 *
41 * <pre>
42 * @XmlJavaTypeAdapters ({ @XmlJavaTypeAdapter(...),@XmlJavaTypeAdapter(...) })
43 * </pre>
44 *
45 * <p>The <tt>@XmlJavaTypeAdapters</tt> annotation is useful for
46 * defining {@link XmlJavaTypeAdapter} annotations for different types
47 * at the package level.
48 *
49 * <p>See "Package Specification" in javax.xml.bind.package javadoc for
50 * additional common information.</p>
51 *
52 * @author <ul><li>Sekhar Vajjhala, Sun Microsystems, Inc.</li></ul>
53 * @see XmlJavaTypeAdapter
54 * @since 1.6, JAXB 2.0
55 */
56 @Retention(RUNTIME) @Target({PACKAGE})
57 public @interface XmlJavaTypeAdapters {
58 /**
59 * Collection of @{@link XmlJavaTypeAdapter} annotations
60 */
61 XmlJavaTypeAdapter[] value();
62 }
|
25
26 package javax.xml.bind.annotation.adapters;
27
28 import static java.lang.annotation.ElementType.PACKAGE;
29 import java.lang.annotation.Retention;
30 import static java.lang.annotation.RetentionPolicy.RUNTIME;
31 import java.lang.annotation.Target;
32
33 /**
34 * <p>
35 * A container for multiple @{@link XmlJavaTypeAdapter} annotations.
36 *
37 * <p> Multiple annotations of the same type are not allowed on a program
38 * element. This annotation therefore serves as a container annotation
39 * for multiple @XmlJavaTypeAdapter as follows:
40 *
41 * <pre>
42 * @XmlJavaTypeAdapters ({ @XmlJavaTypeAdapter(...),@XmlJavaTypeAdapter(...) })
43 * </pre>
44 *
45 * <p>The {@code @XmlJavaTypeAdapters} annotation is useful for
46 * defining {@link XmlJavaTypeAdapter} annotations for different types
47 * at the package level.
48 *
49 * <p>See "Package Specification" in javax.xml.bind.package javadoc for
50 * additional common information.</p>
51 *
52 * @author <ul><li>Sekhar Vajjhala, Sun Microsystems, Inc.</li></ul>
53 * @see XmlJavaTypeAdapter
54 * @since 1.6, JAXB 2.0
55 */
56 @Retention(RUNTIME) @Target({PACKAGE})
57 public @interface XmlJavaTypeAdapters {
58 /**
59 * Collection of @{@link XmlJavaTypeAdapter} annotations
60 */
61 XmlJavaTypeAdapter[] value();
62 }
|