org.deckfour.xes.model.impl
Class XTraceImpl
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<XEvent>
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
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 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 |
XTraceImpl
public XTraceImpl(XAttributeMap attributeMap)
- Creates a new trace.
- Parameters:
attributeMap
- Attribute map used to
store this trace's attributes.
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.