HOME

com.ireasoning.protocol.tl1
Class TL1Time

java.lang.Object
  extended by com.ireasoning.protocol.tl1.TL1Time
All Implemented Interfaces:
java.io.Serializable

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

This class represents the time in TL1 response header. Its format is "HH:MM:SS"

See Also:
Serialized Form

Constructor Summary
TL1Time(java.lang.String time)
          Constructs a new TL1Time object with the passed string
 
Method Summary
 java.lang.String getHour()
          Returns the hour value
 java.lang.String getMinute()
          Returns the minute value
 java.lang.String getSecond()
          Returns the second value
 void setHour(java.lang.String hour)
          Sets a new hour value
 void setMinute(java.lang.String minute)
          Sets a new minute value
 void setSecond(java.lang.String second)
          Sets a new second value
 java.lang.String toString()
          Returns a String representations of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TL1Time

public TL1Time(java.lang.String time)
        throws TL1ParsingException
Constructs a new TL1Time object with the passed string

Parameters:
time - the time string
Throws:
TL1ParsingException - if the passed time string is not valid
Method Detail

getHour

public java.lang.String getHour()
Returns the hour value


setHour

public void setHour(java.lang.String hour)
Sets a new hour value


getMinute

public java.lang.String getMinute()
Returns the minute value


setMinute

public void setMinute(java.lang.String minute)
Sets a new minute value


getSecond

public java.lang.String getSecond()
Returns the second value


setSecond

public void setSecond(java.lang.String second)
Sets a new second value


toString

public java.lang.String toString()
Returns a String representations of this object

Overrides:
toString in class java.lang.Object

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.