org.deckfour.xes.in
Class XMxmlParser

java.lang.Object
  extended by org.deckfour.xes.in.XParser
      extended by org.deckfour.xes.in.XMxmlParser
Direct Known Subclasses:
XMxmlGZIPParser

public class XMxmlParser
extends XParser

Parser for the MXML format for event logs (deprecated).

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

Nested Class Summary
protected  class XMxmlParser.MxmlHandler
          This class implements a SAX2 handler for sequential parsing of MXML documents.
 
Field Summary
static List<XEventClassifier> MXML_CLASSIFIERS
          Collection of standard classifiers used for MXML event logs.
static XEventClassifier MXML_EVENT_NAME_CLASSIFIER
          Event name classifier used for MXML event logs.
static XEventClassifier MXML_ORIGINATOR_CLASSIFIER
          Originator classifier used for MXML event logs.
static XEventClassifier MXML_STANDARD_CLASSIFIER
          Standard classifier used for MXML event logs.
protected  XsDateTimeConversion xsDateTimeConversion
           
 
Constructor Summary
XMxmlParser()
          Creates a new MXML parser instance, using the current standard factory for XES model building.
XMxmlParser(XFactory factory)
          Creates a new MXML parser instance.
 
Method Summary
 String author()
          Returns the name of the author of this parser.
 boolean canParse(File file)
          Checks whether this parser can handle the given file.
 String description()
          Returns a brief description of this parser.
 String name()
          Returns the name of this parser or, more specifically, the name of the format it can process.
 List<XLog> parse(InputStream is)
          Parses a set of logs from the given input stream, which is supposed to deliver an MXML serialization.
 
Methods inherited from class org.deckfour.xes.in.XParser
parse, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

xsDateTimeConversion

protected XsDateTimeConversion xsDateTimeConversion

MXML_STANDARD_CLASSIFIER

public static XEventClassifier MXML_STANDARD_CLASSIFIER
Standard classifier used for MXML event logs.


MXML_EVENT_NAME_CLASSIFIER

public static XEventClassifier MXML_EVENT_NAME_CLASSIFIER
Event name classifier used for MXML event logs.


MXML_ORIGINATOR_CLASSIFIER

public static XEventClassifier MXML_ORIGINATOR_CLASSIFIER
Originator classifier used for MXML event logs.


MXML_CLASSIFIERS

public static List<XEventClassifier> MXML_CLASSIFIERS
Collection of standard classifiers used for MXML event logs.

Constructor Detail

XMxmlParser

public XMxmlParser(XFactory factory)
Creates a new MXML parser instance.

Parameters:
factory - The factory to use for XES model building.

XMxmlParser

public XMxmlParser()
Creates a new MXML parser instance, using the current standard factory for XES model building.

Method Detail

author

public String author()
Description copied from class: XParser
Returns the name of the author of this parser.

Specified by:
author in class XParser

canParse

public boolean canParse(File file)
Description copied from class: XParser
Checks whether this parser can handle the given file.

Specified by:
canParse in class XParser
Parameters:
file - File to check against parser.
Returns:
Whether this parser can handle the given file.

description

public String description()
Description copied from class: XParser
Returns a brief description of this parser.

Specified by:
description in class XParser

name

public String name()
Description copied from class: XParser
Returns the name of this parser or, more specifically, the name of the format it can process.

Specified by:
name in class XParser

parse

public List<XLog> parse(InputStream is)
                 throws Exception
Parses a set of logs from the given input stream, which is supposed to deliver an MXML serialization.

Specified by:
parse in class XParser
Parameters:
is - Input stream, which is supposed to deliver an MXML serialization.
Returns:
The parsed list of logs.
Throws:
Exception