Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
gnu.xml.dom

Class DomNsNode

java.lang.Object
|
+--gnu.xml.dom.DomNode
   |
   +--gnu.xml.dom.DomNsNode


public abstract class DomNsNode

extends DomNode

Abstract implemention of namespace support. This facilitates sharing code for attribute and element nodes.

Author:

Method Summary

java.lang.StringgetLocalName()

DOM L2 Returns the local part of the node's name (after any colon), or null if the node name is not namespace scoped.
java.lang.StringgetNamespaceURI()

DOM L2 Returns the node's namespace URI or null if the node name is not namespace scoped.
java.lang.StringgetNodeName()

DOM L1 Returns the node's name, including any namespace prefix.
java.lang.StringgetPrefix()

DOM L2 Returns any prefix part of the node's name (before any colon).
voidsetPrefix(java.lang.String prefix)

DOM L2 Assigns the prefix part of the node's name (before any colon).

Method Details

getLocalName

public String getLocalName()

DOM L2 Returns the local part of the node's name (after any colon), or null if the node name is not namespace scoped.


getNamespaceURI

public final String getNamespaceURI()

DOM L2 Returns the node's namespace URI or null if the node name is not namespace scoped.


getNodeName

public final String getNodeName()

DOM L1 Returns the node's name, including any namespace prefix.


getPrefix

public String getPrefix()

DOM L2 Returns any prefix part of the node's name (before any colon).


setPrefix

public void setPrefix(java.lang.String prefix)

DOM L2 Assigns the prefix part of the node's name (before any colon).

Parameters: