Interface ConfigDescriptionValidator


@NonNullByDefault public interface ConfigDescriptionValidator
The ConfigDescriptionValidator validates a given set of Configuration parameters against a given ConfigDescription URI. So it can be used as a static pre-validation to avoid that the configuration of an entity is updated with parameters which do not match with the declarations in the configuration description. If the validator detects one or more mismatches then a ConfigValidationException is thrown.
Author:
Thomas Höfer - Initial contribution, Chris Jackson - Handle checks on multiple selection parameters
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(Map<String,Object> configurationParameters, URI configDescriptionURI)
    Validates the given configuration parameters against the given configuration description having the given URI.
  • Method Details

    • validate

      void validate(Map<String,Object> configurationParameters, URI configDescriptionURI)
      Validates the given configuration parameters against the given configuration description having the given URI.
      Parameters:
      configurationParameters - the configuration parameters to be validated
      configDescriptionURI - the URI of the configuration description against which the configuration parameters are to be validated
      Throws:
      ConfigValidationException - if one or more configuration parameters do not match with the configuration description having the given URI
      NullPointerException - if given config description URI or configuration parameters are null