net.objectlab.kit.datecalc.common
Class HolidayHandlerType

java.lang.Object
  extended by net.objectlab.kit.datecalc.common.HolidayHandlerType

public final class HolidayHandlerType
extends java.lang.Object

Define a series of standard way to handle holidays.


Field Summary
static java.lang.String BACKWARD
          A backward handler will move the date backward if it falls on a non working day.
static java.lang.String FORWARD
          A Forward handler will move the date forward if it falls on a non working day.
static java.lang.String FORWARD_UNLESS_MOVING_BACK
          A handler that moves the date forward unless the increment is negative (eg moveByDays(-2)) in which case it behaves like a Backward handler.
static java.lang.String MODIFIED_FOLLOWING
          A modified following handler will move the date forward if it falls on a non working day BUT, if the new date falls into another month, it will revert to moving backward until it finds a working day.
static java.lang.String MODIFIED_PRECEEDING
          A modified preceeding handler will move the date backward if it falls on a non working day BUT, if the new date falls into another month, it will revert to moving forward until it finds a working day.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORWARD

public static final java.lang.String FORWARD
A Forward handler will move the date forward if it falls on a non working day.

See Also:
Constant Field Values

BACKWARD

public static final java.lang.String BACKWARD
A backward handler will move the date backward if it falls on a non working day.

See Also:
Constant Field Values

MODIFIED_FOLLOWING

public static final java.lang.String MODIFIED_FOLLOWING
A modified following handler will move the date forward if it falls on a non working day BUT, if the new date falls into another month, it will revert to moving backward until it finds a working day.

See Also:
Constant Field Values

MODIFIED_PRECEEDING

public static final java.lang.String MODIFIED_PRECEEDING
A modified preceeding handler will move the date backward if it falls on a non working day BUT, if the new date falls into another month, it will revert to moving forward until it finds a working day.

See Also:
Constant Field Values

FORWARD_UNLESS_MOVING_BACK

public static final java.lang.String FORWARD_UNLESS_MOVING_BACK
A handler that moves the date forward unless the increment is negative (eg moveByDays(-2)) in which case it behaves like a Backward handler.

See Also:
Constant Field Values