Class XesCsvSerializer

  • All Implemented Interfaces:
    org.deckfour.xes.out.XSerializer

    public final class XesCsvSerializer
    extends java.lang.Object
    implements org.deckfour.xes.out.XSerializer
    XES 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.String convertAttribute​(org.deckfour.xes.model.XAttribute attribute)
      Helper method, returns the String representation of the attribute
      java.lang.String getAuthor()
      Returns the name of this serialization's author.
      java.lang.String getDescription()
      Returns a brief description of this serialization.
      java.lang.String getName()
      Returns the human-readable name of this serialization.
      java.lang.String[] getSuffices()
      Returns an array of possible file suffices for this serialization.
      void serialize​(org.deckfour.xes.model.XLog log, java.io.OutputStream out)
      Serializes a given log to the given output stream.
      java.lang.String toString()
      toString() defaults to getName().
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • XesCsvSerializer

        public XesCsvSerializer​(java.lang.String dateFormatString)
      • XesCsvSerializer

        public XesCsvSerializer​(java.lang.String dateFormatString,
                                boolean sparse)
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: org.deckfour.xes.out.XSerializer
        Returns a brief description of this serialization.
        Specified by:
        getDescription in interface org.deckfour.xes.out.XSerializer
      • getName

        public java.lang.String getName()
        Description copied from interface: org.deckfour.xes.out.XSerializer
        Returns the human-readable name of this serialization.
        Specified by:
        getName in interface org.deckfour.xes.out.XSerializer
      • getAuthor

        public java.lang.String getAuthor()
        Description copied from interface: org.deckfour.xes.out.XSerializer
        Returns the name of this serialization's author.
        Specified by:
        getAuthor in interface org.deckfour.xes.out.XSerializer
      • getSuffices

        public java.lang.String[] getSuffices()
        Description copied from interface: org.deckfour.xes.out.XSerializer
        Returns an array of possible file suffices for this serialization.
        Specified by:
        getSuffices in interface org.deckfour.xes.out.XSerializer
      • serialize

        public void serialize​(org.deckfour.xes.model.XLog log,
                              java.io.OutputStream out)
                       throws java.io.IOException
        Description copied from interface: org.deckfour.xes.out.XSerializer
        Serializes a given log to the given output stream.
        Specified by:
        serialize in interface org.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:
        toString in class java.lang.Object