org.oreodata.xml
Class RootOreoSAXHandler

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--org.oreodata.xml.HierarchicalHandler
              |
              +--org.oreodata.xml.RootOreoSAXHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class RootOreoSAXHandler
extends HierarchicalHandler

A root SAX handler implementation for an Oreo data file. The subelements are assumed to be either a SNAPSHOT or DATA_LOG


Field Summary
 
Fields inherited from class org.oreodata.xml.HierarchicalHandler
parentHandler, parser
 
Constructor Summary
RootOreoSAXHandler(HierarchicalHandler parent, OreoDataSource dataSource)
           
RootOreoSAXHandler(HierarchicalHandler parent, OreoDataSource dataSource, java.lang.String snapshotName, java.lang.String datalogName)
           
RootOreoSAXHandler(org.xml.sax.XMLReader parser, OreoDataSource dataSource)
           
RootOreoSAXHandler(org.xml.sax.XMLReader parser, OreoDataSource dataSource, java.lang.String snapshotName, java.lang.String datalogName)
           
 
Method Summary
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
 java.util.Date getTimeStamp()
           
 int getTransactionCount()
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.oreodata.xml.HierarchicalHandler
getDocumentLocator, parseTimeStampString, rethrowAsSAX, setDocumentLocator
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootOreoSAXHandler

public RootOreoSAXHandler(org.xml.sax.XMLReader parser,
                          OreoDataSource dataSource,
                          java.lang.String snapshotName,
                          java.lang.String datalogName)

RootOreoSAXHandler

public RootOreoSAXHandler(HierarchicalHandler parent,
                          OreoDataSource dataSource,
                          java.lang.String snapshotName,
                          java.lang.String datalogName)

RootOreoSAXHandler

public RootOreoSAXHandler(org.xml.sax.XMLReader parser,
                          OreoDataSource dataSource)

RootOreoSAXHandler

public RootOreoSAXHandler(HierarchicalHandler parent,
                          OreoDataSource dataSource)
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
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
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException

getTransactionCount

public int getTransactionCount()

getTimeStamp

public java.util.Date getTimeStamp()