KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > stream > events > Namespace


1 package javax.xml.stream.events;
2
3 import javax.xml.namespace.QName JavaDoc;
4
5 /**
6  * An interface that contains information about a namespace.
7  * Namespaces are accessed from a StartElement.
8  *
9  * @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 JavaDoc getPrefix();
21   
22   /**
23    * Gets the uri bound to the prefix of this namespace
24    */

25   public String JavaDoc getNamespaceURI();
26
27   /**
28    * returns true if this attribute declares the default namespace
29    */

30   public boolean isDefaultNamespaceDeclaration();
31 }
32
Popular Tags