Package com.sun.tools.ws.wsdl.parser
Class DOMForestScanner
- java.lang.Object
-
- com.sun.tools.ws.wsdl.parser.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.- Author:
- Kohsuke Kawaguchi ([email protected])
-
-
Constructor Summary
Constructors Constructor Description DOMForestScanner(DOMForest _forest)
Scans DOM nodes of the given forest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
scan(Document d, ContentHandler contentHandler)
Generates the whole set of SAX events from the given Document in the DOMForest.void
scan(Element e, ContentHandler contentHandler)
Generates the whole set of SAX events by treating element e as if it's a root element.
-
-
-
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) throws SAXException
Generates the whole set of SAX events by treating element e as if it's a root element.- Throws:
SAXException
-
scan
public void scan(Document d, ContentHandler contentHandler) throws SAXException
Generates the whole set of SAX events from the given Document in the DOMForest.- Throws:
SAXException
-
-