Package com.sun.msv.generator
Class DOM2toSAX2
- java.lang.Object
-
- com.sun.msv.generator.DOM2toSAX2
-
public class DOM2toSAX2 extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentHandlerhandler
-
Constructor Summary
Constructors Constructor Description DOM2toSAX2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AttributesconvertAttributes(Element e)converts DOM attributes into SAX attributes.ContentHandlergetContentHandler()protected voidonElement(Element e)protected voidonText(Text t)voidsetContentHandler(ContentHandler handler)voidtraverse(Document dom)
-
-
-
Field Detail
-
handler
protected ContentHandler handler
-
-
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
-
-