|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deckfour.xes.extension.XExtension org.deckfour.xes.extension.std.XConceptExtension
public class XConceptExtension
This extension provides naming for concepts in the event log type hierarchy. It defines two attributes:
Field Summary | |
---|---|
static XAttributeLiteral |
ATTR_INSTANCE
Instance attribute prototype |
static XAttributeLiteral |
ATTR_NAME
Name attribute prototype |
static URI |
EXTENSION_URI
Unique URI of this extension. |
static String |
KEY_INSTANCE
Key for the instance attribute. |
static String |
KEY_NAME
Key for the name attribute. |
Fields inherited from class org.deckfour.xes.extension.XExtension |
---|
allAttributes, eventAttributes, logAttributes, metaAttributes, name, prefix, traceAttributes, uri |
Method Summary | |
---|---|
void |
assignInstance(XEvent event,
String instance)
Assigns any event its activity instance identifier, as defined by this extension's instance attribute. |
void |
assignName(XAttributable element,
String name)
Assigns any log data hierarchy element its name, as defined by this extension's name attribute. |
String |
extractInstance(XEvent event)
Retrieves the activity instance identifier of an event, if set by this extension's instance attribute. |
String |
extractName(XAttributable element)
Retrieves the name of a log data hierarchy element, if set by this extension's name attribute. |
static XConceptExtension |
instance()
Provides access to the singleton instance. |
Methods inherited from class org.deckfour.xes.extension.XExtension |
---|
equals, getDefinedAttributes, getEventAttributes, getLogAttributes, getMetaAttributes, getName, getPrefix, getTraceAttributes, getUri, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final URI EXTENSION_URI
public static final String KEY_NAME
public static final String KEY_INSTANCE
public static XAttributeLiteral ATTR_NAME
public static XAttributeLiteral ATTR_INSTANCE
Method Detail |
---|
public static XConceptExtension instance()
public String extractName(XAttributable element)
element
- Log hierarchy element to extract name from.
public void assignName(XAttributable element, String name)
element
- Log hierarchy element to assign name to.name
- The name to be assigned.public String extractInstance(XEvent event)
event
- Event to extract instance from.
public void assignInstance(XEvent event, String instance)
event
- Event to assign activity
instance identifier to.name
- The activity instance identifier to be assigned.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |