org.jbpm.calendar
Class BusinessCalendar
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BusinessCalendar
public BusinessCalendar()
BusinessCalendar
public BusinessCalendar(String calendarResource)
BusinessCalendar
public BusinessCalendar(Properties calendarProperties)
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.