public class XocXmlParser extends XParser
Modifier and Type | Class and Description |
---|---|
protected class |
XocXmlParser.XocXmlHandler
SAX handler class for XOC in XML representation.
|
Modifier and Type | Field and Description |
---|---|
static XAttribute |
attribute |
static XOCEvent |
event |
protected XFactory |
factory
XES model factory used to build model.
|
static XOCObject |
object |
static org.processmining.framework.util.Pair<java.lang.String,java.lang.String> |
objectAttribute |
static java.util.List<XOCObject> |
objectList |
static XOCObjectModel |
objectModel |
static XOCORelation |
objectRelation |
static java.util.List<XOCORelation> |
objectRelationList |
protected static java.net.URI |
XES_URI
Unique URI for the format definition.
|
protected org.deckfour.xes.util.XsDateTimeConversion |
xsDateTimeConversion |
Constructor and Description |
---|
XocXmlParser()
Creates a new parser instance, using the currently-set standard factory
for building the model.
|
XocXmlParser(XFactory factory)
Creates a new parser instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalInformationForObjectRelation(XOCORelation objectRelation)
add the additional information (attributes) for one object relation and its related two objects
|
java.lang.String |
author()
Returns the name of the author of this parser.
|
boolean |
canParse(java.io.File file)
Checks whether this parser can handle the given file.
|
java.lang.String |
description()
Returns a brief description of this parser.
|
XOCLog |
getLog() |
static void |
main(java.lang.String[] str) |
java.lang.String |
name()
Returns the name of this parser or, more specifically,
the name of the format it can process.
|
java.util.List<XOCLog> |
parse(java.io.InputStream is)
Parses a log from the given input stream, which is supposed to deliver an
XOC log in XML representation.
|
void |
parseObjectInTotalVariant(XOCObject object,
int eventOrderNum)
parse (i.e., parse operation) an object in the object model in the total log variant;
(1)create or get the object
(2)create or update the lifecycle period
(3)create new attribute versions
note that the end event is not null
|
void |
parseObjectInUpdateVariant(XOCObject object,
int eventOrderNum)
parse (i.e., parse operation) an object in the object model in the update log variant;
(1)create or get the object
(2)create or update the lifecycle period
(3)create new attribute versions
note that the end event could be null
|
void |
parseObjectRelationInTotalVariant(XOCORelation objectRelation,
int eventOrderNum)
parse (i.e., parse operation) an object relation in the object model in the total log variant;
(1)create or get the object relation
(2)create or update the lifecycle period
(3)create new attribute versions or do nothing
note that the end event is not null
|
void |
parseObjectRelationInUpdateVariant(XOCORelation objectRelation,
int eventOrderNum)
parse (i.e., parse operation) an object in the object model in the update log variant;
(1)create or get the object
(2)create or update the lifecycle period
(3)create new attribute versions
note that the end event could be null
|
endsWithIgnoreCase, parse, toString
protected org.deckfour.xes.util.XsDateTimeConversion xsDateTimeConversion
public static XOCEvent event
public static XOCObjectModel objectModel
public static org.processmining.framework.util.Pair<java.lang.String,java.lang.String> objectAttribute
public static XAttribute attribute
public static java.util.List<XOCObject> objectList
public static java.util.List<XOCORelation> objectRelationList
public static XOCObject object
public static XOCORelation objectRelation
protected static final java.net.URI XES_URI
protected XFactory factory
public XocXmlParser(XFactory factory)
factory
- The XES model factory instance used to build the model from
the serialization.public XocXmlParser()
public java.lang.String author()
XParser
public boolean canParse(java.io.File file)
XParser
public java.lang.String description()
XParser
description
in class XParser
public java.lang.String name()
XParser
public XOCLog getLog()
public java.util.List<XOCLog> parse(java.io.InputStream is) throws java.lang.Exception
public void parseObjectInTotalVariant(XOCObject object, int eventOrderNum)
object:
- indicates the object which is parsingeventOrderNum:
- indicates the event order number of the object model where the object belongs topublic void parseObjectInUpdateVariant(XOCObject object, int eventOrderNum)
object:
- indicates the object which is parsingeventOrderNum:
- indicates the event order number of the object model where the object belongs topublic void parseObjectRelationInTotalVariant(XOCORelation objectRelation, int eventOrderNum)
relationId
- eventOrderNum
- public void parseObjectRelationInUpdateVariant(XOCORelation objectRelation, int eventOrderNum)
objectId
- eventOrderNum
- public void addAdditionalInformationForObjectRelation(XOCORelation objectRelation)
objectRelation
- public static void main(java.lang.String[] str) throws java.lang.Exception
java.lang.Exception