Interface Reader

All Known Implementing Classes:
JSONFileReader, XMLFileReader

public interface Reader
Reader defines expected behaviour of a validation module reader.
  • Method Details

    • getInputFormat

      InputFormatType getInputFormat()
      Return the input format supported by the reader.
      Returns:
      Input format supported by the reader
    • setValidator

      void setValidator(Validator validator)
      Set Validation to call during the reading.
      Parameters:
      validator - Validator to apply.
    • read

      void read(ValidationInput input, ValidationContext context) throws ValidationException
      Main method to process the input.
      Parameters:
      input - The input to read
      context - Validation context with all information required
      Throws:
      ValidationException - The read exception.