org.logicalcobwebs.dbscript
Class ScriptBuilder

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.logicalcobwebs.dbscript.ScriptBuilder
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

 class ScriptBuilder
extends org.xml.sax.helpers.DefaultHandler

Parser to get Script from XML source

Since:
Proxool 0.5
Version:
$Revision: 1.8 $, $Date: 2003/03/03 11:12:03 $
Author:
Bill Horsman (bill@logicalcobwebs.co.uk), $Author: billhorsman $ (current maintainer)

Field Summary
private static Log LOG
           
private  Script script
           
 
Constructor Summary
ScriptBuilder()
           
 
Method Summary
protected  Script getScript()
          Get the script we just built.
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Log LOG

script

private Script script
Constructor Detail

ScriptBuilder

ScriptBuilder()
Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException
See Also:
DefaultHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)

getScript

protected Script getScript()
Get the script we just built. Call *after* parsing

Returns:
the new script