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

com.github.ldeitos.validation.ConstraintSeverity 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.Payload;

/**
 * 
 * @author Leandro Deitos
 *
 */
public class ConstraintSeverity implements Payload {
	private class ERROR extends ConstraintSeverity {};
	private class ALERT extends ConstraintSeverity {};
	private class INFO extends ConstraintSeverity {};
	private class WARN extends ConstraintSeverity {};
	private class FATAL extends ConstraintSeverity {};
	
	public static Class error(){
		return ERROR.class;
	}
	
	public static Class alert(){
		return ALERT.class;
	}
	
	public static Class info(){
		return INFO.class;
	}
	
	public static  Class warn(){
		return WARN.class;
	}
	
	public static  Class fatal(){
		return FATAL.class;
	}
	
	public static Class defaultValue(){
		return error();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy