Package org.deckfour.xes.extension.std
Class XConceptExtension
- java.lang.Object
-
- org.deckfour.xes.extension.XExtension
-
- org.deckfour.xes.extension.std.XConceptExtension
-
- All Implemented Interfaces:
java.io.Serializable
public class XConceptExtension extends XExtension
This extension provides naming for concepts in the event log type hierarchy. It defines two attributes:- concept:name: Name (of any type hierarchy element)
- concept:instance: Instance identifier (of events)
- Author:
- Christian W. Guenther (christian@deckfour.org)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static XAttributeLiteralATTR_INSTANCEInstance attribute prototypestatic XAttributeLiteralATTR_NAMEName attribute prototypestatic java.net.URIEXTENSION_URIUnique URI of this extension.static java.lang.StringKEY_INSTANCEKey for the instance attribute.static java.lang.StringKEY_NAMEKey for the name attribute.-
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 voidassignInstance(XEvent event, java.lang.String instance)Assigns any event its activity instance identifier, as defined by this extension's instance attribute.voidassignName(XAttributable element, java.lang.String name)Assigns any log data hierarchy element its name, as defined by this extension's name attribute.java.lang.StringextractInstance(XEvent event)Retrieves the activity instance identifier of an event, if set by this extension's instance attribute.java.lang.StringextractName(XAttributable element)Retrieves the name of a log data hierarchy element, if set by this extension's name attribute.static XConceptExtensioninstance()Provides access to the singleton instance.-
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.
-
KEY_NAME
public static final java.lang.String KEY_NAME
Key for the name attribute.- See Also:
- Constant Field Values
-
KEY_INSTANCE
public static final java.lang.String KEY_INSTANCE
Key for the instance attribute.- See Also:
- Constant Field Values
-
ATTR_NAME
public static XAttributeLiteral ATTR_NAME
Name attribute prototype
-
ATTR_INSTANCE
public static XAttributeLiteral ATTR_INSTANCE
Instance attribute prototype
-
-
Method Detail
-
instance
public static XConceptExtension instance()
Provides access to the singleton instance.- Returns:
- Singleton extension.
-
extractName
public java.lang.String extractName(XAttributable element)
Retrieves the name of a log data hierarchy element, if set by this extension's name attribute.- Parameters:
element- Log hierarchy element to extract name from.- Returns:
- The requested element name.
-
assignName
public void assignName(XAttributable element, java.lang.String name)
Assigns any log data hierarchy element its name, as defined by this extension's name attribute.- Parameters:
element- Log hierarchy element to assign name to.name- The name to be assigned.
-
extractInstance
public java.lang.String extractInstance(XEvent event)
Retrieves the activity instance identifier of an event, if set by this extension's instance attribute.- Parameters:
event- Event to extract instance from.- Returns:
- The requested activity instance identifier.
-
assignInstance
public void assignInstance(XEvent event, java.lang.String instance)
Assigns any event its activity instance identifier, as defined by this extension's instance attribute.- Parameters:
event- Event to assign activity instance identifier to.name- The activity instance identifier to be assigned.
-
-