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: */
13: public interface Namespace extends Attribute {
14:
15: /**
16: * Gets the prefix, returns "" if this is a default
17: * namespace declaration.
18: */
19: public String getPrefix();
20:
21: /**
22: * Gets the uri bound to the prefix of this namespace
23: */
24: public String getNamespaceURI();
25:
26: /**
27: * returns true if this attribute declares the default namespace
28: */
29: public boolean isDefaultNamespaceDeclaration();
30: }
|