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

com.github.ldeitos.validation.Message Maven / Gradle / Ivy

Go to download

Extension for BeanValidation API Core. Content interfaces, qualifiers and constraints definitions. This version is Java 17 and JakartaEE 10 compatible.

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy