org.deckfour.xes.in
Class XesXmlParser.XesXmlHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.deckfour.xes.in.XesXmlParser.XesXmlHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Enclosing class:
XesXmlParser

protected class XesXmlParser.XesXmlHandler
extends DefaultHandler

SAX handler class for XES in XML representation.

Author:
Christian W. Guenther (christian@deckfour.org)

Field Summary
protected  Stack<XAttributable> attributableStack
          Buffer for attributables.
protected  Stack<XAttribute> attributeStack
          Buffer for attributes.
protected  XEvent event
          Buffer event.
protected  HashSet<XExtension> extensions
          Buffer for extensions.
protected  List<XAttribute> globals
          Buffer for globals.
protected  XLog log
          Buffer log.
protected  XTrace trace
          Buffer trace.
 
Constructor Summary
XesXmlParser.XesXmlHandler()
          Creates a new handler instance.
 
Method Summary
 void endElement(String uri, String localName, String qName)
           
 XLog getLog()
          Retrieves the parsed log.
 void startElement(String uri, String localName, String qName, Attributes attributes)
           
 
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

log

protected XLog log
Buffer log.


trace

protected XTrace trace
Buffer trace.


event

protected XEvent event
Buffer event.


attributeStack

protected Stack<XAttribute> attributeStack
Buffer for attributes.


attributableStack

protected Stack<XAttributable> attributableStack
Buffer for attributables.


extensions

protected HashSet<XExtension> extensions
Buffer for extensions.


globals

protected List<XAttribute> globals
Buffer for globals.

Constructor Detail

XesXmlParser.XesXmlHandler

public XesXmlParser.XesXmlHandler()
Creates a new handler instance.

Method Detail

getLog

public XLog getLog()
Retrieves the parsed log.

Returns:
The parsed log.

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes attributes)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException