public class WeeklyCalendarKeyword extends CalendarKeyword
Modifier | Constructor and Description |
---|---|
|
WeeklyCalendarKeyword(UC4ObjectName name)
Constructs a new
WeeklyCalendarKeyword . |
|
WeeklyCalendarKeyword(UC4ObjectName name,
int nWeek,
int startWeek,
int endWeek)
Constructs a new
WeeklyCalendarKeyword . |
protected |
WeeklyCalendarKeyword(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element keyword,
java.lang.String string) |
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. |
protected void |
save(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element parent)
Saves the keyword under the specified parent element
|
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, invalidateCalculatedDates, loadCalculatedDays, setCalendarName, setErrorMessageInsert, setErrorMessageNumber, setErrorText, setName, toString
protected WeeklyCalendarKeyword(com.uc4.util.XMLDocument doc, org.w3c.dom.Element keyword, java.lang.String string)
public 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()
CalendarKeyword
true
if this is a static keyword.isStatic
in class CalendarKeyword
public boolean isWeekly()
CalendarKeyword
true
if this is a weekly keyword.isWeekly
in class CalendarKeyword
public boolean isMonthly()
CalendarKeyword
true
if this is a monthly keyword.isMonthly
in class CalendarKeyword
public boolean isYearly()
CalendarKeyword
true
if this is a yearly keyword.isYearly
in class CalendarKeyword
public boolean isGroup()
CalendarKeyword
true
if this is a group keyword.isGroup
in class CalendarKeyword
public boolean isRoll()
CalendarKeyword
true
if this is a roll keyword.isRoll
in class CalendarKeyword
protected void save(com.uc4.util.XMLDocument doc, org.w3c.dom.Element parent)
CalendarKeyword
save
in class CalendarKeyword
doc
- XML Documentparent
- Parent element