Project

General

Profile

Download (1.25 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2019 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.validation.annotation;
10

    
11
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
12
import static java.lang.annotation.ElementType.FIELD;
13
import static java.lang.annotation.ElementType.METHOD;
14
import static java.lang.annotation.ElementType.TYPE;
15
import static java.lang.annotation.RetentionPolicy.RUNTIME;
16

    
17
import java.lang.annotation.Documented;
18
import java.lang.annotation.Retention;
19
import java.lang.annotation.Target;
20

    
21
import javax.validation.Constraint;
22
import javax.validation.Payload;
23

    
24
import eu.etaxonomy.cdm.validation.constraint.LectotypeSourceValidator;
25

    
26
/**
27
 * @author a.mueller
28
 * @since 25.02.2019
29
 */
30
@Target( { TYPE, METHOD, FIELD, ANNOTATION_TYPE})
31
@Retention(RUNTIME)
32
@Constraint(validatedBy = LectotypeSourceValidator.class)
33
@Documented
34
public @interface ValidLectotypeSource {
35

    
36
    String message() default "{eu.etaxonomy.cdm.validation.annotation.LectotypeSource.message}";
37

    
38
    Class<? extends Payload>[] payload() default {};
39

    
40
    Class<?>[] groups() default {};
41
}
(16-16/18)