Class DefaultValueSetValidator
- java.lang.Object
-
- se.digg.dgc.valueset.v1.validation.DefaultValueSetValidator
-
- All Implemented Interfaces:
ValueSetValidator
public class DefaultValueSetValidator extends Object implements ValueSetValidator
Default implementation of theValueSetValidatorinterface.- Author:
- Martin Lindström (martin@idsec.se), Henrik Bengtsson (extern.henrik.bengtsson@digg.se), Henric Norlander (extern.henric.norlander@digg.se)
-
-
Constructor Summary
Constructors Constructor Description DefaultValueSetValidator(List<ValueSet> valueSets)Constructor.
-
Method Summary
All Methods Instance Methods Concrete 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
public ValueSetValidationResult validate(Eudcc dcc)
Validates a DCC against the value sets configured for this validator.- Specified by:
validatein interfaceValueSetValidator- Parameters:
dcc- the DCC to validate- Returns:
- validation result
-
validate
public ValueSetValidationResult validate(VaccinationEntry vaccination)
Validates aVaccinationEntryagainst the value sets configured for this validator.- Specified by:
validatein interfaceValueSetValidator- Parameters:
vaccination- the vaccination entry to validate- Returns:
- validation result
-
validate
public ValueSetValidationResult validate(TestEntry testEntry)
Validates aTestEntryagainst the value sets configured for this validator.- Specified by:
validatein interfaceValueSetValidator- Parameters:
testEntry- the test entry to validate- Returns:
- validation result
-
validate
public ValueSetValidationResult validate(RecoveryEntry recoveryEntry)
Validates aRecoveryEntryagainst the value sets configured for this validator.- Specified by:
validatein interfaceValueSetValidator- Parameters:
recoveryEntry- the recovery entry to validate- Returns:
- validation result
-
-