org.processmining.framework.log.rfb
Class LogData.MxmlHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.processmining.framework.log.rfb.LogData.MxmlHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
Enclosing class:
LogData

protected class LogData.MxmlHandler
extends org.xml.sax.helpers.DefaultHandler

This class iplements a SAX2 handler for sequential parsing of MXML documents. It is geared towards directly constructing a log reader's data structures, of which it is a protected class.

Author:
Christian W. Guenther (christian at deckfour dot org)

Field Summary
protected  java.lang.String attributeName
           
protected  java.lang.StringBuffer buffer
          Buffer for characters.
protected  ProcessInstanceImpl currentInstance
           
protected  ProcessImpl currentProcess
           
protected  AuditTrailEntry entry
           
protected  LogFile file
          Log file, which is parsed to extract the parent container's data.
protected  java.util.Date lastTimestamp
           
protected  int numUnorderedEntries
           
protected  LogData parent
          Parent log data container, which is used for storing data.
protected  boolean sourceOpen
           
protected  java.lang.String unknownType
           
 
Constructor Summary
protected LogData.MxmlHandler(LogData aData, LogFile aFile)
          Creates a new SAX2 handler instance.
 
Method Summary
 void characters(char[] str, int offset, int len)
           
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
 void ignorableWhitespace(char[] str, int offset, int len)
           
 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
endDocument, endPrefixMapping, error, fatalError, 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

parent

protected LogData parent
Parent log data container, which is used for storing data.


file

protected LogFile file
Log file, which is parsed to extract the parent container's data.


buffer

protected java.lang.StringBuffer buffer
Buffer for characters.


entry

protected AuditTrailEntry entry

unknownType

protected java.lang.String unknownType

attributeName

protected java.lang.String attributeName

sourceOpen

protected boolean sourceOpen

currentProcess

protected ProcessImpl currentProcess

currentInstance

protected ProcessInstanceImpl currentInstance

lastTimestamp

protected java.util.Date lastTimestamp

numUnorderedEntries

protected int numUnorderedEntries
Constructor Detail

LogData.MxmlHandler

protected LogData.MxmlHandler(LogData aData,
                              LogFile aFile)
Creates a new SAX2 handler instance.

Parameters:
aData - Parent container to store data to.
aFile - LogFile used for parsing.
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

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
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] str,
                       int offset,
                       int len)
                throws org.xml.sax.SAXException
Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

ignorableWhitespace

public void ignorableWhitespace(char[] str,
                                int offset,
                                int len)
                         throws org.xml.sax.SAXException
Specified by:
ignorableWhitespace in interface org.xml.sax.ContentHandler
Overrides:
ignorableWhitespace in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException