1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2009 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
|
11
|
|
12
|
package eu.etaxonomy.cdm.api.service.config;
|
13
|
|
14
|
import java.util.List;
|
15
|
import java.util.Set;
|
16
|
|
17
|
import eu.etaxonomy.cdm.model.location.NamedArea;
|
18
|
import eu.etaxonomy.cdm.model.taxon.Classification;
|
19
|
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
|
20
|
import eu.etaxonomy.cdm.persistence.query.MatchMode;
|
21
|
|
22
|
/**
|
23
|
* @author a.babadshanjan
|
24
|
* @created 20.01.2009
|
25
|
* @version 1.0
|
26
|
*/
|
27
|
public class FindTaxaAndNamesConfiguratorImpl<T extends TaxonBase<?>> extends IdentifiableServiceConfiguratorImpl<T>
|
28
|
implements IFindTaxaAndNamesConfigurator<T> {
|
29
|
|
30
|
|
31
|
public static FindTaxaAndNamesConfiguratorImpl NewInstance() {
|
32
|
return new FindTaxaAndNamesConfiguratorImpl();
|
33
|
}
|
34
|
|
35
|
|
36
|
private boolean doTaxa = true;
|
37
|
private boolean doSynonyms = false;
|
38
|
private boolean doTaxaByCommonNames = false;
|
39
|
private boolean doNamesWithoutTaxa = false;
|
40
|
private boolean doMisappliedNames = false;
|
41
|
private Classification classification = null;
|
42
|
private List<String> taxonPropertyPath;
|
43
|
private List<String> synonymPropertyPath;
|
44
|
private List<String> taxonNamePropertyPath;
|
45
|
private List<String> commonNamePropertyPath;
|
46
|
private Set<NamedArea> namedAreas;
|
47
|
|
48
|
|
49
|
/**
|
50
|
* @return the taxonNamePropertyPath
|
51
|
*/
|
52
|
public List<String> getTaxonNamePropertyPath() {
|
53
|
return taxonNamePropertyPath;
|
54
|
}
|
55
|
|
56
|
/**
|
57
|
* @param taxonNamePropertyPath the taxonNamePropertyPath to set
|
58
|
*/
|
59
|
public void setTaxonNamePropertyPath(List<String> taxonNamePropertyPath) {
|
60
|
this.taxonNamePropertyPath = taxonNamePropertyPath;
|
61
|
}
|
62
|
|
63
|
public boolean isDoTaxa() {
|
64
|
return doTaxa;
|
65
|
}
|
66
|
|
67
|
public void setDoTaxa(boolean doTaxa) {
|
68
|
this.doTaxa = doTaxa;
|
69
|
}
|
70
|
|
71
|
public boolean isDoSynonyms() {
|
72
|
return doSynonyms;
|
73
|
}
|
74
|
|
75
|
public void setDoSynonyms(boolean doSynonyms) {
|
76
|
this.doSynonyms = doSynonyms;
|
77
|
}
|
78
|
|
79
|
/**
|
80
|
* @return doTaxaByCommonNames
|
81
|
*/
|
82
|
public boolean isDoTaxaByCommonNames() {
|
83
|
return doTaxaByCommonNames;
|
84
|
}
|
85
|
|
86
|
/**
|
87
|
* @param doTaxaByCommonNames
|
88
|
*/
|
89
|
public void setDoTaxaByCommonNames(boolean doTaxaByCommonNames) {
|
90
|
this.doTaxaByCommonNames = doTaxaByCommonNames;
|
91
|
}
|
92
|
|
93
|
/**
|
94
|
* @return doNamesWithoutTaxa
|
95
|
*/
|
96
|
public boolean isDoNamesWithoutTaxa() {
|
97
|
return doNamesWithoutTaxa;
|
98
|
}
|
99
|
|
100
|
/**
|
101
|
* @param doNamesWithoutTaxa
|
102
|
*/
|
103
|
public void setDoNamesWithoutTaxa(boolean doNamesWithoutTaxa) {
|
104
|
this.doNamesWithoutTaxa = doNamesWithoutTaxa;
|
105
|
}
|
106
|
|
107
|
public MatchMode getMatchMode() {
|
108
|
return matchMode;
|
109
|
}
|
110
|
|
111
|
public void setMatchMode(MatchMode matchMode) {
|
112
|
this.matchMode = matchMode;
|
113
|
}
|
114
|
|
115
|
public Classification getClassification() {
|
116
|
return classification;
|
117
|
}
|
118
|
|
119
|
public void setClassification(Classification classification) {
|
120
|
this.classification = classification;
|
121
|
}
|
122
|
|
123
|
public List<String> getTaxonPropertyPath() {
|
124
|
return taxonPropertyPath;
|
125
|
}
|
126
|
|
127
|
public void setTaxonPropertyPath(List<String> taxonPropertyPath) {
|
128
|
this.taxonPropertyPath = taxonPropertyPath;
|
129
|
}
|
130
|
|
131
|
public List<String> getCommonNamePropertyPath() {
|
132
|
return commonNamePropertyPath;
|
133
|
}
|
134
|
|
135
|
public void setCommonNamePropertyPath(List<String> commonNamePropertyPath) {
|
136
|
this.commonNamePropertyPath = commonNamePropertyPath;
|
137
|
}
|
138
|
|
139
|
/* (non-Javadoc)
|
140
|
* @see eu.etaxonomy.cdm.api.service.config.ITaxonServiceConfigurator#getAreas()
|
141
|
*/
|
142
|
public Set<NamedArea> getNamedAreas() {
|
143
|
return namedAreas;
|
144
|
}
|
145
|
|
146
|
/* (non-Javadoc)
|
147
|
* @see eu.etaxonomy.cdm.api.service.config.ITaxonServiceConfigurator#setAreas(java.util.List)
|
148
|
*/
|
149
|
public void setNamedAreas(Set<NamedArea> namedAreas) {
|
150
|
this.namedAreas = namedAreas;
|
151
|
}
|
152
|
|
153
|
public List<String> getSynonymPropertyPath() {
|
154
|
return synonymPropertyPath;
|
155
|
}
|
156
|
|
157
|
@Override
|
158
|
public void setSynonymPropertyPath(List<String> synonymPropertyPath){
|
159
|
this.synonymPropertyPath = synonymPropertyPath;
|
160
|
}
|
161
|
|
162
|
@Override
|
163
|
public boolean isDoMisappliedNames() {
|
164
|
return this.doMisappliedNames;
|
165
|
}
|
166
|
|
167
|
@Override
|
168
|
public void setDoMisappliedNames(boolean doMisappliedNames) {
|
169
|
this.doMisappliedNames = doMisappliedNames;
|
170
|
}
|
171
|
|
172
|
}
|