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

org.ligoj.app.validation.DistinguishName Maven / Gradle / Ivy

The newest version!
/*
 * Licensed under MIT (https://github.com/ligoj/ligoj/blob/master/LICENSE)
 */
package org.ligoj.app.validation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

/**
 * Distinguish Name constraint.
 */
@Target({ ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = DistinguishNameValidator.class)
public @interface DistinguishName {

	/**
	 * Default Key message
	 *
	 * @return Message key.
	 */
	String message() default "org.ligoj.app.validation.DistinguishName.message";

	/**
	 * JSR-303 requirement.
	 *
	 * @return Empty groups.
	 */
	Class[] groups() default {

	};

	/**
	 * JSR-303 requirement.
	 *
	 * @return Empty payloads.
	 */
	Class[] payload() default {

	};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy