com.github.ldeitos.validation.Message Maven / Gradle / Ivy
package com.github.ldeitos.validation;
import javax.validation.ConstraintViolation;
/**
* Interface to validation generated messages.
*
* @author Leandro Deitos
*
*/
public interface Message {
/**
* @return
* The message {@link Severity}.
*/
Severity getSeverity();
/**
* @return
* Violation generated message text.
*/
String getMessage();
/**
* @return
* Original {@link ConstraintViolation}.
*/
ConstraintViolation> getOriginConstraint();
}