com.isti.util
Class ArchivableData
java.lang.Object
com.isti.util.ValueTimeUtilFns
com.isti.util.ValueTimeBlock
com.isti.util.ArchivableData
- All Implemented Interfaces:
- Archivable
public class ArchivableData
- extends ValueTimeBlock
- implements Archivable
Class ArchivableData defines an archive containing a data
object and timestamp.
If the class for the data has a constructor with a String parameter then
the de-archived data should be identical to the original data,
otherwise the de-archived data will contain a string representation of the
original data.
Methods inherited from class com.isti.util.ValueTimeUtilFns |
getComponentForClass, getConstructorForClass, getCurrentTime, getCurrentTimestamp, getTime, getTimestamp, getTimestampText, getTimestampText, getTimeText, getTimeText, getValueTimeBlock |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ArchivableData
public ArchivableData(java.lang.Object data,
long timestamp)
- Constructor which initializes values.
- Parameters:
data
- data object, such as Integer, Double, String, etc.timestamp
- timestamp value for data which is
the number of seconds since January 1, 1970, 00:00:00 GMT.
ArchivableData
public ArchivableData(java.lang.String dataStr)
throws java.lang.IllegalArgumentException
- Constructor which initializes values.
- Parameters:
dataStr
- value-time format archivable representation for
this object.
- Throws:
java.lang.IllegalArgumentException
- if an error occurred.
ArchivableData
public ArchivableData(java.lang.String dataStr,
Archivable.Marker mkrObj)
throws java.lang.IllegalArgumentException
- Constructs a history entry.
This is part of the Archivable interface.
- Parameters:
dataStr
- value-time format archivable representation for
this object.mkrObj
- the marker object.
- Throws:
java.lang.IllegalArgumentException
- if an error occurred.
ArchivableData
public ArchivableData(ValueTimeBlock vtb)
- Constructor which initializes values.
- Parameters:
vtb
- the value time block.
getCheckValueTimeBlk
protected static ValueTimeBlock getCheckValueTimeBlk(java.lang.String dataStr)
throws java.lang.IllegalArgumentException
- Gets the value time block for the specified data string.
- Parameters:
dataStr
- value-time format data string.
- Returns:
- A new value time block.
- Throws:
java.lang.IllegalArgumentException
- if an error occurred.