3 * Copyright (C) 2009 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
12 package eu
.etaxonomy
.cdm
.api
.service
.config
;
14 import java
.util
.List
;
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
;
23 * @author a.babadshanjan
27 public class FindTaxaAndNamesConfiguratorImpl
<T
extends TaxonBase
<?
>> extends IdentifiableServiceConfiguratorImpl
<T
>
28 implements IFindTaxaAndNamesConfigurator
<T
> {
31 public static FindTaxaAndNamesConfiguratorImpl
NewInstance() {
32 return new FindTaxaAndNamesConfiguratorImpl();
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
;
50 * @return the taxonNamePropertyPath
52 public List
<String
> getTaxonNamePropertyPath() {
53 return taxonNamePropertyPath
;
57 * @param taxonNamePropertyPath the taxonNamePropertyPath to set
59 public void setTaxonNamePropertyPath(List
<String
> taxonNamePropertyPath
) {
60 this.taxonNamePropertyPath
= taxonNamePropertyPath
;
63 public boolean isDoTaxa() {
67 public void setDoTaxa(boolean doTaxa
) {
71 public boolean isDoSynonyms() {
75 public void setDoSynonyms(boolean doSynonyms
) {
76 this.doSynonyms
= doSynonyms
;
80 * @return doTaxaByCommonNames
82 public boolean isDoTaxaByCommonNames() {
83 return doTaxaByCommonNames
;
87 * @param doTaxaByCommonNames
89 public void setDoTaxaByCommonNames(boolean doTaxaByCommonNames
) {
90 this.doTaxaByCommonNames
= doTaxaByCommonNames
;
94 * @return doNamesWithoutTaxa
96 public boolean isDoNamesWithoutTaxa() {
97 return doNamesWithoutTaxa
;
101 * @param doNamesWithoutTaxa
103 public void setDoNamesWithoutTaxa(boolean doNamesWithoutTaxa
) {
104 this.doNamesWithoutTaxa
= doNamesWithoutTaxa
;
107 public MatchMode
getMatchMode() {
111 public void setMatchMode(MatchMode matchMode
) {
112 this.matchMode
= matchMode
;
115 public Classification
getClassification() {
116 return classification
;
119 public void setClassification(Classification classification
) {
120 this.classification
= classification
;
123 public List
<String
> getTaxonPropertyPath() {
124 return taxonPropertyPath
;
127 public void setTaxonPropertyPath(List
<String
> taxonPropertyPath
) {
128 this.taxonPropertyPath
= taxonPropertyPath
;
131 public List
<String
> getCommonNamePropertyPath() {
132 return commonNamePropertyPath
;
135 public void setCommonNamePropertyPath(List
<String
> commonNamePropertyPath
) {
136 this.commonNamePropertyPath
= commonNamePropertyPath
;
140 * @see eu.etaxonomy.cdm.api.service.config.ITaxonServiceConfigurator#getAreas()
142 public Set
<NamedArea
> getNamedAreas() {
147 * @see eu.etaxonomy.cdm.api.service.config.ITaxonServiceConfigurator#setAreas(java.util.List)
149 public void setNamedAreas(Set
<NamedArea
> namedAreas
) {
150 this.namedAreas
= namedAreas
;
153 public List
<String
> getSynonymPropertyPath() {
154 return synonymPropertyPath
;
158 public void setSynonymPropertyPath(List
<String
> synonymPropertyPath
){
159 this.synonymPropertyPath
= synonymPropertyPath
;
163 public boolean isDoMisappliedNames() {
164 return this.doMisappliedNames
;
168 public void setDoMisappliedNames(boolean doMisappliedNames
) {
169 this.doMisappliedNames
= doMisappliedNames
;