Interface IWorkingDay
public interface IWorkingDay
Defines either regular days of the week or exception days in the calendar.
- Author:
- POLARION SOFTWARE
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptioncreateElement
(Element parent) int
getDay()
The type of working day: 1-7 for Sunday, Monday, ...int
Returns the type of event on this day.long
getName()
long
For working day returns working times that define the time worked.boolean
Indicates whether the specified date or date type is a working day.boolean
matchTime
(long time) void
setDay
(int day) void
setDayType
(int dayType) void
setFromDate
(long date) void
void
setToDate
(long date) void
setWorkingTimes
(IWorkingTime[] times)
-
Field Details
-
DAY_TYPE_HOLIDAY
static final int DAY_TYPE_HOLIDAY- See Also:
-
DAY_TYPE_WORKING
static final int DAY_TYPE_WORKING- See Also:
-
DAY_TYPE_OTHER
static final int DAY_TYPE_OTHER- See Also:
-
-
Method Details
-
getDay
int getDay()The type of working day:- 1-7 for Sunday, Monday, ...
- 0 for exception; in this case range must be filled
- Returns:
- the
int
indicating the type of this working day
-
setDay
void setDay(int day) -
isWorking
boolean isWorking()Indicates whether the specified date or date type is a working day. -
getName
-
setName
-
getDayType
int getDayType()Returns the type of event on this day. Possible values are defined as constants in IWorkingDay.- Returns:
- the
int
indicating the type of event in this day
-
setDayType
void setDayType(int dayType) -
getWorkingTimes
For working day returns working times that define the time worked. -
setWorkingTimes
-
getFromDate
long getFromDate()- Returns:
- range start
-
setFromDate
void setFromDate(long date) -
getToDate
long getToDate()- Returns:
- range end
-
setToDate
void setToDate(long date) -
matchTime
boolean matchTime(long time) - Parameters:
time
-- Returns:
true
if time matches this working day
-
createElement
-