Package org.deckfour.xes.model
Interface XAttributeTimestamp
-
- All Superinterfaces:
java.lang.Cloneable,java.lang.Comparable<XAttribute>,java.io.Serializable,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
Fields Modifier and Type Field Description static XsDateTimeFormatFORMATTERFormatter to be used for formatting dates.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.DategetValue()Retrieves the timestamp value of this attribute.longgetValueMillis()Retrieves the timestamp value of this attribute, in milliseconds.voidsetValue(java.util.Date value)Assigns the timestamp value of this attribute.voidsetValueMillis(long value)Assigns the timestamp value of this attribute in milliseconds.-
Methods inherited from interface org.deckfour.xes.model.XAttributable
getAttributes, getExtensions, hasAttributes, setAttributes
-
Methods inherited from interface org.deckfour.xes.model.XAttribute
accept, clone, getExtension, getKey, toString
-
-
-
-
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(java.util.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
java.util.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.
-
-