Interface Reader
- All Known Implementing Classes:
JSONFileReader,XMLFileReader
public interface Reader
Reader defines expected behaviour of a validation module reader.-
Method Summary
Modifier and TypeMethodDescriptionReturn the input format supported by the reader.voidread(ValidationInput input, ValidationContext context) Main method to process the input.voidsetValidator(Validator validator) Set Validation to call during the reading.
-
Method Details
-
getInputFormat
InputFormatType getInputFormat()Return the input format supported by the reader.- Returns:
- Input format supported by the reader
-
setValidator
Set Validation to call during the reading.- Parameters:
validator- Validator to apply.
-
read
Main method to process the input.- Parameters:
input- The input to readcontext- Validation context with all information required- Throws:
ValidationException- The read exception.
-