org.jbpm.calendar
Class DayPart

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

public class DayPart
extends Object
implements Serializable

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

See Also:
Serialized Form

Constructor Summary
DayPart(String dayPartText, DateFormat timeFormat, Day day, int index)
           
 
Method Summary
 Date add(Date date, Duration duration)
           
 Date getStartTime(Date time)
           
 boolean includes(Date time)
           
 boolean isStartAfter(Date time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DayPart

public DayPart(String dayPartText,
               DateFormat timeFormat,
               Day day,
               int index)
Method Detail

add

public Date add(Date date,
                Duration duration)

isStartAfter

public boolean isStartAfter(Date time)

includes

public boolean includes(Date time)

getStartTime

public Date getStartTime(Date time)


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