org.srplib.validation.Validator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of srp-validation Show documentation
Show all versions of srp-validation Show documentation
Single Responsibility Principle (SRP) libraries collection
package org.srplib.validation;
/**
* Base interface for object that can validate {@link Validatable} objects.
*
* @author Anton Pechinsky
*/
public interface Validator {
/**
* Validates provided validatable object. Implementation should validate value from validatable object and set validation
* error if value isn't valid.
*
* @param validatable Validadable object to validate.
* @see Validatable
*/
void validate(Validatable validatable);
}