Class BooleanValidator

All Implemented Interfaces:
Validator

public class BooleanValidator extends JSONValidator
Validates a boolean value in a JSON document.
  • Constructor Details

    • BooleanValidator

      public BooleanValidator(String booleanPath)
      Defaults to expect a "true" value at hte path. If the value at a path evaluates to false, the validator will provide a corresponding message.
      Parameters:
      booleanPath - path ot a boolean value in a JSON document
    • BooleanValidator

      public BooleanValidator(String booleanPath, boolean expected)
  • Method Details