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;7 8 import static java.lang.annotation.RetentionPolicy.RUNTIME ;9 import static java.lang.annotation.ElementType.PACKAGE ;10 import java.lang.annotation.Retention ;11 import java.lang.annotation.Target ;12 13 /**14 * <p>15 * A container for multiple @{@link XmlSchemaType} 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 @XmlSchemaType annotations as follows:20 *21 * <pre>22 * @XmlSchemaTypes({ @XmlSchemaType(...), @XmlSchemaType(...) })23 * </pre>24 * <p>The <tt>@XmlSchemaTypes</tt> annnotation can be used to25 * define {@link XmlSchemaType} for different types at the26 * package level.27 *28 * <p>See "Package Specification" in javax.xml.bind.package javadoc for29 * additional common information.</p>30 *31 * @author <ul><li>Sekhar Vajjhala, Sun Microsystems, Inc.</li></ul>32 * @see XmlSchemaType33 * @since JAXB2.034 */35 @Retention (RUNTIME) @Target ({PACKAGE})36 public @interface XmlSchemaTypes {37 /**38 * Collection of @{@link XmlSchemaType} annotations39 */40 XmlSchemaType[] value();41 }42