public class WeekDay extends Object implements com.aspose.ms.System.ICloneable
Represents a weekday which either defines regular days of a week or exception days in a calendar.
Constructor and Description |
---|
WeekDay()
Default constructor.
|
WeekDay(int dayType)
Creates new weekday with the specified day type.
|
WeekDay(int dayType,
List<WorkingTime> workingTimes) |
Modifier and Type | Method and Description |
---|---|
static int |
castToDayType(int dw)
Casts .Net's
DayOfWeek to DayType . |
static WeekDay |
createDefaultWorkingDay(int dayType)
Creates default working day.
|
Object |
deepClone()
Implementation of IClonable interface, returns a deep copy of the week day.
|
boolean |
equals(Object obj) |
int |
getDayType()
Returns or sets the type of a day.
|
boolean |
getDayWorking()
Determines whether the specified date or day type is working.
|
Date |
getFromDate() |
Date |
getToDate() |
long |
getWorkingTime() |
List<WorkingTime> |
getWorkingTimes() |
void |
setDayType(int value) |
void |
setDayWorking(boolean value) |
static void |
setDefaulWorkingTime(WeekDay day)
Sets default time periods for the specified week day.
|
void |
setFromDate(Date value) |
void |
setToDate(Date value) |
void |
setWorkingTimes(List<WorkingTime> value) |
public WeekDay(int dayType)
Creates new weekday with the specified day type.
dayType
- Day type.public WeekDay(int dayType, List<WorkingTime> workingTimes)
public WeekDay()
Default constructor.
public int getDayType()
Returns or sets the type of a day.
Read/write Aspose.Tasks.DayType
.
public void setDayType(int value)
public boolean getDayWorking()
Determines whether the specified date or day type is working.
Read/write bool
.
public void setDayWorking(boolean value)
public Date getFromDate()
public void setFromDate(Date value)
public Date getToDate()
public void setToDate(Date value)
public List<WorkingTime> getWorkingTimes()
public void setWorkingTimes(List<WorkingTime> value)
public long getWorkingTime()
public static WeekDay createDefaultWorkingDay(int dayType)
Creates default working day.
dayType
- Day type.public static int castToDayType(int dw)
Casts .Net's DayOfWeek
to DayType
.
dw
- Day of week.public static void setDefaulWorkingTime(WeekDay day)
Sets default time periods for the specified week day.
day
- Week day.public Object deepClone()
Implementation of IClonable interface, returns a deep copy of the week day.
deepClone
in interface com.aspose.ms.System.ICloneable
Copyright (c) 2008-2013 Aspose Pty Ltd. All Rights Reserved.