public class RollCalendarKeyword extends CalendarKeyword
Modifier | Constructor and Description |
---|---|
protected |
RollCalendarKeyword(org.w3c.dom.Element keyword,
java.lang.String string) |
|
RollCalendarKeyword(UC4ObjectName name,
CalendarCondition cond)
Constructs a new
RollCalendarKeyword using the specified source calendar condition. |
Modifier and Type | Method and Description |
---|---|
void |
addCollision(RollCalendarCollision coll)
Adds a
RollCalendarCollision to the list of reactions in case of collision. |
int |
collionsSize()
Returns the number of entries in the collision list.
|
java.util.Iterator<RollCalendarCollision> |
collisionIterator()
Returns an iterator over
RollCalendarCollision . |
int |
getAdjustDays()
Returns the number of days of adjustment.
|
CalendarCondition |
getAdjustmentCalendar()
Returns the name and keyword of the calendar which contains valid days for adjustment.
|
char |
getAdjustSign() |
CalendarCondition |
getSourceCalendar()
Returns the source calendar condition.
|
boolean |
isGroup()
Returns
true if this is a group keyword. |
boolean |
isMonthly()
Returns
true if this is a monthly keyword. |
boolean |
isRoll()
Returns
true if this is a roll keyword. |
boolean |
isStatic()
Returns
true if this is a static keyword. |
boolean |
isWeekly()
Returns
true if this is a weekly keyword. |
boolean |
isYearly()
Returns
true if this is a yearly keyword. |
boolean |
removeCollision(RollCalendarCollision coll)
Removes the specified reaction in case of a collision.
|
protected void |
save(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element parent)
Saves the keyword under the specified parent element
|
void |
setAdjustDays(int adjustDays)
Sets the number of days of adjustment.
|
void |
setAdjustmentCalendar(CalendarCondition adjustmentCalendar)
Sets the calendar and keyword from which days should be choosen if adjustment is enabled.
|
void |
setAdjustSign(char sign)
Sets the sign of the adjust offset.
|
void |
setSourceCalendar(CalendarCondition sourceCalendar)
Sets the source calendar condition.
|
containsDate, equals, getCalendarName, getErrorMessageInsert, getErrorMessageNumber, getErrorText, getName, getPreCalculatedDates, hashCode, invalidateCalculatedDates, loadCalculatedDays, setCalendarName, setErrorMessageInsert, setErrorMessageNumber, setErrorText, setName, toString
protected RollCalendarKeyword(org.w3c.dom.Element keyword, java.lang.String string)
public RollCalendarKeyword(UC4ObjectName name, CalendarCondition cond)
RollCalendarKeyword
using the specified source calendar condition.name
- Name of the calendar keywordcond
- Source calendar and keywordpublic java.util.Iterator<RollCalendarCollision> collisionIterator()
RollCalendarCollision
.public void addCollision(RollCalendarCollision coll)
RollCalendarCollision
to the list of reactions in case of collision.coll
- Reactions in case of collisionpublic boolean removeCollision(RollCalendarCollision coll)
coll
- Reactions in case of collisionpublic int collionsSize()
public int getAdjustDays()
public void setAdjustDays(int adjustDays)
adjustDays
- Integer containing the day offsetpublic CalendarCondition getAdjustmentCalendar()
public void setAdjustmentCalendar(CalendarCondition adjustmentCalendar)
adjustmentCalendar
can be set to null
if
no specific calendar with valid days should be used.adjustmentCalendar
- Calendar name and calendar keyword containing valid days for adjustmentpublic CalendarCondition getSourceCalendar()
public void setSourceCalendar(CalendarCondition sourceCalendar)
sourceCalendar
- Source calendar conditionpublic boolean isStatic()
CalendarKeyword
true
if this is a static keyword.isStatic
in class CalendarKeyword
public boolean isWeekly()
CalendarKeyword
true
if this is a weekly keyword.isWeekly
in class CalendarKeyword
public boolean isMonthly()
CalendarKeyword
true
if this is a monthly keyword.isMonthly
in class CalendarKeyword
public boolean isYearly()
CalendarKeyword
true
if this is a yearly keyword.isYearly
in class CalendarKeyword
public boolean isGroup()
CalendarKeyword
true
if this is a group keyword.isGroup
in class CalendarKeyword
public boolean isRoll()
CalendarKeyword
true
if this is a roll keyword.isRoll
in class CalendarKeyword
public void setAdjustSign(char sign)
sign
- Sign '+' or '-'public char getAdjustSign()
protected void save(com.uc4.util.XMLDocument doc, org.w3c.dom.Element parent)
CalendarKeyword
save
in class CalendarKeyword
doc
- XML Documentparent
- Parent element