org.deckfour.xes.model
Interface XAttributeTimestamp

All Superinterfaces:
Cloneable, Comparable<XAttribute>, XAttributable, XAttribute
All Known Implementing Classes:
XAttributeTimestampImpl

public interface XAttributeTimestamp
extends XAttribute

Attribute with timestamp type value.

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

Field Summary
static XsDateTimeFormat FORMATTER
          Formatter to be used for formatting dates.
 
Method Summary
 Date getValue()
          Retrieves the timestamp value of this attribute.
 long getValueMillis()
          Retrieves the timestamp value of this attribute, in milliseconds.
 void setValue(Date value)
          Assigns the timestamp value of this attribute.
 void setValueMillis(long value)
          Assigns the timestamp value of this attribute in milliseconds.
 
Methods inherited from interface org.deckfour.xes.model.XAttribute
accept, clone, getExtension, getKey
 
Methods inherited from interface org.deckfour.xes.model.XAttributable
getAttributes, getExtensions, setAttributes
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

FORMATTER

static final XsDateTimeFormat FORMATTER
Formatter to be used for formatting dates. This formatter is locale independent, to allow for serialized files to be moved between locales.

Method Detail

setValue

void setValue(Date value)
Assigns the timestamp value of this attribute.

Parameters:
value - Value of the attribute.

setValueMillis

void setValueMillis(long value)
Assigns the timestamp value of this attribute in milliseconds.

Parameters:
value - Value of the attribute.

getValue

Date getValue()
Retrieves the timestamp value of this attribute.

Returns:
Value of this attribute.

getValueMillis

long getValueMillis()
Retrieves the timestamp value of this attribute, in milliseconds.

Returns:
Value of this attribute.