org.deckfour.xes.extension.std
Class XIdentityExtension

java.lang.Object
  extended by org.deckfour.xes.extension.XExtension
      extended by org.deckfour.xes.extension.std.XIdentityExtension
All Implemented Interfaces:
Serializable

public class XIdentityExtension
extends XExtension

Author:
Eric Verbeek (h.m.w.verbeek@tue.nl)
See Also:
Serialized Form

Field Summary
static XAttributeID ATTR_ID
          Identity attribute prototype
static URI EXTENSION_URI
          Unique URI of this extension.
static String KEY_ID
          Key for the identity attribute.
 
Fields inherited from class org.deckfour.xes.extension.XExtension
allAttributes, eventAttributes, logAttributes, metaAttributes, name, prefix, traceAttributes, uri
 
Method Summary
 void assignID(XAttributable element, XID id)
          Assigns any log data hierarchy element its id, as defined by this extension's id attribute.
 XID extractID(XAttributable element)
          Retrieves the id of a log data hierarchy element, if set by this extension's id attribute.
static XIdentityExtension instance()
          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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EXTENSION_URI

public static final URI EXTENSION_URI
Unique URI of this extension.


KEY_ID

public static final String KEY_ID
Key for the identity attribute.

See Also:
Constant Field Values

ATTR_ID

public static XAttributeID ATTR_ID
Identity attribute prototype

Method Detail

instance

public static XIdentityExtension instance()
Provides access to the singleton instance.

Returns:
Singleton extension.

extractID

public XID extractID(XAttributable element)
Retrieves the id of a log data hierarchy element, if set by this extension's id attribute.

Parameters:
element - Log hierarchy element to extract name from.
Returns:
The requested element id.

assignID

public void assignID(XAttributable element,
                     XID id)
Assigns any log data hierarchy element its id, as defined by this extension's id attribute.

Parameters:
element - Log hierarchy element to assign id to.
id - The id to be assigned.