All Known Subinterfaces:
JacksonValidators

public interface JacksonRequireThat
Creates validators for the Jackson API that throw exceptions immediately on validation failure.
  • Method Details

    • requireThat

      <T extends JsonNode> JsonNodeValidator<T> requireThat(T value, String name)
      Validates the state of a JsonNode.

      The returned validator throws an exception immediately if a validation fails.

      Type Parameters:
      T - the type of the JsonNode
      Parameters:
      value - the value
      name - the name of the value
      Returns:
      a validator for the value
      Throws:
      NullPointerException - if name is null
      IllegalArgumentException - if name contains whitespace, or is empty