public class TimeTableRule extends Object
Constructor and Description |
---|
TimeTableRule() |
TimeTableRule(int day,
int timeFromSeconds,
int timeToSeconds)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getDay()
Returns day for which the rule applies
|
int |
getTimeFrom()
Time in seconds on that day from where the rule applies
|
int |
getTimeTo()
Time in seconds on that day until the rule applies
|
void |
init(WeekDay forDay,
XMLGregorianCalendar fromTime,
XMLGregorianCalendar toTime) |
public TimeTableRule()
public TimeTableRule(int day, int timeFromSeconds, int timeToSeconds)
day
- day for which the rule applies, e.g. Calendar.MONDAYtimeFrom
- date containing the time from where the rule appliestimeTo
- date containing the time until the rule appliespublic void init(WeekDay forDay, XMLGregorianCalendar fromTime, XMLGregorianCalendar toTime) throws ProcessValidationException
ProcessValidationException
public int getDay()
public int getTimeFrom()
public int getTimeTo()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.