2 * Copyright (C) 2009 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.
9 package eu
.etaxonomy
.cdm
.api
.service
.config
;
11 import java
.util
.List
;
12 import java
.util
.UUID
;
15 * Configurator for finding the best matching taxon.
17 * By default it includes synonyms but no unpublished taxa
18 * and does not filter by secundum reference or classification.
24 public class MatchingTaxonConfigurator
{
26 public static MatchingTaxonConfigurator
NewInstance(){
27 return new MatchingTaxonConfigurator();
30 private boolean includeUnpublished
= false;
32 private String taxonNameTitle
;
36 private UUID classificationUuid
;
38 private boolean includeSynonyms
= true;
40 private boolean onlyMatchingSecUuid
= false;
42 private boolean onlyMatchingClassificationUuid
= false;
44 private List
<String
> propertyPath
= null;
47 public String
getTaxonNameTitle() {
48 return taxonNameTitle
;
50 public void setTaxonNameTitle(String taxonNameTitle
) {
51 this.taxonNameTitle
= taxonNameTitle
;
55 public UUID
getSecUuid() {
58 public void setSecUuid(UUID secUuid
) {
59 this.secUuid
= secUuid
;
63 public UUID
getClassificationUuid() {
64 return classificationUuid
;
66 public void setClassificationUuid(UUID classificationUuid
) {
67 this.classificationUuid
= classificationUuid
;
70 public boolean isIncludeSynonyms() {
71 return includeSynonyms
;
74 * Default is <code>true</code>.
75 * @param includeSynonyms the includeSynonyms to set
77 public void setIncludeSynonyms(boolean includeSynonyms
) {
78 this.includeSynonyms
= includeSynonyms
;
81 public boolean isOnlyMatchingSecUuid() {
82 return onlyMatchingSecUuid
;
84 public void setOnlyMatchingSecUuid(boolean onlyMatchingSecUuid
) {
85 this.onlyMatchingSecUuid
= onlyMatchingSecUuid
;
88 public boolean isOnlyMatchingClassificationUuid() {
89 return onlyMatchingClassificationUuid
;
91 public void setOnlyMatchingClassificationUuid(
92 boolean onlyMatchingClassificationUuid
) {
93 this.onlyMatchingClassificationUuid
= onlyMatchingClassificationUuid
;
96 public List
<String
> getPropertyPath() {
99 public void setPropertyPath(List
<String
> propertyPath
) {
100 this.propertyPath
= propertyPath
;
103 public boolean isIncludeUnpublished() {
104 return includeUnpublished
;
106 public void setIncludeUnpublished(boolean includeUnpublished
) {
107 this.includeUnpublished
= includeUnpublished
;