org.jbpm.cal
Class DayPart

java.lang.Object
  extended by org.jbpm.cal.DayPart
All Implemented Interfaces:
java.io.Serializable

public class DayPart
extends java.lang.Object
implements java.io.Serializable

is part of a day that can for example be used to represent business hours.

See Also:
Serialized Form

Field Summary
protected  Day day
           
protected  int fromHour
           
protected  int fromMinute
           
protected  int index
           
protected  long oid
           
protected  int toHour
           
protected  int toMinute
           
protected  int version
           
 
Constructor Summary
DayPart()
           
 
Method Summary
 java.util.Date add(java.util.Date date, long millis, boolean isBusinessTime)
           
 Day getDay()
           
 int getFromHour()
           
 int getFromMinute()
           
 int getIndex()
           
 java.util.Date getStartTime(java.util.Date date)
           
 int getToHour()
           
 int getToMinute()
           
 boolean includes(java.util.Date date)
           
 boolean isStartAfter(java.util.Date date)
           
 void setDay(Day day)
           
 void setFromHour(int fromHour)
           
 void setFromMinute(int fromMinute)
           
 void setIndex(int index)
           
 void setToHour(int toHour)
           
 void setToMinute(int toMinute)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oid

protected long oid

version

protected int version

fromHour

protected int fromHour

fromMinute

protected int fromMinute

toHour

protected int toHour

toMinute

protected int toMinute

day

protected Day day

index

protected int index
Constructor Detail

DayPart

public DayPart()
Method Detail

add

public java.util.Date add(java.util.Date date,
                          long millis,
                          boolean isBusinessTime)

isStartAfter

public boolean isStartAfter(java.util.Date date)

includes

public boolean includes(java.util.Date date)

getStartTime

public java.util.Date getStartTime(java.util.Date date)

getDay

public Day getDay()

setDay

public void setDay(Day day)

getFromHour

public int getFromHour()

setFromHour

public void setFromHour(int fromHour)

getFromMinute

public int getFromMinute()

setFromMinute

public void setFromMinute(int fromMinute)

getIndex

public int getIndex()

setIndex

public void setIndex(int index)

getToHour

public int getToHour()

setToHour

public void setToHour(int toHour)

getToMinute

public int getToMinute()

setToMinute

public void setToMinute(int toMinute)