nu.validator.saxtree
Class Document

java.lang.Object
  extended by nu.validator.saxtree.Node
      extended by nu.validator.saxtree.ParentNode
          extended by nu.validator.saxtree.Document
All Implemented Interfaces:
Locator

public final class Document
extends ParentNode

A document.

Version:
$Id: Document.java 367 2008-07-02 18:27:22Z hsivonen $
Author:
hsivonen

Field Summary
 
Fields inherited from class nu.validator.saxtree.ParentNode
endLocator
 
Constructor Summary
Document(Locator locator)
          The constructor.
 
Method Summary
 NodeType getNodeType()
          Return the node type.
(package private)  void revisit(TreeParser treeParser)
          Revisit the node.
(package private)  void visit(TreeParser treeParser)
          Visit the node.
 
Methods inherited from class nu.validator.saxtree.ParentNode
appendChild, appendChildren, copyEndLocator, getFirstChild, getLastChild, insertBefore, insertBetween, removeChild, setEndLocator
 
Methods inherited from class nu.validator.saxtree.Node
detach, getAttributes, getColumnNumber, getData, getLineNumber, getLocalName, getName, getNextSibling, getParentNode, getPrefixMappings, getPreviousSibling, getPublicId, getPublicIdentifier, getQName, getSystemId, getSystemIdentifier, getTarget, getUri, setNextSibling, setParentNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Document

public Document(Locator locator)
The constructor.

Parameters:
locator - the locator
Method Detail

visit

void visit(TreeParser treeParser)
     throws SAXException
Description copied from class: Node
Visit the node.

Specified by:
visit in class Node
Parameters:
treeParser - the visitor
Throws:
SAXException - if stuff goes wrong
See Also:
Node.visit(nu.validator.saxtree.TreeParser)

revisit

void revisit(TreeParser treeParser)
       throws SAXException
Description copied from class: Node
Revisit the node.

Overrides:
revisit in class Node
Parameters:
treeParser - the visitor
Throws:
SAXException - if stuff goes wrong
See Also:
Node.revisit(nu.validator.saxtree.TreeParser)

getNodeType

public NodeType getNodeType()
Description copied from class: Node
Return the node type.

Specified by:
getNodeType in class Node
Returns:
the node type
See Also:
Node.getNodeType()