opyenxes.data_out package¶
Submodules¶
opyenxes.data_out.XMxmlGZIPSerializer module¶
-
class
opyenxes.data_out.XMxmlGZIPSerializer.
XMxmlGZIPSerializer
[source]¶ Bases:
opyenxes.data_out.XMxmlSerializer.XMxmlSerializer
Compressed MXML serialization for XES data (legacy implementation). Note that this serialization may be lossy, you should preferrably use the XES.XML serialization for XES data.
opyenxes.data_out.XMxmlSerializer module¶
-
class
opyenxes.data_out.XMxmlSerializer.
XMxmlSerializer
[source]¶ Bases:
object
MXML serialization for XES data (legacy implementation). Note that this serialization may be lossy, you should preferrably use the XES.XML serialization for XES data.
-
add_attribute
(tag, attributes, key_prefix=None)[source]¶ Helper method, adds attributes to a tag.
Parameters: - tag (xml.etree.ElementTree.Element) – The tag to add attributes to.
- attributes (dict_values) – The attributes to add.
- key_prefix (str) – The Key prefix of attributes.
-
static
add_model_reference
(element, target)[source]¶ Helper method, adds all model references of an attributable to the given tag.
Parameters: - element (XAttributable) – Attributable element.
- target (xml.etree.ElementTree.Element) – Tag to add model references to.
-
opyenxes.data_out.XSerializerRegistry module¶
-
class
opyenxes.data_out.XSerializerRegistry.
XSerializerRegistry
[source]¶ Bases:
opyenxes.utils.XRegistry.XRegistry
System-wide registry for XES serializer implementations. Applications can use this registry as a convenience to provide an overview about serializeable formats, e.g., in the user interface. Any custom serializer implementation can be registered with this registry, so that it transparently becomes available also to any other using application.
Uses the singleton metaclass
opyenxes.data_out.XesXmlGZIPSerializer module¶
-
class
opyenxes.data_out.XesXmlGZIPSerializer.
XesXmlGZIPSerializer
[source]¶ Bases:
opyenxes.data_out.XesXmlSerializer.XesXmlSerializer
XES compressed XML serialization for the XES format.
opyenxes.data_out.XesXmlSerializer module¶
-
class
opyenxes.data_out.XesXmlSerializer.
XesXmlSerializer
[source]¶ Bases:
object
XES plain XML serialization for the XES format.
-
add_attributes
(tag, attributes)[source]¶ Helper method, adds the given collection of attributes to the given Tag.
Parameters: - tag (xml.etree.ElementTree.Element) – Tag to add attributes to.
- attributes (dict_values) – Collection with the attributes to add.
-
add_global_attributes
(parent, scope, attributes)[source]¶ Helper method for defining global attributes on a given scope.
Parameters: - parent (xml.etree.ElementTree.Element) – xml element to add a children element with the global attributes
- scope (str) – Name of the global attributes, can be ‘trace’ or ‘event’.
- attributes (dict_values) – Collection with the attributes to add.
Returns the name of this serialization’s author.
Returns: The author name. Return type: str
-