void
|
addEventListener(String type, EventListener listener, boolean useCapture)
|
Node
|
appendChild(Node newChild)
Adds a child node to the end of the list of children for this node.
|
void
|
changed()
Denotes that this node has changed.
|
int
|
changes()
Returns the number of changes to this node.
|
Node
|
cloneNode(boolean deep)
Returns a duplicate of a given node.
|
short
|
compareDocumentPosition(Node other)
Compares a node with this node with regard to their position in the
document.
|
short
|
compareTreePosition(Node other)
This method is deprecated.
No replacement.
|
boolean
|
dispatchEvent(Event event)
|
NamedNodeMap
|
getAttributes()
Return the collection of attributes associated with this node,
or null if none.
|
String
|
getBaseURI()
The absolute base URI of this node or null if undefined.
|
NodeList
|
getChildNodes()
Obtain a NodeList enumerating all children of this node.
|
Node
|
getContainer()
For non-child nodes, the node which "points" to this node.
|
Object
|
getFeature(String feature, String version)
|
Node
|
getFirstChild()
The first child of this Node, or null if none.
|
Node
|
getLastChild()
The first child of this Node, or null if none.
|
int
|
getLength()
NodeList method: Count the immediate children of this node
By default we do not have any children, ParentNode overrides this.
|
String
|
getLocalName()
Introduced in DOM Level 2.
|
String
|
getNamespaceURI()
Introduced in DOM Level 2.
|
Node
|
getNextSibling()
The next child of this node's parent, or null if none
|
abstract
String
|
getNodeName()
the name of this node.
|
int
|
getNodeNumber()
Returns the node number
|
abstract
short
|
getNodeType()
A short integer indicating what type of node this is.
|
String
|
getNodeValue()
Returns the node value.
|
Document
|
getOwnerDocument()
Find the Document that this Node belongs to (the document in
whose context the Node was created).
|
Node
|
getParentNode()
Obtain the DOM-tree parent of this node, or null if it is not
currently active in the DOM tree (perhaps because it has just been
created or removed).
|
String
|
getPrefix()
Introduced in DOM Level 2.
|
Node
|
getPreviousSibling()
The previous child of this node's parent, or null if none
|
boolean
|
getReadOnly()
NON-DOM: Returns true if this node is read-only.
|
String
|
getTextContent()
This attribute returns the text content of this node and its
descendants.
|
Object
|
getUserData()
NON-DOM:
Returns the user data associated to this node.
|
Object
|
getUserData(String key)
Retrieves the object associated to a key on a this node.
|
Hashtable
|
getUserDataRecord()
|
boolean
|
hasAttributes()
Returns whether this node (if it is an element) has any attributes.
|
boolean
|
hasChildNodes()
Test whether this node has any children.
|
Node
|
insertBefore(Node newChild, Node refChild)
Move one or more node(s) to our list of children.
|
boolean
|
isDefaultNamespace(String namespaceURI)
DOM Level 3: Experimental
This method checks if the specified namespaceURI is the
default namespace or not.
|
boolean
|
isEqualNode(Node arg)
Tests whether two nodes are equal.
|
boolean
|
isSameNode(Node other)
Returns whether this node is the same node as the given one.
|
boolean
|
isSupported(String feature, String version)
Introduced in DOM Level 2.
|
Node
|
item(int index)
NodeList method: Return the Nth immediate child of this node, or
null if the index is out of bounds.
|
String
|
lookupNamespaceURI(String specifiedPrefix)
DOM Level 3 - Experimental:
Look up the namespace URI associated to the given prefix, starting from this node.
|
String
|
lookupPrefix(String namespaceURI)
DOM Level 3 - Experimental:
Look up the prefix associated to the given namespace URI, starting from this node.
|
final
void
|
needsSyncChildren(boolean value)
|
void
|
normalize()
Puts all Text nodes in the full depth of the sub-tree
underneath this Node , including attribute nodes, into a
"normal" form where only markup (e.g., tags, comments, processing
instructions, CDATA sections, and entity references) separates
Text nodes, i.e., there are no adjacent Text
nodes.
|
Node
|
removeChild(Node oldChild)
Remove a child from this Node.
|
void
|
removeEventListener(String type, EventListener listener, boolean useCapture)
|
Node
|
replaceChild(Node newChild, Node oldChild)
Make newChild occupy the location that oldChild used to
have.
|
void
|
setNodeValue(String x)
Sets the node value.
|
void
|
setOwnerDocument(CoreDocumentImpl doc)
NON-DOM
set the ownerDocument of this node
|
void
|
setPrefix(String prefix)
Introduced in DOM Level 2.
|
void
|
setReadOnly(boolean readOnly, boolean deep)
NON-DOM: PR-DOM-Level-1-19980818 mentions readonly nodes in conjunction
with Entities, but provides no API to support this.
|
void
|
setTextContent(String textContent)
This attribute returns the text content of this node and its
descendants.
|
Object
|
setUserData(String key, Object data, UserDataHandler handler)
Associate an object to a key on this node.
|
void
|
setUserData(Object data)
NON-DOM: As an alternative to subclassing the DOM, this implementation
has been extended with the ability to attach an object to each node.
|
void
|
synchronizeData()
Override this method in subclass to hook in efficient
internal data structure.
|
String
|
toString()
NON-DOM method for debugging convenience.
|