org.kabeja.xml
Class AbstractSAXGenerator

java.lang.Object
  extended by org.kabeja.processing.AbstractConfigurable
      extended by org.kabeja.xml.AbstractSAXGenerator
All Implemented Interfaces:
Configurable, SAXGenerator

public abstract class AbstractSAXGenerator
extends AbstractConfigurable
implements SAXGenerator


Field Summary
protected  java.util.Map context
           
protected  DXFDocument doc
           
protected  org.xml.sax.ContentHandler handler
           
 
Fields inherited from class org.kabeja.processing.AbstractConfigurable
properties
 
Constructor Summary
AbstractSAXGenerator()
           
 
Method Summary
protected abstract  void generate()
          This method has to be overwritten by any subclass.
 void generate(DXFDocument doc, org.xml.sax.ContentHandler handler, java.util.Map context)
           
 
Methods inherited from class org.kabeja.processing.AbstractConfigurable
getProperties, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kabeja.processing.Configurable
getProperties, setProperties
 

Field Detail

doc

protected DXFDocument doc

handler

protected org.xml.sax.ContentHandler handler

context

protected java.util.Map context
Constructor Detail

AbstractSAXGenerator

public AbstractSAXGenerator()
Method Detail

generate

public void generate(DXFDocument doc,
                     org.xml.sax.ContentHandler handler,
                     java.util.Map context)
              throws org.xml.sax.SAXException
Specified by:
generate in interface SAXGenerator
Throws:
org.xml.sax.SAXException

generate

protected abstract void generate()
                          throws org.xml.sax.SAXException
This method has to be overwritten by any subclass. At this point the XMLGenerator is setup (properties, ContentHandler and DXFDocument) and should emit the XML content to the ContentHandler.

Throws:
org.xml.sax.SAXException