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 ;9 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 program18 * element. This annotation therefore serves as a container annotation19 * for multiple @XmlJavaTypeAdapter as follows:20 *21 * <pre>22 * @XmlJavaTypeAdapters ({ @XmlJavaTypeAdapter(...),@XmlJavaTypeAdapter(...) })23 * </pre>24 *25 * <p>The <tt>@XmlJavaTypeAdapters</tt> annnotation is useful for26 * defining {@link XmlJavaTypeAdapter} annotations for different types27 * at the package level.28 *29 * <p>See "Package Specification" in javax.xml.bind.package javadoc for30 * additional common information.</p>31 *32 * @author <ul><li>Sekhar Vajjhala, Sun Microsystems, Inc.</li></ul>33 * @see XmlJavaTypeAdapter34 * @since JAXB2.035 */36 @Retention (RUNTIME) @Target ({PACKAGE})37 public @interface XmlJavaTypeAdapters {38 /**39 * Collection of @{@link XmlJavaTypeAdapter} annotations40 */41 XmlJavaTypeAdapter[] value();42 }43