18 package org.turro.scheduler.motor;
20 import java.util.Date;
21 import org.jdom.Element;
22 import org.turro.scheduler.constraints.DayOfMonthConstraint;
23 import org.turro.scheduler.constraints.HourConstraint;
24 import org.turro.scheduler.constraints.MinuteConstraint;
25 import org.turro.scheduler.constraints.MonthConstraint;
26 import org.turro.scheduler.constraints.WeekDayConstraint;
65 boolean valid = months.
isValid(date);
66 if(valid) valid = daysOfMonth.
isValid(date);
67 if(valid) valid = weekDays.
isValid(date);
68 if(valid) valid = hours.
isValid(date);
69 if(valid) valid = minutes.
isValid(date);
86 return months.isEmpty() && daysOfMonth.isEmpty() &&
87 weekDays.isEmpty() && hours.isEmpty() && minutes.isEmpty();
91 months.
readXML(root.getChild(
"months"));
92 daysOfMonth.
readXML(root.getChild(
"days-of-month"));
93 weekDays.
readXML(root.getChild(
"week-days"));
94 hours.
readXML(root.getChild(
"hours"));
95 minutes.
readXML(root.getChild(
"minutes"));
99 Element el =
new Element(
"months");
103 el =
new Element(
"days-of-month");
107 el =
new Element(
"week-days");
111 el =
new Element(
"hours");
115 el =
new Element(
"minutes");
void readXML(Element root)
boolean isValid(Date date)
void writeXML(Element root)
void readXML(Element root)
void writeXML(Element root)
boolean isValid(Date date)
boolean isValid(Date date)
void writeXML(Element root)
void readXML(Element root)
void readXML(Element root)
void writeXML(Element root)
boolean isValid(Date date)
boolean isValid(Date date)
void readXML(Element root)
void writeXML(Element root)
DayOfMonthConstraint getDaysOfMonth()
boolean isValid(Date date)
void readXML(Element root)
WeekDayConstraint getWeekDays()
void writeXML(Element root)
MonthConstraint getMonths()
MinuteConstraint getMinutes()
HourConstraint getHours()