Class 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 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_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.