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 ;9 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 for21 * 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.026 * @version $Revision: 1.2 $27 */28 29 @Retention (RUNTIME) @Target ({})30 public @interface XmlNs {31 /**32 * Namespace prefix33 */34 String prefix();35 36 /**37 * Namespace URI38 */39 String namespaceURI(); 40 }41 42 43