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

name.valery1707.validator.russian.inn.Inn Maven / Gradle / Ivy

package name.valery1707.validator.russian.inn;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Constraint(validatedBy = {InnConstraintValidator.class})
@Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER })
@Retention(RUNTIME)
public @interface Inn {
	/**
	 * @return the error message template
	 */
	String message() default "{name.valery1707.validator.russian.inn.Inn.message}";

	/**
	 * @return the groups the constraint belongs to
	 */
	Class[] groups() default {};

	/**
	 * @return the payload associated to the constraint
	 */
	Class[] payload() default {};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy