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

Class DomNsNode

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

Known Direct Subclasses:
DomAttr, DomElement


public abstract class DomNsNode
extends DomNode

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

Author:
David Brownell

Method Summary

java.lang.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.

java.lang.String

getNamespaceURI()

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

java.lang.String

getNodeName()

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

java.lang.String

getPrefix()

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

void

setPrefix(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:
prefix