public class A_CmsSerialDateValue extends java.lang.Object implements I_CmsSerialDateValue
I_CmsSerialDateValue.DateType, I_CmsSerialDateValue.EndType, I_CmsSerialDateValue.JsonKey, I_CmsSerialDateValue.Month, I_CmsSerialDateValue.PatternType, I_CmsSerialDateValue.WeekDay, I_CmsSerialDateValue.WeekOfMonthDAY_IN_MILLIS, NUM_OF_WEEKDAYS| Constructor and Description |
|---|
A_CmsSerialDateValue() |
| Modifier and Type | Method and Description |
|---|---|
void |
addException(java.util.Date date)
Add a date where the event should not take place, even if they are part of the series.
|
void |
addWeekOfMonth(I_CmsSerialDateValue.WeekOfMonth week)
Add a week of month.
|
void |
clearExceptions()
Clear the exceptions.
|
void |
clearIndividualDates()
Clear the individual dates.
|
void |
clearWeekDays()
Clear the week days.
|
void |
clearWeeksOfMonth()
Clear the weeks of month.
|
boolean |
endsAtMidNight()
Returns a flag, indicating if the event ends at midnight.
|
boolean |
equals(java.lang.Object o) |
I_CmsSerialDateValue.DateType |
getDateType()
Returns the type of the specified date.
|
int |
getDayOfMonth()
Returns the day of the month, the events should take place.
|
java.util.Date |
getEnd()
Returns the end time of the events.
|
I_CmsSerialDateValue.EndType |
getEndType()
Returns the end type of the event series.
|
java.util.SortedSet<java.util.Date> |
getExceptions()
Returns the dates, where the event should not take place.
|
java.util.SortedSet<java.util.Date> |
getIndividualDates()
Returns the dates of an individual date series.
|
int |
getInterval()
Returns the pattern type specific interval of the event.
|
I_CmsSerialDateValue.Month |
getMonth()
Returns the month in which the events take place.
|
int |
getOccurrences()
Returns the number of occurrences of the event.
|
CmsUUID |
getParentSeriesId()
Returns the uuid of the content that holds the series, the current event was extracted from.
|
I_CmsSerialDateValue.PatternType |
getPatternType()
Returns the pattern type of the event series.
|
java.util.Date |
getSeriesEndDate()
Returns the date of the last day, events of the series should take place.
|
java.util.Date |
getStart()
Returns the start time of the events.
|
I_CmsSerialDateValue.WeekDay |
getWeekDay()
Returns the week day where the event should take place.
|
java.util.SortedSet<I_CmsSerialDateValue.WeekDay> |
getWeekDays()
Returns the week days where the event should take place.
|
I_CmsSerialDateValue.WeekOfMonth |
getWeekOfMonth()
Returns the week of the month, the event should take place.
|
java.util.SortedSet<I_CmsSerialDateValue.WeekOfMonth> |
getWeeksOfMonth()
Returns the weeks of the month, the event should take place.
|
boolean |
hasExceptions()
Returns a flag, indicating if exceptions are present.
|
int |
hashCode() |
boolean |
isCurrentTillEnd()
Returns a flag, indicating if the events should be treated as "current" till they end (or only till they start).
|
protected boolean |
isDayOfMonthValid()
Checks, if a valid day of month is set.
|
protected boolean |
isDurationValid()
Checks if the duration option is valid.
|
protected boolean |
isEndValid()
Check, if the end date of the single event is valid, i.e., either not set or not before the start date.
|
boolean |
isEveryWorkingDay()
Returns a flag, indicating if the event should take place every working day.
|
boolean |
isFromOtherSeries()
Returns a flag, indicating if the event is extracted from another series.
|
protected boolean |
isIntervalValid()
Checks, if a valid interval is specified.
|
protected boolean |
isMonthSet()
Checks, if a month is specified.
|
protected boolean |
isPatternValid()
Checks, if all values necessary for a specific pattern are valid.
|
protected boolean |
isStartSet()
Check, if the start time stamp is set.
|
boolean |
isValid()
Returns a flag, indicating if the value specifies a valid date (series).
|
protected boolean |
isValidEndTypeForPattern()
Checks, if the end type is valid for the set pattern type.
|
protected boolean |
isWeekDaySet()
Checks if at least one weekday is specified.
|
protected boolean |
isWeekOfMonthSet()
Checks, if at least one week of month is set.
|
boolean |
isWholeDay()
Returns a flag, indicating if the event last the whole day/whole days.
|
void |
removeWeekOfMonth(I_CmsSerialDateValue.WeekOfMonth week)
Remove a week of month.
|
void |
setCurrentTillEnd(java.lang.Boolean isCurrentTillEnd)
Set the flag, indicating if the event is treated as "current" till the end.
|
void |
setDayOfMonth(int dayOfMonth)
Set the day of month.
|
protected void |
setDefaultValue()
Sets the value to a default.
|
protected void |
setDerivedEndType()
Set the end type as derived from other values.
|
void |
setEnd(java.util.Date date)
Set the end time for the event.
|
void |
setEndType(I_CmsSerialDateValue.EndType endType)
Set the end type of the series.
|
void |
setEveryWorkingDay(java.lang.Boolean isEveryWorkingDay)
Set the flag, indicating if the event should take place every working day.
|
void |
setExceptions(java.util.SortedSet<java.util.Date> dates)
Set dates where the event should not take place, even if they are part of the series.
|
void |
setIndividualDates(java.util.SortedSet<java.util.Date> dates)
Set the individual dates where the event should take place.
|
void |
setInterval(int interval)
Set the pattern type specific interval between two events, e.g., number of days, weeks, month, years.
|
void |
setMonth(I_CmsSerialDateValue.Month month)
Set the month in which the event should take place.
|
void |
setOccurrences(int occurrences)
Set the number of occurrences of the event.
|
void |
setParentSeriesId(CmsUUID structureId)
Set the series, the current event (series) is extracted from.
|
void |
setPatternType(I_CmsSerialDateValue.PatternType type)
Set the pattern type of the event series.
|
void |
setSeriesEndDate(java.util.Date date)
Set the last day events of the series should occur.
|
void |
setStart(java.util.Date date)
Set the start time of the events.
|
void |
setWeekDay(I_CmsSerialDateValue.WeekDay weekDay)
Set the week day the events should occur.
|
void |
setWeekDays(java.util.SortedSet<I_CmsSerialDateValue.WeekDay> weekDays)
Set the week days the events should occur.
|
void |
setWeekOfMonth(I_CmsSerialDateValue.WeekOfMonth weekOfMonth)
Set the week of the month the events should occur.
|
void |
setWeeksOfMonth(java.util.SortedSet<I_CmsSerialDateValue.WeekOfMonth> weeksOfMonth)
Set the weeks of the month the events should occur.
|
void |
setWholeDay(java.lang.Boolean isWholeDay)
Set the flag, indicating if the event last the whole day/whole days.
|
public A_CmsSerialDateValue()
public void addException(java.util.Date date)
date - the date to add as exception.public final void addWeekOfMonth(I_CmsSerialDateValue.WeekOfMonth week)
week - the week to add.public final void clearExceptions()
public final void clearIndividualDates()
public final void clearWeekDays()
public final void clearWeeksOfMonth()
public boolean endsAtMidNight()
I_CmsSerialDateValueendsAtMidNight in interface I_CmsSerialDateValueI_CmsSerialDateValue.endsAtMidNight()public final boolean equals(java.lang.Object o)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public I_CmsSerialDateValue.DateType getDateType()
I_CmsSerialDateValuegetDateType in interface I_CmsSerialDateValueI_CmsSerialDateValue.getDateType()public final int getDayOfMonth()
I_CmsSerialDateValuegetDayOfMonth in interface I_CmsSerialDateValueI_CmsSerialDateValue.getDayOfMonth()public final java.util.Date getEnd()
I_CmsSerialDateValuegetEnd in interface I_CmsSerialDateValueI_CmsSerialDateValue.getEnd()public final I_CmsSerialDateValue.EndType getEndType()
I_CmsSerialDateValuegetEndType in interface I_CmsSerialDateValueI_CmsSerialDateValue.getEndType()public final java.util.SortedSet<java.util.Date> getExceptions()
I_CmsSerialDateValuegetExceptions in interface I_CmsSerialDateValueI_CmsSerialDateValue.getExceptions()public final java.util.SortedSet<java.util.Date> getIndividualDates()
I_CmsSerialDateValuegetIndividualDates in interface I_CmsSerialDateValueI_CmsSerialDateValue.getIndividualDates()public final int getInterval()
I_CmsSerialDateValuegetInterval in interface I_CmsSerialDateValueI_CmsSerialDateValue.getInterval()public final I_CmsSerialDateValue.Month getMonth()
I_CmsSerialDateValuegetMonth in interface I_CmsSerialDateValueI_CmsSerialDateValue.getMonth()public final int getOccurrences()
I_CmsSerialDateValuegetOccurrences in interface I_CmsSerialDateValueI_CmsSerialDateValue.getOccurrences()public CmsUUID getParentSeriesId()
I_CmsSerialDateValuenull if the current event series was not extracted from another one.getParentSeriesId in interface I_CmsSerialDateValuenull, if the event is not extracted from another event series.I_CmsSerialDateValue.getParentSeriesId()public final I_CmsSerialDateValue.PatternType getPatternType()
I_CmsSerialDateValuegetPatternType in interface I_CmsSerialDateValueI_CmsSerialDateValue.getPatternType()public final java.util.Date getSeriesEndDate()
I_CmsSerialDateValuegetSeriesEndDate in interface I_CmsSerialDateValueI_CmsSerialDateValue.getSeriesEndDate()public final java.util.Date getStart()
I_CmsSerialDateValuegetStart in interface I_CmsSerialDateValueI_CmsSerialDateValue.getStart()public final I_CmsSerialDateValue.WeekDay getWeekDay()
I_CmsSerialDateValuegetWeekDay in interface I_CmsSerialDateValueI_CmsSerialDateValue.getWeekDay()public final java.util.SortedSet<I_CmsSerialDateValue.WeekDay> getWeekDays()
I_CmsSerialDateValuegetWeekDays in interface I_CmsSerialDateValueI_CmsSerialDateValue.getWeekDays()public final I_CmsSerialDateValue.WeekOfMonth getWeekOfMonth()
I_CmsSerialDateValuegetWeekOfMonth in interface I_CmsSerialDateValueI_CmsSerialDateValue.getWeekOfMonth()public final java.util.SortedSet<I_CmsSerialDateValue.WeekOfMonth> getWeeksOfMonth()
I_CmsSerialDateValuegetWeeksOfMonth in interface I_CmsSerialDateValueI_CmsSerialDateValue.getWeeksOfMonth()public final boolean hasExceptions()
public final int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean isCurrentTillEnd()
I_CmsSerialDateValueisCurrentTillEnd in interface I_CmsSerialDateValuetrue if the event is "current" till it ends, false if it is current till it starts.I_CmsSerialDateValue.isCurrentTillEnd()public final boolean isEveryWorkingDay()
I_CmsSerialDateValueisEveryWorkingDay in interface I_CmsSerialDateValueI_CmsSerialDateValue.isEveryWorkingDay()public boolean isFromOtherSeries()
I_CmsSerialDateValueisFromOtherSeries in interface I_CmsSerialDateValueI_CmsSerialDateValue.isFromOtherSeries()public final boolean isValid()
I_CmsSerialDateValueisValid in interface I_CmsSerialDateValueI_CmsSerialDateValue.isValid()public final boolean isWholeDay()
I_CmsSerialDateValueisWholeDay in interface I_CmsSerialDateValueI_CmsSerialDateValue.isWholeDay()public final void removeWeekOfMonth(I_CmsSerialDateValue.WeekOfMonth week)
week - the week to remove.public final void setCurrentTillEnd(java.lang.Boolean isCurrentTillEnd)
isCurrentTillEnd - the flag, indicating if the event is treated as "current" till the end.public final void setDayOfMonth(int dayOfMonth)
dayOfMonth - the day of month to set.public final void setEnd(java.util.Date date)
date - the end time to set.public final void setEndType(I_CmsSerialDateValue.EndType endType)
endType - the end type to set.public final void setEveryWorkingDay(java.lang.Boolean isEveryWorkingDay)
isEveryWorkingDay - the flag, indicating if the event should take place every working day.public final void setExceptions(java.util.SortedSet<java.util.Date> dates)
dates - dates to set.public final void setIndividualDates(java.util.SortedSet<java.util.Date> dates)
dates - the dates to set.public final void setInterval(int interval)
interval - the interval to set.public final void setMonth(I_CmsSerialDateValue.Month month)
month - the month to set.public final void setOccurrences(int occurrences)
occurrences - the number of occurrences to set.public final void setParentSeriesId(CmsUUID structureId)
structureId - the structure id of the series content, the event is extracted from.public final void setPatternType(I_CmsSerialDateValue.PatternType type)
All pattern specific values are reset.
type - the pattern type to set.public final void setSeriesEndDate(java.util.Date date)
date - the day to set.public final void setStart(java.util.Date date)
date - the time to set.public final void setWeekDay(I_CmsSerialDateValue.WeekDay weekDay)
weekDay - the week day to set.public final void setWeekDays(java.util.SortedSet<I_CmsSerialDateValue.WeekDay> weekDays)
weekDays - the week days to set.public final void setWeekOfMonth(I_CmsSerialDateValue.WeekOfMonth weekOfMonth)
weekOfMonth - the week of month to set (first to fifth, where fifth means last).public final void setWeeksOfMonth(java.util.SortedSet<I_CmsSerialDateValue.WeekOfMonth> weeksOfMonth)
weeksOfMonth - the weeks of month to set (first to fifth, where fifth means last).public final void setWholeDay(java.lang.Boolean isWholeDay)
isWholeDay - the flag to setprotected final boolean isDayOfMonthValid()
protected final boolean isDurationValid()
protected final boolean isEndValid()
protected final boolean isIntervalValid()
protected final boolean isMonthSet()
protected final boolean isPatternValid()
protected final boolean isStartSet()
protected final boolean isValidEndTypeForPattern()
protected final boolean isWeekDaySet()
protected final boolean isWeekOfMonthSet()
protected final void setDefaultValue()
protected final void setDerivedEndType()