org.deckfour.xes.model.impl
Class XTraceImpl

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<XEvent>
              extended by org.deckfour.xes.model.impl.XTraceImpl
All Implemented Interfaces:
Serializable, Cloneable, Iterable<XEvent>, Collection<XEvent>, List<XEvent>, RandomAccess, XAttributable, XElement, XTrace

public class XTraceImpl
extends ArrayList<XEvent>
implements XTrace

Memory-based implementation for the XTrace interface.

Author:
Christian W. Guenther (christian@deckfour.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
XTraceImpl(XAttributeMap attributeMap)
          Creates a new trace.
 
Method Summary
 Object clone()
          Creates a clone, 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.util.ArrayList
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

XTraceImpl

public XTraceImpl(XAttributeMap attributeMap)
Creates a new trace.

Parameters:
attributeMap - Attribute map used to store this trace's attributes.
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.

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.

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.

clone

public Object clone()
Creates a clone, i.e. deep copy, of this trace.

Specified by:
clone in interface XElement
Overrides:
clone in class ArrayList<XEvent>
Returns:
An identical clone.