Package org.deckfour.xes.factory
Class XFactoryNaiveImpl
- java.lang.Object
-
- org.deckfour.xes.factory.XFactoryNaiveImpl
-
- All Implemented Interfaces:
XFactory
- Direct Known Subclasses:
XFactoryBufferedImpl
public class XFactoryNaiveImpl extends java.lang.Object implements XFactory
This factory will create the naive implementations of all model hierarchy elements, i.e., no buffering or further optimizations will be employed.- Author:
- Christian W. Guenther (christian@deckfour.org)
-
-
Constructor Summary
Constructors Constructor Description XFactoryNaiveImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XAttributeBooleancreateAttributeBoolean(java.lang.String key, boolean value, XExtension extension)Creates a new XES attribute with boolean type (Factory method).XAttributeContainercreateAttributeContainer(java.lang.String key, XExtension extension)XAttributeContinuouscreateAttributeContinuous(java.lang.String key, double value, XExtension extension)Creates a new XES attribute with continuous type (Factory method).XAttributeDiscretecreateAttributeDiscrete(java.lang.String key, long value, XExtension extension)Creates a new XES attribute with discrete type (Factory method).XAttributeIDcreateAttributeID(java.lang.String key, XID value, XExtension extension)Creates a new XES attribute with id type (Factory method).XAttributeListcreateAttributeList(java.lang.String key, XExtension extension)XAttributeLiteralcreateAttributeLiteral(java.lang.String key, java.lang.String value, XExtension extension)Creates a new XES attribute with literal type (Factory method).XAttributeMapcreateAttributeMap()Creates a new XES attribute map (Factory method).XAttributeTimestampcreateAttributeTimestamp(java.lang.String key, long millis, XExtension extension)Creates a new XES attribute with timestamp type (Factory method).XAttributeTimestampcreateAttributeTimestamp(java.lang.String key, java.util.Date value, XExtension extension)Creates a new XES attribute with timestamp type (Factory method).XEventcreateEvent()Creates a new XES event instance (Factory method).XEventcreateEvent(XID id, XAttributeMap attributes)Creates a new XES event instance (Factory method).XEventcreateEvent(XAttributeMap attributes)Creates a new XES event instance (Factory method).XLogcreateLog()Creates a new XES log instance (Factory method).XLogcreateLog(XAttributeMap attributes)Creates a new XES log instance (Factory method).XTracecreateTrace()Creates a new XES trace instance (Factory method).XTracecreateTrace(XAttributeMap attributes)Creates a new XES trace instance (Factory method).java.lang.StringgetAuthor()Returns the author name of the specific factory implementation.java.lang.StringgetDescription()Returns a description of the specific factory implementation.java.lang.StringgetName()Returns the name of the specific factory implementation.java.net.URIgetUri()Returns an URI, pointing to more information about the specific factory implementation.java.lang.StringgetVendor()Returns the vendor of the specific factory implementation.booleanisUseInterner()voidsetUseInterner(boolean useInterner)
-
-
-
Method Detail
-
getAuthor
public java.lang.String getAuthor()
Description copied from interface:XFactoryReturns the author name of the specific factory implementation.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:XFactoryReturns a description of the specific factory implementation.- Specified by:
getDescriptionin interfaceXFactory
-
getName
public java.lang.String getName()
Description copied from interface:XFactoryReturns the name of the specific factory implementation.
-
getUri
public java.net.URI getUri()
Description copied from interface:XFactoryReturns an URI, pointing to more information about the specific factory implementation.
-
getVendor
public java.lang.String getVendor()
Description copied from interface:XFactoryReturns the vendor of the specific factory implementation.
-
createLog
public XLog createLog()
Description copied from interface:XFactoryCreates a new XES log instance (Factory method).
-
createLog
public XLog createLog(XAttributeMap attributes)
Description copied from interface:XFactoryCreates a new XES log instance (Factory method).
-
createTrace
public XTrace createTrace()
Description copied from interface:XFactoryCreates a new XES trace instance (Factory method).- Specified by:
createTracein interfaceXFactory- Returns:
- A new trace instance.
-
createTrace
public XTrace createTrace(XAttributeMap attributes)
Description copied from interface:XFactoryCreates a new XES trace instance (Factory method).- Specified by:
createTracein interfaceXFactory- Parameters:
attributes- The attributes of the trace.- Returns:
- A new trace instance.
-
createEvent
public XEvent createEvent()
Description copied from interface:XFactoryCreates a new XES event instance (Factory method).- Specified by:
createEventin interfaceXFactory- Returns:
- A new event instance.
-
createEvent
public XEvent createEvent(XAttributeMap attributes)
Description copied from interface:XFactoryCreates a new XES event instance (Factory method).- Specified by:
createEventin interfaceXFactory- Parameters:
attributes- The attributes of the event.- Returns:
- A new event instance.
-
createEvent
public XEvent createEvent(XID id, XAttributeMap attributes)
Description copied from interface:XFactoryCreates a new XES event instance (Factory method). Only to be used in case of deserialization, such that the id remains consistent.- Specified by:
createEventin interfaceXFactory- Parameters:
id- the id of this new event. Only to be used in case of deserializing!attributes- the attributes of the event- Returns:
- A new event instance
-
createAttributeMap
public XAttributeMap createAttributeMap()
Description copied from interface:XFactoryCreates a new XES attribute map (Factory method).- Specified by:
createAttributeMapin interfaceXFactory- Returns:
- A new XES attribute map instance.
-
createAttributeBoolean
public XAttributeBoolean createAttributeBoolean(java.lang.String key, boolean value, XExtension extension)
Description copied from interface:XFactoryCreates a new XES attribute with boolean type (Factory method).- Specified by:
createAttributeBooleanin interfaceXFactory- Parameters:
key- The key of the attribute.value- The value of the attribute.extension- The extension defining the attribute (set tonull, if the attribute is not associated to an extension)- Returns:
- A newly created attribute.
-
createAttributeContinuous
public XAttributeContinuous createAttributeContinuous(java.lang.String key, double value, XExtension extension)
Description copied from interface:XFactoryCreates a new XES attribute with continuous type (Factory method).- Specified by:
createAttributeContinuousin interfaceXFactory- Parameters:
key- The key of the attribute.value- The value of the attribute.extension- The extension defining the attribute (set tonull, if the attribute is not associated to an extension)- Returns:
- A newly created attribute.
-
createAttributeDiscrete
public XAttributeDiscrete createAttributeDiscrete(java.lang.String key, long value, XExtension extension)
Description copied from interface:XFactoryCreates a new XES attribute with discrete type (Factory method).- Specified by:
createAttributeDiscretein interfaceXFactory- Parameters:
key- The key of the attribute.value- The value of the attribute.extension- The extension defining the attribute (set tonull, if the attribute is not associated to an extension)- Returns:
- A newly created attribute.
-
createAttributeLiteral
public XAttributeLiteral createAttributeLiteral(java.lang.String key, java.lang.String value, XExtension extension)
Description copied from interface:XFactoryCreates a new XES attribute with literal type (Factory method).- Specified by:
createAttributeLiteralin interfaceXFactory- Parameters:
key- The key of the attribute.value- The value of the attribute.extension- The extension defining the attribute (set tonull, if the attribute is not associated to an extension)- Returns:
- A newly created attribute.
-
createAttributeTimestamp
public XAttributeTimestamp createAttributeTimestamp(java.lang.String key, java.util.Date value, XExtension extension)
Description copied from interface:XFactoryCreates a new XES attribute with timestamp type (Factory method).- Specified by:
createAttributeTimestampin interfaceXFactory- Parameters:
key- The key of the attribute.value- The value of the attribute.extension- The extension defining the attribute (set tonull, if the attribute is not associated to an extension)- Returns:
- A newly created attribute.
-
createAttributeTimestamp
public XAttributeTimestamp createAttributeTimestamp(java.lang.String key, long millis, XExtension extension)
Description copied from interface:XFactoryCreates a new XES attribute with timestamp type (Factory method).- Specified by:
createAttributeTimestampin interfaceXFactory- Parameters:
key- The key of the attribute.extension- The extension defining the attribute (set tonull, if the attribute is not associated to an extension)- Returns:
- A newly created attribute.
-
createAttributeID
public XAttributeID createAttributeID(java.lang.String key, XID value, XExtension extension)
Description copied from interface:XFactoryCreates a new XES attribute with id type (Factory method).- Specified by:
createAttributeIDin interfaceXFactory- Parameters:
key- The key of the attribute.value- The value of the attribute.extension- The extension defining the attribute (set tonull, if the attribute is not associated to an extension)- Returns:
- A newly created attribute.
-
createAttributeList
public XAttributeList createAttributeList(java.lang.String key, XExtension extension)
- Specified by:
createAttributeListin interfaceXFactory
-
createAttributeContainer
public XAttributeContainer createAttributeContainer(java.lang.String key, XExtension extension)
- Specified by:
createAttributeContainerin interfaceXFactory
-
isUseInterner
public boolean isUseInterner()
-
setUseInterner
public void setUseInterner(boolean useInterner)
-
-