public abstract class

ChildNode

extends NodeImpl
java.lang.Object
   ↳ org.apache.xerces.dom.NodeImpl
     ↳ org.apache.xerces.dom.ChildNode
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

ChildNode inherits from NodeImpl and adds the capability of being a child by having references to its previous and next siblings.

Summary

[Expand]
Inherited Constants
From class org.apache.xerces.dom.NodeImpl
From interface org.w3c.dom.Node
Fields
protected ChildNode nextSibling Next sibling.
protected ChildNode previousSibling Previous sibling.
[Expand]
Inherited Fields
From class org.apache.xerces.dom.NodeImpl
Public Constructors
ChildNode()
Constructor for serialization.
Protected Constructors
ChildNode(CoreDocumentImpl ownerDocument)
No public constructor; only subclasses of Node should be instantiated, and those normally via a Document's factory methods

Every Node knows what Document it belongs to.

Public Methods
Node cloneNode(boolean deep)
Returns a duplicate of a given node.
Node getNextSibling()
The next child of this node's parent, or null if none
Node getParentNode()
Returns the parent node of this node
Node getPreviousSibling()
The previous child of this node's parent, or null if none
[Expand]
Inherited Methods
From class org.apache.xerces.dom.NodeImpl
From class java.lang.Object
From interface org.w3c.dom.Node
From interface org.w3c.dom.NodeList
From interface org.w3c.dom.events.EventTarget

Fields

protected ChildNode nextSibling

Next sibling.

protected ChildNode previousSibling

Previous sibling.

Public Constructors

public ChildNode ()

Constructor for serialization.

Protected Constructors

protected ChildNode (CoreDocumentImpl ownerDocument)

No public constructor; only subclasses of Node should be instantiated, and those normally via a Document's factory methods

Every Node knows what Document it belongs to.

Public Methods

public Node cloneNode (boolean deep)

Returns a duplicate of a given node. You can consider this a generic "copy constructor" for nodes. The newly returned object should be completely independent of the source object's subtree, so changes in one after the clone has been made will not affect the other.

Note: since we never have any children deep is meaningless here, ParentNode overrides this behavior.

public Node getNextSibling ()

The next child of this node's parent, or null if none

public Node getParentNode ()

Returns the parent node of this node

public Node getPreviousSibling ()

The previous child of this node's parent, or null if none