Package com.uc4.api.objects
Class WeeklyCalendarKeyword
java.lang.Object
com.uc4.api.objects.CalendarKeyword
com.uc4.api.objects.WeeklyCalendarKeyword
This class represents a weekly calendar keyword.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs a newWeeklyCalendarKeyword.WeeklyCalendarKeyword(UC4ObjectName name, int nWeek, int startWeek, int endWeek) Constructs a newWeeklyCalendarKeyword.protectedWeeklyCalendarKeyword(com.uc4.util.XMLDocument doc, Element keyword, String string) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the end week for the interval.intgetNWeek()Returns the interval in weeks.intReturns the start week for the interval.booleanisFriday()Returnstrueif friday is selected.booleanisGroup()Returnstrueif this is a group keyword.booleanisMonday()Returnstrueif monday is selected.booleanReturnstrueif this is a monthly keyword.booleanisRoll()Returnstrueif this is a roll keyword.booleanReturnstrueif saturday is selected.booleanisStatic()Returnstrueif this is a static keyword.booleanisSunday()Returnstrueif sunday is selected.booleanReturnstrueif thursday is selected.booleanReturnstrueif tuesday is selected.booleanReturnstrueif wednesday is selected.booleanisWeekly()Returnstrueif this is a weekly keyword.booleanisYearly()Returnstrueif this is a yearly keyword.protected voidSaves the keyword under the specified parent elementvoidsetEndWeek(int endWeek) Sets the end week for the interval.voidsetFriday(boolean friday) Selects or deselects friday.voidsetMonday(boolean monday) Selects or deselects monday.voidsetNWeek(int week) Sets the interval in weeks.voidsetSaturday(boolean saturday) Selects or deselects saturday.voidsetStartWeek(int startWeek) Sets the start week for the interval.voidsetSunday(boolean sunday) Selects or deselects sunday.voidsetThursday(boolean thursday) Selects or deselects thursday.voidsetTuesday(boolean tuesday) Selects or deselects tuesday.voidsetWednesday(boolean wednesday) Selects or deselects wednesday.Methods inherited from class com.uc4.api.objects.CalendarKeyword
containsDate, equals, getCalendarName, getErrorMessageInsert, getErrorMessageNumber, getErrorText, getName, getPreCalculatedDates, hashCode, invalidateCalculatedDates, loadCalculatedDays, setCalendarName, setErrorMessageInsert, setErrorMessageNumber, setErrorText, setName, toString
-
Constructor Details
-
WeeklyCalendarKeyword
-
WeeklyCalendarKeyword
Constructs a newWeeklyCalendarKeyword.- Parameters:
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 54
-
WeeklyCalendarKeyword
Constructs a newWeeklyCalendarKeyword. Every week starting with week 0 and ending with 54 is selected.- Parameters:
name- Name of the calendar keyword
-
-
Method Details
-
getEndWeek
public int getEndWeek()Returns the end week for the interval.- Returns:
- Integer containg the end week
-
setEndWeek
public void setEndWeek(int endWeek) Sets the end week for the interval.- Parameters:
endWeek- Integer containing the end week, between 0 and 54
-
getNWeek
public int getNWeek()Returns the interval in weeks.- Returns:
- Interval in weeks
-
setNWeek
public void setNWeek(int week) Sets the interval in weeks.- Parameters:
week- Interval in weeks, integer between 1 and 54
-
getStartWeek
public int getStartWeek()Returns the start week for the interval.- Returns:
- Integer containg the start week
-
setStartWeek
public void setStartWeek(int startWeek) Sets the start week for the interval.- Parameters:
startWeek- Integer containing the start week, between 0 and 54
-
isFriday
public boolean isFriday()Returnstrueif friday is selected.- Returns:
- Boolean containg true if friday is selected
-
setFriday
public void setFriday(boolean friday) Selects or deselects friday.- Parameters:
friday- Boolean containg true if friday should be selected
-
isMonday
public boolean isMonday()Returnstrueif monday is selected.- Returns:
- Boolean containg true if monday is selected
-
setMonday
public void setMonday(boolean monday) Selects or deselects monday.- Parameters:
monday- Boolean containg true if monday should be selected
-
isSaturday
public boolean isSaturday()Returnstrueif saturday is selected.- Returns:
- Boolean containg true if saturday is selected
-
setSaturday
public void setSaturday(boolean saturday) Selects or deselects saturday.- Parameters:
saturday- Boolean containg true if saturday should be selected
-
isSunday
public boolean isSunday()Returnstrueif sunday is selected.- Returns:
- Boolean containg true if sunday is selected
-
setSunday
public void setSunday(boolean sunday) Selects or deselects sunday.- Parameters:
sunday- Boolean containg true if sunday should be selected
-
isThursday
public boolean isThursday()Returnstrueif thursday is selected.- Returns:
- Boolean containg true if thursday is selected
-
setThursday
public void setThursday(boolean thursday) Selects or deselects thursday.- Parameters:
thursday- Boolean containg true if thursday should be selected
-
isTuesday
public boolean isTuesday()Returnstrueif tuesday is selected.- Returns:
- Boolean containg true if tuesday is selected
-
setTuesday
public void setTuesday(boolean tuesday) Selects or deselects tuesday.- Parameters:
tuesday- Boolean containg true if tuesday should be selected
-
isWednesday
public boolean isWednesday()Returnstrueif wednesday is selected.- Returns:
- Boolean containg true if wednesday is selected
-
setWednesday
public void setWednesday(boolean wednesday) Selects or deselects wednesday.- Parameters:
wednesday- Boolean containg true if wednesday should be selected
-
isStatic
public boolean isStatic()Description copied from class:CalendarKeywordReturnstrueif this is a static keyword.- Specified by:
isStaticin classCalendarKeyword- Returns:
- Boolean containing true in case of a static keyword
-
isWeekly
public boolean isWeekly()Description copied from class:CalendarKeywordReturnstrueif this is a weekly keyword.- Specified by:
isWeeklyin classCalendarKeyword- Returns:
- Boolean containing true in case of a weekly keyword
-
isMonthly
public boolean isMonthly()Description copied from class:CalendarKeywordReturnstrueif this is a monthly keyword.- Specified by:
isMonthlyin classCalendarKeyword- Returns:
- Boolean containing true in case of a monthly keyword
-
isYearly
public boolean isYearly()Description copied from class:CalendarKeywordReturnstrueif this is a yearly keyword.- Specified by:
isYearlyin classCalendarKeyword- Returns:
- Boolean containing true in case of a yearly keyword
-
isGroup
public boolean isGroup()Description copied from class:CalendarKeywordReturnstrueif this is a group keyword.- Specified by:
isGroupin classCalendarKeyword- Returns:
- Boolean containing true in case of a group keyword
-
isRoll
public boolean isRoll()Description copied from class:CalendarKeywordReturnstrueif this is a roll keyword.- Specified by:
isRollin classCalendarKeyword- Returns:
- Boolean containing true in case of a roll keyword
-
save
Description copied from class:CalendarKeywordSaves the keyword under the specified parent element- Specified by:
savein classCalendarKeyword- Parameters:
doc- XML Documentparent- Parent element
-