Interface BagValidatorRule

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 BagValidatorRule
Represents a rule to be validated.
  • Method Summary

    Modifier and Type
    Method
    Description
    validate(Path path)
    Validate the bag at path against this rule.
  • Method Details

    • validate

      RuleResult validate(Path path) throws Exception
      Validate the bag at path against this rule.
      Parameters:
      path - the path of the bag
      Returns:
      the result
      Throws:
      Exception - if the validation could not be run