7.0 Action Request System Java API

com.remedy.arsys.api
Class DateInfo

java.lang.Object
  extended bycom.remedy.arsys.api.DateInfo
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class DateInfo
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

The DateInfo class represents the days elapsed since January 1, 4713 B.C.

See Also:
Serialized Form

Constructor Summary
DateInfo()
          constructor
DateInfo(int num_of_days)
           
DateInfo(int year, int month, int day)
           
DateInfo(java.lang.String num_of_days)
           
 
Method Summary
 java.lang.Object clone()
          Clone implementation that returns an Object with data cloned from self.
 boolean equals(java.lang.Object anObject)
          Use this method for checking equality of date.
 java.util.GregorianCalendar GetDate()
          Get the date.
 int getValue()
          Returns the number of days since January 1, 4713 B.C.
 void setDate(int year, int month, int day)
          Set the date.
 void setValue(DateInfo dt)
          Sets the date to the the given date.
 void setValue(int num_of_days)
          Sets the number of days since January 1, 4713 B.C.
 java.lang.String toString()
          Returns a string description of the timestamp.
 boolean validateDate()
          Checks whether this date is a valid date or not.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateInfo

public DateInfo()
constructor


DateInfo

public DateInfo(int num_of_days)

DateInfo

public DateInfo(java.lang.String num_of_days)

DateInfo

public DateInfo(int year,
                int month,
                int day)
Method Detail

setValue

public void setValue(int num_of_days)
Sets the number of days since January 1, 4713 B.C.


setValue

public void setValue(DateInfo dt)
Sets the date to the the given date.


getValue

public int getValue()
Returns the number of days since January 1, 4713 B.C.


equals

public boolean equals(java.lang.Object anObject)
Use this method for checking equality of date. The result is true only if the argument is not null and is a DateInfo object that represents the same content.


clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone implementation that returns an Object with data cloned from self.

Throws:
java.lang.CloneNotSupportedException

toString

public java.lang.String toString()
Returns a string description of the timestamp.


GetDate

public java.util.GregorianCalendar GetDate()
Get the date.


setDate

public void setDate(int year,
                    int month,
                    int day)
Set the date.


validateDate

public boolean validateDate()
Checks whether this date is a valid date or not.


7.0 Action Request System Java API