com.adventnet.tl1.message
Class TL1Date

java.lang.Object
  |
  +--com.adventnet.tl1.message.TL1Date

public class TL1Date
extends java.lang.Object

This class represent the date in year-month-day format. The date is a part of TL1Header that is part of the Output (Autonomous and Response) Message.

See Also:
TL1Header

Constructor Summary
TL1Date()
          Default constructor for TL1Date.
TL1Date(int yy, int mm, int dd)
          Constructor that initializes the year, month, and day fields of the TL1Date with the given values.
 
Method Summary
 boolean equals(TL1Date date)
          Checks if the date object is equal to this object.
 int getDay()
          Get the day value.
 int getMonth()
          Get the month value.
 int getYear()
          Get the year value set in this Date object.
 void setDay(int dd)
          Set the day field.
 void setMonth(int mm)
          Set the month field.
 void setYear(int yy)
          Set the year field in the Date object.
 java.lang.String toString()
          Return string representation of TL1Date.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TL1Date

public TL1Date()
Default constructor for TL1Date.

TL1Date

public TL1Date(int yy,
               int mm,
               int dd)
Constructor that initializes the year, month, and day fields of the TL1Date with the given values.
Parameters:
yy - year.
mm - month.
dd - date.
Method Detail

setYear

public void setYear(int yy)
Set the year field in the Date object.
Parameters:
yy - integer representing year.

getYear

public int getYear()
Get the year value set in this Date object.
Returns:
year as integer.

setMonth

public void setMonth(int mm)
Set the month field.
Parameters:
mm - integer representing month.

getMonth

public int getMonth()
Get the month value.
Returns:
month as integer.

setDay

public void setDay(int dd)
Set the day field.
Parameters:
dd - integer representing date.

getDay

public int getDay()
Get the day value.
Returns:
date as integer.

equals

public boolean equals(TL1Date date)
Checks if the date object is equal to this object.
Parameters:
date - TL1Date object.
Returns:
true - if equal ,
false otherwise.

toString

public java.lang.String toString()
Return string representation of TL1Date.
Overrides:
toString in class java.lang.Object
Returns:
string representation of the object.