edu.ucsb.nceas.metacat
Class AddMissedSubTreeSAXHandler

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byedu.ucsb.nceas.metacat.AddMissedSubTreeSAXHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class AddMissedSubTreeSAXHandler
extends org.xml.sax.helpers.DefaultHandler

A database aware Class implementing callback bethods for the SAX parser to call when processing the XML stream and generating events


Field Summary
static java.lang.String INLINE
           
 
Constructor Summary
AddMissedSubTreeSAXHandler(java.util.Hashtable myUnReadableTree)
          Construct an instance of the handler class In this constructor, user can specify the version need to upadate
 
Method Summary
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
          SAX Handler that is called at the end of each XML element
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
          SAX Handler that is called at the start of each XML element
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, 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

INLINE

public static final java.lang.String INLINE
See Also:
Constant Field Values
Constructor Detail

AddMissedSubTreeSAXHandler

public AddMissedSubTreeSAXHandler(java.util.Hashtable myUnReadableTree)
                           throws org.xml.sax.SAXException
Construct an instance of the handler class In this constructor, user can specify the version need to upadate

Parameters:
myUnReadableTree - the tree couldn't be read
Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
SAX Handler that is called at the start of each XML element

Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
SAX Handler that is called at the end of each XML element

Throws:
org.xml.sax.SAXException


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.