Package org.processmining.ocel.importers
Class JSONImporter
- java.lang.Object
-
- org.processmining.framework.abstractplugins.AbstractImportPlugin
-
- org.processmining.ocel.importers.JSONImporter
-
- All Implemented Interfaces:
org.processmining.framework.abstractplugins.ImportPlugin
public class JSONImporter extends org.processmining.framework.abstractplugins.AbstractImportPlugin
-
-
Constructor Summary
Constructors Constructor Description JSONImporter()JSONImporter(java.lang.String logPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OcelEventLogdoImport()OcelEventLogdoImportFromStream(java.io.InputStream is0)voidimportEvents(OcelEventLog eventLog, org.json.JSONObject events)protected OcelEventLogimportFromStream(org.processmining.framework.plugin.PluginContext context, java.io.InputStream input, java.lang.String filename, long fileSizeInBytes)This method is called by all plugin variants to do the actual importing.voidimportGlobalEvent(OcelEventLog eventLog, org.json.JSONObject globalEvent)voidimportGlobalLog(OcelEventLog eventLog, org.json.JSONObject globalLog)voidimportGlobalObject(OcelEventLog eventLog, org.json.JSONObject globalObject)voidimportObjects(OcelEventLog eventLog, org.json.JSONObject objects)
-
-
-
Method Detail
-
importFromStream
protected OcelEventLog importFromStream(org.processmining.framework.plugin.PluginContext context, java.io.InputStream input, java.lang.String filename, long fileSizeInBytes) throws java.lang.Exception
Description copied from class:org.processmining.framework.abstractplugins.AbstractImportPluginThis method is called by all plugin variants to do the actual importing.- Specified by:
importFromStreamin classorg.processmining.framework.abstractplugins.AbstractImportPlugin- Returns:
- Throws:
java.lang.Exception
-
doImport
public OcelEventLog doImport()
-
doImportFromStream
public OcelEventLog doImportFromStream(java.io.InputStream is0)
-
importGlobalEvent
public void importGlobalEvent(OcelEventLog eventLog, org.json.JSONObject globalEvent)
-
importGlobalObject
public void importGlobalObject(OcelEventLog eventLog, org.json.JSONObject globalObject)
-
importGlobalLog
public void importGlobalLog(OcelEventLog eventLog, org.json.JSONObject globalLog)
-
importEvents
public void importEvents(OcelEventLog eventLog, org.json.JSONObject events)
-
importObjects
public void importObjects(OcelEventLog eventLog, org.json.JSONObject objects)
-
-