Interface ValidationResult

All Known Implementing Classes:
DefaultValidationResult, EmptyValidationResult

public interface ValidationResult
Interface for validation results in the pipeline system. Contains validation status, errors, and warnings.
  • Method Summary

    Modifier and Type
    Method
    Description
    Combines this result with another, taking the most restrictive validity.
    Returns the list of validation errors.
    boolean
    Returns true if there are any errors.
    boolean
    Returns true if there are any issues (errors or warnings).
    boolean
    Returns true if there are any warnings.
    boolean
    Returns whether the validation was successful.
    Returns the list of validation warnings.
  • Method Details

    • valid

      boolean valid()
      Returns whether the validation was successful.
      Returns:
      true if valid, false otherwise
    • errors

      List<String> errors()
      Returns the list of validation errors.
      Returns:
      list of error messages
    • warnings

      List<String> warnings()
      Returns the list of validation warnings.
      Returns:
      list of warning messages
    • combine

      Combines this result with another, taking the most restrictive validity. Accumulates all errors and warnings from both results.
      Parameters:
      other - the other validation result to combine with
      Returns:
      a new combined validation result
    • hasIssues

      boolean hasIssues()
      Returns true if there are any issues (errors or warnings).
      Returns:
      true if there are any issues
    • hasErrors

      boolean hasErrors()
      Returns true if there are any errors.
      Returns:
      true if there are any errors
    • hasWarnings

      boolean hasWarnings()
      Returns true if there are any warnings.
      Returns:
      true if there are any warnings