Project

General

Profile

1
package eu.dnetlib.pace.condition;
2

    
3
import java.util.List;
4

    
5
import eu.dnetlib.pace.config.Cond;
6
import eu.dnetlib.pace.model.Field;
7
import eu.dnetlib.pace.model.FieldDef;
8

    
9
/**
10
 * The Class ExactMatch.
11
 *
12
 * @author claudio
13
 */
14
public class DoiExactMatch extends ExactMatchIgnoreCase {
15

    
16
	public final String PREFIX = "(http:\\/\\/dx\\.doi\\.org\\/)|(doi:)";
17

    
18
	public DoiExactMatch(final Cond cond, final List<FieldDef> fields) {
19
		super(cond, fields);
20
	}
21

    
22
	@Override
23
	protected String getValue(final Field f) {
24
		return super.getValue(f).replaceAll(PREFIX, "");
25
	}
26

    
27
}
(4-4/11)