public class TaskCalendar extends java.lang.Object implements java.lang.Iterable<CalendarCondition>
Modifier | Constructor and Description |
---|---|
|
TaskCalendar()
Constructs an empty TaskCalendar where
ConditionMatchOne is set to true . |
protected |
TaskCalendar(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element task) |
Modifier and Type | Method and Description |
---|---|
void |
addCalendarCondition(CalendarCondition cale)
Adds a new
CalendarCondition . |
void |
clearCalendarList()
Removes all calendar conditions.
|
TaskCalendar |
clone() |
boolean |
isConditionMatchAll()
Returns
true if the task will be executed when the date of JobPlan
activation or the logical date matches all specified calendar conditions. |
boolean |
isConditionMatchExt()
Returns
true if the calendar definition of external dependency should be used. |
boolean |
isConditionMatchNone()
Returns
true 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 |
isConditionMatchOne()
Returns
true if the task will be executed when the date of JobPlan activation
or the logical date matches one of the specified calendar conditions. |
java.util.Iterator<CalendarCondition> |
iterator()
Returns an iterator over
CalendarCondition . |
void |
setCalendarConditions(java.util.List<CalendarCondition> calendarConditions)
Overrides
CalendarCondition |
void |
setConditionMatchAll()
The task will be executed when the date of JobPlan activation
or the logical date matches all specified calendar conditions.
|
void |
setConditionMatchExt()
Use calendar definition of external dependency.
|
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.
|
void |
setConditionMatchOne()
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.
|
public TaskCalendar()
ConditionMatchOne
is set to true
.protected TaskCalendar(com.uc4.util.XMLDocument doc, org.w3c.dom.Element task)
public void addCalendarCondition(CalendarCondition cale)
CalendarCondition
.cale
- CalendarCondition which should be addedpublic void setCalendarConditions(java.util.List<CalendarCondition> calendarConditions)
CalendarCondition
calendarConditions
- CalendarCondition which are overriding existing onespublic java.util.Iterator<CalendarCondition> iterator()
CalendarCondition
.iterator
in interface java.lang.Iterable<CalendarCondition>
CalendarCondition
public void clearCalendarList()
public void setConditionMatchOne()
public boolean isConditionMatchOne()
true
if the task will be executed when the date of JobPlan activation
or the logical date matches one of the specified calendar conditions.public void setConditionMatchNone()
public boolean isConditionMatchNone()
true
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.public void setConditionMatchAll()
public boolean isConditionMatchAll()
true
if the task will be executed when the date of JobPlan
activation or the logical date matches all specified calendar conditions.public void setConditionMatchExt()
public boolean isConditionMatchExt()
true
if the calendar definition of external dependency should be used.
This option is only available for external dependencies.public int size()
public TaskCalendar clone()
clone
in class java.lang.Object