Package org.deckfour.xes.in
Class XMxmlParser.MxmlHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.deckfour.xes.in.XMxmlParser.MxmlHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler,org.xml.sax.DTDHandler,org.xml.sax.EntityResolver,org.xml.sax.ErrorHandler
- Enclosing class:
- XMxmlParser
protected class XMxmlParser.MxmlHandler extends org.xml.sax.helpers.DefaultHandlerThis class implements 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
Fields Modifier and Type Field Description protected java.lang.StringBufferbufferBuffer for characters.protected XTracecurrentInstanceprotected XLogcurrentProcessprotected XEvententryprotected XAttributeLiteraleventTypeAttributeprotected XAttributeLiteralgenericAttributeprotected java.util.DatelastTimestampprotected java.util.ArrayList<XLog>logsprotected intnumUnorderedEntriesprotected XAttributeLiteraloriginatorAttributeprotected XAttributeLiteralsourceAttributeprotected booleansourceOpenprotected java.util.Datetimestamp
-
Constructor Summary
Constructors Modifier Constructor Description protectedMxmlHandler()Creates a new SAX2 handler instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] str, int offset, int len)voidendElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)java.util.List<XLog>getLogs()voidignorableWhitespace(char[] str, int offset, int len)voidstartElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
-
-
-
Field Detail
-
buffer
protected java.lang.StringBuffer buffer
Buffer for characters.
-
logs
protected java.util.ArrayList<XLog> logs
-
currentProcess
protected XLog currentProcess
-
currentInstance
protected XTrace currentInstance
-
entry
protected XEvent entry
-
sourceAttribute
protected XAttributeLiteral sourceAttribute
-
genericAttribute
protected XAttributeLiteral genericAttribute
-
eventTypeAttribute
protected XAttributeLiteral eventTypeAttribute
-
originatorAttribute
protected XAttributeLiteral originatorAttribute
-
sourceOpen
protected boolean sourceOpen
-
timestamp
protected java.util.Date timestamp
-
lastTimestamp
protected java.util.Date lastTimestamp
-
numUnorderedEntries
protected int numUnorderedEntries
-
-
Method Detail
-
getLogs
public java.util.List<XLog> getLogs()
-
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:
startElementin interfaceorg.xml.sax.ContentHandler- Overrides:
startElementin classorg.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:
endElementin interfaceorg.xml.sax.ContentHandler- Overrides:
endElementin classorg.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:
charactersin interfaceorg.xml.sax.ContentHandler- Overrides:
charactersin classorg.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:
ignorableWhitespacein interfaceorg.xml.sax.ContentHandler- Overrides:
ignorableWhitespacein classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
-