com.sun.tools.ws.wsdl.parser
Class DOMForestScanner

java.lang.Object
  extended by com.sun.tools.ws.wsdl.parser.DOMForestScanner

public class DOMForestScanner
extends java.lang.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
 void scan(org.w3c.dom.Document d, org.xml.sax.ContentHandler contentHandler)
          Generates the whole set of SAX events from the given Document in the DOMForest.
 void scan(org.w3c.dom.Element e, org.xml.sax.ContentHandler contentHandler)
          Generates the whole set of SAX events by treating element e as if it's a root element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(org.w3c.dom.Element e,
                 org.xml.sax.ContentHandler contentHandler)
          throws org.xml.sax.SAXException
Generates the whole set of SAX events by treating element e as if it's a root element.

Throws:
org.xml.sax.SAXException

scan

public void scan(org.w3c.dom.Document d,
                 org.xml.sax.ContentHandler contentHandler)
          throws org.xml.sax.SAXException
Generates the whole set of SAX events from the given Document in the DOMForest.

Throws:
org.xml.sax.SAXException


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.