gnu.xml.dom
Class DomNsNode

java.lang.Object
  extended bygnu.xml.dom.DomNode
      extended bygnu.xml.dom.DomNsNode
All Implemented Interfaces:
java.lang.Cloneable, org.w3c.dom.events.DocumentEvent, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList
Direct Known Subclasses:
DomAttr, DomElement

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

Field Summary
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
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).
 
Methods inherited from class gnu.xml.dom.DomNode
addEventListener, appendChild, clone, cloneNode, compact, createEvent, dispatchEvent, getAttributes, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, getLength, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isReadonly, isSupported, item, makeReadonly, nameAndTypeEquals, normalize, removeChild, removeEventListener, replaceChild, setNodeValue, trimToSize
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
getNodeType
 

Method Detail

getNodeName

public final java.lang.String getNodeName()
DOM L1 Returns the node's name, including any namespace prefix.


getNamespaceURI

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

Specified by:
getNamespaceURI in interface org.w3c.dom.Node
Overrides:
getNamespaceURI in class DomNode

getPrefix

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

Specified by:
getPrefix in interface org.w3c.dom.Node
Overrides:
getPrefix in class DomNode

setPrefix

public void setPrefix(java.lang.String prefix)
DOM L2 Assigns the prefix part of the node's name (before any colon).

Specified by:
setPrefix in interface org.w3c.dom.Node
Overrides:
setPrefix in class DomNode

getLocalName

public 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.

Specified by:
getLocalName in interface org.w3c.dom.Node
Overrides:
getLocalName in class DomNode


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 2008-04-13.