com.isti.util
Class ArchivableData

java.lang.Object
  extended bycom.isti.util.ValueTimeUtilFns
      extended bycom.isti.util.ValueTimeBlock
          extended bycom.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.


Nested Class Summary
 
Nested classes inherited from class com.isti.util.Archivable
Archivable.Marker
 
Field Summary
 
Fields inherited from class com.isti.util.ValueTimeBlock
data, timestamp
 
Fields inherited from class com.isti.util.ValueTimeUtilFns
constructorParameterTypes, DATA_SEPARATOR, gmtFlag
 
Constructor Summary
ArchivableData(java.lang.Object data, long timestamp)
          Constructor which initializes values.
ArchivableData(java.lang.String dataStr)
          Constructor which initializes values.
ArchivableData(java.lang.String dataStr, Archivable.Marker mkrObj)
          Constructs a history entry.
ArchivableData(ValueTimeBlock vtb)
          Constructor which initializes values.
 
Methods inherited from class com.isti.util.ValueTimeBlock
dataEquals, equals, equals, getArchiveDate, getArchiveTime, getTimestampText, hashCode, timestampEquals, toArchivedForm, toString
 
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
 
Methods inherited from interface com.isti.util.Archivable
getArchiveDate, toArchivedForm
 

Constructor Detail

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)
Constructor which initializes values.

Parameters:
dataStr - the archivable representation for this object.

ArchivableData

public ArchivableData(java.lang.String dataStr,
                      Archivable.Marker mkrObj)
Constructs a history entry. This is part of the Archivable interface.

Parameters:
dataStr - the archivable representation for this object.
mkrObj - the marker object.

ArchivableData

public ArchivableData(ValueTimeBlock vtb)
Constructor which initializes values.

Parameters:
vtb - the value time block.