|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface describes the behaviour for a class that rolls back days, based on a configurable algorithm. The default Calendar implementation used is the GregorianCalendar.
| Method Summary | |
java.util.Calendar |
getCurrentDate()
This method returns the current date, or the first earlier applicable day. |
int |
getCurrentDayOfMonth()
This method returns the current day of month (1-31) |
int |
getCurrentMonth()
This method returns the current month (1-12) |
int |
getCurrentYear()
This method returns the current year (4-digit notation, eg. 2003) |
java.lang.String |
getFormattedCurrentDate(java.lang.String aFormatter)
This method returns the formatted current date, or the first earlier applicable day. |
java.util.Calendar |
getNextDay()
This method returns the current Calendar instance rolled forward by the necessary amount of days to match the nearest future applicable day. |
java.util.Calendar |
getPreviousDay()
This method returns the current Calendar instance rolled back by the necessary amount of days to match the nearest previous applicable day. |
void |
setApplicableDays(int[] aDays)
This method allows the caller to specify which days should be reported. |
void |
setStartDate(java.util.Calendar aStartDate)
This method allows the setting of a specific starting date via a specified Calendar. |
void |
setStartDate(java.util.Date aStartDate)
This method allows the setting of a specific starting date via a specified Date. |
| Method Detail |
public void setStartDate(java.util.Calendar aStartDate)
aStartDate - Calendar with the desired start date.public void setStartDate(java.util.Date aStartDate)
aStartDate - Calendar with the desired start date.public void setApplicableDays(int[] aDays)
aDays - int[] with the integer codes for days as specified by the constants
in the Calendar interface.public java.util.Calendar getCurrentDate()
public java.lang.String getFormattedCurrentDate(java.lang.String aFormatter)
public java.util.Calendar getPreviousDay()
public java.util.Calendar getNextDay()
public int getCurrentDayOfMonth()
public int getCurrentMonth()
public int getCurrentYear()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||