org.iso_relax.verifier.impl
Class SAXEventGenerator
java.lang.Object
|
+--org.iso_relax.verifier.impl.SAXEventGenerator
- All Implemented Interfaces:
- jp.gr.xml.relax.dom.IDOMVisitor
- public class SAXEventGenerator
- extends java.lang.Object
- implements jp.gr.xml.relax.dom.IDOMVisitor
Generates SAX events from a DOM tree.
call the makeEvent
method to use it.
- Author:
- ASAMI, Tomoharu (asami@zeomtech.com)
Kohsuke KAWAGUCHI
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAXEventGenerator
public SAXEventGenerator(Node node)
setDocumentEmulation
public void setDocumentEmulation(boolean emulate)
setDTDHandler
public void setDTDHandler(DTDHandler dtd)
setContentHandler
public void setContentHandler(ContentHandler content)
setLexicalHandler
public void setLexicalHandler(LexicalHandler lexical)
setDeclHandler
public void setDeclHandler(DeclHandler decl)
setErrorHandler
public void setErrorHandler(ErrorHandler error)
makeEvent
public void makeEvent()
throws SAXException
SAXException
makeEvent
public void makeEvent(ContentHandler handler)
throws SAXException
SAXException
emulateStartDocument
public void emulateStartDocument()
emulateEndDocument
public void emulateEndDocument()
enter
public boolean enter(Element element)
- Specified by:
enter
in interface jp.gr.xml.relax.dom.IDOMVisitor
enter
public boolean enter(Attr attr)
- Specified by:
enter
in interface jp.gr.xml.relax.dom.IDOMVisitor
enter
public boolean enter(Text text)
- Specified by:
enter
in interface jp.gr.xml.relax.dom.IDOMVisitor
enter
public boolean enter(CDATASection cdata)
- Specified by:
enter
in interface jp.gr.xml.relax.dom.IDOMVisitor
enter
public boolean enter(EntityReference entityRef)
- Specified by:
enter
in interface jp.gr.xml.relax.dom.IDOMVisitor
enter
public boolean enter(Entity entity)
- Specified by:
enter
in interface jp.gr.xml.relax.dom.IDOMVisitor
enter
public boolean enter(ProcessingInstruction pi)
- Specified by:
enter
in interface jp.gr.xml.relax.dom.IDOMVisitor
enter
public boolean enter(Comment comment)
- Specified by:
enter
in interface jp.gr.xml.relax.dom.IDOMVisitor
enter
public boolean enter(Document doc)
- Specified by:
enter
in interface jp.gr.xml.relax.dom.IDOMVisitor
enter
public boolean enter(DocumentType doctype)
- Specified by:
enter
in interface jp.gr.xml.relax.dom.IDOMVisitor
enter
public boolean enter(DocumentFragment docfrag)
- Specified by:
enter
in interface jp.gr.xml.relax.dom.IDOMVisitor
enter
public boolean enter(Notation notation)
- Specified by:
enter
in interface jp.gr.xml.relax.dom.IDOMVisitor
enter
public boolean enter(Node node)
- Specified by:
enter
in interface jp.gr.xml.relax.dom.IDOMVisitor
leave
public void leave(Element element)
- Specified by:
leave
in interface jp.gr.xml.relax.dom.IDOMVisitor
leave
public void leave(Attr attr)
- Specified by:
leave
in interface jp.gr.xml.relax.dom.IDOMVisitor
leave
public void leave(Text text)
- Specified by:
leave
in interface jp.gr.xml.relax.dom.IDOMVisitor
leave
public void leave(CDATASection cdata)
- Specified by:
leave
in interface jp.gr.xml.relax.dom.IDOMVisitor
leave
public void leave(EntityReference entityRef)
- Specified by:
leave
in interface jp.gr.xml.relax.dom.IDOMVisitor
leave
public void leave(Entity entity)
- Specified by:
leave
in interface jp.gr.xml.relax.dom.IDOMVisitor
leave
public void leave(ProcessingInstruction pi)
- Specified by:
leave
in interface jp.gr.xml.relax.dom.IDOMVisitor
leave
public void leave(Comment comment)
- Specified by:
leave
in interface jp.gr.xml.relax.dom.IDOMVisitor
leave
public void leave(Document doc)
- Specified by:
leave
in interface jp.gr.xml.relax.dom.IDOMVisitor
leave
public void leave(DocumentType doctype)
- Specified by:
leave
in interface jp.gr.xml.relax.dom.IDOMVisitor
leave
public void leave(DocumentFragment docfrag)
- Specified by:
leave
in interface jp.gr.xml.relax.dom.IDOMVisitor
leave
public void leave(Notation notation)
- Specified by:
leave
in interface jp.gr.xml.relax.dom.IDOMVisitor
leave
public void leave(Node node)
- Specified by:
leave
in interface jp.gr.xml.relax.dom.IDOMVisitor