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.

The newest version!
package com.github.ldeitos.validation;

import java.io.Serializable;

import jakarta.validation.ConstraintViolation;

/**
 * Interface to validation generated messages.
 *
 * @author Leandro Deitos
 *
 */
public interface Message extends Serializable {
	/**
	 * @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