Package com.uc4.api.objects
Class GroupCalendarKeyword
- java.lang.Object
-
- com.uc4.api.objects.CalendarKeyword
-
- com.uc4.api.objects.GroupCalendarKeyword
-
public class GroupCalendarKeyword extends CalendarKeyword
This class represents a group calendar keyword.
-
-
Constructor Summary
Constructors Modifier Constructor Description GroupCalendarKeyword(UC4ObjectName name)Constructs a newGroupCalendarKeyword.protectedGroupCalendarKeyword(org.w3c.dom.Element keyword, java.lang.String string)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCalendarConditionAll(CalendarCondition cond)Adds a calendar condition to the list of conditions where all least one must apply.voidaddCalendarConditionNone(CalendarCondition cond)Adds a calendar condition to the list of conditions where none of the calendar conditions must apply.voidaddCalendarConditionOne(CalendarCondition cond)Adds a calendar condition to the list of conditions where at least one must apply.java.util.Iterator<CalendarCondition>allIterator()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.booleanisMonthly()Returnstrueif 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.java.util.Iterator<CalendarCondition>noneIterator()Returns an iterator overCalendarConditionwhere none of the calendar conditions apply This iterator can be used to read or remove calendar conditions.java.util.Iterator<CalendarCondition>oneIterator()Returns an iterator overCalendarConditionwhere at least one calendar condition must apply This iterator can be used to read or remove calendar conditions.protected voidsave(com.uc4.util.XMLDocument doc, org.w3c.dom.Element parent)Saves the keyword under the specified parent element-
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 Detail
-
GroupCalendarKeyword
protected GroupCalendarKeyword(org.w3c.dom.Element keyword, java.lang.String string)
-
GroupCalendarKeyword
public GroupCalendarKeyword(UC4ObjectName name)
Constructs a newGroupCalendarKeyword.- Parameters:
name- Name of the calendar keyword
-
-
Method Detail
-
oneIterator
public java.util.Iterator<CalendarCondition> 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
public java.util.Iterator<CalendarCondition> 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
public java.util.Iterator<CalendarCondition> 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
public void addCalendarConditionAll(CalendarCondition cond)
Adds a calendar condition to the list of conditions where all least one must apply.- Parameters:
cond- Calendar Condition
-
addCalendarConditionOne
public void addCalendarConditionOne(CalendarCondition cond)
Adds a calendar condition to the list of conditions where at least one must apply.- Parameters:
cond- Calendar Condition
-
addCalendarConditionNone
public void addCalendarConditionNone(CalendarCondition cond)
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
protected void save(com.uc4.util.XMLDocument doc, org.w3c.dom.Element parent)Description copied from class:CalendarKeywordSaves the keyword under the specified parent element- Specified by:
savein classCalendarKeyword- Parameters:
doc- XML Documentparent- Parent element
-
-