Package org.deckfour.xes.model.impl
Class XAttributeTimestampImpl
- java.lang.Object
-
- org.deckfour.xes.model.impl.XAttributeImpl
-
- org.deckfour.xes.model.impl.XAttributeTimestampImpl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<XAttribute>,XAttributable,XAttribute,XAttributeTimestamp
public class XAttributeTimestampImpl extends XAttributeImpl implements XAttributeTimestamp
This class implements timestamp type attributes.- Author:
- Christian W. Guenther (christian@deckfour.org)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.deckfour.xes.model.XAttributeTimestamp
FORMATTER
-
-
Constructor Summary
Constructors Constructor Description XAttributeTimestampImpl(java.lang.String key, long millis)Creates a new instance.XAttributeTimestampImpl(java.lang.String key, long millis, XExtension extension)Creates a new instance.XAttributeTimestampImpl(java.lang.String key, java.util.Date value)Creates a new instance.XAttributeTimestampImpl(java.lang.String key, java.util.Date value, XExtension extension)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Attributes must be cloneable.intcompareTo(XAttribute other)booleanequals(java.lang.Object obj)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.java.lang.StringtoString()String representation of the value.-
Methods inherited from class org.deckfour.xes.model.impl.XAttributeImpl
accept, getAttributes, getExtension, getExtensions, getKey, hasAttributes, hashCode, setAttributes
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.deckfour.xes.model.XAttributable
getAttributes, getExtensions, hasAttributes, setAttributes
-
Methods inherited from interface org.deckfour.xes.model.XAttribute
accept, getExtension, getKey
-
-
-
-
Constructor Detail
-
XAttributeTimestampImpl
public XAttributeTimestampImpl(java.lang.String key, java.util.Date value)Creates a new instance.- Parameters:
key- The key of the attribute.value- Value of the attribute.
-
XAttributeTimestampImpl
public XAttributeTimestampImpl(java.lang.String key, java.util.Date value, XExtension extension)Creates a new instance.- Parameters:
key- The key of the attribute.value- Value of the attribute.extension- The extension of the attribute.
-
XAttributeTimestampImpl
public XAttributeTimestampImpl(java.lang.String key, long millis)Creates a new instance.- Parameters:
key- The key of the attribute.millis- Value of the attribute, in milliseconds.
-
XAttributeTimestampImpl
public XAttributeTimestampImpl(java.lang.String key, long millis, XExtension extension)Creates a new instance.- Parameters:
key- The key of the attribute.millis- Value of the attribute, in milliseconds.extension- The extension of the attribute.
-
-
Method Detail
-
getValue
public java.util.Date getValue()
Description copied from interface:XAttributeTimestampRetrieves the timestamp value of this attribute.- Specified by:
getValuein interfaceXAttributeTimestamp- Returns:
- Value of this attribute.
-
getValueMillis
public long getValueMillis()
Description copied from interface:XAttributeTimestampRetrieves the timestamp value of this attribute, in milliseconds.- Specified by:
getValueMillisin interfaceXAttributeTimestamp- Returns:
- Value of this attribute.
-
setValue
public void setValue(java.util.Date value)
Description copied from interface:XAttributeTimestampAssigns the timestamp value of this attribute.- Specified by:
setValuein interfaceXAttributeTimestamp- Parameters:
value- Value of the attribute.
-
setValueMillis
public void setValueMillis(long value)
Description copied from interface:XAttributeTimestampAssigns the timestamp value of this attribute in milliseconds.- Specified by:
setValueMillisin interfaceXAttributeTimestamp- Parameters:
value- Value of the attribute.
-
toString
public java.lang.String toString()
Description copied from interface:XAttributeString representation of the value.- Specified by:
toStringin interfaceXAttribute- Overrides:
toStringin classjava.lang.Object- Returns:
- Returns the String representation of the value.
-
clone
public java.lang.Object clone()
Description copied from interface:XAttributeAttributes must be cloneable.- Specified by:
clonein interfaceXAttribute- Overrides:
clonein classXAttributeImpl- Returns:
- A clone of this attribute.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classXAttributeImpl
-
compareTo
public int compareTo(XAttribute other)
- Specified by:
compareToin interfacejava.lang.Comparable<XAttribute>- Overrides:
compareToin classXAttributeImpl
-
-