com.isti.util
Class ArchivableData

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


Nested Class Summary
 
Nested classes/interfaces inherited from interface 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.
 
Method Summary
protected static ValueTimeBlock getCheckValueTimeBlk(java.lang.String dataStr)
          Gets the value time block for the specified data string.
 
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)
               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.
Method Detail

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.