Class CmsSerialDateValue

    • 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 class java.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.