01 package javax.xml.stream.events;
02
03 import javax.xml.namespace.QName;
04
05 /**
06 * An interface that contains information about a namespace.
07 * Namespaces are accessed from a StartElement.
08 *
09 * @version 1.0
10 * @author Copyright (c) 2003 by BEA Systems. All Rights Reserved.
11 * @see StartElement
12 * @since 1.6
13 */
14 public interface Namespace extends Attribute {
15
16 /**
17 * Gets the prefix, returns "" if this is a default
18 * namespace declaration.
19 */
20 public String getPrefix();
21
22 /**
23 * Gets the uri bound to the prefix of this namespace
24 */
25 public String getNamespaceURI();
26
27 /**
28 * returns true if this attribute declares the default namespace
29 */
30 public boolean isDefaultNamespaceDeclaration();
31 }
|