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

org.hibernate.validator.MessageInterpolator Maven / Gradle / Ivy

Go to download

Following the DRY (Don't Repeat Yourself) principle, Hibernate Validator let's you express your domain constraints once (and only once) and ensure their compliance at various level of your system automatically.

The newest version!
//$Id: MessageInterpolator.java 15133 2008-08-20 10:05:57Z hardy.ferentschik $
package org.hibernate.validator;

/**
 * Responsible for validator message interpolation (variable replacement etc)
 * this extension point is useful if the call has some contextual informations to
 * interpolate in validator messages
 *
 * @author Emmanuel Bernard
 */
public interface MessageInterpolator {
	/**
	 * Interpolate a given validator message.
	 * The implementation is free to delegate to the default interpolator or not.
	 */
	String interpolate(String message, Validator validator, MessageInterpolator defaultInterpolator);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy