HOME

com.ireasoning.protocol.tl1
Class TL1Time

java.lang.Object
  extended bycom.ireasoning.protocol.tl1.TL1Time
All Implemented Interfaces:
Serializable

public class TL1Time
extends Object
implements Serializable

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

See Also:
Serialized Form

Constructor Summary
TL1Time(String time)
          Constructs a new TL1Time object with the passed string
 
Method Summary
 String getHour()
          Returns the hour value
 String getMinute()
          Returns the minute value
 String getSecond()
          Returns the second value
 void setHour(String hour)
          Sets a new hour value
 void setMinute(String minute)
          Sets a new minute value
 void setSecond(String second)
          Sets a new second value
 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(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 String getHour()
Returns the hour value


setHour

public void setHour(String hour)
Sets a new hour value


getMinute

public String getMinute()
Returns the minute value


setMinute

public void setMinute(String minute)
Sets a new minute value


getSecond

public String getSecond()
Returns the second value


setSecond

public void setSecond(String second)
Sets a new second value


toString

public String toString()
Returns a String representations of this object


HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.