/*
 * Hibernate Validator, declare and validate application constraints
 *
 * License: Apache License, Version 2.0
 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
 */
package org.hibernate.validator.messageinterpolation;

import java.util.Map;

import javax.validation.MessageInterpolator;

Extension to MessageInterpolator.Context which provides functionality specific to Hibernate Validator.
Author:Gunnar Morling, Guillaume Smet
Since:5.0
/** * 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.
Returns:The currently validated root bean type.
/** * Returns the currently validated root bean type. * * @return The currently validated root bean type. */
Class<?> getRootBeanType();
Returns:the message parameters added to this context for interpolation
Since:5.4.1
/** * @return the message parameters added to this context for interpolation * * @since 5.4.1 */
Map<String, Object> getMessageParameters();
Returns:the expression variables added to this context for EL interpolation
Since:5.4.1
/** * @return the expression variables added to this context for EL interpolation * * @since 5.4.1 */
Map<String, Object> getExpressionVariables(); }