Class ValidationResult

java.lang.Object
com.thoughtworks.go.plugin.api.response.validation.ValidationResult

@Deprecated public class ValidationResult extends Object
Deprecated.
Represents result of validation
  • Constructor Details

    • ValidationResult

      public ValidationResult()
      Deprecated.
  • Method Details

    • addError

      public void addError(ValidationError validationError)
      Deprecated.
      Adds provided ValidationError to error container
      Parameters:
      validationError - the validation error to be added
    • addErrors

      public void addErrors(Collection<ValidationError> validationErrors)
      Deprecated.
      Adds collection of ValidationError to the error container
      Parameters:
      validationErrors - collection of errors to be added to container
    • removeError

      public void removeError(ValidationError validationError)
      Deprecated.
      Removes specified validation error from the error container
      Parameters:
      validationError - the validation error to be removed from error container
    • removeErrors

      public void removeErrors(Collection<ValidationError> validationErrors)
      Deprecated.
      Removes specified collection of validation errors from the container
      Parameters:
      validationErrors - collection of validations errors to be removed
    • isSuccessful

      public boolean isSuccessful()
      Deprecated.
      Checks if result of the validation is successful based on the size of error container
      Returns:
      if error container is empty returns true, else returns false
    • getErrors

      public List<ValidationError> getErrors()
      Deprecated.
      Gets list of errors for container
      Returns:
      list of errors for container
    • getMessages

      public List<String> getMessages()
      Deprecated.
      Collects error message string as list from all the errors in the container
      Returns:
      error message as list of string