Interface IValidationResult

All Known Implementing Classes:
ValidationResult

public interface IValidationResult
Interface for objects containing the result of a validation action.
Since:
5.0
Author:
O. Kerpershoek
  • Method Summary

    Modifier and Type
    Method
    Description
    This method returns the attribute that the validation was performed on.
    This method returns an array of validation messages.
    boolean
    This method returns the (global) result of the validation action.
  • Method Details

    • getAttribute

      ValueReference getAttribute()
      This method returns the attribute that the validation was performed on.
      Returns:
      A reference to the value that was validated.
    • isValid

      boolean isValid()
      This method returns the (global) result of the validation action. When this method returns true, all validations that have been defined for the attribute did succeed. When the method returns false, one or more validations failed, and the getMessages method can be used to query for the details about the failed validations.
      Returns:
      boolean indicating if all the validations succeeded.
    • getMessages

      IValidationMessage[] getMessages()
      This method returns an array of validation messages. When all the validation did succeed (the isValid method returns true) this method will return an empty array.
      Returns:
      array containing all the validation messages of the failed validations.