Package org.opencms.widgets.serialdate
Class CmsSerialDateValue
java.lang.Object
org.opencms.acacia.shared.A_CmsSerialDateValue
org.opencms.widgets.serialdate.CmsSerialDateValue
- All Implemented Interfaces:
I_CmsSerialDateValue
Server-side implementation of
I_CmsSerialDateValue
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencms.acacia.shared.I_CmsSerialDateValue
I_CmsSerialDateValue.DateType, I_CmsSerialDateValue.EndType, I_CmsSerialDateValue.JsonKey, I_CmsSerialDateValue.Month, I_CmsSerialDateValue.PatternType, I_CmsSerialDateValue.WeekDay, I_CmsSerialDateValue.WeekOfMonth
-
Field Summary
Fields inherited from interface org.opencms.acacia.shared.I_CmsSerialDateValue
DAY_IN_MILLIS, NUM_OF_WEEKDAYS
-
Constructor Summary
ConstructorDescriptionDefault constructor, setting the default state of the the serial date widget.CmsSerialDateValue
(String value) Wraps the JSON specification of the serial date. -
Method Summary
Methods inherited from class org.opencms.acacia.shared.A_CmsSerialDateValue
addException, addWeekOfMonth, clearExceptions, clearIndividualDates, clearWeekDays, clearWeeksOfMonth, endsAtMidNight, equals, getDateType, getDayOfMonth, getEnd, getEndType, getExceptions, getIndividualDates, getInterval, getMonth, getOccurrences, getParentSeriesId, getPatternType, getSeriesEndDate, getStart, getWeekDay, getWeekDays, getWeekOfMonth, getWeeksOfMonth, hasExceptions, hashCode, isCurrentTillEnd, isDayOfMonthValid, isDurationValid, isEndValid, isEveryWorkingDay, isFromOtherSeries, isIntervalValid, isMonthSet, isPatternValid, isStartSet, isValid, isValidEndTypeForPattern, isWeekDaySet, isWeekOfMonthSet, isWholeDay, removeWeekOfMonth, setCurrentTillEnd, setDayOfMonth, setDefaultValue, setDerivedEndType, setEnd, setEndType, setEveryWorkingDay, setExceptions, setIndividualDates, setInterval, setMonth, setOccurrences, setParentSeriesId, setPatternType, setSeriesEndDate, setStart, setWeekDay, setWeekDays, setWeekOfMonth, setWeeksOfMonth, setWholeDay
-
Constructor Details
-
CmsSerialDateValue
public CmsSerialDateValue()Default constructor, setting the default state of the the serial date widget. -
CmsSerialDateValue
Wraps the JSON specification of the serial date.- Parameters:
value
- JSON representation of the serial date as string.
-
-
Method Details
-
toJson
Convert the information from the wrapper to a JSON object.- Returns:
- the serial date information as JSON.
-
toString
-
validateWithMessage
Validates the wrapped value and returns a localized error message in case of invalid values.- Returns:
null
if the value is valid, a suitable localized error message otherwise.
-