Package com.uc4.api.objects
Class GroupCalendarKeyword
java.lang.Object
com.uc4.api.objects.CalendarKeyword
com.uc4.api.objects.GroupCalendarKeyword
This class represents a group calendar keyword.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs a newGroupCalendarKeyword.protectedGroupCalendarKeyword(Element keyword, String string) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a calendar condition to the list of conditions where all least one must apply.voidAdds a calendar condition to the list of conditions where none of the calendar conditions must apply.voidAdds a calendar condition to the list of conditions where at least one must apply.Returns an iterator overCalendarConditionwhere all calendar conditions must apply This iterator can be used to read or remove calendar conditions.booleanisGroup()Returnstrueif this is a group keyword.booleanReturnstrueif this is a monthly keyword.booleanisRoll()Returnstrueif this is a roll keyword.booleanisStatic()Returnstrueif this is a static keyword.booleanisWeekly()Returnstrueif this is a weekly keyword.booleanisYearly()Returnstrueif this is a yearly keyword.Returns an iterator overCalendarConditionwhere none of the calendar conditions apply This iterator can be used to read or remove calendar conditions.Returns an iterator overCalendarConditionwhere at least one calendar condition must apply This iterator can be used to read or remove calendar conditions.protected voidSaves the keyword under the specified parent elementMethods 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
-
GroupCalendarKeyword
-
GroupCalendarKeyword
Constructs a newGroupCalendarKeyword.- Parameters:
name- Name of the calendar keyword
-
-
Method Details
-
oneIterator
Returns an iterator overCalendarConditionwhere at least one calendar condition must apply This iterator can be used to read or remove calendar conditions.- Returns:
- Iterator over calendar conditions
-
allIterator
Returns an iterator overCalendarConditionwhere all calendar conditions must apply This iterator can be used to read or remove calendar conditions.- Returns:
- Iterator over calendar conditions
-
noneIterator
Returns an iterator overCalendarConditionwhere none of the calendar conditions apply This iterator can be used to read or remove calendar conditions.- Returns:
- Iterator over calendar conditions
-
addCalendarConditionAll
Adds a calendar condition to the list of conditions where all least one must apply.- Parameters:
cond- Calendar Condition
-
addCalendarConditionOne
Adds a calendar condition to the list of conditions where at least one must apply.- Parameters:
cond- Calendar Condition
-
addCalendarConditionNone
Adds a calendar condition to the list of conditions where none of the calendar conditions must apply.- Parameters:
cond- Calendar Condition
-
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
-