Package org.deckfour.xes.out
Class XMxmlSerializer
- java.lang.Object
-
- org.deckfour.xes.out.XMxmlSerializer
-
- All Implemented Interfaces:
XSerializer
- Direct Known Subclasses:
XMxmlGZIPSerializer
public class XMxmlSerializer extends java.lang.Object implements XSerializer
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.- Author:
- Christian W. Guenther (christian@deckfour.org)
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.HashSet<java.lang.String>knownTypesStores known event types internally for MXML.protected XsDateTimeConversionxsDateTimeConversion
-
Constructor Summary
Constructors Constructor Description XMxmlSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAttributes(org.deckfour.spex.SXTag dataNode, java.lang.String keyPrefix, java.util.Collection<XAttribute> attributes)Helper method, adds attributes to a tag.protected voidaddAttributes(org.deckfour.spex.SXTag node, java.util.Collection<XAttribute> attributes)Helper method, adds attributes to a tag.protected voidaddModelReference(XAttributable object, org.deckfour.spex.SXTag target)Helper method, adds all model references of an attributable to the given tag.java.lang.StringgetAuthor()Returns the name of this serialization's author.java.lang.StringgetDescription()Returns a brief description of this serialization.java.lang.StringgetName()Returns the human-readable name of this serialization.java.lang.String[]getSuffices()Returns an array of possible file suffices for this serialization.voidserialize(XLog log, java.io.OutputStream out)Serializes a given log to the given output stream.java.lang.StringtoString()toString() defaults to getName().
-
-
-
Field Detail
-
knownTypes
protected java.util.HashSet<java.lang.String> knownTypes
Stores known event types internally for MXML.
-
xsDateTimeConversion
protected XsDateTimeConversion xsDateTimeConversion
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Description copied from interface:XSerializerReturns a brief description of this serialization.- Specified by:
getDescriptionin interfaceXSerializer
-
getName
public java.lang.String getName()
Description copied from interface:XSerializerReturns the human-readable name of this serialization.- Specified by:
getNamein interfaceXSerializer
-
getAuthor
public java.lang.String getAuthor()
Description copied from interface:XSerializerReturns the name of this serialization's author.- Specified by:
getAuthorin interfaceXSerializer
-
getSuffices
public java.lang.String[] getSuffices()
Description copied from interface:XSerializerReturns an array of possible file suffices for this serialization.- Specified by:
getSufficesin interfaceXSerializer
-
serialize
public void serialize(XLog log, java.io.OutputStream out) throws java.io.IOException
Description copied from interface:XSerializerSerializes a given log to the given output stream.- Specified by:
serializein interfaceXSerializer- Parameters:
log- Log to be serialized.out- OutputStream for serialization.- Throws:
java.io.IOException
-
addAttributes
protected void addAttributes(org.deckfour.spex.SXTag node, java.util.Collection<XAttribute> attributes) throws java.io.IOExceptionHelper method, adds attributes to a tag.- Parameters:
node- The tag to add attributes to.attributes- The attributes to add.- Throws:
java.io.IOException
-
addAttributes
protected void addAttributes(org.deckfour.spex.SXTag dataNode, java.lang.String keyPrefix, java.util.Collection<XAttribute> attributes) throws java.io.IOExceptionHelper method, adds attributes to a tag.- Parameters:
dataNode- The tag to add attributes to.keyPrefix- the Key prefix of attributes.attributes- The attributes to add.- Throws:
java.io.IOException
-
addModelReference
protected void addModelReference(XAttributable object, org.deckfour.spex.SXTag target) throws java.io.IOException
Helper method, adds all model references of an attributable to the given tag.- Parameters:
object- Attributable element.target- Tag to add model references to.- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
toString() defaults to getName().- Overrides:
toStringin classjava.lang.Object
-
-