public enum SearchType extends Enum<SearchType>
The GNU Lesser General Public License for details.
Enum Constant and Description |
---|
ALL_WORDS
Find all the words regardless of position.
|
ANY_WORDS
Find any of these words
|
NOT_WORDS
Find verses not containing these words.
|
PHRASE
Find the words in the specified order.
|
RANGE
Find verses in this range
|
SPELL_WORDS
Find verses with words spelled something like
|
START_WORDS
Find verses with words that start with the these beginnings.
|
Modifier and Type | Field and Description |
---|---|
private String |
name
The name of the BookCategory
|
protected static QueryDecorator |
SEARCH_SYNTAX |
Modifier and Type | Method and Description |
---|---|
abstract String |
decorate(String queryWords)
Decorate a string with the given type of decoration.
|
static SearchType |
fromString(String name)
Lookup method to convert from a String
|
String |
toString() |
static SearchType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchType PHRASE
public static final SearchType ALL_WORDS
public static final SearchType ANY_WORDS
public static final SearchType NOT_WORDS
public static final SearchType START_WORDS
public static final SearchType SPELL_WORDS
public static final SearchType RANGE
private String name
protected static final QueryDecorator SEARCH_SYNTAX
public static SearchType[] values()
for (SearchType c : SearchType.values()) System.out.println(c);
public static SearchType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic abstract String decorate(String queryWords)
queryWords
- public static SearchType fromString(String name)
name
- public String toString()
toString
in class Enum<SearchType>