com.github.ldeitos.validation.Message Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of extendedValidation-core Show documentation
Show all versions of extendedValidation-core Show documentation
Extension for BeanValidation API Core. Content interfaces, qualifiers and constraints definitions.
This version is Java 17 and JakartaEE 10 compatible.
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();
}