Java org.w3c.dom Node fields, constructors, methods, implement or subclass

Example usage for Java org.w3c.dom Node fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.w3c.dom Node.

The text is from its open source code.

Subclass

org.w3c.dom.Node has subclasses.
Click this link to see all its subclasses.

Implementation

org.w3c.dom.Node has the following implementations.
Click this link to see all its implementation.

Field

shortELEMENT_NODE
The node is an Element.
shortATTRIBUTE_NODE
The node is an Attr.
shortTEXT_NODE
The node is a Text node.
shortCDATA_SECTION_NODE
The node is a CDATASection.
shortENTITY_REFERENCE_NODE
The node is an EntityReference.
shortENTITY_NODE
The node is an Entity.
shortPROCESSING_INSTRUCTION_NODE
The node is a ProcessingInstruction.
shortCOMMENT_NODE
The node is a Comment.
shortDOCUMENT_NODE
The node is a Document.
shortDOCUMENT_TYPE_NODE
The node is a DocumentType.
shortDOCUMENT_FRAGMENT_NODE
The node is a DocumentFragment.
shortNOTATION_NODE
The node is a Notation.
shortDOCUMENT_POSITION_DISCONNECTED
The two nodes are disconnected.
shortDOCUMENT_POSITION_PRECEDING
The second node precedes the reference node.
shortDOCUMENT_POSITION_FOLLOWING
The node follows the reference node.
shortDOCUMENT_POSITION_CONTAINS
The node contains the reference node.
shortDOCUMENT_POSITION_CONTAINED_BY
The node is contained by the reference node.
shortDOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
The determination of preceding versus following is implementation-specific.

Method

NodeappendChild(Node newChild)
Adds the node newChild to the end of the list of children of this node.
NodecloneNode(boolean deep)
Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes.
shortcompareDocumentPosition(Node other)
Compares the reference node, i.e.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
NamedNodeMapgetAttributes()
A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.
StringgetBaseURI()
The absolute base URI of this node or null if the implementation wasn't able to obtain an absolute URI.
NodeListgetChildNodes()
A NodeList that contains all children of this node.
ClassgetClass()
Returns the runtime class of this Object .
NodegetFirstChild()
The first child of this node.
NodegetLastChild()
The last child of this node.
StringgetLocalName()
Returns the local part of the qualified name of this node.
StringgetNamespaceURI()
The namespace URI of this node, or null if it is unspecified (see ).
NodegetNextSibling()
The node immediately following this node.
StringgetNodeName()
The name of this node, depending on its type; see the table above.
shortgetNodeType()
A code representing the type of the underlying object, as defined above.
StringgetNodeValue()
The value of this node, depending on its type; see the table above.
DocumentgetOwnerDocument()
The Document object associated with this node.
NodegetParentNode()
The parent of this node.
StringgetPrefix()
The namespace prefix of this node, or null if it is unspecified.
NodegetPreviousSibling()
The node immediately preceding this node.
StringgetTextContent()
This attribute returns the text content of this node and its descendants.
ObjectgetUserData(String key)
Retrieves the object associated to a key on a this node.
booleanhasAttributes()
Returns whether this node (if it is an element) has any attributes.
booleanhasChildNodes()
Returns whether this node has any children.
inthashCode()
Returns a hash code value for the object.
NodeinsertBefore(Node newChild, Node refChild)
Inserts the node newChild before the existing child node refChild.
booleanisDefaultNamespace(String namespaceURI)
This method checks if the specified namespaceURI is the default namespace or not.
booleanisEqualNode(Node arg)
Tests whether two nodes are equal.
booleanisSameNode(Node other)
Returns whether this node is the same node as the given one.
StringlookupNamespaceURI(String prefix)
Look up the namespace URI associated to the given prefix, starting from this node.
StringlookupPrefix(String namespaceURI)
Look up the prefix associated to the given namespace URI, starting from this node.
voidnormalize()
Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes, into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes.
NoderemoveChild(Node oldChild)
Removes the child node indicated by oldChild from the list of children, and returns it.
NodereplaceChild(Node newChild, Node oldChild)
Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node.
voidsetNodeValue(String nodeValue)
The value of this node, depending on its type; see the table above.
voidsetPrefix(String prefix)
The namespace prefix of this node, or null if it is unspecified.
voidsetTextContent(String textContent)
This attribute returns the text content of this node and its descendants.
ObjectsetUserData(String key, Object data, UserDataHandler handler)
Associate an object to a key on this node.
StringtoString()
Returns a string representation of the object.