Class ValidationResult

java.lang.Object
com.broadleafcommerce.dataimport.service.validation.ValidationResult

public final class ValidationResult extends Object
Contains detailed information about any validation errors that were found with an import row
Author:
Vitalii Voronkov (vvoronkov)
  • Constructor Details

    • ValidationResult

      public ValidationResult(boolean successful, @Nullable String errorMessage)
  • Method Details

    • success

      public static ValidationResult success()
    • error

      public static ValidationResult error(String errorMessage)
    • isSuccessful

      public boolean isSuccessful()
      Whether the import was successfully pre-processed.
    • getErrorMessage

      @Nullable public String getErrorMessage()
      If successful is false, this can contain a message describing any general errors.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object