KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Copyright 2004 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 java.lang.annotation.Retention JavaDoc;
9 import static java.lang.annotation.RetentionPolicy.RUNTIME JavaDoc;
10 import java.lang.annotation.Target JavaDoc;
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.2 $
27  */

28
29 @Retention JavaDoc(RUNTIME) @Target JavaDoc({})
30 public @interface XmlNs {
31     /**
32      * Namespace prefix
33      */

34     String JavaDoc prefix();
35
36     /**
37      * Namespace URI
38      */

39     String JavaDoc namespaceURI();
40 }
41
42
43
Popular Tags