Project

General

Profile

Download (1.35 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
 * Copyright (C) 2009 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.persistence.validation;
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.RetentionPolicy.RUNTIME;
15

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

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

    
23
/**
24
 * A Mock class for testing entity validation tasks. DO NOT MODIFY UNLESS YOU
25
 * ALSO MODIFY THE UNIT TESTS MAKING USE OF THIS CLASS!
26
 *
27
 * @author ayco_holleman
28
 *
29
 */
30
@Target({ METHOD, FIELD, ANNOTATION_TYPE })
31
@Retention(RUNTIME)
32
@Constraint(validatedBy = CheckCaseValidator.class)
33
@Documented
34
public @interface CheckCase {
35
    // Do not modify message. Unit tests depend on it
36
    String message() default "Casing is wrong";
37

    
38
    Class<?>[] groups() default {};
39

    
40
    // Do not modify severity. Unit tests depend on it
41
    Class<? extends Payload>[] payload() default {};
42

    
43
    CaseMode value();
44
}
(3-3/12)