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 and Validator.

    Author:
    Martin Lindström (martin@idsec.se), Henrik Bengtsson (extern.henrik.bengtsson@digg.se), Henric Norlander (extern.henric.norlander@digg.se)
    • 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​(TestEntry testEntry)
        Validates a TestEntry against the value sets configured for this validator.
        Parameters:
        testEntry - the test entry to validate
        Returns:
        validation result