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
.protected
GroupCalendarKeyword
(Element keyword, String string) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a calendar condition to the list of conditions where all least one must apply.void
Adds a calendar condition to the list of conditions where none of the calendar conditions must apply.void
Adds a calendar condition to the list of conditions where at least one must apply.Returns an iterator overCalendarCondition
where all calendar conditions must apply This iterator can be used to read or remove calendar conditions.boolean
isGroup()
Returnstrue
if this is a group keyword.boolean
Returnstrue
if this is a monthly keyword.boolean
isRoll()
Returnstrue
if this is a roll keyword.boolean
isStatic()
Returnstrue
if this is a static keyword.boolean
isWeekly()
Returnstrue
if this is a weekly keyword.boolean
isYearly()
Returnstrue
if this is a yearly keyword.Returns an iterator overCalendarCondition
where none of the calendar conditions apply This iterator can be used to read or remove calendar conditions.Returns an iterator overCalendarCondition
where at least one calendar condition must apply This iterator can be used to read or remove calendar conditions.protected void
Saves 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 overCalendarCondition
where 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 overCalendarCondition
where 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 overCalendarCondition
where 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:CalendarKeyword
Returnstrue
if this is a static keyword.- Specified by:
isStatic
in classCalendarKeyword
- Returns:
- Boolean containing true in case of a static keyword
-
isWeekly
public boolean isWeekly()Description copied from class:CalendarKeyword
Returnstrue
if this is a weekly keyword.- Specified by:
isWeekly
in classCalendarKeyword
- Returns:
- Boolean containing true in case of a weekly keyword
-
isMonthly
public boolean isMonthly()Description copied from class:CalendarKeyword
Returnstrue
if this is a monthly keyword.- Specified by:
isMonthly
in classCalendarKeyword
- Returns:
- Boolean containing true in case of a monthly keyword
-
isYearly
public boolean isYearly()Description copied from class:CalendarKeyword
Returnstrue
if this is a yearly keyword.- Specified by:
isYearly
in classCalendarKeyword
- Returns:
- Boolean containing true in case of a yearly keyword
-
isGroup
public boolean isGroup()Description copied from class:CalendarKeyword
Returnstrue
if this is a group keyword.- Specified by:
isGroup
in classCalendarKeyword
- Returns:
- Boolean containing true in case of a group keyword
-
isRoll
public boolean isRoll()Description copied from class:CalendarKeyword
Returnstrue
if this is a roll keyword.- Specified by:
isRoll
in classCalendarKeyword
- Returns:
- Boolean containing true in case of a roll keyword
-
save
Description copied from class:CalendarKeyword
Saves the keyword under the specified parent element- Specified by:
save
in classCalendarKeyword
- Parameters:
doc
- XML Documentparent
- Parent element
-