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 whereConditionMatchOne
is set totrue
.protected
TaskCalendar
(com.uc4.util.XMLDocument doc, Element task) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a newCalendarCondition
.void
Removes all calendar conditions.clone()
Deprecated.Use copy() instead.copy()
boolean
Returnstrue
if the task will be executed when the date of JobPlan activation or the logical date matches all specified calendar conditions.boolean
Returnstrue
if the calendar definition of external dependency should be used.boolean
Returnstrue
if the task will be executed when the date of JobPlan activation or the logical date does not match any of the specified calendar conditions.boolean
Returnstrue
if 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
.void
setCalendarConditions
(List<CalendarCondition> calendarConditions) OverridesCalendarCondition
void
The task will be executed when the date of JobPlan activation or the logical date matches all specified calendar conditions.void
Use calendar definition of external dependency.void
The task will be executed when the date of JobPlan activation or the logical date does not match any of the specified calendar conditions.void
The task will be executed when the date of JobPlan activation or the logical date matches one of the specified calendar conditions.int
size()
Returns the number of calendar conditions.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TaskCalendar
public TaskCalendar()Constructs an empty TaskCalendar whereConditionMatchOne
is 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:
iterator
in 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()Returnstrue
if 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()Returnstrue
if 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()Returnstrue
if 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()Returnstrue
if 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:
clone
in classObject
- Throws:
CloneNotSupportedException
-
copy
-