nu.validator.saxtree
Class ParentNode

java.lang.Object
  extended by nu.validator.saxtree.Node
      extended by nu.validator.saxtree.ParentNode
All Implemented Interfaces:
Locator
Direct Known Subclasses:
CDATA, Document, DocumentFragment, DTD, Element, Entity

public abstract class ParentNode
extends Node


Field Summary
protected  Locator endLocator
           
private  Node firstChild
           
private  Node lastChild
           
 
Constructor Summary
ParentNode(Locator locator)
           
 
Method Summary
 Node appendChild(Node child)
           
 void appendChildren(Node parent)
           
 void copyEndLocator(ParentNode another)
          Copies the endLocator from another node.
 Node getFirstChild()
          Returns the firstChild.
 Node getLastChild()
          Returns the lastChild.
 Node insertBefore(Node child, Node sibling)
           
(package private)  void removeChild(Node node)
           
 void setEndLocator(Locator endLocator)
          Sets the endLocator.
 
Methods inherited from class nu.validator.saxtree.Node
detach, getAttributes, getColumnNumber, getData, getLineNumber, getLocalName, getName, getNextSibling, getNodeType, getParentNode, getPrefixMappings, getPublicId, getPublicIdentifier, getQName, getSystemId, getSystemIdentifier, getTarget, getUri, revisit, setNextSibling, setParentNode, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

endLocator

protected Locator endLocator

firstChild

private Node firstChild

lastChild

private Node lastChild
Constructor Detail

ParentNode

ParentNode(Locator locator)
Method Detail

setEndLocator

public void setEndLocator(Locator endLocator)
Sets the endLocator.

Parameters:
endLocator - the endLocator to set

copyEndLocator

public void copyEndLocator(ParentNode another)
Copies the endLocator from another node.

Parameters:
another - the another node

getFirstChild

public final Node getFirstChild()
Returns the firstChild.

Overrides:
getFirstChild in class Node
Returns:
the firstChild

getLastChild

public final Node getLastChild()
Returns the lastChild.

Returns:
the lastChild

insertBefore

public Node insertBefore(Node child,
                         Node sibling)

appendChild

public Node appendChild(Node child)

appendChildren

public void appendChildren(Node parent)

removeChild

void removeChild(Node node)