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

net.sf.mmm.util.validation.base.ValidatorRegistry Maven / Gradle / Ivy

There is a newer version: 8.7.0
Show newest version
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
 * http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.util.validation.base;

/**
 * This is the interface for a registry where {@link AbstractValidator validators} can be {@link #add(AbstractValidator)
 * added}.
 *
 * @param  the generic type of the value to {@link AbstractValidator#validate(Object) validate}. May be
 *        {@link Object} to register any validator. Otherwise only validators can be {@link #add(AbstractValidator)
 *        added} that apply to this type.
 * @param  the result of the {@link #add(AbstractValidator)} method. Typically the self reference (this) for
 *        fluent API calls. See {@link ObjectValidatorBuilder}.
 *
 * @author hohwille
 * @since 7.4.0
 */
public interface ValidatorRegistry {

  /**
   * @param validator the {@link AbstractValidator} to add to this builder.
   * @return this build instance for fluent API calls.
   */
  SELF add(AbstractValidator validator);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy