org.deckfour.xes.model.impl
Class XEventImpl

java.lang.Object
  extended by org.deckfour.xes.model.impl.XEventImpl
All Implemented Interfaces:
Cloneable, XAttributable, XElement, XEvent

public class XEventImpl
extends Object
implements XEvent

Implementation for the XEvent interface.

Author:
Christian W. Guenther (christian@deckfour.org)

Constructor Summary
XEventImpl()
          Creates a new event.
XEventImpl(XAttributeMap attributes)
          Creates a new event.
 
Method Summary
 Object clone()
          Clones this event, i.e.
 XAttributeMap getAttributes()
          Retrieves the attributes set for this element.
 Set<XExtension> getExtensions()
          Retrieves the extensions used by this element, i.e.
 void setAttributes(XAttributeMap attributes)
          Sets the map of attributes for this element.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XEventImpl

public XEventImpl()
Creates a new event.


XEventImpl

public XEventImpl(XAttributeMap attributes)
Creates a new event.

Parameters:
attributes - Map of attribute for the event.
Method Detail

getAttributes

public XAttributeMap getAttributes()
Description copied from interface: XAttributable
Retrieves the attributes set for this element.

Specified by:
getAttributes in interface XAttributable
Returns:
A map of attributes.

setAttributes

public void setAttributes(XAttributeMap attributes)
Description copied from interface: XAttributable
Sets the map of attributes for this element.

Specified by:
setAttributes in interface XAttributable
Parameters:
attributes - A map of attributes.

getExtensions

public Set<XExtension> getExtensions()
Description copied from interface: XAttributable
Retrieves the extensions used by this element, i.e. the extensions used by all attributes of this element, and the element itself.

Specified by:
getExtensions in interface XAttributable
Returns:
A set of extensions.

clone

public Object clone()
Clones this event, i.e. creates a deep copy.

Specified by:
clone in interface XElement
Overrides:
clone in class Object
Returns:
An identical clone.