Interface ValueSetValidator
-
- All Known Implementing Classes:
DefaultValueSetValidator
public interface ValueSetValidatorAn interface describing a validator that can be used to ensure that data present in a DCC is in accordance with the configured value sets.Note: This type of validator only validates present data against value sets. For a validation against the schema, use
ValidatorFactoryandValidator.- Author:
- Martin Lindström (martin@idsec.se), Henrik Bengtsson (extern.henrik.bengtsson@digg.se), Henric Norlander (extern.henric.norlander@digg.se)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValueSetValidationResultvalidate(Eudcc dcc)Validates a DCC against the value sets configured for this validator.ValueSetValidationResultvalidate(RecoveryEntry recoveryEntry)Validates aRecoveryEntryagainst the value sets configured for this validator.ValueSetValidationResultvalidate(TestEntry testEntry)Validates aTestEntryagainst the value sets configured for this validator.ValueSetValidationResultvalidate(VaccinationEntry vaccination)Validates aVaccinationEntryagainst the value sets configured for this validator.
-
-
-
Method Detail
-
validate
ValueSetValidationResult validate(Eudcc dcc)
Validates a DCC against the value sets configured for this validator.- Parameters:
dcc- the DCC to validate- Returns:
- validation result
-
validate
ValueSetValidationResult validate(VaccinationEntry vaccination)
Validates aVaccinationEntryagainst the value sets configured for this validator.- Parameters:
vaccination- the vaccination entry to validate- Returns:
- validation result
-
validate
ValueSetValidationResult validate(TestEntry testEntry)
Validates aTestEntryagainst the value sets configured for this validator.- Parameters:
testEntry- the test entry to validate- Returns:
- validation result
-
validate
ValueSetValidationResult validate(RecoveryEntry recoveryEntry)
Validates aRecoveryEntryagainst the value sets configured for this validator.- Parameters:
recoveryEntry- the recovery entry to validate- Returns:
- validation result
-
-