|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SearchType>
org.crosswire.jsword.index.search.SearchType
public enum SearchType
An Enumeration of the possible types of Searches.
The GNU Lesser General Public License for details.
Enum Constant Summary | |
---|---|
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. |
Field Summary | |
---|---|
private String |
name
The name of the BookCategory |
protected static QueryDecorator |
SEARCH_SYNTAX
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Field Detail |
---|
private String name
protected static final QueryDecorator SEARCH_SYNTAX
Method Detail |
---|
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 name
NullPointerException
- 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>
|
Copyright ยจ 2003-2015 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |