Interface ValueSetValidator
-
- All Known Implementing Classes:
DefaultValueSetValidator
public interface ValueSetValidator
An 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
ValidatorFactory
andValidator
.- 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 ValueSetValidationResult
validate(Eudcc dcc)
Validates a DCC against the value sets configured for this validator.ValueSetValidationResult
validate(RecoveryEntry recoveryEntry)
Validates aRecoveryEntry
against the value sets configured for this validator.ValueSetValidationResult
validate(TestEntry testEntry)
Validates aTestEntry
against the value sets configured for this validator.ValueSetValidationResult
validate(VaccinationEntry vaccination)
Validates aVaccinationEntry
against 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 aVaccinationEntry
against the value sets configured for this validator.- Parameters:
vaccination
- the vaccination entry to validate- Returns:
- validation result
-
validate
ValueSetValidationResult validate(TestEntry testEntry)
Validates aTestEntry
against the value sets configured for this validator.- Parameters:
testEntry
- the test entry to validate- Returns:
- validation result
-
validate
ValueSetValidationResult validate(RecoveryEntry recoveryEntry)
Validates aRecoveryEntry
against the value sets configured for this validator.- Parameters:
recoveryEntry
- the recovery entry to validate- Returns:
- validation result
-
-