01: /*
02: * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
03: * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
04: */
05:
06: package javax.xml.bind.annotation.adapters;
07:
08: import static java.lang.annotation.ElementType.PACKAGE;
09: import java.lang.annotation.Retention;
10: import static java.lang.annotation.RetentionPolicy.RUNTIME;
11: import java.lang.annotation.Target;
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 @XmlJavaTypeAdapter as follows:
20: *
21: * <pre>
22: * @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(RUNTIME)
37: @Target({PACKAGE})
38: public @interface XmlJavaTypeAdapters {
39: /**
40: * Collection of @{@link XmlJavaTypeAdapter} annotations
41: */
42: XmlJavaTypeAdapter[] value();
43: }
|