|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.index.search.SearchType
public abstract class SearchType
An Enumeration of the possible types of Searches.
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormField Summary | |
---|---|
static SearchType |
ALL_WORDS
Find all the words regardless of position. |
static SearchType |
ANY_WORDS
Find any of these words |
private String |
name
The name of the BookCategory |
private static int |
nextObj
|
static SearchType |
NOT_WORDS
Find verses not containing these words. |
private int |
obj
|
static SearchType |
PHRASE
Find the words in the specified order. |
static SearchType |
RANGE
Find verses in this range |
protected static QueryDecorator |
SEARCH_SYNTAX
|
private static long |
serialVersionUID
Serialization ID |
static SearchType |
SPELL_WORDS
Find verses with words spelled something like |
static SearchType |
START_WORDS
Find verses with words that start with the these beginnings. |
private static SearchType[] |
VALUES
|
Constructor Summary | |
---|---|
protected |
SearchType(String name)
|
Method Summary | |
---|---|
abstract String |
decorate(String queryWords)
Decorate a string with the given type of decoration. |
boolean |
equals(Object o)
Prevent subclasses from overriding canonical identity based Object methods |
static SearchType |
fromInteger(int i)
Lookup method to convert from an integer |
static SearchType |
fromString(String name)
Lookup method to convert from a String |
int |
hashCode()
Prevent subclasses from overriding canonical identity based Object methods |
(package private) Object |
readResolve()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field 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
private String name
protected static final QueryDecorator SEARCH_SYNTAX
private static int nextObj
private final int obj
private static final SearchType[] VALUES
private static final long serialVersionUID
Constructor Detail |
---|
protected SearchType(String name)
name
- The name of the BookCategoryMethod Detail |
---|
public abstract String decorate(String queryWords)
public static SearchType fromString(String name)
public static SearchType fromInteger(int i)
public final boolean equals(Object o)
equals
in class Object
Object.equals(java.lang.Object)
public final int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object readResolve()
|
Copyright ยจ 2003-2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |