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

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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy