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