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;
07:
08: import static java.lang.annotation.RetentionPolicy.RUNTIME;
09: 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 program
18: * element. This annotation therefore serves as a container annotation
19: * 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 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(RUNTIME)
36: @Target({PACKAGE})
37: public @interface XmlSchemaTypes {
38: /**
39: * Collection of @{@link XmlSchemaType} annotations
40: */
41: XmlSchemaType[] value();
42: }
|