Project

General

Profile

Download (1.76 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 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

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

    
12
import java.util.UUID;
13

    
14
import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
15

    
16
/**
17
 * @author a.mueller
18
 * @since 06.08.2009
19
 */
20
public class ParsedBaseMatchStrategy extends DefaultMatchStrategy implements IParsedMatchStrategy {
21

    
22
    private static final long serialVersionUID = 1253144282030211050L;
23
    @SuppressWarnings("unused")
24
    private static final Logger logger = LogManager.getLogger(ParsedBaseMatchStrategy.class);
25

    
26
	final static UUID uuid = UUID.fromString("4e2efeca-96a3-4894-80f4-f1015295f059");
27

    
28
	public static ParsedBaseMatchStrategy NewInstance(Class<? extends IMatchable> matchClazz){
29
		return new ParsedBaseMatchStrategy(matchClazz);
30
	}
31

    
32
    protected ParsedBaseMatchStrategy(Class<? extends IMatchable> matchClazz) {
33
		super(matchClazz);
34
	}
35

    
36
	@Override
37
	protected UUID getUuid() {
38
		return uuid;
39
	}
40

    
41
	@Override
42
    protected void preInitMapping() {
43
	    defaultMatchMode = DEFAULT_PARSED_MATCH_MODE;
44
        defaultCollectionMatchMode = DEFAULT_PARSED_COLLECTION_MATCH_MODE;
45
        defaultMatchMatchMode = DEFAULT_PARSED_MATCH_MATCH_MODE;
46
	}
47

    
48
//
49
//	@Override
50
//    public Matching getMatching() {
51
//		return matching;
52
//	}
53
//
54
//
55
//	/**
56
//	 * @param class1
57
//	 */
58
//	private void initializeSubclass(Class<? extends IMatchable> instanceClass) {
59
//		Map<String, Field> subClassFields = CdmUtils.getAllFields(instanceClass, matchClass, false, false, true, false);
60
//		for (Field field: subClassFields.values()){
61
//			initField(field, true);
62
//		}
63
//	}
64

    
65
}
(16-16/18)