org.jbpm.calendar
Class BusinessCalendar

java.lang.Object
  extended by org.jbpm.calendar.BusinessCalendar
All Implemented Interfaces:
Serializable

public class BusinessCalendar
extends Object
implements Serializable

a calendar that knows about business hours.

See Also:
Serialized Form

Constructor Summary
BusinessCalendar()
           
BusinessCalendar(Properties calendarProperties)
           
BusinessCalendar(String calendarResource)
           
 
Method Summary
 Date add(Date date, Duration duration)
           
 Day findDay(Date date)
           
 DayPart findNextDayPart(Date date)
           
 Date findStartOfNextDay(Date date)
           
static Properties getBusinessCalendarProperties()
           
static Calendar getCalendar()
          Deprecated. call Calendar.getInstance() directly
 List getHolidays()
           
 Day[] getWeekDays()
           
 boolean isHoliday(Date date)
           
 boolean isInBusinessHours(Date date)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessCalendar

public BusinessCalendar()

BusinessCalendar

public BusinessCalendar(String calendarResource)

BusinessCalendar

public BusinessCalendar(Properties calendarProperties)
Method Detail

getBusinessCalendarProperties

public static Properties getBusinessCalendarProperties()

getWeekDays

public Day[] getWeekDays()

getHolidays

public List getHolidays()

add

public Date add(Date date,
                Duration duration)

findStartOfNextDay

public Date findStartOfNextDay(Date date)

findDay

public Day findDay(Date date)

isHoliday

public boolean isHoliday(Date date)

findNextDayPart

public DayPart findNextDayPart(Date date)

isInBusinessHours

public boolean isInBusinessHours(Date date)

getCalendar

public static Calendar getCalendar()
Deprecated. call Calendar.getInstance() directly



Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.