Project

General

Profile

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

    
11
package eu.etaxonomy.cdm.strategy.match;
12

    
13
import static java.lang.annotation.ElementType.FIELD;
14
import static java.lang.annotation.RetentionPolicy.RUNTIME;
15

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

    
19
/**
20
 * @author a.mueller
21
 * @created 03.08.2009
22
 * @version 1.0
23
 */
24
@Target({FIELD}) 
25
@Retention(RUNTIME)
26
public @interface Match {
27
	MatchMode value();
28
	
29
	ReplaceMode cacheReplaceMode() default ReplaceMode.ALL;
30
	MatchMode replaceMatchMode() default MatchMode.EQUAL_OR_ONE_NULL; 
31
	String[] cacheReplacedProperties() default {};
32
	
33
	public enum ReplaceMode{
34
		ALL,  //Selects all properties
35
		NONE,  //Selects no properties
36
		DEFINED,  //sel
37
		DEFINED_REVERSE
38
	}
39
//	IMatchStrategy matchStrategy();
40
	
41
}
(7-7/11)