Package org.processmining.log.csvexport
Class XesCsvSerializer
- java.lang.Object
-
- org.processmining.log.csvexport.XesCsvSerializer
-
- All Implemented Interfaces:
org.deckfour.xes.out.XSerializer
public final class XesCsvSerializer extends java.lang.Object implements org.deckfour.xes.out.XSerializerXES serialization to CSV including all trace/event attributes. The names of trace attributes are prefixed with "trace_", those of event attributes are prefixed with "event_".- Author:
- F. Mannhardt
-
-
Constructor Summary
Constructors Constructor Description XesCsvSerializer(java.lang.String dateFormatString)XesCsvSerializer(java.lang.String dateFormatString, boolean sparse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringconvertAttribute(org.deckfour.xes.model.XAttribute attribute)Helper method, returns the String representation of the attributejava.lang.StringgetAuthor()Returns the name of this serialization's author.java.lang.StringgetDescription()Returns a brief description of this serialization.java.lang.StringgetName()Returns the human-readable name of this serialization.java.lang.String[]getSuffices()Returns an array of possible file suffices for this serialization.voidserialize(org.deckfour.xes.model.XLog log, java.io.OutputStream out)Serializes a given log to the given output stream.java.lang.StringtoString()toString() defaults to getName().
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Description copied from interface:org.deckfour.xes.out.XSerializerReturns a brief description of this serialization.- Specified by:
getDescriptionin interfaceorg.deckfour.xes.out.XSerializer
-
getName
public java.lang.String getName()
Description copied from interface:org.deckfour.xes.out.XSerializerReturns the human-readable name of this serialization.- Specified by:
getNamein interfaceorg.deckfour.xes.out.XSerializer
-
getAuthor
public java.lang.String getAuthor()
Description copied from interface:org.deckfour.xes.out.XSerializerReturns the name of this serialization's author.- Specified by:
getAuthorin interfaceorg.deckfour.xes.out.XSerializer
-
getSuffices
public java.lang.String[] getSuffices()
Description copied from interface:org.deckfour.xes.out.XSerializerReturns an array of possible file suffices for this serialization.- Specified by:
getSufficesin interfaceorg.deckfour.xes.out.XSerializer
-
serialize
public void serialize(org.deckfour.xes.model.XLog log, java.io.OutputStream out) throws java.io.IOExceptionDescription copied from interface:org.deckfour.xes.out.XSerializerSerializes a given log to the given output stream.- Specified by:
serializein interfaceorg.deckfour.xes.out.XSerializer- Parameters:
log- Log to be serialized.out- OutputStream for serialization.- Throws:
java.io.IOException
-
convertAttribute
protected java.lang.String convertAttribute(org.deckfour.xes.model.XAttribute attribute)
Helper method, returns the String representation of the attribute- Parameters:
attribute- The attributes to convert
-
toString
public java.lang.String toString()
toString() defaults to getName().- Overrides:
toStringin classjava.lang.Object
-
-