01: package org.obe.engine.calendar;
02:
03: import org.apache.commons.logging.Log;
04: import org.apache.commons.logging.LogFactory;
05:
06: import java.io.Serializable;
07: import java.util.BitSet;
08: import java.util.GregorianCalendar;
09: import java.util.TimeZone;
10:
11: /**
12: * Abstract base class for a business calendar rule.
13: */
14: public abstract class CalendarRule implements Serializable {
15: private static final long serialVersionUID = -7312817402486672226L;
16:
17: protected static final Log _LOGGER = LogFactory
18: .getLog(CalendarRule.class);
19:
20: private boolean _include;
21:
22: protected CalendarRule() {
23: }
24:
25: public abstract void applyRule(BitSet mask, int length,
26: GregorianCalendar startDate, GregorianCalendar endDate,
27: TimeZone tz);
28:
29: public boolean isInclude() {
30: return _include;
31: }
32:
33: public void setInclude(boolean include) {
34: _include = include;
35: }
36: }
|