org.hibernate.validator.messageinterpolation.HibernateMessageInterpolatorContext Maven / Gradle / Ivy
/*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or .
*/
package org.hibernate.validator.messageinterpolation;
import java.util.Map;
import javax.validation.MessageInterpolator;
/**
* Extension to {@code MessageInterpolator.Context} which provides functionality
* specific to Hibernate Validator.
*
* @author Gunnar Morling
* @author Guillaume Smet
* @since 5.0
*/
public interface HibernateMessageInterpolatorContext extends MessageInterpolator.Context {
/**
* Returns the currently validated root bean type.
*
* @return The currently validated root bean type.
*/
Class getRootBeanType();
/**
* @return the message parameters added to this context for interpolation
*
* @since 5.4.1
*/
Map getMessageParameters();
/**
* @return the expression variables added to this context for EL interpolation
*
* @since 5.4.1
*/
Map getExpressionVariables();
}