Annotation Type XmlNs


@Retention(value=RUNTIME)
 @Target(value={})
public @interface XmlNs

Associates a namespace prefix with a XML namespace URI.

Usage

@XmlNs annotation is intended for use from other program annotations.

See "Package Specification" in javax.xml.bind.package javadoc for additional common information.

Example:See XmlSchema annotation type for an example.

Since:
JAXB2.0

Required Elements

Modifier and Type Required Element and Description
String namespaceURI

Namespace URI

String prefix

Namespace prefix

Elements

prefix

public abstract String prefix

Namespace prefix

namespaceURI

public abstract String namespaceURI

Namespace URI

© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/javase/8/docs/api/javax/xml/bind/annotation/XmlNs.html