Class XValidationResult

    • Constructor Detail

      • XValidationResult

        public XValidationResult()
        Creates a new validation result representing a successful validation (no validation error).
      • XValidationResult

        public XValidationResult​(boolean valid)
        Creates a new validation result with an empty message.
        Parameters:
        valid - Whether the submitted values were valid.
      • XValidationResult

        public XValidationResult​(boolean valid,
                                 String message)
        Creates a new validation result with the given message.
        Parameters:
        valid - Whether the submitted values were valid.
        message - The error message to display in case the values are not valid.
    • Method Detail

      • setMessage

        @Deprecated
        public void setMessage​(String message)
        Deprecated.
        Do not modify this instance, use the appropriate constructor with the data you require.
        Parameters:
        message - the message
      • isValid

        public boolean isValid()
        Specified by:
        isValid in interface IXValidationResult
        Returns:
        Whether the submitted values are valid.
      • setValid

        @Deprecated
        public void setValid​(boolean valid)
        Deprecated.
        Do not modify this instance, use the appropriate constructor with the data you require.
        Parameters:
        valid - Whether the submitted values are valid.