com.gargoylesoftware.htmlunit.html
Class DomNamespaceNode
java.lang.Object
com.gargoylesoftware.htmlunit.html.DomNode
com.gargoylesoftware.htmlunit.html.DomNamespaceNode
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- HtmlElement
public abstract class DomNamespaceNode
- extends DomNode
Intermediate base class for DOM Nodes that have namespaces. That includes HtmlElement
and HtmlAttr.
- Version:
- $Revision: 1.3 $
- Author:
- David K. Taylor
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getLocalName()
Returns the local part of the qualified name of this node. |
java.lang.String |
getNamespaceURI()
The namespace URI of this node, or null if it is unspecified (see ). |
java.lang.String |
getPrefix()
The namespace prefix of this node, or null if it is unspecified. |
java.lang.String |
getQualifiedName()
Returns the qualified name of this node. |
void |
setPrefix(java.lang.String prefix)
Set the namespace prefix of this node, or null if it is unspecified. |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
addDomChangeListener, appendDomChild, asText, asXml, cloneDomNode, getAllHtmlChildElements, getByXPath, getChildIterator, getEndColumnNumber, getEndLineNumber, getEventHandler, getFirstDomChild, getLastDomChild, getNextDomSibling, getNodeName, getNodeType, getNodeValue, getPage, getParentDomNode, getPreviousDomSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, insertBefore, remove, removeAllChildren, removeDomChangeListener, removeEventHandler, replace, setEventHandler, setEventHandler, setNodeValue, setReadyState, setScriptObject |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getLocalName
public java.lang.String getLocalName()
- Returns the local part of the qualified name of this node. For nodes of any
type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1
method, such as Document.createElement(), this is always null.
This method is part of the W3C DOM API.
- Returns:
- The local name (without prefix).
getNamespaceURI
public java.lang.String getNamespaceURI()
- The namespace URI of this node, or null if it is unspecified (see ). This is not a
computed value that is the result of a namespace lookup based on an examination of the
namespace declarations in scope. It is merely the namespace URI given at creation time.
For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with
a DOM Level 1 method, such as Document.createElement(), this is always null.
This method is part of the W3C DOM API.
- Returns:
- The URI that identifies an XML namespace.
getPrefix
public java.lang.String getPrefix()
- The namespace prefix of this node, or null if it is unspecified. When it is defined
to be null, setting it has no effect, including if the node is read-only. Note that
setting this attribute, when permitted, changes the nodeName attribute, which holds
the qualified name, as well as the tagName and name attributes of the Element and Attr
interfaces, when applicable. Setting the prefix to null makes it unspecified, setting
it to an empty string is implementation dependent. Note also that changing the prefix
of an attribute that is known to have a default value, does not make a new attribute
with the default value and the original prefix appear, since the namespaceURI and
localName do not change. For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE
and nodes created with a DOM Level 1 method, such as createElement from the Document
interface, this is always null.
This method is part of the W3C DOM API.
- Returns:
- The Namespace prefix.
getQualifiedName
public java.lang.String getQualifiedName()
- Returns the qualified name of this node.
- Returns:
- The prefix and local name.
setPrefix
public void setPrefix(java.lang.String prefix)
- Set the namespace prefix of this node, or null if it is unspecified. When it is defined
to be null, setting it has no effect, including if the node is read-only. Note that setting
this attribute, when permitted, changes the nodeName attribute, which holds the qualified
name, as well as the tagName and name attributes of the Element and Attr interfaces, when
applicable. Setting the prefix to null makes it unspecified, setting it to an empty string
is implementation dependent. Note also that changing the prefix of an attribute that is
known to have a default value, does not make a new attribute with the default value and the
original prefix appear, since the namespaceURI and localName do not change. For nodes of
any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1
method, such as createElement from the Document interface, this is always null.
This method is part of the W3C DOM API.
- Parameters:
prefix
- The namespace prefix of this node, or null if it is unspecified.
Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.