01: /*
02: * Copyright 2004 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 java.lang.annotation.Retention;
09: import static java.lang.annotation.RetentionPolicy.RUNTIME;
10: import java.lang.annotation.Target;
11:
12: /**
13: * <p>
14: * Associates a namespace prefix with a XML namespace URI.
15: *
16: * <p><b>Usage</b></p>
17: * <p><tt>@XmlNs</tt> annotation is intended for use from other
18: * program annotations.
19: *
20: * <p>See "Package Specification" in javax.xml.bind.package javadoc for
21: * additional common information.</p>
22: *
23: * <p><b>Example:</b>See <tt>XmlSchema</tt> annotation type for an example.
24: * @author Sekhar Vajjhala, Sun Microsystems, Inc.
25: * @since JAXB2.0
26: * @version $Revision: 1.3 $
27: */
28:
29: @Retention(RUNTIME)
30: @Target({})
31: public @interface XmlNs {
32: /**
33: * Namespace prefix
34: */
35: String prefix();
36:
37: /**
38: * Namespace URI
39: */
40: String namespaceURI();
41: }
|