HOME

com.ireasoning.protocol.tl1
Class TL1Date

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

public class TL1Date
extends Object
implements Serializable

This class represents the date in TL1 response header. Its format is "YY[YY]-MM-DD"

See Also:
Serialized Form

Constructor Summary
TL1Date(String date)
          Constructs a TL1Date object with passed string
 
Method Summary
 String getDay()
          Returns day value
 String getMonth()
          Returns month value
 String getYear()
          Returns year value
 void setDay(String day)
          Sets a new day value
 void setMonth(String month)
          Sets a new month value
 void setYear(String year)
          Sets a new year 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

TL1Date

public TL1Date(String date)
        throws TL1ParsingException
Constructs a TL1Date object with passed string

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

getDay

public String getDay()
Returns day value


setDay

public void setDay(String day)
Sets a new day value


getMonth

public String getMonth()
Returns month value


setMonth

public void setMonth(String month)
Sets a new month value


getYear

public String getYear()
Returns year value


setYear

public void setYear(String year)
Sets a new year value


toString

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


HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.