org.jcrontab.data
Class CalendarBuilder

java.lang.Object
  |
  +--org.jcrontab.data.CalendarBuilder

public class CalendarBuilder
extends java.lang.Object

This class processes a CrontabEntryBean and returns a Calendar. This class is a "conversor" to convert from CrontabEntries to Calendars. Thanks to Javier Pardo for the idea and for the Algorithm

Version:
$Revision: 1.4 $
Author:
$Author: iolalla $

Constructor Summary
CalendarBuilder()
           
 
Method Summary
 java.util.Date buildCalendar(CrontabEntryBean ceb)
          This method builds a Date from a CrontabEntryBean. launching the same method with now as parameter
 java.util.Date buildCalendar(CrontabEntryBean ceb, java.util.Date afterDate)
          This method builds a Date from a CrontabEntryBean and from a starting Date
 CrontabEntryBean getNextCrontabEntry(CrontabEntryBean[] cebs)
          This method gets thes next CrontabEntry in the given Array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarBuilder

public CalendarBuilder()
Method Detail

getNextCrontabEntry

public CrontabEntryBean getNextCrontabEntry(CrontabEntryBean[] cebs)
This method gets thes next CrontabEntry in the given Array. Yep i know this can be plural.... i mean not only one CrontabEntry but in this case we care only for one cause only need to know the next execution time.

Parameters:
cebs - CrontabEntryBean[]
Returns:
CrontabEntryBean

buildCalendar

public java.util.Date buildCalendar(CrontabEntryBean ceb)
This method builds a Date from a CrontabEntryBean. launching the same method with now as parameter

Parameters:
ceb - CrontabEntryBean
Returns:
Date

buildCalendar

public java.util.Date buildCalendar(CrontabEntryBean ceb,
                                    java.util.Date afterDate)
This method builds a Date from a CrontabEntryBean and from a starting Date

Parameters:
ceb - CrontabEntryBean
afterDate - Date
Returns:
Date