|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deckfour.xes.model.impl.XAttributeImpl
org.deckfour.xes.model.impl.XAttributeTimestampImpl
public class XAttributeTimestampImpl
This class implements timestamp type attributes.
Field Summary |
---|
Fields inherited from interface org.deckfour.xes.model.XAttributeTimestamp |
---|
FORMATTER |
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. |
int |
compareTo(XAttribute other)
|
boolean |
equals(Object obj)
|
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 |
---|
accept, 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 |
---|
accept, getExtension, getKey |
Methods inherited from interface org.deckfour.xes.model.XAttributable |
---|
getAttributes, getExtensions, setAttributes |
Constructor Detail |
---|
public XAttributeTimestampImpl(String key, Date value)
key
- The key of the attribute.value
- Value of the attribute.public XAttributeTimestampImpl(String key, Date value, XExtension extension)
key
- The key of the attribute.value
- Value of the attribute.extension
- The extension of the attribute.public XAttributeTimestampImpl(String key, long millis)
key
- The key of the attribute.millis
- Value of the attribute, in milliseconds.public XAttributeTimestampImpl(String key, long millis, XExtension extension)
key
- The key of the attribute.millis
- Value of the attribute, in milliseconds.extension
- The extension of the attribute.Method Detail |
---|
public Date getValue()
XAttributeTimestamp
getValue
in interface XAttributeTimestamp
public long getValueMillis()
XAttributeTimestamp
getValueMillis
in interface XAttributeTimestamp
public void setValue(Date value)
XAttributeTimestamp
setValue
in interface XAttributeTimestamp
value
- Value of the attribute.public void setValueMillis(long value)
XAttributeTimestamp
setValueMillis
in interface XAttributeTimestamp
value
- Value of the attribute.public String toString()
toString
in class Object
public Object clone()
XAttribute
clone
in interface XAttribute
clone
in class XAttributeImpl
public boolean equals(Object obj)
equals
in class XAttributeImpl
public int compareTo(XAttribute other)
compareTo
in interface Comparable<XAttribute>
compareTo
in class XAttributeImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |