Package com.uc4.api.objects
Class TaskCalendar
java.lang.Object
com.uc4.api.objects.TaskCalendar
- All Implemented Interfaces:
Iterable<CalendarCondition>
Task calendar conditions.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs an empty TaskCalendar whereConditionMatchOneis set totrue.protectedTaskCalendar(com.uc4.util.XMLDocument doc, Element task) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a newCalendarCondition.voidRemoves all calendar conditions.clone()Deprecated.Use copy() instead.copy()booleanReturnstrueif the task will be executed when the date of JobPlan activation or the logical date matches all specified calendar conditions.booleanReturnstrueif the calendar definition of external dependency should be used.booleanReturnstrueif the task will be executed when the date of JobPlan activation or the logical date does not match any of the specified calendar conditions.booleanReturnstrueif the task will be executed when the date of JobPlan activation or the logical date matches one of the specified calendar conditions.iterator()Returns an iterator overCalendarCondition.voidsetCalendarConditions(List<CalendarCondition> calendarConditions) OverridesCalendarConditionvoidThe task will be executed when the date of JobPlan activation or the logical date matches all specified calendar conditions.voidUse calendar definition of external dependency.voidThe task will be executed when the date of JobPlan activation or the logical date does not match any of the specified calendar conditions.voidThe task will be executed when the date of JobPlan activation or the logical date matches one of the specified calendar conditions.intsize()Returns the number of calendar conditions.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TaskCalendar
public TaskCalendar()Constructs an empty TaskCalendar whereConditionMatchOneis set totrue. -
TaskCalendar
-
-
Method Details
-
addCalendarCondition
Adds a newCalendarCondition.- Parameters:
cale- CalendarCondition which should be added
-
setCalendarConditions
OverridesCalendarCondition- Parameters:
calendarConditions- CalendarCondition which are overriding existing ones
-
getCaleList
-
iterator
Returns an iterator overCalendarCondition.- Specified by:
iteratorin interfaceIterable<CalendarCondition>- Returns:
- Iterator which can be used to get the
CalendarCondition
-
clearCalendarList
public void clearCalendarList()Removes all calendar conditions. -
setConditionMatchOne
public void setConditionMatchOne()The task will be executed when the date of JobPlan activation or the logical date matches one of the specified calendar conditions. -
isConditionMatchOne
public boolean isConditionMatchOne()Returnstrueif the task will be executed when the date of JobPlan activation or the logical date matches one of the specified calendar conditions.- Returns:
- True if one condition matches
-
setConditionMatchNone
public void setConditionMatchNone()The task will be executed when the date of JobPlan activation or the logical date does not match any of the specified calendar conditions. -
isConditionMatchNone
public boolean isConditionMatchNone()Returnstrueif the task will be executed when the date of JobPlan activation or the logical date does not match any of the specified calendar conditions.- Returns:
- Execute if no condition matches
-
setConditionMatchAll
public void setConditionMatchAll()The task will be executed when the date of JobPlan activation or the logical date matches all specified calendar conditions. -
isConditionMatchAll
public boolean isConditionMatchAll()Returnstrueif the task will be executed when the date of JobPlan activation or the logical date matches all specified calendar conditions.- Returns:
- Execute if all conditions match
-
setConditionMatchExt
public void setConditionMatchExt()Use calendar definition of external dependency. This option is only available for external dependencies. -
isConditionMatchExt
public boolean isConditionMatchExt()Returnstrueif the calendar definition of external dependency should be used. This option is only available for external dependencies.- Returns:
- True if the calendar definition of external dependency should be used
-
size
public int size()Returns the number of calendar conditions.- Returns:
- number of calendar conditions
-
clone
Deprecated.Use copy() instead.- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
copy
-