2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.preference
.matching
;
12 import eu
.etaxonomy
.cdm
.model
.reference
.Reference
;
13 import eu
.etaxonomy
.cdm
.strategy
.match
.IMatchStrategy
;
14 import eu
.etaxonomy
.cdm
.strategy
.match
.MatchException
;
15 import eu
.etaxonomy
.cdm
.strategy
.match
.MatchStrategyConfigurator
;
16 import eu
.etaxonomy
.taxeditor
.model
.MessagingUtils
;
20 * @created Jan 22, 2010
23 public class ReferenceMatchingPreference
extends AbstractMatchingPreferences
<Reference
> {
29 clazz
= Reference
.class;
32 matchStrategy
= MatchStrategyConfigurator
.ReferenceMatchStrategy();
33 } catch (MatchException e
) {
34 MessagingUtils
.error(this.getClass(), e
);
35 throw new RuntimeException(e
);
41 protected IMatchStrategy
getDefaultMatchStrategy() throws MatchException
{
42 return MatchStrategyConfigurator
.getDefaultReferenceMatchStrategy();