Package org.deckfour.xes.factory
Interface XFactory
-
- All Known Implementing Classes:
XFactoryBufferedImpl,XFactoryNaiveImpl
public interface XFactoryFactory interface, providing factory methods for creating all element classes of the XES model type hierarchy.- Author:
- Christian W. Guenther (christian@deckfour.org)
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of the specific factory implementation.
-
getAuthor
java.lang.String getAuthor()
Returns the author name of the specific factory implementation.
-
getVendor
java.lang.String getVendor()
Returns the vendor of the specific factory implementation.
-
getDescription
java.lang.String getDescription()
Returns a description of the specific factory implementation.
-
getUri
java.net.URI getUri()
Returns an URI, pointing to more information about the specific factory implementation.
-
createLog
XLog createLog()
Creates a new XES log instance (Factory method).- Returns:
- A new log instance.
-
createLog
XLog createLog(XAttributeMap attributes)
Creates a new XES log instance (Factory method).- Parameters:
attributes- The attributes of the log.- Returns:
- A new log instance.
-
createTrace
XTrace createTrace()
Creates a new XES trace instance (Factory method).- Returns:
- A new trace instance.
-
createTrace
XTrace createTrace(XAttributeMap attributes)
Creates a new XES trace instance (Factory method).- Parameters:
attributes- The attributes of the trace.- Returns:
- A new trace instance.
-
createEvent
XEvent createEvent()
Creates a new XES event instance (Factory method).- Returns:
- A new event instance.
-
createEvent
XEvent createEvent(XAttributeMap attributes)
Creates a new XES event instance (Factory method).- Parameters:
attributes- The attributes of the event.- Returns:
- A new event instance.
-
createEvent
XEvent createEvent(XID id, XAttributeMap attributes)
Creates a new XES event instance (Factory method). Only to be used in case of deserialization, such that the id remains consistent.- 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
XAttributeMap createAttributeMap()
Creates a new XES attribute map (Factory method).- Returns:
- A new XES attribute map instance.
-
createAttributeBoolean
XAttributeBoolean createAttributeBoolean(java.lang.String key, boolean value, XExtension extension)
Creates a new XES attribute with boolean type (Factory method).- 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
XAttributeContinuous createAttributeContinuous(java.lang.String key, double value, XExtension extension)
Creates a new XES attribute with continuous type (Factory method).- 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
XAttributeDiscrete createAttributeDiscrete(java.lang.String key, long value, XExtension extension)
Creates a new XES attribute with discrete type (Factory method).- 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
XAttributeLiteral createAttributeLiteral(java.lang.String key, java.lang.String value, XExtension extension)
Creates a new XES attribute with literal type (Factory method).- 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
XAttributeTimestamp createAttributeTimestamp(java.lang.String key, java.util.Date value, XExtension extension)
Creates a new XES attribute with timestamp type (Factory method).- 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
XAttributeTimestamp createAttributeTimestamp(java.lang.String key, long millis, XExtension extension)
Creates a new XES attribute with timestamp type (Factory method).- Parameters:
key- The key of the attribute.value- The value of the attribute, in milliseconds since 01/01/1970 0:00 GMT.extension- The extension defining the attribute (set tonull, if the attribute is not associated to an extension)- Returns:
- A newly created attribute.
-
createAttributeID
XAttributeID createAttributeID(java.lang.String key, XID value, XExtension extension)
Creates a new XES attribute with id type (Factory method).- 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
XAttributeList createAttributeList(java.lang.String key, XExtension extension)
-
createAttributeContainer
XAttributeContainer createAttributeContainer(java.lang.String key, XExtension extension)
-
-