gnu.xml.dom

Class DomNsNode

public abstract class DomNsNode extends DomNode

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

Version: $Date: 2001/11/20 04:53:46 $

Author: David Brownell

Method Summary
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.
StringgetNamespaceURI()
DOM L2 Returns the node's namespace URI or null if the node name is not namespace scoped.
StringgetNodeName()
DOM L1 Returns the node's name, including any namespace prefix.
StringgetPrefix()
DOM L2 Returns any prefix part of the node's name (before any colon).
voidsetPrefix(String prefix)
DOM L2 Assigns the prefix part of the node's name (before any colon).

Method Detail

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(String prefix)
DOM L2 Assigns the prefix part of the node's name (before any colon).

Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2011-08-26.