Top Description Methods
jakarta.xml.bind.annotation

public @Interface XmlNs

extends Annotation
Annotations
@Retention:RUNTIME
@Target
Imports
java.lang.annotation.Retention, .Target

Associates a namespace prefix with a XML namespace URI.

Usage

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

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

Example:See XmlSchema annotation type for an example.

Author
Sekhar Vajjhala, Sun Microsystems, Inc.
Since
1.6, JAXB 2.0

Method Summary

Modifier and TypeMethod and Description
public String
namespaceURI()

Namespace URI

public String
prefix()

Namespace prefix

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

namespaceURIback to summary
public String namespaceURI()

Namespace URI

prefixback to summary
public String prefix()

Namespace prefix