Public Member Functions | Static Public Member Functions

org.exolab.castor.xml.util.DOMEventProducer Class Reference

Inheritance diagram for org.exolab.castor.xml.util.DOMEventProducer:
org.exolab.castor.xml.EventProducer

List of all members.

Public Member Functions

 DOMEventProducer ()
 DOMEventProducer (Node node)
void setDocumentHandler (DocumentHandler handler)
void setNode (Node node)
void start () throws org.xml.sax.SAXException

Static Public Member Functions

static void process (Document document, DocumentHandler handler) throws org.xml.sax.SAXException
static void process (Node node, DocumentHandler handler) throws org.xml.sax.SAXException

Detailed Description

A class for converting a DOM document to SAX events

Author:
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:48

Constructor & Destructor Documentation

org.exolab.castor.xml.util.DOMEventProducer.DOMEventProducer (  ) 

Creates a new DOMEventProducer

org.exolab.castor.xml.util.DOMEventProducer.DOMEventProducer ( Node  node  ) 

Creates a new DOMEventProducer for the given Node

Parameters:
node the node to create the DOMEventProducer for.

Member Function Documentation

static void org.exolab.castor.xml.util.DOMEventProducer.process ( Document  document,
DocumentHandler  handler 
) throws org.xml.sax.SAXException [static]

Walks the given DOM Document and converts it into it's corresponding SAX events

Parameters:
document,the Node to process into SAX events
handler the DocumentHandler to send events to

Referenced by org.exolab.castor.xml.util.DOMEventProducer.process(), and org.exolab.castor.xml.util.DOMEventProducer.start().

static void org.exolab.castor.xml.util.DOMEventProducer.process ( Node  node,
DocumentHandler  handler 
) throws org.xml.sax.SAXException [static]

Breaks down the given node into it's corresponding SAX events

Parameters:
node,the Node to process into SAX events
handler the DocumentHandler to send events to

References org.exolab.castor.xml.util.DOMEventProducer.process().

void org.exolab.castor.xml.util.DOMEventProducer.setDocumentHandler ( DocumentHandler  handler  ) 

Sets the DocumentHandler to use when firing events

Implements org.exolab.castor.xml.EventProducer.

void org.exolab.castor.xml.util.DOMEventProducer.setNode ( Node  node  ) 

Sets the node which is to be converted into SAX events

Parameters:
node the node which is to be converted into SAX events
void org.exolab.castor.xml.util.DOMEventProducer.start (  )  throws org.xml.sax.SAXException

Starts producing the events for the Node which is to be converted into SAX events

Implements org.exolab.castor.xml.EventProducer.

References org.exolab.castor.xml.util.DOMEventProducer.process().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties