1
|
/**
|
2
|
* Copyright (C) 2013 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
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.
|
8
|
*/
|
9
|
package eu.etaxonomy.cdm.api.service;
|
10
|
|
11
|
import java.util.EnumSet;
|
12
|
|
13
|
/**
|
14
|
* @author a.kohlbecker
|
15
|
* @since Sep 4, 2013
|
16
|
*
|
17
|
*/
|
18
|
public enum TaxaAndNamesSearchMode {
|
19
|
|
20
|
doTaxa,
|
21
|
doSynonyms,
|
22
|
doTaxaByCommonNames,
|
23
|
doMisappliedNames,
|
24
|
includeUnpublished
|
25
|
;
|
26
|
|
27
|
public static EnumSet<TaxaAndNamesSearchMode> taxaAndSynonyms(){
|
28
|
return EnumSet.of(doTaxa, doSynonyms);
|
29
|
}
|
30
|
public static EnumSet<TaxaAndNamesSearchMode> taxaAndSynonymsWithUnpublished(){
|
31
|
return EnumSet.of(doTaxa, doSynonyms, includeUnpublished);
|
32
|
}
|
33
|
|
34
|
}
|