Interface ISVRLErrorLevelDeterminator

All Known Implementing Classes:
DefaultSVRLErrorLevelDeterminator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ISVRLErrorLevelDeterminator
Interface that helps in determining an error level from SVRL elements.
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    default com.helger.commons.error.level.IErrorLevel
    Get the error level associated with a single failed assertion.
    com.helger.commons.error.level.IErrorLevel
    Get the error level associated with a single failed assertion/successful report.
    default com.helger.commons.error.level.IErrorLevel
    Get the error level associated with a single successful report.
  • Method Details

    • getErrorLevelFromString

      @Nonnull com.helger.commons.error.level.IErrorLevel getErrorLevelFromString(@Nullable String sValue)
      Get the error level associated with a single failed assertion/successful report.
      Parameters:
      sValue - The value to be queried. May be null.
      Returns:
      The error level and never null.
      Since:
      5.0.2
    • getErrorLevelFromFailedAssert

      @Nonnull default com.helger.commons.error.level.IErrorLevel getErrorLevelFromFailedAssert(@Nonnull FailedAssert aFailedAssert)
      Get the error level associated with a single failed assertion.
      Parameters:
      aFailedAssert - The failed assert to be queried. May not be null.
      Returns:
      The error level and never null.
    • getErrorLevelFromSuccessfulReport

      @Nonnull default com.helger.commons.error.level.IErrorLevel getErrorLevelFromSuccessfulReport(@Nonnull SuccessfulReport aSuccessfulReport)
      Get the error level associated with a single successful report.
      Parameters:
      aSuccessfulReport - The failed assert to be queried. May not be null.
      Returns:
      The error level and never null.