Interface Validator<T>

Type Parameters:
T - The type for which this Validator works.
All Known Implementing Classes:
DirectoryPathReadableValidator, DirectoryPathWritableValidator, DirectoryReadableValidator, DirectoryWritableValidator, FilePathExecutableValidator, FilePathReadableValidator, FilePathWritableValidator, FileReadableValidator, FileWritableValidator, InetPortValidator, NoValidator, PathExecutableValidator, PathReadableValidator, PathWritableValidator, PositiveDurationValidator, PositiveIntegerValidator, PositiveLongValidator, PositiveSizeValidator, StringLowercaseValidator, StringNotBlankValidator, StringNotEmptyValidator, StringUppercaseValidator, URIAbsoluteValidator

public interface Validator<T>
Interface for parameter validators

The validator will be called before any Converter has been run on the configuration parameter

Author:
jschalanda
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(String name, T value)
    Validates the value value the of provided configuration parameter name
  • Method Details

    • validate

      void validate(String name, T value) throws ValidationException
      Validates the value value the of provided configuration parameter name
      Parameters:
      name - The name of the configuration parameter
      value - The value of the configuration parameter. Might also be null.
      Throws:
      ValidationException - If the configuration parameter name couldn't be validated