public class WeeklyCalendarKeyword extends CalendarKeyword
| Constructor and Description |
|---|
WeeklyCalendarKeyword(UC4ObjectName name)
Constructs a new
WeeklyCalendarKeyword. |
WeeklyCalendarKeyword(UC4ObjectName name,
int nWeek,
int startWeek,
int endWeek)
Constructs a new
WeeklyCalendarKeyword. |
| Modifier and Type | Method and Description |
|---|---|
int |
getEndWeek()
Returns the end week for the interval.
|
int |
getNWeek()
Returns the interval in weeks.
|
int |
getStartWeek()
Returns the start week for the interval.
|
boolean |
isFriday()
Returns
true if friday is selected. |
boolean |
isGroup()
Returns
true if this is a group keyword. |
boolean |
isMonday()
Returns
true if monday is selected. |
boolean |
isMonthly()
Returns
true if this is a monthly keyword. |
boolean |
isRoll()
Returns
true if this is a roll keyword. |
boolean |
isSaturday()
Returns
true if saturday is selected. |
boolean |
isStatic()
Returns
true if this is a static keyword. |
boolean |
isSunday()
Returns
true if sunday is selected. |
boolean |
isThursday()
Returns
true if thursday is selected. |
boolean |
isTuesday()
Returns
true if tuesday is selected. |
boolean |
isWednesday()
Returns
true if wednesday is selected. |
boolean |
isWeekly()
Returns
true if this is a weekly keyword. |
boolean |
isYearly()
Returns
true if this is a yearly keyword. |
void |
setEndWeek(int endWeek)
Sets the end week for the interval.
|
void |
setFriday(boolean friday)
Selects or deselects friday.
|
void |
setMonday(boolean monday)
Selects or deselects monday.
|
void |
setNWeek(int week)
Sets the interval in weeks.
|
void |
setSaturday(boolean saturday)
Selects or deselects saturday.
|
void |
setStartWeek(int startWeek)
Sets the start week for the interval.
|
void |
setSunday(boolean sunday)
Selects or deselects sunday.
|
void |
setThursday(boolean thursday)
Selects or deselects thursday.
|
void |
setTuesday(boolean tuesday)
Selects or deselects tuesday.
|
void |
setWednesday(boolean wednesday)
Selects or deselects wednesday.
|
containsDate, equals, getCalendarName, getErrorMessageInsert, getErrorMessageNumber, getErrorText, getName, getPreCalculatedDates, hashCode, setErrorMessageInsert, setName, toStringpublic WeeklyCalendarKeyword(UC4ObjectName name, int nWeek, int startWeek, int endWeek)
WeeklyCalendarKeyword.name - Name of the calendar keywordnWeek - Every n week, integer between 1 and 54startWeek - First week, integer between 0 and 54endWeek - Last week, integer between 0 and 54public WeeklyCalendarKeyword(UC4ObjectName name)
WeeklyCalendarKeyword.
Every week starting with week 0 and ending with 54 is selected.name - Name of the calendar keywordpublic int getEndWeek()
public void setEndWeek(int endWeek)
endWeek - Integer containing the end week, between 0 and 54public int getNWeek()
public void setNWeek(int week)
week - Interval in weeks, integer between 1 and 54public int getStartWeek()
public void setStartWeek(int startWeek)
startWeek - Integer containing the start week, between 0 and 54public boolean isFriday()
true if friday is selected.public void setFriday(boolean friday)
friday - Boolean containg true if friday should be selectedpublic boolean isMonday()
true if monday is selected.public void setMonday(boolean monday)
monday - Boolean containg true if monday should be selectedpublic boolean isSaturday()
true if saturday is selected.public void setSaturday(boolean saturday)
saturday - Boolean containg true if saturday should be selectedpublic boolean isSunday()
true if sunday is selected.public void setSunday(boolean sunday)
sunday - Boolean containg true if sunday should be selectedpublic boolean isThursday()
true if thursday is selected.public void setThursday(boolean thursday)
thursday - Boolean containg true if thursday should be selectedpublic boolean isTuesday()
true if tuesday is selected.public void setTuesday(boolean tuesday)
tuesday - Boolean containg true if tuesday should be selectedpublic boolean isWednesday()
true if wednesday is selected.public void setWednesday(boolean wednesday)
wednesday - Boolean containg true if wednesday should be selectedpublic boolean isStatic()
CalendarKeywordtrue if this is a static keyword.isStatic in class CalendarKeywordpublic boolean isWeekly()
CalendarKeywordtrue if this is a weekly keyword.isWeekly in class CalendarKeywordpublic boolean isMonthly()
CalendarKeywordtrue if this is a monthly keyword.isMonthly in class CalendarKeywordpublic boolean isYearly()
CalendarKeywordtrue if this is a yearly keyword.isYearly in class CalendarKeywordpublic boolean isGroup()
CalendarKeywordtrue if this is a group keyword.isGroup in class CalendarKeywordpublic boolean isRoll()
CalendarKeywordtrue if this is a roll keyword.isRoll in class CalendarKeywordCopyright © 2021. All rights reserved.