Interface IVSMessageComponent

    • Method Detail

      • isValid

        default boolean isValid()
        Checks if valid, i.e. no message is present.
        Returns:
        true if there is no message, false otherwise.
      • clearMessage

        default boolean clearMessage()
        Clears the message.
        Returns:
        true for change, false means no change.
      • getMessage

        default PlainKString getMessage()
        Gets the message from the validation process.
        Returns:
        The message from the parsing or validation, null for none (i.e. OK).
      • getMessageString

        default java.lang.String getMessageString()
        Gets the message from the validation process as a String.

        Note: the returned string could be empty in case the PlainKString contains tags and the resolved string becomes empty!

        Returns:
        The message from the parsing or validation, null for none (i.e. OK).
      • setMessage

        default boolean setMessage​(ValueConversionException exception)
        Sets the validation message for a value conversion error.
        Parameters:
        exception - The value conversion exception.
        Returns:
        true for change, false means no change.
      • setErrorMessage

        default boolean setErrorMessage​(java.lang.String message)
        Helper method to set (or clear) the error message (message + category IVSComponent.ERROR).
        Parameters:
        message - The message.
        Returns:
        true for change, false for no change.