com.isti.util.gui.textvalidator
Class SQLTextUtils.TimestampText

java.lang.Object
  extended by com.isti.util.gui.textvalidator.SQLTextUtils.TimestampText
Enclosing class:
SQLTextUtils

public static class SQLTextUtils.TimestampText
extends java.lang.Object

Time stamp text.


Constructor Summary
SQLTextUtils.TimestampText(java.lang.String s)
          Creates time stamp text.
SQLTextUtils.TimestampText(java.lang.String s, long defaultEpochTime)
          Creates time stamp text.
 
Method Summary
 java.lang.String getDateText()
          Gets the date text.
 long getDefaultEpochTime()
          Gets the default epoch time.
 java.lang.String getMillisecondsText()
          Gets the milliseconds text.
 java.sql.Timestamp getTimestampValue()
          Gets the time stamp value.
 java.lang.String getTimeText()
          Gets the time text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLTextUtils.TimestampText

public SQLTextUtils.TimestampText(java.lang.String s)
Creates time stamp text.

Parameters:
s - the time stamp text.

SQLTextUtils.TimestampText

public SQLTextUtils.TimestampText(java.lang.String s,
                                  long defaultEpochTime)
                           throws java.lang.IllegalArgumentException
Creates time stamp text.

Parameters:
s - the time stamp text.
defaultEpochTime - the epoch time to use if the date text is empty.
Throws:
java.lang.IllegalArgumentException - if the time stamp text is invalid.
Method Detail

getDateText

public java.lang.String getDateText()
Gets the date text.

Returns:
the date text.

getDefaultEpochTime

public long getDefaultEpochTime()
Gets the default epoch time.

Returns:
the epoch time to use if the date text is empty.

getMillisecondsText

public java.lang.String getMillisecondsText()
Gets the milliseconds text.

Returns:
the milliseconds text.

getTimestampValue

public java.sql.Timestamp getTimestampValue()
Gets the time stamp value.

Returns:
the Timestamp value or null if error.

getTimeText

public java.lang.String getTimeText()
Gets the time text.

Returns:
the time text.