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

org.resthub.web.validation.ValidationContext Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy