
com.github.joschi.jadconfig.Validator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadconfig Show documentation
Show all versions of jadconfig Show documentation
Annotation-driven configuration library for the Java programming language
package com.github.joschi.jadconfig;
/**
* Interface for parameter validators
*
* The validator will be called before any {@link Converter} has been run on the configuration parameter
*
*
* @param The type for which this Validator works.
* @author jschalanda
*/
public interface Validator {
/**
* Validates the value {@literal value} the of provided configuration parameter {@literal name}
*
* @param name The name of the configuration parameter
* @param value The value of the configuration parameter. Might also be {@code null}.
* @throws ValidationException If the configuration parameter {@literal name} couldn't be validated
*/
void validate(String name, T value) throws ValidationException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy