com.sun.xml.bind.unmarshaller
Class DOMScanner

java.lang.Object
  extended by com.sun.xml.bind.unmarshaller.DOMScanner

public class DOMScanner
extends java.lang.Object

Visits a W3C DOM tree and generates SAX2 events from it.

This class is just intended to be used by AbstractUnmarshallerImpl. The javax.xml.bind.helpers package is generally a wrong place to put classes like this.

Since:
JAXB1.0

Constructor Summary
DOMScanner()
           
 
Method Summary
 org.w3c.dom.Node getCurrentLocation()
           
 void parse(org.w3c.dom.Element e, org.xml.sax.ContentHandler handler)
          Parses a subtree starting from the element e and reports SAX2 events to the specified handler.
 void parseWithContext(org.w3c.dom.Element e, org.xml.sax.ContentHandler handler)
          Similar to the parse method but it visits the ancestor nodes and properly emulate the all in-scope namespace declarations.
 void visit(org.w3c.dom.Element e)
          Visits an element and its subtree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMScanner

public DOMScanner()
Method Detail

parse

public void parse(org.w3c.dom.Element e,
                  org.xml.sax.ContentHandler handler)
           throws org.xml.sax.SAXException
Parses a subtree starting from the element e and reports SAX2 events to the specified handler.

Throws:
org.xml.sax.SAXException

parseWithContext

public void parseWithContext(org.w3c.dom.Element e,
                             org.xml.sax.ContentHandler handler)
                      throws org.xml.sax.SAXException
Similar to the parse method but it visits the ancestor nodes and properly emulate the all in-scope namespace declarations.

Throws:
org.xml.sax.SAXException

visit

public void visit(org.w3c.dom.Element e)
           throws org.xml.sax.SAXException
Visits an element and its subtree.

Throws:
org.xml.sax.SAXException

getCurrentLocation

public org.w3c.dom.Node getCurrentLocation()