org.resthub.web.validation.ValidationContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resthub-web-server Show documentation
Show all versions of resthub-web-server Show documentation
RESThub support for REST webservices based on Spring MVC
package org.resthub.web.validation;
import javax.validation.MessageInterpolator;
import javax.validation.metadata.ConstraintDescriptor;
public class ValidationContext implements MessageInterpolator.Context {
private final ConstraintDescriptor> constraintDescriptor;
private final Object validatedValue;
public ValidationContext(ConstraintDescriptor> constraintDescriptor, Object validatedValue) {
this.constraintDescriptor = constraintDescriptor;
this.validatedValue = validatedValue;
}
public ConstraintDescriptor> getConstraintDescriptor() {
return constraintDescriptor;
}
public Object getValidatedValue() {
return validatedValue;
}
}