Interface Validator

All Known Implementing Classes:
ClassValidator, NullValidator, RangeValidator

@Public public interface Validator
Validator that validates configuration settings.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Return the documentation for a given validator.
    boolean
    validate(String name, Object value)
    Validates the configuration value.
  • Method Details

    • validate

      boolean validate(String name, Object value)
      Validates the configuration value.
      Parameters:
      name - name of the configuration setting
      value - value of the configuration setting
      Returns:
      true if it is a valid value, otherwise false.
    • documentation

      default String documentation()
      Return the documentation for a given validator.
      Returns:
      the documentation for a given validator