org.apache.batik.dom

Class AbstractParentChildNode

public abstract class AbstractParentChildNode extends AbstractParentNode

This class implements the {@link org.w3c.dom.Node} interface with support for children, parent and siblings.
Field Summary
protected NodenextSibling
Returns the next sibling.
protected NodeparentNode
The parent node of this node.
protected NodepreviousSibling
The previous sibling.
Method Summary
NodegetNextSibling()
DOM: Implements {@link org.w3c.dom.Node#getNextSibling()}.
NodegetParentNode()
DOM: Implements {@link org.w3c.dom.Node#getParentNode()}.
NodegetPreviousSibling()
DOM: Implements {@link org.w3c.dom.Node#getPreviousSibling()}.
voidsetNextSibling(Node v)
Sets the node immediately following this node.
voidsetParentNode(Node v)
Sets the parent node.
voidsetPreviousSibling(Node v)
Sets the node immediately preceding this node.

Field Detail

nextSibling

protected Node nextSibling
Returns the next sibling.

parentNode

protected Node parentNode
The parent node of this node.

previousSibling

protected Node previousSibling
The previous sibling.

Method Detail

getNextSibling

public Node getNextSibling()
DOM: Implements {@link org.w3c.dom.Node#getNextSibling()}.

Returns: {@link #nextSibling}.

getParentNode

public Node getParentNode()
DOM: Implements {@link org.w3c.dom.Node#getParentNode()}.

Returns: {@link #parentNode}

getPreviousSibling

public Node getPreviousSibling()
DOM: Implements {@link org.w3c.dom.Node#getPreviousSibling()}.

Returns: {@link #previousSibling}.

setNextSibling

public void setNextSibling(Node v)
Sets the node immediately following this node.

setParentNode

public void setParentNode(Node v)
Sets the parent node.

setPreviousSibling

public void setPreviousSibling(Node v)
Sets the node immediately preceding this node.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.