Top Description Inners Fields Constructors Methods
org.jabref.model.search.rules

public Class SearchRules

extends Object
Class Inheritance
Imports
java.util.EnumSet, java.util.regex.Pattern

This is a factory to instantiate the matching SearchRule implementation matching a given query

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private static final Pattern

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static SearchRule
public static SearchRule
getSearchRuleByQuery(String query, EnumSet<SearchRules.SearchFlags> searchFlags)

Returns the appropriate search rule that fits best to the given parameter.

private static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SIMPLE_EXPRESSIONback to summary
private static final Pattern SIMPLE_EXPRESSION

Constructor Detail

SearchRulesback to summary
private SearchRules()

Method Detail

getSearchRuleback to summary
pack-priv static SearchRule getSearchRule(EnumSet<SearchRules.SearchFlags> searchFlags)
getSearchRuleByQueryback to summary
public static SearchRule getSearchRuleByQuery(String query, EnumSet<SearchRules.SearchFlags> searchFlags)

Returns the appropriate search rule that fits best to the given parameter.

isSimpleQueryback to summary
private static boolean isSimpleQuery(String query)
org.jabref.model.search.rules back to summary

public final Enum SearchRules.SearchFlags

extends Enum<SearchRules.SearchFlags>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final SearchRules.SearchFlags
public static final SearchRules.SearchFlags
public static final SearchRules.SearchFlags
public static final SearchRules.SearchFlags

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static SearchRules.SearchFlags
public static SearchRules.SearchFlags[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CASE_SENSITIVEback to summary
public static final SearchRules.SearchFlags CASE_SENSITIVE
FULLTEXTback to summary
public static final SearchRules.SearchFlags FULLTEXT
KEEP_SEARCH_STRINGback to summary
public static final SearchRules.SearchFlags KEEP_SEARCH_STRING
REGULAR_EXPRESSIONback to summary
public static final SearchRules.SearchFlags REGULAR_EXPRESSION

Constructor Detail

SearchFlagsback to summary
private SearchFlags()

Method Detail

valueOfback to summary
public static SearchRules.SearchFlags valueOf(String name)
valuesback to summary
public static SearchRules.SearchFlags[] values()