org.deckfour.xes.model.impl
Class XAttributeTimestampImpl

java.lang.Object
  extended by org.deckfour.xes.model.impl.XAttributeImpl
      extended by org.deckfour.xes.model.impl.XAttributeTimestampImpl
All Implemented Interfaces:
Cloneable, 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)

Constructor Summary
XAttributeTimestampImpl(String key, Date value)
          Creates a new instance.
XAttributeTimestampImpl(String key, Date value, XExtension extension)
          Creates a new instance.
XAttributeTimestampImpl(String key, long millis)
          Creates a new instance.
XAttributeTimestampImpl(String key, long millis, XExtension extension)
          Creates a new instance.
 
Method Summary
 Object clone()
          Attributes must be cloneable.
 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.
 String toString()
           
 
Methods inherited from class org.deckfour.xes.model.impl.XAttributeImpl
compareTo, equals, getAttributes, getExtension, getExtensions, getKey, hashCode, setAttributes
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deckfour.xes.model.XAttribute
getExtension, getKey
 
Methods inherited from interface org.deckfour.xes.model.XAttributable
getAttributes, getExtensions, setAttributes
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

XAttributeTimestampImpl

public XAttributeTimestampImpl(String key,
                               Date value)
Creates a new instance.

Parameters:
key - The key of the attribute.
value - Value of the attribute.

XAttributeTimestampImpl

public XAttributeTimestampImpl(String key,
                               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(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(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 Date getValue()
Description copied from interface: XAttributeTimestamp
Retrieves the timestamp value of this attribute.

Specified by:
getValue in interface XAttributeTimestamp
Returns:
Value of this attribute.

getValueMillis

public long getValueMillis()
Description copied from interface: XAttributeTimestamp
Retrieves the timestamp value of this attribute, in milliseconds.

Specified by:
getValueMillis in interface XAttributeTimestamp
Returns:
Value of this attribute.

setValue

public void setValue(Date value)
Description copied from interface: XAttributeTimestamp
Assigns the timestamp value of this attribute.

Specified by:
setValue in interface XAttributeTimestamp
Parameters:
value - Value of the attribute.

setValueMillis

public void setValueMillis(long value)
Description copied from interface: XAttributeTimestamp
Assigns the timestamp value of this attribute in milliseconds.

Specified by:
setValueMillis in interface XAttributeTimestamp
Parameters:
value - Value of the attribute.

toString

public String toString()
Overrides:
toString in class Object

clone

public Object clone()
Description copied from interface: XAttribute
Attributes must be cloneable.

Specified by:
clone in interface XAttribute
Overrides:
clone in class XAttributeImpl
Returns:
A clone of this attribute.