org.oreodata.xml
Class HierarchicalHandler
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--org.oreodata.xml.HierarchicalHandler
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- Direct Known Subclasses:
- RootOreoSAXHandler, XMLDataLogHandler, XMLFieldHandler, XMLFieldHandler, XMLRecordHandler, XMLSnapshotHandler, XMLTransactionHandler
- public class HierarchicalHandler
- extends org.xml.sax.helpers.DefaultHandler
A base class for SAX handlers that potentially have a parent.
A child handler can do some work under some circumstances
and then revert control back to the parent.
- Author:
- Jonathan Revusky
Field Summary |
protected HierarchicalHandler |
parentHandler
This is so that a child handler can revert
control to the parent. |
protected org.xml.sax.XMLReader |
parser
The SAX parser object that we are getting
events from. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parser
protected org.xml.sax.XMLReader parser
- The SAX parser object that we are getting
events from.
parentHandler
protected HierarchicalHandler parentHandler
- This is so that a child handler can revert
control to the parent.
HierarchicalHandler
public HierarchicalHandler(org.xml.sax.XMLReader parser)
- Use this constructor when you are creating
the root handler (i.e. that has no parent)
HierarchicalHandler
public HierarchicalHandler(HierarchicalHandler parentHandler)
- Use this constructor to create a child handler
parseTimeStampString
protected java.util.Date parseTimeStampString(java.lang.String ts)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
- Specified by:
setDocumentLocator
in interface org.xml.sax.ContentHandler
- Overrides:
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
getDocumentLocator
protected org.xml.sax.Locator getDocumentLocator()
- Returns:
- the Locator object, if there is one.
rethrowAsSAX
protected void rethrowAsSAX(java.lang.Exception e)
throws org.xml.sax.SAXException
org.xml.sax.SAXException