Annotation Interface Namespace
Namespace declaration allows the use of shorter notation for long URIs.
Namespace can be declared on package and class level. Class-level declaration overrides package-level namespace declaration (in case the prefix is the same).
-
Required Element Summary
Required Elements
-
Element Details
-
prefix
String prefixPrefix to be used as a shorthand for the fully qualified namespace URI.Corresponds to
xsd
in thexmlns:xsd="http://www.w3.org/2001/XMLSchema#"
XML namespace declaration.- Returns:
- The prefix to be used to reference a namespace
-
namespace
String namespaceFully qualified namespace URI, which is mapped byprefix()
.Corresponds to
http://www.w3.org/2001/XMLSchema#
in thexmlns:xsd="http://www.w3.org/2001/XMLSchema#"
XML namespace declaration.- Returns:
- The namespace URI
-