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

Constructor Summary
SAXEventGenerator(Node node)
           
 
Method Summary
 void emulateEndDocument()
           
 void emulateStartDocument()
           
 boolean enter(Attr attr)
           
 boolean enter(CDATASection cdata)
           
 boolean enter(Comment comment)
           
 boolean enter(Document doc)
           
 boolean enter(DocumentFragment docfrag)
           
 boolean enter(DocumentType doctype)
           
 boolean enter(Element element)
           
 boolean enter(Entity entity)
           
 boolean enter(EntityReference entityRef)
           
 boolean enter(Node node)
           
 boolean enter(Notation notation)
           
 boolean enter(ProcessingInstruction pi)
           
 boolean enter(Text text)
           
 void leave(Attr attr)
           
 void leave(CDATASection cdata)
           
 void leave(Comment comment)
           
 void leave(Document doc)
           
 void leave(DocumentFragment docfrag)
           
 void leave(DocumentType doctype)
           
 void leave(Element element)
           
 void leave(Entity entity)
           
 void leave(EntityReference entityRef)
           
 void leave(Node node)
           
 void leave(Notation notation)
           
 void leave(ProcessingInstruction pi)
           
 void leave(Text text)
           
 void makeEvent()
           
 void makeEvent(ContentHandler handler)
           
 void setContentHandler(ContentHandler content)
           
 void setDeclHandler(DeclHandler decl)
           
 void setDocumentEmulation(boolean emulate)
           
 void setDTDHandler(DTDHandler dtd)
           
 void setErrorHandler(ErrorHandler error)
           
 void setLexicalHandler(LexicalHandler lexical)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXEventGenerator

public SAXEventGenerator(Node node)
Method Detail

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