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 ContentHandler
handler
-
Constructor Summary
Constructors Constructor Description DOM2toSAX2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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
-
-