Package org.biojava.bibliography
Class BiblioCriterion
- java.lang.Object
-
- org.biojava.bibliography.BiblioCriterion
-
public class BiblioCriterion extends Object
The criteria define how the matching or ordering should be done during queries.- Since:
- 1.3
- Version:
- $Id$
- Author:
- Martin Senger
-
-
Field Summary
Fields Modifier and Type Field Description StringforSubsetA name of a repository subset which this criterion is valid/used for.String[]mutuallyExclusiveWithA list of other criteria names that this criterion is mutually exclusive with.StringnameEach Criterion is identified by its name.static intQUERY_CRITERIONA query criterion.static intSORT_CRITERIONA sort criterion.inttypeThe criteria can be used for defining rules for matching (typeQUERY_CRITERION), or for ordering (typeSORT_CRITERION).
-
Constructor Summary
Constructors Constructor Description BiblioCriterion()
-
-
-
Field Detail
-
QUERY_CRITERION
public static final int QUERY_CRITERION
A query criterion.- See Also:
- Constant Field Values
-
SORT_CRITERION
public static final int SORT_CRITERION
A sort criterion.- See Also:
- Constant Field Values
-
name
public String name
Each Criterion is identified by its name. A list of criteria names is used in methods for querying and sorting (see
BibRefQueryinterface).The implementations are advised to use descriptive names. For example, the names for matching can be:
match all words match any word case insensitive case sensitive partial word match full word matchand the names for ordering can be:ascending descendingAnother example of how to use Criteria is to allow regular expressions in queries. Not every implementation is supposed to have the capability of matching by regular expressions but those who have can specify (and document), for example, criterion with name regular expression.
-
type
public int type
The criteria can be used for defining rules for matching (typeQUERY_CRITERION), or for ordering (typeSORT_CRITERION).
-
mutuallyExclusiveWith
public String[] mutuallyExclusiveWith
A list of other criteria names that this criterion is mutually exclusive with.
For example, a sort criterion ascending will probably have descending in this list.
-
forSubset
public String forSubset
A name of a repository subset which this criterion is valid/used for.- See Also:
BiblioEntryStatus.repositorySubset
-
-
Constructor Detail
-
BiblioCriterion
public BiblioCriterion()
-
-