Interface ConfigurationValidator

  • All Known Implementing Classes:
    TableColumnValuesUniqueValidator

    public interface ConfigurationValidator
    An interface that allows for custom validation of all the Fields and tables that compose the configuration of the adapter. Full configuration validation occurs after individual field and table row validation take place and only if no errors are reported during those validation processes.

    A AdapterConfigurationGuiDescriptor can have 0..n ConfigurationValidators that will be invoked in order until ValidationException is thrown or all ConfigurationValidators have been executed.
    • Method Detail

      • validate

        void validate​(Configuration configuration)
               throws ValidationException
        Implementations of this method can perform any necessary validation on all the configuration values for an adapter. This is generally useful when there are dependencies between fields and tables in an adapter.
        Parameters:
        configuration - a Configuration object populated by user entered values from the GUI.
        Throws:
        ValidationException - if the configuration is invalid.