Project

General

Profile

Download (1.03 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.validation.annotation;
10

    
11
import static java.lang.annotation.ElementType.TYPE;
12
import static java.lang.annotation.RetentionPolicy.RUNTIME;
13

    
14
import java.lang.annotation.Documented;
15
import java.lang.annotation.Retention;
16
import java.lang.annotation.Target;
17

    
18
import javax.validation.Constraint;
19
import javax.validation.Payload;
20

    
21
import eu.etaxonomy.cdm.validation.constraint.StubValidator;
22

    
23
@Target( { TYPE })
24
@Retention(RUNTIME)
25
@Constraint(validatedBy = StubValidator.class)
26
@Documented
27
public @interface NoDuplicateNames {
28

    
29
	String message() default "{eu.etaxonomy.cdm.validation.annotation.NoDuplicateNames.message}";
30

    
31
	Class<? extends Payload>[] payload() default {};
32

    
33
	Class<?>[] groups() default {};  //Level3.class or level4
34
}
(12-12/20)