jSyncManager

org.jSyncManager.JSerial.TestSuite
Class StampObject

java.lang.Object
  extended byorg.jSyncManager.JSerial.TestSuite.StampObject
All Implemented Interfaces:
java.io.Serializable

public class StampObject
extends java.lang.Object
implements java.io.Serializable

A class for storing simple date/timestamp and message data. This class is intended for storing a date and timestamp, along with a simple string message for use in the DataObject class.

Version:
1.0
Author:
Brad Barclay.
See Also:
Serialized Form

Constructor Summary
StampObject(java.lang.String msg)
          Construct a new Stamp Object.
 
Method Summary
 java.util.Date getDate()
          Returns the datestamp as a java.util.Date Object
 java.lang.String getDateString()
          Returns the date/timestamp as a String.
 java.lang.String getMessage()
          A method for retrieving the message from this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StampObject

public StampObject(java.lang.String msg)
Construct a new Stamp Object.

Parameters:
msg - The message to be stored.
Method Detail

getDate

public java.util.Date getDate()
Returns the datestamp as a java.util.Date Object

Returns:
the java.util.Date object created at object initialization.
See Also:
Date

getDateString

public java.lang.String getDateString()
Returns the date/timestamp as a String.

Returns:
the date and time this object was created as a String.
See Also:
Date

getMessage

public java.lang.String getMessage()
A method for retrieving the message from this object.

Returns:
the message contained in this StampObject.

jSyncManager

Copyright (c) 1998 - 2003 Brad BARCLAY and others. All Rights Reserved.