Package org.deckfour.xes.extension.std
Class XMicroExtension
- java.lang.Object
-
- org.deckfour.xes.extension.XExtension
-
- org.deckfour.xes.extension.std.XMicroExtension
-
- All Implemented Interfaces:
java.io.Serializable
public class XMicroExtension extends XExtension
- Author:
- Eric Verbeek (h.m.w.verbeek@tue.nl)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static XAttributeDiscreteATTR_LENGTHGlobal prototype place holders.static XAttributeDiscreteATTR_LEVELstatic XAttributeIDATTR_PIDstatic java.net.URIEXTENSION_URIUnique URI of this extension.static java.lang.StringKEY_LENGTHGlobal key place holders.static java.lang.StringKEY_LEVELstatic java.lang.StringKEY_PIDstatic java.lang.StringPREFIXPrefix for this extension.-
Fields inherited from class org.deckfour.xes.extension.XExtension
allAttributes, eventAttributes, logAttributes, metaAttributes, name, prefix, traceAttributes, uri
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassignLength(XEvent event, long length)voidassignLevel(XEvent event, long level)voidassignParentId(XEvent event, XID parentId)longextractLength(XEvent event)longextractLevel(XEvent event)XIDextractParentId(XEvent event)static XMicroExtensioninstance()Provides access to the singleton instance.voidremoveLength(XAttributable event)voidremoveLevel(XAttributable event)voidremoveParentId(XAttributable event)-
Methods inherited from class org.deckfour.xes.extension.XExtension
accept, equals, getDefinedAttributes, getEventAttributes, getLogAttributes, getMetaAttributes, getName, getPrefix, getTraceAttributes, getUri, hashCode, toString
-
-
-
-
Field Detail
-
EXTENSION_URI
public static final java.net.URI EXTENSION_URI
Unique URI of this extension.
-
PREFIX
public static final java.lang.String PREFIX
Prefix for this extension.- See Also:
- Constant Field Values
-
KEY_LENGTH
public static final java.lang.String KEY_LENGTH
Global key place holders. Can be initialized immediately.
-
KEY_LEVEL
public static final java.lang.String KEY_LEVEL
-
KEY_PID
public static final java.lang.String KEY_PID
-
ATTR_LENGTH
public static XAttributeDiscrete ATTR_LENGTH
Global prototype place holders. Need to be initialized by constructor.
-
ATTR_LEVEL
public static XAttributeDiscrete ATTR_LEVEL
-
ATTR_PID
public static XAttributeID ATTR_PID
-
-
Method Detail
-
instance
public static XMicroExtension instance()
Provides access to the singleton instance.- Returns:
- Singleton extension.
-
extractLength
public long extractLength(XEvent event)
-
assignLength
public void assignLength(XEvent event, long length)
-
removeLength
public void removeLength(XAttributable event)
-
extractLevel
public long extractLevel(XEvent event)
-
assignLevel
public void assignLevel(XEvent event, long level)
-
removeLevel
public void removeLevel(XAttributable event)
-
removeParentId
public void removeParentId(XAttributable event)
-
-