Project

General

Profile

Revision 6ef55556

ID6ef55556e259ab20ac2aae64f264a49143fced32
Parent 47cbcb0f
Child 51a26cec

Added by Andreas Müller almost 3 years ago

Cleanup

View differences:

cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/dwca/out/DwcaExportTest.java
191 191
            byte[] byt = data.get(key);
192 192
            System.out.println(key + ": " + new String(byt) );
193 193
        }
194
//        System.out.println();
194
//      System.out.println();
195 195
        //metadata
196 196
        byte[] metadata = data.get(DwcaTaxExportFile.METADATA.getTableName());
197 197
        Assert.assertNotNull("Metadata must not be null", metadata);
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/match/IMatchStrategy.java
1 1
/**
2 2
 * Copyright (C) 2007 EDIT
3
 * European Distributed Institute of Taxonomy 
3
 * European Distributed Institute of Taxonomy
4 4
 * http://www.e-taxonomy.eu
5
 * 
5
 *
6 6
 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
 * See LICENSE.TXT at the top of this package for the full license terms.
8 8
 */
......
15 15
/**
16 16
 * @author a.mueller
17 17
 * @created 31.07.2009
18
 * @version 1.0
19 18
 */
20 19
public interface IMatchStrategy {
21 20

  
22 21
	public static MatchMode defaultMatchMode = MatchMode.EQUAL;
23 22
	public static MatchMode defaultCollectionMatchMode = MatchMode.IGNORE;
24 23
	public static MatchMode defaultMatchMatchMode = MatchMode.MATCH;
25
	
24

  
26 25
	public MatchMode getMatchMode(String propertyName);
27 26

  
28 27
	/**
29 28
	 * Sets the match mode for property propertyName
30 29
	 * @param propertyName
31 30
	 * @param mergeMode
32
	 * @throws MatchException 
31
	 * @throws MatchException
33 32
	 */
34 33
	public void setMatchMode(String propertyName, MatchMode matchMode) throws MatchException;
35
	
34

  
36 35
	/**
37 36
	 * Invokes the match check.
38 37
	 * If two objects match this method returns true, false otherwise
......
43 42
	 */
44 43
	public <T extends IMatchable> boolean invoke(T matchFirst, T matchSecond) throws MatchException;
45 44

  
46
	
45

  
47 46
	/**
48 47
	 * Returns the Matching of this match strategy
49 48
	 * @return
50 49
	 */
51 50
	public Matching getMatching();
52
	
51

  
53 52
	/**
54 53
	 * Returns the class this match strategy matches for
55 54
	 * @return
56 55
	 */
57 56
	public Class getMatchClass();
58
	
57

  
59 58
	/**
60 59
	 * Returns a map containing all fields this match strategy defines match modes for
61 60
	 * @return
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/match/IMatchable.java
1 1
/**
2 2
 * Copyright (C) 2007 EDIT
3
 * European Distributed Institute of Taxonomy 
3
 * European Distributed Institute of Taxonomy
4 4
 * http://www.e-taxonomy.eu
5
 * 
5
 *
6 6
 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
 * See LICENSE.TXT at the top of this package for the full license terms.
8 8
 */
......
13 13

  
14 14

  
15 15
/**
16
 * This is an interface to tag all those classes which can be tested for matching via an 
16
 * This is an interface to tag all those classes which can be tested for matching via an
17 17
 * <code>eu.etaxonomy.cdm.strategy.match.IMatchStrategy</code>.
18 18
 * @author a.mueller
19 19
 * @created 31.07.2009
20
 * @version 1.0
21 20
 */
22 21
public interface IMatchable extends ICdmBase{
23 22

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)