Package org.deckfour.xes.extension.std
Class XIdentityExtension
- java.lang.Object
-
- org.deckfour.xes.extension.XExtension
-
- org.deckfour.xes.extension.std.XIdentityExtension
-
- All Implemented Interfaces:
java.io.Serializable
public class XIdentityExtension extends XExtension
- Author:
- Eric Verbeek (h.m.w.verbeek@tue.nl)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static XAttributeIDATTR_IDIdentity attribute prototypestatic java.net.URIEXTENSION_URIUnique URI of this extension.static java.lang.StringKEY_IDKey for the identity 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 voidassignID(XAttributable element, XID id)Assigns any log data hierarchy element its id, as defined by this extension's id attribute.XIDextractID(XAttributable element)Retrieves the id of a log data hierarchy element, if set by this extension's id attribute.static XIdentityExtensioninstance()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_ID
public static final java.lang.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.
-
-