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
public class CmsSerialDateValue extends A_CmsSerialDateValue
Server-side implementation ofI_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
Constructors Constructor Description CmsSerialDateValue()
Default constructor, setting the default state of the the serial date widget.CmsSerialDateValue(java.lang.String value)
Wraps the JSON specification of the serial date.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONObject
toJson()
Convert the information from the wrapper to a JSON object.java.lang.String
toString()
CmsMessageContainer
validateWithMessage()
Validates the wrapped value and returns a localized error message in case of invalid values.-
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 Detail
-
CmsSerialDateValue
public CmsSerialDateValue()
Default constructor, setting the default state of the the serial date widget.
-
CmsSerialDateValue
public CmsSerialDateValue(java.lang.String value)
Wraps the JSON specification of the serial date.- Parameters:
value
- JSON representation of the serial date as string.
-
-
Method Detail
-
toJson
public JSONObject toJson()
Convert the information from the wrapper to a JSON object.- Returns:
- the serial date information as JSON.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
validateWithMessage
public CmsMessageContainer 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.
-
-