com.sun.msv.generator
Class DOM2toSAX2

java.lang.Object
  extended by com.sun.msv.generator.DOM2toSAX2

public class DOM2toSAX2
extends Object


Field Summary
protected  ContentHandler handler
           
 
Constructor Summary
DOM2toSAX2()
           
 
Method Summary
protected  Attributes convertAttributes(Element e)
          converts DOM attributes into SAX attributes.
 ContentHandler getContentHandler()
           
protected  void onElement(Element e)
           
protected  void onText(Text t)
           
 void setContentHandler(ContentHandler handler)
           
 void traverse(Document dom)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handler

protected ContentHandler handler
Constructor Detail

DOM2toSAX2

public DOM2toSAX2()
Method Detail

setContentHandler

public void setContentHandler(ContentHandler handler)

getContentHandler

public ContentHandler getContentHandler()

traverse

public void traverse(Document dom)
              throws SAXException
Throws:
SAXException

convertAttributes

protected Attributes convertAttributes(Element e)
converts DOM attributes into SAX attributes.


onElement

protected void onElement(Element e)
                  throws SAXException
Throws:
SAXException

onText

protected void onText(Text t)
               throws SAXException
Throws:
SAXException


MSV