com.sun.tools.xjc.reader.internalizer

Class DOMForestScanner

public class DOMForestScanner extends Object

Produces a complete series of SAX events from any DOM node in the DOMForest.

This class hides a logic of re-associating Locator to the generated SAX event stream.

Constructor Summary
DOMForestScanner(DOMForest _forest)
Scans DOM nodes of the given forest.
Method Summary
voidscan(Element e, ContentHandler contentHandler)
Generates the whole set of SAX events by treating element e as if it's a root element.
voidscan(Document d, ContentHandler contentHandler)
Generates the whole set of SAX events from the given Document in the DOMForest.

Constructor Detail

DOMForestScanner

public DOMForestScanner(DOMForest _forest)
Scans DOM nodes of the given forest. DOM node parameters to the scan method must be a part of this forest.

Method Detail

scan

public void scan(Element e, ContentHandler contentHandler)
Generates the whole set of SAX events by treating element e as if it's a root element.

scan

public void scan(Document d, ContentHandler contentHandler)
Generates the whole set of SAX events from the given Document in the DOMForest.