1 |
c151707b
|
Andreas Kohlbecker
|
/**
|
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 |
37b63de0
|
Andreas Müller
|
import java.util.EnumSet;
|
12 |
|
|
|
13 |
c151707b
|
Andreas Kohlbecker
|
/**
|
14 |
|
|
* @author a.kohlbecker
|
15 |
53db84af
|
Andreas Müller
|
* @since Sep 4, 2013
|
16 |
c151707b
|
Andreas Kohlbecker
|
*
|
17 |
|
|
*/
|
18 |
|
|
public enum TaxaAndNamesSearchMode {
|
19 |
|
|
|
20 |
|
|
doTaxa,
|
21 |
|
|
doSynonyms,
|
22 |
|
|
doTaxaByCommonNames,
|
23 |
|
|
doMisappliedNames,
|
24 |
37b63de0
|
Andreas Müller
|
includeUnpublished
|
25 |
|
|
;
|
26 |
|
|
|
27 |
|
|
public static EnumSet<TaxaAndNamesSearchMode> taxaAndSynonyms(){
|
28 |
|
|
return EnumSet.of(doTaxa, doSynonyms);
|
29 |
|
|
}
|
30 |
144d1d52
|
Andreas Müller
|
public static EnumSet<TaxaAndNamesSearchMode> taxaAndSynonymsWithUnpublished(){
|
31 |
|
|
return EnumSet.of(doTaxa, doSynonyms, includeUnpublished);
|
32 |
|
|
}
|
33 |
37b63de0
|
Andreas Müller
|
|
34 |
c151707b
|
Andreas Kohlbecker
|
}
|