Package org.deckfour.xes.extension.std
Class XSemanticExtension
- java.lang.Object
-
- org.deckfour.xes.extension.XExtension
-
- org.deckfour.xes.extension.std.XSemanticExtension
-
- All Implemented Interfaces:
java.io.Serializable
public class XSemanticExtension extends XExtension
This extension adds semantic attributes to event log objects. These semantic attributes reference concepts, which are represented by event log objects, as unique URIs.- Author:
- Christian W. Guenther (christian@deckfour.org)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static XAttributeLiteralATTR_MODELREFERENCEModel references attribute prototype.static java.net.URIEXTENSION_URIUnique URI of this extension.static java.lang.StringKEY_MODELREFERENCEKey for the model references 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 voidassignModelReferences(XAttributable target, java.util.List<java.lang.String> modelReferences)Assigns to a log element (i.e., archive, log, trace, event, or attribute) a list of model references.voidassignModelReferenceUris(XAttributable target, java.util.List<java.net.URI> modelReferenceURIs)Assigns to a log element (i.e., archive, log, trace, event, or attribute) a list of model references.java.util.List<java.lang.String>extractModelReferences(XAttributable target)Retrieves the list of model references which describe a log element (archive, log, trace, event, attribute).java.util.List<java.net.URI>extractModelReferenceURIs(XAttributable target)Retrieves the list of model reference URIs which describe a log element (archive, log, trace, event, attribute).static XSemanticExtensioninstance()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_MODELREFERENCE
public static final java.lang.String KEY_MODELREFERENCE
Key for the model references attribute.- See Also:
- Constant Field Values
-
ATTR_MODELREFERENCE
public static XAttributeLiteral ATTR_MODELREFERENCE
Model references attribute prototype.
-
-
Method Detail
-
instance
public static XSemanticExtension instance()
Provides access to the singleton instance.- Returns:
- Singleton extension.
-
extractModelReferences
public java.util.List<java.lang.String> extractModelReferences(XAttributable target)
Retrieves the list of model references which describe a log element (archive, log, trace, event, attribute).- Parameters:
target- Any log element (i.e., archive, log, trace, event, or attribute) to be queried.- Returns:
- The list of model references, as a list of strings, referred to by this element.
-
extractModelReferenceURIs
public java.util.List<java.net.URI> extractModelReferenceURIs(XAttributable target)
Retrieves the list of model reference URIs which describe a log element (archive, log, trace, event, attribute).- Parameters:
target- Any log element (i.e., archive, log, trace, event, or attribute) to be queried.- Returns:
- The list of model references, as a list of URIs, referred to by this element.
-
assignModelReferences
public void assignModelReferences(XAttributable target, java.util.List<java.lang.String> modelReferences)
Assigns to a log element (i.e., archive, log, trace, event, or attribute) a list of model references.- Parameters:
target- Any log element (i.e., archive, log, trace, event, or attribute) to be assigned references to.modelReferences- The list of model references, as a list of strings, referred to by this element.
-
assignModelReferenceUris
public void assignModelReferenceUris(XAttributable target, java.util.List<java.net.URI> modelReferenceURIs)
Assigns to a log element (i.e., archive, log, trace, event, or attribute) a list of model references.- Parameters:
target- Any log element (i.e., archive, log, trace, event, or attribute) to be assigned references to.modelReferenceURIs- The list of model references, as a list of URIs, referred to by this element.
-
-