Class ValidationResult


  • @Deprecated
    public class ValidationResult
    extends java.lang.Object
    Deprecated.
    Represents result of validation
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidationResult()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addError​(ValidationError validationError)
      Deprecated.
      Adds provided ValidationError to error container
      void addErrors​(java.util.Collection<ValidationError> validationErrors)
      Deprecated.
      Adds collection of ValidationError to the error container
      java.util.List<ValidationError> getErrors()
      Deprecated.
      Gets list of errors for container
      java.util.List<java.lang.String> getMessages()
      Deprecated.
      Collects error message string as list from all the errors in the container
      boolean isSuccessful()
      Deprecated.
      Checks if result of the validation is successful based on the size of error container
      void removeError​(ValidationError validationError)
      Deprecated.
      Removes specified validation error from the error container
      void removeErrors​(java.util.Collection<ValidationError> validationErrors)
      Deprecated.
      Removes specified collection of validation errors from the container
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ValidationResult

        public ValidationResult()
        Deprecated.
    • Method Detail

      • 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​(java.util.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​(java.util.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 java.util.List<ValidationError> getErrors()
        Deprecated.
        Gets list of errors for container
        Returns:
        list of errors for container
      • getMessages

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