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

org.hibernate.validation.engine.MessageInterpolatorContext Maven / Gradle / Ivy

Go to download

Module repackaging of the Hibernate validator library and Validation API (JSR 303)

There is a newer version: 3.0-JBoss-4.0.2_03
Show newest version
package org.hibernate.validation.engine;

import javax.validation.metadata.ConstraintDescriptor;
import javax.validation.MessageInterpolator;

/**
 * Takes mandatory elements in the constructor
 *
 * @author Emmanuel Bernard
 */
public class MessageInterpolatorContext implements MessageInterpolator.Context {
	private final ConstraintDescriptor constraintDescriptor;
	private final Object validatedValue;

	public MessageInterpolatorContext(ConstraintDescriptor constraintDescriptor, Object validatedValue) {
		this.constraintDescriptor = constraintDescriptor;
		this.validatedValue = validatedValue;
	}

	public ConstraintDescriptor getConstraintDescriptor() {
		return constraintDescriptor;
	}

	public Object getValidatedValue() {
		return validatedValue;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy