public abstract class AbstractXBaseExtensionImpl
extends org.deckfour.xes.extension.XExtension
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Double |
CONTINUOUS_NOT_DEFINED_VALUE |
static java.lang.Long |
DISCRETE_NOT_DEFINED_VALUE |
static java.lang.String |
LITERAL_NOT_DEFINED_VALUE |
static java.lang.String |
MULTIPLE_VALUE |
static java.util.Date |
TIMESTAMP_NOT_DEFINED_VALUE |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractXBaseExtensionImpl(java.lang.String name,
java.lang.String prefix,
java.net.URI uri)
Creates a new instance (hidden constructor, only to be used by
subclasses).
|
| Modifier and Type | Method and Description |
|---|---|
protected org.deckfour.xes.model.XAttribute |
assignAttribute(org.deckfour.xes.model.XAttributable element,
java.lang.String key,
java.lang.Object value,
boolean usePrefix)
Assigns any attribute value if it is defined by this extension
|
protected org.deckfour.xes.model.XAttribute |
assignAttribute(org.deckfour.xes.model.XAttributable element,
org.deckfour.xes.model.XAttribute baseAttribute) |
protected org.deckfour.xes.model.XAttribute |
assignAttribute(org.deckfour.xes.model.XAttributable element,
org.deckfour.xes.model.XAttribute baseAttribute,
java.lang.Object value) |
protected org.deckfour.xes.model.XAttribute |
extractAttribute(org.deckfour.xes.model.XAttributable element,
java.lang.String key)
Retrieves the specified attribute from a log data hierarchy element, if
the attribute is defined for the element
|
protected org.deckfour.xes.model.XAttribute |
extractAttribute(org.deckfour.xes.model.XAttributable element,
java.lang.String key,
boolean usePrefix)
Retrieves the specified attribute from a log data hierarchy element, if
the attribute is defined for the element
|
java.util.HashSet<org.deckfour.xes.model.XAttribute> |
extractAttributes(org.deckfour.xes.model.XAttributable element)
Retrieves all attributes defined by this extension from a log data
hierarchy element
|
protected java.lang.Object |
extractAttributeValue(org.deckfour.xes.model.XAttributable element,
java.lang.String key)
Retrieves the attribute value of a log data hierarchy element, if the
attribute is defined for the element
|
protected java.lang.Object |
extractAttributeValue(org.deckfour.xes.model.XAttributable element,
java.lang.String key,
boolean usePrefix)
Retrieves the attribute value of a log data hierarchy element, if the
attribute is defined for the element
|
protected org.deckfour.xes.model.XAttribute |
getAttributeByKey(java.lang.String key)
Retrieves the attribute definition, if it is defined by this extension
|
public static final java.lang.Long DISCRETE_NOT_DEFINED_VALUE
public static final java.lang.Double CONTINUOUS_NOT_DEFINED_VALUE
public static final java.lang.String LITERAL_NOT_DEFINED_VALUE
public static final java.util.Date TIMESTAMP_NOT_DEFINED_VALUE
public static final java.lang.String MULTIPLE_VALUE
protected AbstractXBaseExtensionImpl(java.lang.String name,
java.lang.String prefix,
java.net.URI uri)
protected org.deckfour.xes.model.XAttribute getAttributeByKey(java.lang.String key)
key - Key of the attribute to be retrieved (preferably without
prefix)public java.util.HashSet<org.deckfour.xes.model.XAttribute> extractAttributes(org.deckfour.xes.model.XAttributable element)
element - Log hierarchy element to extract the attribute from.protected org.deckfour.xes.model.XAttribute extractAttribute(org.deckfour.xes.model.XAttributable element,
java.lang.String key,
boolean usePrefix)
element - Log hierarchy element to extract the attribute from.key - The key of the attribute to extract (without prefix).usePrefix - Specifies if the prefix should be placed in front of the
search key.protected org.deckfour.xes.model.XAttribute extractAttribute(org.deckfour.xes.model.XAttributable element,
java.lang.String key)
element - Log hierarchy element to extract the attribute from.key - The key of the attribute to extract (with prefix).protected java.lang.Object extractAttributeValue(org.deckfour.xes.model.XAttributable element,
java.lang.String key)
element - Log hierarchy element to extract the attribute value from.key - The key of the attribute to extract (with prefix).protected java.lang.Object extractAttributeValue(org.deckfour.xes.model.XAttributable element,
java.lang.String key,
boolean usePrefix)
element - Log hierarchy element to extract the attribute value from.key - The key of the attribute to extract (without prefix).usePrefix - Specifies if the prefix should be placed in front of the
search key.protected org.deckfour.xes.model.XAttribute assignAttribute(org.deckfour.xes.model.XAttributable element,
java.lang.String key,
java.lang.Object value,
boolean usePrefix)
throws javax.naming.directory.NoSuchAttributeException
element - Element to assign the attribute to.key - Key of the attribute to be assignedvalue - Value to be assignedusePrefix - Specifies if the prefix should be placed in front of the key.javax.naming.directory.NoSuchAttributeException - Exception is thrown if attribute is not defined by this
extensionprotected org.deckfour.xes.model.XAttribute assignAttribute(org.deckfour.xes.model.XAttributable element,
org.deckfour.xes.model.XAttribute baseAttribute,
java.lang.Object value)
protected org.deckfour.xes.model.XAttribute assignAttribute(org.deckfour.xes.model.XAttributable element,
org.deckfour.xes.model.XAttribute baseAttribute)