KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > bind > annotation > XmlSchemaTypes


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 JavaDoc;
9 import static java.lang.annotation.ElementType.PACKAGE JavaDoc;
10 import java.lang.annotation.Retention JavaDoc;
11 import java.lang.annotation.Target JavaDoc;
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 program
18  * element. This annotation therefore serves as a container annotation
19  * for multiple &#64;XmlSchemaType annotations as follows:
20  *
21  * <pre>
22  * &#64;XmlSchemaTypes({ @XmlSchemaType(...), @XmlSchemaType(...) })
23  * </pre>
24  * <p>The <tt>@XmlSchemaTypes</tt> annnotation can be used to
25  * define {@link XmlSchemaType} for different types at the
26  * package level.
27  *
28  * <p>See "Package Specification" in javax.xml.bind.package javadoc for
29  * additional common information.</p>
30  *
31  * @author <ul><li>Sekhar Vajjhala, Sun Microsystems, Inc.</li></ul>
32  * @see XmlSchemaType
33  * @since JAXB2.0
34  */

35 @Retention JavaDoc(RUNTIME) @Target JavaDoc({PACKAGE})
36 public @interface XmlSchemaTypes {
37     /**
38      * Collection of @{@link XmlSchemaType} annotations
39      */

40     XmlSchemaType[] value();
41 }
42
Popular Tags