All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.joschi.jadconfig.Validator Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
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