com.gargoylesoftware.htmlunit.html
Class DomNamespaceNode

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.html.DomNode
      extended by com.gargoylesoftware.htmlunit.html.DomNamespaceNode
All Implemented Interfaces:
Serializable, Cloneable, Node
Direct Known Subclasses:
DomAttr, DomElement

public abstract class DomNamespaceNode
extends DomNode

Intermediate base class for DOM Nodes that have namespaces. That includes HtmlElement and HtmlAttr.

Version:
$Revision: 5301 $
Author:
David K. Taylor, Ahmed Ashour
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.DomNode
DomNode.ChildIterator, DomNode.DescendantElementsIterator<T extends DomNode>
 
Field Summary
 
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode
AS_TEXT_BLANK, AS_TEXT_BLOCK_SEPARATOR, AS_TEXT_NEW_LINE, AS_TEXT_TAB, PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
protected DomNamespaceNode(String namespaceURI, String qualifiedName, SgmlPage page)
          Creates an instance of a DOM node that can have a namespace.
 
Method Summary
 String getLocalName()
          
 String getNamespaceURI()
          
 String getPrefix()
          
 String getQualifiedName()
          Returns this node's qualified name.
 void setPrefix(String prefix)
          
 
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNode
addDomChangeListener, appendChild, asText, asXml, checkChildHierarchy, cloneNode, compareDocumentPosition, fireNodeAdded, fireNodeDeleted, getAllHtmlChildElements, getAncestors, getAttributes, getBaseURI, getByXPath, getCanonicalXPath, getChildNodes, getChildren, getDescendants, getEndColumnNumber, getEndLineNumber, getFeature, getFirstByXPath, getFirstChild, getHtmlElementDescendants, getIndex, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getPage, getParentNode, getPreviousSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, insertBefore, isAncestorOf, isAncestorOfAny, isBlock, isDefaultNamespace, isDisplayed, isEqualNode, isSameNode, isSupported, isTrimmedText, lookupNamespaceURI, lookupPrefix, mayBeDisplayed, normalize, notifyIncorrectness, onAddedToPage, onAllChildrenAddedToPage, printChildrenAsXml, printXml, remove, removeAllChildren, removeChild, removeDomChangeListener, replace, replaceChild, setNextSibling, setNodeValue, setParentNode, setPreviousSibling, setReadyState, setScriptObject, setTextContent, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomNamespaceNode

protected DomNamespaceNode(String namespaceURI,
                           String qualifiedName,
                           SgmlPage page)
Creates an instance of a DOM node that can have a namespace.

Parameters:
namespaceURI - the URI that identifies an XML namespace
qualifiedName - the qualified name of the element type to instantiate
page - the page that contains this element
Method Detail

getNamespaceURI

public String getNamespaceURI()

Specified by:
getNamespaceURI in interface Node
Overrides:
getNamespaceURI in class DomNode

getLocalName

public String getLocalName()

Specified by:
getLocalName in interface Node
Overrides:
getLocalName in class DomNode

getPrefix

public String getPrefix()

Specified by:
getPrefix in interface Node
Overrides:
getPrefix in class DomNode

setPrefix

public void setPrefix(String prefix)

Specified by:
setPrefix in interface Node
Overrides:
setPrefix in class DomNode

getQualifiedName

public String getQualifiedName()
Returns this node's qualified name.

Returns:
this node's qualified name


Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.